git-commit-message

Generate Conventional Commits headers from staged Git changes.

2|Updated May 6, 2026
One-click install
npx skills add https://github.com/lonewolfyx/skills --skill git-commit-message-lonewolfyx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-commit-message
Source: https://github.com/lonewolfyx/skills/tree/main/skills/git-commit-message
Command: npx skills add https://github.com/lonewolfyx/skills --skill git-commit-message-lonewolfyx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generates semantic, validator-friendly Git commit headers that conform to Conventional Commits and Angular-style messaging, while aligning with repository-specific rules such as scripts/verify-commit.js. It helps when Codex needs to inspect staged changes, determine a valid commit type, draft a correct header, or rewrite an invalid one.

Core Features & Use Cases

  • Aligns commit headers with repository validators and local rules.
  • Chooses the most appropriate type from the allowed set and formats a concise subject.
  • Provides guidance for forming a complete commit message, including optional scope and breaking-change indicators.

Quick Start

Draft a commit message for your staged changes using the git-commit-message tool.

Frequently Asked Questions about git-commit-message

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

FAQPage Schema
How do I write a conventional commit message that passes local repository validators?

To write a conventional commit message that passes local validators, draft a semantically correct header from staged changes by selecting a valid type, applying Angular-style formatting, and aligning with repository-specific rules like verify-commit scripts.

How do I format breaking changes in an Angular-style commit message?

Format breaking changes in an Angular-style commit message by appending an exclamation mark after the optional scope, signaling the breaking change directly in the commit header before writing the subject.

When do I need an optional scope in a conventional commit header?

You need an optional scope in a conventional commit header when your staged changes affect a specific module or package, requiring you to encapsulate the semantic context within the commit type and exclamation mark indicators.

Does this conventional commit generator work with custom verify-commit scripts?

Yes, this conventional commit generator works with custom verify-commit scripts by inspecting staged changes and fulfilling local constraints, ensuring the drafted message aligns with repository-specific validation rules.

What is the best way to automate drafting a valid git commit type from staged changes?

The best way to automate drafting a valid git commit type from staged changes is to parse the semantic diff and select the most appropriate type from the repository's allowed set, formatting a concise subject that adheres to conventional commits.

Why does my commit message fail repository validation despite using conventional commits?

Your commit message fails repository validation despite using conventional commits because it likely violates local constraints, requiring you to validate the type against the repository's allowed list and ensure the header format adheres to scripts like verify-commit.js.