git-commit

Generate Conventional Commits with Gitmoji from staged changes.

Updated Jan 12, 2023
One-click install
npx skills add https://github.com/horatjp/dotfiles --skill git-commit-horatjp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-commit
Source: https://github.com/horatjp/dotfiles/tree/main/claude/skills/git-commit
Command: npx skills add https://github.com/horatjp/dotfiles --skill git-commit-horatjp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing clear, consistent, and standard-compliant Git commit messages is a common pain point for developers. This Skill eliminates the manual effort and cognitive load, ensuring your commit history is always pristine, easy to understand, and revert-friendly. It automates the analysis of your changes and the generation of messages that adhere to Conventional Commits and Gitmoji standards, letting you focus on coding, not commit syntax.

Core Features & Use Cases

  • Smart Message Generation: Analyzes your staged changes to automatically suggest the most appropriate Gitmoji and Conventional Commit type, then drafts a concise and descriptive message.
  • Hunk-Level Guidance: Encourages and guides you to create atomic, logically separated commits, making your changes easier to review and revert if needed.
  • Multi-Language Support: Detects the primary language of your project (e.g., Japanese, English) from your README.md to generate commit messages in the correct language.
  • Use Case: Instead of manually crafting commit messages, simply stage your changes and ask the AI: "Generate a Git commit message for my staged changes." The Skill will analyze your code, propose a structured message with the right Gitmoji, and even help you split large changes into smaller, more logical commits, saving you significant time and mental effort.

Quick Start

Generate a Git commit message for the current staged changes, following Conventional Commits and Gitmoji.

Frequently Asked Questions about git-commit

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

FAQPage Schema
How do I generate consistent Git commit messages automatically?

This Skill analyzes your staged changes and generates Conventional Commits with Gitmoji automatically, ensuring consistency without manual effort. It detects the correct commit type, selects appropriate emoji, and produces concise, structured messages that follow industry standards.

What are Conventional Commits and why should I use them?

Conventional Commits is a specification for adding semantic meaning to commit messages using a structured format (type, scope, description). This Skill enforces that standard, making your commit history readable, enabling automated changelog generation, and making it easier to understand and revert changes.

Can this create separate commits for different parts of my changes?

Yes. This Skill analyzes staged changes at the hunk level and guides you to split large modifications into atomic, logically independent commits. Each commit becomes independently reviewable and revertible, improving code quality and git history clarity.

Does this work with projects in multiple languages?

Yes. This Skill detects your project's primary language from the README file and generates commit messages in the correct language, supporting scenarios like Japanese and English projects with culturally appropriate messaging.

What types of changes can it recognize?

This Skill detects and generates messages for features, bug fixes, refactors, dependency updates, and other common change types. It assigns the appropriate Gitmoji and Conventional Commits type for each scenario automatically.

Do I need to know Gitmoji syntax to use this?

No. This Skill handles Gitmoji selection automatically based on your code changes. You simply stage your changes and request a commit message; the Skill analyzes the diff and applies the correct emoji and formatting without requiring manual input.