Loading...
Loading...
Pre-commit quality checklist covering lint, typecheck, tests, code-spec sync, API changes, database migrations, cross-layer verification, and manual testing. Blocks commit if infra or cross-layer specs lack executable depth. Use when code is written and tested but not yet committed, before submitting changes, or as a final review before git commit.
npx skill4agent add mindfold-ai/trellis finish-work# Must pass
pnpm lint
pnpm type-check
pnpm testpnpm lintpnpm type-checkconsole.logx!any.trellis/spec/cli/backend/.trellis/spec/cli/frontend/.trellis/spec/guides/"If I fixed a bug or discovered something non-obvious, should I document it so future me (or others) won't hit the same issue?"
/trellis:update-spec# 1. Code checks
pnpm lint && pnpm type-check
# 2. View changes
git status
git diff --name-only
# 3. Based on changed files, check relevant items above| Oversight | Consequence | Check |
|---|---|---|
| Code-spec docs not updated | Others don't know the change | Check .trellis/spec/ |
| Spec text is abstract only | Easy regressions in infra/cross-layer changes | Require signature/contract/matrix/cases/tests |
| Migration not created | Schema out of sync | Check db/migrations/ |
| Types not synced | Runtime errors | Check shared types |
| Tests not updated | False confidence | Run full test suite |
| Console.log left in | Noisy production logs | Search for console.log |
Development Flow:
Write code -> Test -> /trellis:finish-work -> git commit -> /trellis:record-session
| |
Ensure completeness Record progress
Debug Flow:
Hit bug -> Fix -> /trellis:break-loop -> Knowledge capture
|
Deep analysis/trellis:finish-work/trellis:record-session/trellis:break-loopDelivery includes not just code, but also documentation, verification, and knowledge capture.