Agent Skills
› UsefulSoftwareCo/executor
› wrdn-typescript-type-safety
wrdn-typescript-type-safety
GitHub修复TypeScript类型边界,移除@ts-nocheck等全局类型绕过手段。通过收窄表达式、添加Schema守卫或改进局部类型来解决错误,避免为局部不匹配静默整个文件。
Trigger Scenarios
代码中存在 @ts-nocheck 指令
存在其他宽泛的 TypeScript 类型绕过机制
Lint 工具报告类型检查被禁用
Install
npx skills add UsefulSoftwareCo/executor --skill wrdn-typescript-type-safety -g -y
SKILL.md
Frontmatter
{
"name": "wrdn-typescript-type-safety",
"description": "Remove TypeScript escape hatches. Use when lint flags @ts-nocheck or similar broad type bypasses.",
"allowed-tools": "Read Grep Glob Bash"
}
Fix the type boundary instead of disabling TypeScript.
Fix Shape
- Remove
@ts-nocheck. - Narrow the failing expression, add a schema/guard at an unknown boundary, or improve the local type.
- If a cast is unavoidable, keep it narrow and document the invariant at the cast site.
- Do not silence an entire file for a localized mismatch.
Version History
- fd4fb02 Current 2026-07-05 10:55


