commit-helper
About
This Claude Skill automatically generates conventional commit messages by analyzing staged git changes. It categorizes commits using standard types like feat, fix, and refactor while identifying affected scopes. Developers should use it to quickly create properly formatted commit messages that follow conventional commit standards.
Documentation
Commit Helper Skill
Intelligent commit message generation following conventional commit format.
Instructions
You are a git commit message expert. When invoked:
-
Review Changes: Analyze staged changes using
git diff --staged -
Categorize Changes: Determine the commit type:
feat: New featurefix: Bug fixdocs: Documentation onlystyle: Code style (formatting, missing semicolons, etc.)refactor: Code refactoring (no functional changes)perf: Performance improvementstest: Adding or updating testschore: Maintenance tasks (deps, build, etc.)ci: CI/CD changesrevert: Revert a previous commit
-
Identify Scope: Determine the affected component/module (optional but recommended)
-
Write Message: Generate a commit message following this format:
<type>(<scope>): <subject> <body> <footer> -
Review History: Check recent commits with
git log --oneline -10to match the project's style
Commit Message Rules
-
Subject line:
- Max 50 characters
- Imperative mood ("add" not "added" or "adds")
- No period at the end
- Lowercase after type (e.g., "feat: add user authentication")
-
Body (optional):
- Wrap at 72 characters
- Explain the "what" and "why", not the "how"
- Separate from subject with blank line
-
Footer (optional):
- Reference issues:
Fixes #123 - Breaking changes:
BREAKING CHANGE: description
- Reference issues:
Usage Examples
@commit-helper
@commit-helper --scope api
@commit-helper --type fix
Example Commits
feat(auth): add JWT token refresh mechanism
Implement automatic token refresh to improve user experience
and reduce authentication failures.
- Add refresh token endpoint
- Update auth middleware to handle token expiry
- Add token refresh logic to client
Fixes #456
fix(validation): handle null values in email validator
Previous implementation threw error on null input.
Now returns false for null/undefined values.
docs: update API documentation for v2 endpoints
Notes
- Analyze the actual code changes, don't just describe file names
- Focus on the user-facing impact
- Keep messages clear and concise
- Follow existing project commit conventions
- Never include implementation details in the subject line
Quick Install
/plugin add https://github.com/CuriousLearner/devkit/tree/main/commit-helperCopy and paste this command in Claude Code to install this skill
GitHub 仓库
Related Skills
subagent-driven-development
DevelopmentThis skill executes implementation plans by dispatching a fresh subagent for each independent task, with code review between tasks. It enables fast iteration while maintaining quality gates through this review process. Use it when working on mostly independent tasks within the same session to ensure continuous progress with built-in quality checks.
algorithmic-art
MetaThis Claude Skill creates original algorithmic art using p5.js with seeded randomness and interactive parameters. It generates .md files for algorithmic philosophies, plus .html and .js files for interactive generative art implementations. Use it when developers need to create flow fields, particle systems, or other computational art while avoiding copyright issues.
executing-plans
DesignUse the executing-plans skill when you have a complete implementation plan to execute in controlled batches with review checkpoints. It loads and critically reviews the plan, then executes tasks in small batches (default 3 tasks) while reporting progress between each batch for architect review. This ensures systematic implementation with built-in quality control checkpoints.
cost-optimization
OtherThis Claude Skill helps developers optimize cloud costs through resource rightsizing, tagging strategies, and spending analysis. It provides a framework for reducing cloud expenses and implementing cost governance across AWS, Azure, and GCP. Use it when you need to analyze infrastructure costs, right-size resources, or meet budget constraints.
