PRP Commit
Create a focused conventional commit from current changes, optionally using natural-language file targeting.
Workflow
Phase 1: Assess
Run:
git status --short
If there are no changes, stop with "Nothing to commit."
Summarize added, modified, deleted, and untracked files.
Phase 2: Interpret And Stage
Interpret the user's target:
| Input | Behavior |
|---|---|
| blank | stage all changes |
staged |
use already staged changes |
| glob or file path | stage matching files |
except tests |
stage all except test/spec files |
only new files |
stage untracked files only |
| natural language | match files from status/diff by area and explain why |
Show which files will be staged and why. If no files match, stop.
Phase 3: Commit
Generate a single-line conventional commit:
<type>: <imperative description>
Types: feat, fix, refactor, docs, test, chore, perf, ci.
Rules:
- Imperative mood.
- Lowercase after the type prefix.
- No period.
- Prefer under 72 characters.
- Describe what changed, not how.
Phase 4: Output
Report:
- Commit hash.
- Commit message.
- Files committed.
- Suggested next step: push,
prp-pr, orcode-review.