commit-message

Draft a Conventional Commit message from staged Git changes.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Draft a Conventional Commit message from staged changes.

Core Features & Use Cases

  • Draft a conventional commit subject from the current staged changes, including preserving issue refs in the footer when provided.
  • Validate the staged content, enforce the conventional-commit structure, and produce a ready-to-use commit message for git commit -F -.
  • Ensure the final message adheres to the subject/body/footer formatting rules defined in references/conventional-commit-rules.md.

Quick Start

Draft a conventional commit for the currently staged changes.

Frequently Asked Questions about commit-message

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

FAQPage Schema
How do I generate a conventional commit message from staged Git changes?

Drafting a conventional commit message from staged changes involves reading the Git diff, validating the input, and formatting the subject, body, and footers per conventional-commit-rules. This Skill outputs a ready-to-use message for git commit -F -.

Can I preserve issue references when drafting a conventional commit message?

Yes, preserving issue references is supported when drafting a conventional commit message. The Skill detects explicit issue refs and integrates them directly into the commit message footer according to the conventional-commit-rules.

Does this conventional commit generator work without additional dependencies?

Yes, this conventional commit generator works without additional dependencies. It resolves the repository root, reads staged changes, and enforces the conventional-commit structure internally using bundled reference rules.

What is the correct format for a conventional commit subject, body, and footer?

The correct conventional commit format requires a structured subject, body, and footer. This Skill enforces these formatting rules by validating staged content and ensuring the final output adheres strictly to the conventional-commit-rules reference.

How do I automate my Git workflow to output a commit message for git commit -F?

To automate your Git workflow, this Skill reads your staged changes and outputs a single finalized conventional commit message. You can then pipe or redirect this output directly into git commit -F - to complete the commit.