Skip to content

Generates conventional commit messages from staged git diffs, following a documented type and scope format.

CCM score
63 of 100
skills.sh installs
456
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full commit workflow: reviewing staged changes, choosing a type, setting scope, writing the summary, and noting breaking changes
  • Lists 7 commit types (feat, fix, docs, style, refactor, test, chore) with worked examples for each
  • Provides review commands such as git diff --staged, git diff --staged --stat, and git add -p for selective staging
  • Enforces guidelines like an imperative mood, a summary under 50 characters, and a checklist that flags missing issue references

Install

$ npx -y skills add davila7/claude-code-templates --skill 'Git Commit Helper' -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Git Commit Helper

Quick start

Analyze staged changes and generate commit message:

# View staged changes
git diff --staged

# Generate commit message based on changes
# (Claude will analyze the diff and suggest a message)

Commit message format

Follow conventional commits format:

<type>(<scope>): <description>

[optional body]

[optional footer]

Types

  • feat: New feature
  • fix: Bug fix
  • docs: Documentation changes
  • style: Code style changes (formatting, missing semicolons)
  • refactor: Code refactoring
  • test: Adding or updating tests
  • chore: Maintenance tasks

Examples

Feature commit:

feat(auth): add JWT authentication

Implement JWT-based authentication system with:
- Login endpoint with token generation
- Token validation middleware
- Refresh token support

Bug fix:

fix(api): handle null values in user profile

Prevent crashes when user profile fields are null.
Add null checks before accessing nested properties.

Refactor:

refactor(database): simplify query builder

Extract common query patterns into reusable functions.
Reduce code duplication in database layer.

Details

Repository
github.com/davila7/claude-code-templates
Category
Git & Releases
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 398

Similar to Git Commit Helper

More Git & Releases