commit-message-creation

Generate conventional commit messages from staged git diffs and templates.

9|1|Updated Jul 9, 2025
One-click install
npx skills add https://github.com/KemingHe/common-devx --skill commit-message-creation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit-message-creation
Source: https://github.com/KemingHe/common-devx/tree/main/.agents/skills/commit-message-creation
Command: npx skills add https://github.com/KemingHe/common-devx --skill commit-message-creation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve?

Generate clear, consistent commit messages that follow conventional commit standards so teams maintain readable history and meaningful changelogs without manual formatting or guesswork.

Core Features & Use Cases

  • Analyze staged changes and recent commit history to determine scope and type (feat, fix, docs, etc.).
  • Choose and populate short or long plaintext commit templates from repository assets, enforcing title length and formatting constraints.
  • Provide consultative prompts to gather missing context, link issues when applicable, and ensure safe, read-only git reconnaissance for message generation.
  • Use case: produce a compliant commit message for a staged bug fix that closes an issue and documents breaking changes.

Quick Start

Generate a commit message for the currently staged changes.

Frequently Asked Questions about commit-message-creation

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

FAQPage Schema
How do I generate conventional commit messages from staged git changes?

You can generate conventional commit messages by analyzing staged git diffs and recent repository history. This process automatically determines the appropriate commit type, scope, and body while enforcing project formatting constraints like a 50-character imperative title limit.

Does this commit message generator support both short and long commit templates?

Yes, the commit message generator supports both short and long templates. It selects and populates plaintext templates stored in repository assets based on your specific staged changes and project conventions.

How do I link issue numbers in automated conventional commit messages?

To link issue numbers in conventional commit messages, the generator uses consultative prompts to gather missing context. It analyzes recent commits and staged diffs to safely reference issues when applicable during message generation.

Can I use conventional commit message automation in CI-assisted git workflows?

You can use this commit message automation in local git workflows and CI-assisted scenarios. It performs read-only git reconnaissance to ensure titles, scopes, and bodies follow project conventions without modifying repository state.

What is the character limit for conventional commit titles when formatting staged diffs?

The character limit for conventional commit titles is 50 characters. The generator enforces this imperative title limit strictly when formatting staged diffs into plaintext-only output.