Agent Skills
› UsefulSoftwareCo/executor
› wrdn-typescript-type-safety
wrdn-typescript-type-safety
GitHub修复 TypeScript 类型边界问题,移除 @ts-nocheck 等宽泛类型绕过手段。通过缩小失败表达式、添加 schema/guard 或改进局部类型来解决问题,避免禁用整个文件的类型检查。
触发场景
代码中出现 @ts-nocheck
存在其他宽泛的 TypeScript 类型绕过标记
Lint 工具报告类型错误但使用了全局忽略
安装
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.
版本历史
- fd4fb02 当前 2026-07-05 10:55


