precommit
Installation
SKILL.md
Precommit
Workflow
- Read
package.jsonto identify available scripts - Format + lint fix: run
npm run lint-fixornpm run lint:fix(whichever exists) - Lint + types: run
npm run lint(runstsc --noEmit+ eslint) - Tests: run
npm test - Report overall PASS or FAIL with file:line error references
Rules
- Always auto-fix before reporting errors
- Run lint-fix → lint check → test sequentially
- If lint-fix fails, still run lint check and tests; report all failures at the end
- Report errors as
file:linereferences - Never commit, stage, or push anything