Prp Commit
Quick commit with natural language file targeting — describe what to commit in plain English
Part of the PRP workflow series.
Input: $ARGUMENTS — natural language description of what to commit, or blank for all changes.
Steps:
- Assess:
git status --short— if empty, stop: "Nothing to commit." - Interpret & stage from
$ARGUMENTS:- Blank →
git add -A staged→ use already staged files- Glob (e.g.
*.ts) →git add '*.ts' except tests→git add -A && git reset -- '**/*.test.*' '**/*.spec.*'- Natural language (e.g. "the auth changes") → cross-reference
git status+git diff, identify relevant files, show user which files and why, then stage them
- Blank →
- Verify staging:
git diff --cached --stat - Draft commit message in conventional commit format:
type(scope): description— type: feat/fix/refactor/docs/chore/test - Commit: follow project's commit signing/hook configuration (no
--no-verify) - Report: files staged, commit hash, message
Load skills: dog:git-workflow