Generates a conventional commit message from staged git changes by analyzing the diff, determining type and scope, and formatting the subject, body, and footer.
Ships in recipe-commands. Installing the plugin adds it to Claude Code.
Generate a well-structured conventional commit message from the currently staged git changes.
Run git diff --cached to see what is staged. Also run git diff --cached --stat for a file summary.
If nothing is staged, inform the user: "No changes are staged. Run git add first, then invoke this command again." Then stop.
Analyze the diff to select the most appropriate type:
| Type | When to Use |
|---|---|
feat | A new feature or user-facing capability |
fix | A bug fix |
refactor | Code restructuring with no behavior change |
perf | A performance improvement |
test | Adding or updating tests only |
docs | Documentation-only changes |
style | Formatting, whitespace, semicolons -- no logic change |
chore | Build scripts, CI config, dependency bumps, tooling |
ci | CI/CD pipeline changes |
build | Build system or external dependency changes |
revert | Reverting a previous commit |
If the diff spans multiple types, choose the dominant one. If it is truly mixed, prefer feat > fix > refactor > chore.
Identify a short scope in parentheses that indicates the area of the codebase:
feat(auth):, fix(payments):refactor(Button):test(api):, docs(readme):Omit the scope only if the change is truly project-wide.
Format: type(scope): imperative description
Rules:
Add a body separated by a blank line if the change is non-trivial. The body should explain:
BREAKING CHANGE:If the diff or branch name contains issue numbers, append a footer:
Closes #123
Output the commit message inside a single code block so the user can copy it. Also provide the ready-to-run command:
git commit -m "type(scope): subject line" -m "Optional body paragraph"
If the user provided $ARGUMENTS containing "apply" or "run", execute the git commit command directly instead of just displaying it.
What the command file sets; muted values are Claude Code's defaults
haiku7-day visitors to each command page
15 commands in this plugin
/api-genStep 1 -- Understand the RequirementsGenerate REST API endpoints with routes, validation, error handling, and tests/audit-reposStep 1 -- List the ReposAudit all your GitHub repos for CI health, hygiene, security alerts, and staleness/check-all-prsStep 1 -- Find the PRsCheck all your open PRs across GitHub repos for CI, reviews, and merge readiness/recipe-commands:commit-messagefrom recipe-commands
npx claudepluginhub sagargupta16/claude-code-recipes --plugin recipe-commandsOther plugins' commands for the same job