prp-commit
Quick commit with natural language file targeting — describe what to commit in plain English
by jaswanthsanjay88★ 24 GitHub stars
Install prp-commit in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Smart Commit
Adapted from PRPs-agentic-eng by Wirasm. Part of the PRP workflow series.
Input: $ARGUMENTS
Phase 1 — ASSESS
git status --short
If output is empty → stop: "Nothing to commit."
Show the user a summary of what's changed (added, modified, deleted, untracked).
Phase 2 — INTERPRET & STAGE
Interpret $ARGUMENTS to determine what to stage:
| Input | Interpretation | Git Command |
|---|---|---|
| (blank / empty) | Stage everything | git add -A |
staged |
Use whatever is already staged | (no git add) |
*.ts or *.py etc. |
Stage matching glob | git add '*.ts' |
except tests |
Stage all, then unstage tests | git add -A && git reset -- '**/*.test.*' '**/*.spec.*' '**/test_*' 2>/dev/null || true |
only new files |
Stage untracked files only | git ls-files --others --exclude-standard | grep . && git ls-files --others --exclude-standard | xargs git add |
the auth changes |
Interpret from status/diff — find auth-related files | git add <matched files> |
| Specific filenames | Stage those files | git add <files> |
For natural language inputs (like "the auth changes"), cross-reference the git status output and git diff to identify relevant files. Show the user which files you're staging and why.
git add <determined files>
After staging, verify:
git diff --cached --stat
If nothing staged, stop: "No files matched your description."
Phase 3 — COMMIT
Craft a single-line commit message in imperative mood:
{type}: {description}
Types:
feat— New feature or capabilityfix— Bug fixrefactor— Code restructuring without behavior changedocs— Documentation changestest— Adding or updating testschore— Build, config, dependenciesperf— Performance improvementci— CI/CD changes
Rules:
- Imperative mood ("add feature" not "added feature")
- Lowercase after the type prefix
- No period at the end
- Under 72 characters
- Describe WHAT changed, not HOW
git commit -m "{type}: {description}"
Phase 4 — OUTPUT
Report to user:
Committed: {hash_short}
Message: {type}: {description}
Files: {count} file(s) changed
Next steps:
- git push → push to remote
- /prp-pr → create a pull request
- /code-review → review before pushing
Examples
| You say | What happens |
|---|---|
/prp-commit |
Stages all, auto-generates message |
/prp-commit staged |
Commits only what's already staged |
/prp-commit *.ts |
Stages all TypeScript files, commits |
/prp-commit except tests |
Stages everything except test files |
/prp-commit the database migration |
Finds DB migration files from status, stages them |
/prp-commit only new files |
Stages untracked files only |
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the prp-commit skill do?
Quick commit with natural language file targeting — describe what to commit in plain English
How do I install the prp-commit skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the prp-commit skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…