Generate commit message
Skill Flexonze/claude-init/.claude/skills/generate-commit-message
Generate a commit message for staged changesFrom its SKILL.md
npx -y skills add Flexonze/claude-init --skill generate-commit-messageAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 10 stars10 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
- runs commandsInstructs the agent to run 3 commands, including `git diff --cached` and 2 more.
SKILL.md
1.1 KB, 256 tokens by cl100k_base, as published. Nobody here has run it
Generate Commit Message
Analyze staged changes and generate a single-line commit message.
Instructions
-
Check for staged changes
- Run
git diff --cachedto see what's staged - If nothing is staged, check
git statusand suggest what to stage
- Run
-
Check project conventions
- Run
git log --oneline -10to see recent commit style - Match the existing format (conventional commits, prefixes, etc.)
- Run
-
Generate a single-line commit message
Best Practices
- 50 characters or less - keep it concise
- Imperative mood - "Add feature" not "Added feature" or "Adds feature"
- Capitalize the first letter
- No period at the end
- What and why, not how
If the project uses Conventional Commits, use the format:
type(scope): description
Types: feat, fix, docs, style, refactor, test, chore
Output
Print the commit message in a code block:
Add user authentication endpoint
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.