Agent Skills
› UsefulSoftwareCo/executor
› wrdn-typescript-type-safety
wrdn-typescript-type-safety
GitHub修复 TypeScript 类型边界,移除 @ts-nocheck 等宽泛的类型绕过指令。通过缩小失败表达式、添加守卫或改进本地类型来解决问题,避免禁用整个文件的类型检查,确保类型安全。
Trigger Scenarios
代码中存在 @ts-nocheck 指令
存在其他宽泛的 TypeScript 类型绕过方式
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


