Generate commit message
Skill Flexonze/claude-init/.claude/skills/generate-commit-message
Automatically generate Claude Code configs tailored for your project.
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.
One thing 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.
What its author says it does
Copied from the file, not written here
Generate a commit message for staged changes
SKILL.md
1.1 KB, 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