| name | commit |
| description | Full ship cycle: branch, PR, self-review, fix, human approval, merge |
| user-invocable | true |
| argument-hint | [commit message] |
/commit — Ship Code
Steps
Step 0: Pre-flight
- Run
git status — ensure working tree is clean except for intended changes
- Run
git pull origin main — ensure branch is up to date
- Run quality gates:
npx tsc --noEmit && npm run lint && npm test -- --run && npm run build
- If any gate fails → fix before proceeding
Step 1: Commit
- Stage relevant files (never
git add -A — be explicit)
- Write commit message explaining WHY, not WHAT
- Format:
type: description (e.g., feat: add quiz length selector)
Step 2: Branch + Push
- Create branch if not on one:
git checkout -b {type}/{slug}
- Push:
git push -u origin {branch}
Step 3: Create PR
- Write summary (2-4 bullet points)
- Reference backlog items (
Closes #NNN)
- Add test checklist
Step 4: Self-Review
- Read the full diff as if reviewing someone else's code
- Check for: unused imports, missing error handling, a11y, mobile
- Fix any issues found, commit, push
Step 5: Wait for CI
- All checks must pass before proceeding
Step 6: Update Docs (if needed)
Step 7: HUMAN CHECKPOINT
STOP HERE. Present the PR URL to the user and wait for explicit approval before merging. Never auto-merge.
Step 8: Merge + Cleanup
- Squash-merge into main
- Delete the feature branch (local + remote)
- Update backlog status if applicable