typecheck
Run TypeScript type-check on both apps/web and apps/api in parallel and report errors. Use after any code change before saying work is "done", and as a precondition for /complete-session and /commit-a
SKILL.md.claude/skills/typecheck/SKILL.md
GitHubtypecheck
Fast type-check across the monorepo. Required before declaring any work complete.
Steps
- Run both checks in parallel with two
Bashcalls in the same message:cd apps/web && npx tsc --noEmit cd apps/api && npx tsc --noEmit - Parse output — count errors per file, highlight the most-recently-touched files first (those are usually the cause).
- Report to the user as a clean summary:
apps/web: ✅ 0 errors (or) ❌ 3 errors in 2 files apps/api: ✅ 0 errors - If errors exist, group them by file and propose fixes only for files you touched in this session. Don't try to fix preexisting drift unless the user asks.
- If both clean, that's the entire response — no preamble.
Verification
- Both apps checked
- Errors grouped clearly
- Preexisting errors flagged separately from new ones
Notes
- This project uses
prisma generateto create types — if errors mention missing Prisma types, runcd data/schema && npx prisma generatefirst - A
cd ... && npx tsctaking >60 seconds usually means a stale.tsbuildinfo— delete and retry