/prepare-commit — Commit Readiness
Preconditions (ALL must pass)
- •Run tests:
{stack.runtime.exec_prefix} {stack.commands.test}→ PASS - •Check project-state.md → all tasks [x]
- •Run /validate-invariants → PASS
Generate Message
- •Analyze
git diff --staged(or unstaged changes) - •Determine type: feat | fix | chore | docs
- •Write concise message:
type: description
Output
- •If ready: "✅ Commit ready:
type: message" - •If not ready: "❌ Not ready: [reason]"