Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ai-shifu/module-augmentation-guardrails
当 TypeScript 对子路径导出出现类型丢失或声明冲突时使用本技能。通过规范的 module augmentation 写法避免覆盖上游导出。
Passed 22 of 22 test cases with the skill, and 17 of 22 without it.
and 2 more in the full report
5 fixed17 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 5 test cases the skill fixed. Same model, same prompt, with and without the skill.
I am creating a `.d.ts` file to augment a type exported from `@auth/core`. I want to keep the file as clean as possible without any top-level side-effect imports or exports. Is it safe to write `declare module '@auth/core' { ... }` as a script file without top-level imports/exports?
| Checked | Without skill | With skill |
|---|---|---|
| Requires adding a top-level import of the target package or subpath inside the augmentation file. | Missed | Passed |
The instructions your model reads when the skill loads.
node_modules 中发布版声明文件。import "package/subpath"; 与 export {};。markdown-flow-ui/slide),不要误写到相邻模块导致类型表面可用、运行接入点却不生效。InteractionDefaultValueOptions)。.d.ts 里重写整个模块结构。ReactNode),在声明文件顶层显式 import type,避免 TS 在模块增强中退化成 any。test cases passed, vs 17 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.