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-commit

SKILL.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

  1. Get staged diff
  • Run git diff --cached
  • If output is empty, inform user there are no staged changes and exit
  1. Generate commit message
  • Analyze the diff content
  • Apply the rules below to produce a commit message
  1. 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>(<scope>): <subject>
<body>
<footer>

Type Reference

TypeUse Case
featNew feature
fixBug fix
docsDocumentation only
styleCode style (formatting, no logic change)
refactorCode refactor (no feature/fix)
perfPerformance improvement
testAdd/modify tests
ciCI/CD changes
choreBuild, 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):

docs(guide): add Python async programming guide

With body (multi-file, needs context):

refactor(auth): extract token validation into middleware
Move validation logic from individual route handlers to shared
middleware. Reduces duplication across 5 endpoint files.

Breaking change:

feat(api)!: switch response envelope to JSON:API format
BREAKING CHANGE: response shape changed from {data, status} to {data, meta}.
Update all API clients to use new structure.

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/chenmijiang/cmj_skills/git-commit/badge)](https://verified-skill.com/skills/chenmijiang/cmj_skills/git-commit)

Something wrong with this skill or its page? Tell us.