Skip to main content
PROMPT SPACE
G
$5.00developer-toolsUniversal

git-commit-message-generator

Automatically generate professional, Conventional Commit messages from your git diffs.

skill install https://www.promptspace.in/skills/git-commit-message-generator

Automated Conventional Commits from Git Diffs

Maintaining a clean, semantic git history is essential for automated versioning and team collaboration, but writing perfect commit messages every time is a chore. This skill automates the analysis of your staged changes and generates professionally formatted messages following the Conventional Commits specification.

What it does

  • Analyzes git diffs to understand the scope and intent of your changes.
  • Classifies work into standard types: feat, fix, refactor, docs, style, test, and chore.
  • Enforces the 50/72 rule (50 characters for subjects, 72 for body wrapping).
  • Detects and highlights breaking changes with the required "!" syntax and footer.
  • Writes in the imperative mood, ensuring consistency across your entire project history.

Why use this skill

Unlike generic AI prompting, this skill uses a specific decision heuristic to distinguish between nuances (like refactor vs. style) and handles complex git requirements like footers and issue references. It ensures your repository is ready for automated changelog generation tools like semantic-release.

Supported Workflows

This skill works with any standard Git environment. It can read staged changes, unstaged changes, or focus on specific file paths to provide the most accurate context for your commit message.

Use cases

  • Generate standardized commit messages that work with semantic-release.
  • Identify breaking changes automatically from code diffs.
  • Enforce imperative mood and character limits across team repositories.
  • Properly categorize maintenance tasks like chore and refactor.

Example

Prompt

Write a commit message for my staged changes.

Sample output preview is available after purchase.

Frequently asked questions

This skill analyzes your git diffs to generate messages that strictly follow the Conventional Commits specification, including proper classification (feat, fix, etc.) and enforcement of the 50/72 character rule.
git-commit-message-generator — AI Agent Skill | PromptSpace