AGENT SKILL
harden-types-post-step
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-07-07
- Stars
- ★ 1
- Forks
- 0
03 SKILL.md 正文
After any TypeScript code change, review the diff for type-safety issues.
Rules:
- Flag every
: any,as <T>,as unknown as <T>,@ts-ignore,@ts-expect-errorin changed files. - Skip if the core skill already runs type hardening internally. Skills that already call
skill({ name: "harden-types" })as a post-step:audit(via Phase 4 parallel fan-out). If the change was produced by one of these, do NOT invoke harden-types again. - Before removing an
ascast, read the call site that produces the value — the cast's correctness depends on its source, not its target. - Mechanical fixes (concrete type replace, cast removal where structurally safe, add return type to exported function) apply immediately.
- Boundary entry points (HTTP body, server-fn input, webhook payload, env parsing, IPC) that lack validation — propose adding zod schema (or existing project validator).
- Do not auto-install a validator dependency without explicit user confirmation.
- Skip for: pure JS files, generated code, test fixtures with intentional
as any, discriminated-union narrowing.
04 同仓库更多 Skills
write-tests
暂无简介
★ 1
update-changelog
暂无简介
★ 1
triage
Move issues and external PRs through a state machine of triage roles — categorise, verify, grill if needed, and write agent-ready briefs.
★ 1
to-prd
暂无简介
★ 1
to-issues
Break a plan, spec, or PRD into independently-grabbable issues on the project issue tracker using tracer-bullet vertical slices.
★ 1
testing-plan
暂无简介
★ 1