Claude-skill-registry commitmsg
Generate a concise commit message by analyzing git diff changes
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/commitmsg" ~/.claude/skills/majiayu000-claude-skill-registry-commitmsg && rm -rf "$T"
manifest:
skills/data/commitmsg/SKILL.mdsource content
Commit Message Generator
This skill analyzes the changes in your git repository and generates a concise, single-line commit message that follows conventional commit standards.
How to use this skill
When you want to create a commit message for your changes:
- Run the
script in this directorycommitmsg.sh - The script will analyze the git diff of staged changes
- It will output a single line commit message you can use
Example usage
# Stage your changes first git add . # Generate commit message ./commitmsg.sh # Use the output as your commit message git commit -m "feat: add user authentication system"
What the script does
The
commitmsg.sh script:
- Checks if you're in a git repository
- Gets the diff of staged changes (or working directory if nothing staged)
- Analyzes the changed files and their content
- Generates a concise commit message following conventional commit format
- Outputs a single line suitable for
git commit -m
Conventional commit format
The generated messages follow the pattern:
for new featuresfeat:
for bug fixesfix:
for documentationdocs:
for formatting changesstyle:
for code restructuringrefactor:
for test additionstest:
for maintenance taskschore:
Each message includes a brief description of what changed.