chenmijiang/cmj_skills/git-commit
Claude Code and agent skill by chenmijiang/cmj_skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Generate git commit messages from staged changes following Conventional Commits. Use when user wants to commit, asks for help writing commit messages, or invokes /commit command.
Install
npx vskill@latest install chenmijiang/cmj_skills/git-commitSKILL.md
The same SKILL.md was published earlier as chenmijiang/cmj_skills/git-commit.
Commit Message Generator
Generate commit messages from staged changes following Conventional Commits.
Workflow
- Get staged diff
- Run
git diff --cached - If output is empty, inform user there are no staged changes and exit
- Generate commit message
- Analyze the diff content
- Apply the rules below to produce a commit message
- Confirm and commit
- Display the generated commit message
- Ask user to confirm, edit, or cancel
- Only commit after user confirmation
- Run
git commit -m "<message>"
Message Format
Type Reference
| Type | Use Case | |
|---|---|---|
feat | New feature | |
fix | Bug fix | |
docs | Documentation only | |
style | Code style (formatting, no logic change) | |
refactor | Code refactor (no feature/fix) | |
perf | Performance improvement | |
test | Add/modify tests | |
ci | CI/CD changes | |
chore | Build, deps, tooling |
Rules
Subject
- Max 50 characters, imperative mood, lowercase first letter, no period
- Be specific: reference concrete identifiers from the diff (function names, file names, module names)
- FORBIDDEN: vague subjects like "update code", "fix bug", "make changes", "minor updates"
Body
- Default: NO body. Most commits need only a subject line.
- Add body ONLY when:
- Multi-file changes need explanation of how they relate
- Breaking change requires migration notes
- The reason for the change is not obvious from the diff
- Body explains WHY, never repeats WHAT the diff shows
- Max 3 lines
Scope
- Use the module or directory name as scope (e.g.,
auth,api,ui) - If changes span multiple modules, omit scope
Breaking Change
- Add
!after type/scope:feat(api)!: restructure response format - Add
BREAKING CHANGE:in footer with migration details
Examples
Subject only (most commits):
With body (multi-file, needs context):
Breaking change:
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/git-commit/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/chenmijiang/cmj_skills/git-commit)