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.
Before submitting or committing, use this checklist to ensure work completeness.
Timing: After code is written and tested, before commit
# Must pass
npm run lint
npm run typecheck
npm run testnpm run lint passes with 0 errors?npm run typecheck passes with no type errors?console.log statements (use logger)?x! operator)?any types?Code-Spec Docs:
.trellis/spec/backend/ need updates?
.trellis/spec/frontend/ need updates?
.trellis/spec/guides/ need updates?
Key Question:
"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?"
If YES -> Update the relevant code-spec doc.
If this change touches infra or cross-layer contracts, this is a blocking checklist:
Block Rule:
If infra/cross-layer changed but the related spec is still abstract, do NOT finish. Run $update-spec manually first.
If you modified API endpoints:
If you modified database schema:
If the change spans multiple layers:
# 1. Code checks
npm run lint && npm run typecheck
# 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 -> $finish-work -> git commit -> $record-session
| |
Ensure completeness Record progress
Debug Flow:
Hit bug -> Fix -> $break-loop -> Knowledge capture
|
Deep analysis$finish-work - Check work completeness (this skill)$record-session - Record session and commits$break-loop - Deep analysis after debuggingDelivery includes not just code, but also documentation, verification, and knowledge capture.
Complete work = Code + Docs + Tests + Verification
786846c
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.