One-click install
npx skills add https://github.com/bilgrami/corporate-agent --skill commit-msg-bilgrami
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit-msg
Source: https://github.com/bilgrami/corporate-agent/tree/main/skills/commit-msg
Command: npx skills add https://github.com/bilgrami/corporate-agent --skill commit-msg-bilgrami

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generating consistent, well-formed commit messages from diffs to improve readability and traceability in version history, following the conventional commits format.

Core Features & Use Cases

  • Analyze unstaged and staged changes with git diff to detect added, modified, and deleted content.
  • Determine commit type, optional scope, and subject according to conventional commit rules.
  • Assemble a complete commit message with subject, optional body, and optional footer, ensuring length and formatting guidelines are met.
  • Use cases include preparing releases, documenting refactors, and clarifying fixes for teammates.

Quick Start

Provide a well-formed commit message by analyzing git changes and applying conventional commit formatting.

Frequently Asked Questions about commit-msg

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

FAQPage Schema
How do I generate conventional commit messages from a git diff?

Conventional commit messages from git diffs are generated by analyzing added, modified, and deleted content to determine type, scope, and subject. This assembles a complete message with optional body and footer, ensuring proper formatting and breaking-change handling.

What is the conventional commit format for handling breaking changes?

The conventional commit format handles breaking changes by assembling a complete commit message with a specific type, optional scope, subject, optional body, and an optional footer. This ensures clear traceability and flags breaking changes according to conventional commit rules.

Can I analyze both staged and unstaged git changes for commit message generation?

Yes, both staged and unstaged git changes can be analyzed for commit message generation. The tool detects added, modified, and deleted content across features, fixes, docs, and refactors to produce a well-formed conventional commit message.

How do I ensure my commit subject length meets conventional commit guidelines?

To ensure commit subject length meets conventional commit guidelines, generate the message by analyzing git diffs and applying formatting rules. This guarantees the subject, body, and footer satisfy required length and formatting guidelines.

What's the best way to document refactors and fixes in version history?

The best way to document refactors and fixes in version history is generating consistent conventional commit messages from git diffs. This improves readability and traceability by determining the correct commit type, scope, and subject for your changes.

What are the limitations of automated conventional commit message generation?

Automated conventional commit message generation relies on analyzing git diffs to determine type, scope, and subject. It requires clear staged or unstaged changes to accurately detect added, modified, and deleted content, ensuring formatting guidelines are met without manual overrides.