From pre-commit-flow
Create a well-formatted commit following project conventions. Auto-detects commit style from git history.
How this skill is triggered — by the user, by Claude, or both
Slash command
/pre-commit-flow:skills/commit-changesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create a commit for staged/unstaged changes following project conventions.
Create a commit for staged/unstaged changes following project conventions.
git status for changesgit log --oneline -10 to detect commit styleUse the detection script for accurate results:
# Returns JSON with style and confidence
"${CLAUDE_PLUGIN_ROOT}/scripts/detect-commit-style.sh"
Output example:
{
"style": "conventional-scoped",
"confidence": 80,
"stats": { "total": 10, "conventional_scoped": 8, "gitmoji": 2 }
}
| Pattern | Style |
|---|---|
type(scope): message | Conventional Commits (scoped) |
type: message | Conventional (no scope) |
:emoji: message | Gitmoji |
| Plain text | Simple |
| Type | Use For |
|---|---|
| feat | New features |
| fix | Bug fixes |
| docs | Documentation only |
| style | Formatting changes |
| refactor | Code restructuring |
| perf | Performance improvements |
| test | Adding/fixing tests |
| chore | Maintenance tasks |
<type>(<scope>): <subject>
<body>
<footer>
Subject Rules:
Body (optional):
Footer (optional):
Closes #123BREAKING CHANGE: descriptionPresent message for approval before committing.
npx claudepluginhub anilcancakir/claude-code-plugins --plugin pre-commit-flowGenerates Conventional Commits messages for staged git changes and commits them. Follows v1.0.0 spec with types like feat, fix, refactor. Use for standardized commits or /commit invocation.
Executes git commits with conventional commit message analysis, intelligent staging, and message generation. Use when asked to commit changes or when /commit is invoked.
Generates conventional commit messages from staged git changes by analyzing diffs, classifying commit types, detecting breaking changes, and formatting per Conventional Commits spec.