A Claude Code skill that generates Conventional Commits-format commit messages based on actual staged changes (git diff --cached).
# Add the marketplace
claude plugins marketplace add KanoCifer/git-commit-format
# Install the plugin
claude plugins install gcf@gcfOr install directly from the Claude chat:
/plugin marketplace add KanoCifer/git-commit-format
# Requires two separate commands
/plugin install gcf@gcf
Works with 70+ coding agents (Claude Code, Codex, Cursor, etc.):
npx skills add KanoCifer/git-commit-formatShare the following prompt with your agent:
Install this skill for me: https://github.com/KanoCifer/git-commit-format
After development, manually invoke:
/gcf:gcf # Preview commit message only
/gcf:gcf c # Generate and commit
/gcf:gcf p # Generate, commit, and push
Based on git diff --cached of your actual staged changes, the skill:
- Reads the current branch name
- Analyzes staged file changes (diff stat + content)
- Reviews the last 5 commits for style consistency
- Generates a Conventional Commits message with English type + summary
- Automatically infers the scope from the changed module
- Warns if the branch name doesn't follow conventions
git-commit-format/
├── .claude-plugin/
│ └── marketplace.json # Plugin marketplace manifest
├── skills/
│ └── gcf/
│ └── SKILL.md # Skill implementation
├── README.md # Chinese documentation
├── README_EN.md # This file
└── LICENSE # MIT
MIT