/commit — Generate Conventional Commit
Usage
/commit
Description
Stages changes, generates a conventional commit message referencing the PRD item, and commits. Ensures build and tests pass first.
Instructions
- •
Run
git statusandgit diff --stagedto understand changes. - •
If nothing is staged, identify relevant changed files and stage them. Do NOT stage CLAUDE.md or PROMPT.md unless explicitly instructed.
- •
Run the build command. If it fails, stop and report.
- •
Run the test command. If it fails, stop and report.
- •
Generate a conventional commit message:
codetype(scope): description [optional body explaining why] refs: PRD task description
Types: feat, fix, refactor, test, docs, chore, style
- •
Present the commit message to the user for approval.
- •
After approval, commit.
- •
Remind the user to update PRD.md, AGENTS.md, and PROGRESS.md if not yet done.
Model
haiku