typescript-check
Installation
SKILL.md
TypeScript Type-Check Workflow
Triggers
- "类型检查"
- "type-check"
- "tsc"
- "检查类型"
Workflow
Step 0: Node version alignment (precondition)
This skill hard-depends on
node-version-disciplineviadependencies. Before running any tsc / type-check command, align the Node version to the project-declared version (the dependency probes the full chain.nvmrc→.node-version→.tool-versions→volta→engines.node→ CI config; if none declared, it asks the user rather than guessing) per its SOP — otherwise the result is untrustworthy (false pass / false fail).
Prefix every command below with source ~/.nvm/nvm.sh && nvm use <version> >/dev/null 2>&1 && node -v && (single call — shell state is not persistent). If node-version-discipline is unavailable, install it first; do not degrade.