About commit-helper
commit-helper is a skill for developers that drafts Conventional Commits messages from staged changes and recent commit style. It presents the draft for approval before execution.
Key features
- 01Reads staged diff and summary
- 02Checks five recent commit messages
- 03Formats Conventional Commits
- 04Applies title and body length limits
- 05Requests approval before execution
Use cases
- 01Drafting a commit message from staged changes
- 02Matching the style of recent commits
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ chmouel/ lazyworktree --skill commit-helperAfter installing, type/commit-helperin Claude Code to confirm it loaded.
Details
From the project READMECommit Helper
Generate a conventional commit message from staged changes.
Changes to commit
!git diff --staged --stat
Detailed diff
!git diff --staged
Recent commit style
!git log --oneline -5
Generate a conventional commit message following these rules:
- Follow Conventional Commits 1.0.0 format
- 50 characters maximum for title, 70 characters for body lines
- Use past tense
- State what and why only, not how
- Use British spelling
- Cohesive paragraph unless multiple distinct points require bullet points
- Present the commit message for user approval before executing
Example format:
feat: added worktree deletion confirmation
Implemented confirmation dialogue before deleting worktrees to prevent
accidental data loss. The confirmation shows the worktree path and any
uncommitted changes that would be lost.
Comments
Markdown supported