with one click
finish-work
Finish Work - Pre-Commit Checklist
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Finish Work - Pre-Commit Checklist
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Brainstorm - Requirements Discovery (AI Coding Enhanced)
Break the Loop - Deep Bug Analysis
Start Session
Update Code-Spec - Capture Executable Contracts
| name | finish-work |
| description | Finish Work - Pre-Commit Checklist |
Before submitting or committing, use this checklist to ensure work completeness.
Timing: After code is written and tested, before commit
# Must pass
pnpm lint
pnpm type-check
# If the project defines a test script, it must pass too
pnpm test
pnpm lint passes with 0 errors?pnpm type-check 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
pnpm lint && pnpm type-check
# 1.5 Optional: if package.json defines a test script
pnpm test
# 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)git commit / git push - Human executes by default; AI may do so only with
explicit user authorization$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