skills/reviewing-type-safety/SKILL.md
TypeScript type safety review. Use when: type safety, any, 型安全, 型カバレッジ, strict mode. Do NOT use for testability (reviewing-testability), security (reviewing-security), or readability (reviewing-readability).
npx skillsauth add thkt/claude-config reviewing-type-safetyInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
| ID | Pattern | Fix |
| --- | ----------------------------- | ----------------------------- |
| TS1 | any | unknown + type guard |
| TS1 | Implicit any | Explicit type annotation |
| TS2 | value as Type | Type guard function |
| TS2 | value! (non-null assertion) | Explicit null check |
| TS3 | function fn(data) (untyped) | function fn(data: Type) |
| TS3 | Missing return type | Explicit : ReturnType |
| TS4 | default: without exhaustive | default: assertNever(value) |
| TS5 | strictNullChecks: false | Enable in tsconfig |
| TS5 | noImplicitAny: false | Enable in tsconfig |
Type coverage >= 95%. Any usage = 0. Strict mode all enabled.
| Topic | File |
| -------- | ------------------------------------------------- |
| Coverage | ${CLAUDE_SKILL_DIR}/references/type-coverage.md |
| Guards | ${CLAUDE_SKILL_DIR}/references/type-guards.md |
| Strict | ${CLAUDE_SKILL_DIR}/references/strict-mode.md |
| Result | ${CLAUDE_SKILL_DIR}/references/result-type.md |
tools
Delegate implementation to codex (coder) via the herdr-agentchat plugin and drive a two-pane conversation to completion.
development
Extract recurring patterns from past closed PRs/issues and the research findings in workspace/research/, verify them against the latest code, and propose them to docs/wiki/ via PR.
development
Create Decision Records (DR) in MADR v4 format with auto-numbering.
development
Codex review + cleanup. Findings are challenged by critic-audit, not aggregated as facts, and fixes are applied directly. Do NOT use for internal multi-reviewer deep audits or findings reports (use /audit).