Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
charon-fan avatar

Commit Helper

  • 636 installs
  • 65 repo stars
  • Updated June 21, 2026
  • charon-fan/agent-playbook

commit-helper is a Claude Code Git skill that generates Conventional Commits compliant messages from staged diffs for developers who need clear, scoped commit history without manual message formatting.

About

commit-helper is a Claude Code skill from charon-fan/agent-playbook in the agent-playbook collection. When asked to commit changes, the skill runs `git diff`, analyzes the patch, drafts a Conventional Commits message with type, optional scope, and subject line, presents it for approval, and executes the commit on confirmation. Examples include scoped messages like `feat(auth): add OAuth2 login support` for feature work. Developers reach for commit-helper during daily Git workflows when they want consistent commit semantics across teams following the Conventional Commits specification without writing messages manually.

  • Automatically reviews git diff and generates Conventional Commits messages
  • Follows feat, fix, chore, docs, refactor, style, test, and other Angular-style types
  • Presents message for approval before executing git commit
  • Includes validation script to enforce commit message format
  • Reduces cognitive load when committing across frontend, backend, and infrastructure changes

Commit Helper by the numbers

  • 636 all-time installs (skills.sh)
  • Ranked #94 of 739 Git & Pull Requests skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
npx skills add https://github.com/charon-fan/agent-playbook --skill commit-helper

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs636
repo stars65
Security audit3 / 3 scanners passed
Last updatedJune 21, 2026
Repositorycharon-fan/agent-playbook

How do you write Conventional Commits messages from a diff?

Generate Conventional Commits compliant messages that clearly communicate the intent and scope of every change.

Who is it for?

Developers using Conventional Commits who want agent-generated messages reviewed against actual git diff output before committing.

Skip if: Teams that do not use Conventional Commits, or workflows requiring squash-merge PR descriptions instead of per-commit message generation.

When should I use this skill?

The user asks to commit changes, write a commit message, or follow Conventional Commits after completing code edits.

What you get

Approved Conventional Commits message committed to Git history with proper type, scope, and subject formatting.

  • Conventional Commits formatted message
  • Executed git commit

Files

SKILL.mdMarkdownGitHub ↗

Commit Message Helper

A skill for creating properly formatted Git commit messages following the Conventional Commits specification.

When This Skill Activates

This skill activates when you:

  • Ask to commit changes
  • Mention commit messages
  • Request git commit formatting
  • Say "commit" or "git commit"

Commit Message Format

<type>(<scope>): <subject>

<body>

<footer>

Types

TypeDescription
featA new feature
fixA bug fix
docsDocumentation only changes
styleChanges that do not affect the meaning of the code (formatting, etc.)
refactorA code change that neither fixes a bug nor adds a feature
perfA code change that improves performance
testAdding missing tests or correcting existing tests
choreChanges to the build process or auxiliary tools
ciChanges to CI configuration files and scripts
buildChanges that affect the build system or external dependencies

Scope

The scope should indicate the area of the codebase affected:

  • For frontend: components, hooks, store, styles, utils
  • For backend: api, models, services, database, auth
  • For devops: ci, deploy, docker
  • Project-specific scopes are also acceptable

Guidelines

Subject Line

  • Use imperative mood ("add feature" not "added feature" or "adds feature")
  • No period at the end
  • Maximum 50 characters
  • Be specific and concise

Body

  • Separate subject from body with a blank line
  • Use the body to explain what and why, not how
  • Wrap at 72 characters per line
  • Mention any breaking changes

Footer

  • Reference issues: Closes #123, Fixes #456, Refs #789
  • Multiple issues: Closes #123, #456, #789
  • Breaking changes: Start with BREAKING CHANGE: followed by description

Examples

Good Examples

feat(auth): add OAuth2 login support

Implement OAuth2 authentication flow to allow users to log in
with their Google or GitHub accounts.

This change adds:
- New OAuth2 middleware for handling callbacks
- Updated login UI with social login buttons
- User profile synchronization

Closes #123
fix(api): resolve race condition in user creation

The concurrent user creation requests could result in duplicate
email entries. Added unique constraint and proper error handling.

Fixes #456
refactor(user): simplify profile update logic

Extracted common validation logic into a reusable function
to reduce code duplication across profile update endpoints.
docs: update API documentation with new endpoints

Added documentation for the v2 user management endpoints
including request/response examples and error codes.

Bad Examples

updated stuff                    # Too vague, no type/scope
fixed bug                        # No context about which bug
feat: added feature              # Redundant ("feat" means new feature)
Feat(User): Add Login            # Incorrect capitalization
feat: A really really really long subject line that exceeds the recommended limit  # Too long

Breaking Changes

When introducing breaking changes, add BREAKING CHANGE: to the footer:

feat(api): migrate to REST v2

The API endpoints have been restructured for better consistency.
Old endpoints are deprecated and will be removed in v3.0.

BREAKING CHANGE: `/api/v1/users` is now `/api/v2/users`.
All consumers must update their integration by 2025-03-01.

Workflow

When writing a commit message:

1. Review changes - Run git diff to understand what changed 2. Identify type - Determine the type of change 3. Identify scope - Determine which area is affected 4. Write subject - Create a clear, concise subject line 5. Write body - Explain what and why (if needed) 6. Add footer - Reference issues or note breaking changes

Validation

Use the validation script to check commit message format:

python scripts/validate_commit.py "your commit message"

Reference Documents

  • See references/conventional-commits.md for full specification
  • See references/examples.md for more examples
  • See references/scopes.md for recommended scope naming

Related skills

FAQ

What commit format does commit-helper follow?

commit-helper follows the Conventional Commits specification, producing messages with a type such as feat or fix, an optional parenthetical scope, and a concise subject line derived from the actual git diff.

Does commit-helper commit without approval?

commit-helper presents the generated Conventional Commits message for approval first, then executes the git commit only after the developer confirms the proposed type, scope, and subject.

Is Commit Helper safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Git & Pull Requestsgitintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.