Claude-skill-registry git-commit-standard
Generates conventional commits based on file changes. Analyzes diffs and creates properly formatted commit messages.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/git-commit-standard" ~/.claude/skills/majiayu000-claude-skill-registry-git-commit-standard && rm -rf "$T"
manifest:
skills/data/git-commit-standard/SKILL.mdsource content
Git Commit Standard Skill
Generate Conventional Commits based on staged changes.
Procedure
-
Check current status:
git status -
View staged changes:
git diff --staged -
If nothing staged, view all changes:
git diff -
Analyze changes and determine commit type:
: New featurefeat
: Bug fixfix
: Documentation onlydocs
: Formatting, no code changestyle
: Code change that neither fixes nor adds featurerefactor
: Performance improvementperf
: Adding or correcting teststest
: Build process, tooling, etc.chore
-
Generate commit message format:
type(scope): subject [optional body] [optional footer]
Rules
- Subject line max 72 characters
- Use imperative mood ("add" not "added")
- No period at end of subject
- Separate subject from body with blank line
- Body should explain WHAT and WHY
Example Output
git commit -m "feat(auth): add OAuth2 support for Google login - Implemented Google OAuth2 flow - Added token refresh mechanism - Updated login page UI Closes #123"