git-commit

Generate conventional git commit messages from diffs with type, scope, and description.

1|Updated Apr 21, 2025
One-click install
npx skills add https://github.com/SamuelJennings/django-cotton-bs5 --skill git-commit-samueljennings
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-commit
Source: https://github.com/SamuelJennings/django-cotton-bs5/tree/main/.github/skills/git-commit
Command: npx skills add https://github.com/SamuelJennings/django-cotton-bs5 --skill git-commit-samueljennings

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers enforce consistent, semantic git commit messages by automatically analyzing changes and proposing conventional commit formats. It reduces cognitive load and promotes better changelogs.

Core Features & Use Cases

  • Auto-detect type and scope from changes.
  • Generate conventional commit messages from diff.
  • Interactive commit with optional type/scope/description overrides.
  • Intelligent staging for logical grouping.
  • Suitable for team workflows requiring standardized history.

Quick Start

Stage your changes, then run the commit helper to generate and apply a conventional commit message. For example: git commit -m 'feat(auth): add login flow'

Frequently Asked Questions about git-commit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate conventional commit messages from git diffs?

Conventional commit automation analyzes your staged changes and generates semantic commit messages with type, scope, and description. Stage your changes, run the helper, and it proposes a formatted message following the Conventional Commits spec—reducing manual formatting and enforcing consistency across your repository history.

Can I customize the commit type and scope before committing?

Yes. The Skill supports interactive overrides, letting you adjust auto-detected type, scope, and description before the commit is applied. This balances automation with control, ensuring the final message matches your intent while maintaining conventional format compliance.

What's the best way to maintain consistent commit history in team workflows?

Enforcing conventional commit messages across your team standardizes history, improves changelog generation, and clarifies change intent. This Skill automates message generation from diffs, removing inconsistency and cognitive load—making it suitable for teams requiring semantic versioning and structured git histories.

How does the Skill handle staging and grouping of changes?

The Skill provides intelligent staging for logical grouping, analyzing your diff to organize related changes before message generation. This ensures commits reflect coherent change sets rather than arbitrary file boundaries, improving both readability and bisect effectiveness.

Do I need special git configuration to use conventional commit generation?

No special configuration is required. The Skill integrates seamlessly with standard git workflows—stage changes with git add, run the commit helper, and it generates and applies the message. It works with your existing repository and git version-control setup without additional dependencies.

What happens if the Skill cannot auto-detect the commit type from my changes?

When auto-detection is ambiguous, the interactive override mode prompts you to select the type and scope manually. This fallback ensures you always produce valid conventional commits while preserving automation where confidence is high, avoiding forced or incorrect classifications.