install
source · Clone the upstream repo
git clone https://github.com/Flexonze/claude-init
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/Flexonze/claude-init "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/generate-commit-message" ~/.claude/skills/flexonze-claude-init-generate-commit-message && rm -rf "$T"
manifest:
.claude/skills/generate-commit-message/SKILL.mdsource content
Generate Commit Message
Analyze staged changes and generate a single-line commit message.
Instructions
-
Check for staged changes
- Run
to see what's stagedgit diff --cached - If nothing is staged, check
and suggest what to stagegit status
- Run
-
Check project conventions
- Run
to see recent commit stylegit log --oneline -10 - 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