mcpField
C
commit-helper

commit-helper

github.com/chmouelDevelopment31445 installsUpdated 3d ago
Repository

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

  1. 01Reads staged diff and summary
  2. 02Checks five recent commit messages
  3. 03Formats Conventional Commits
  4. 04Applies title and body length limits
  5. 05Requests approval before execution

Use cases

  1. 01Drafting a commit message from staged changes
  2. 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-helper

After installing, type/commit-helperin Claude Code to confirm it loaded.

Details

From the project README

Commit 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