commit-prepare

Analyze git changes and generate conventional commit messages.

2|Updated Nov 6, 2025
One-click install
npx skills add https://github.com/williaby/image-preprocessing-detector --skill commit-prepare
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit-prepare
Source: https://github.com/williaby/image-preprocessing-detector/tree/main/.claude/skills/commit-prepare
Command: npx skills add https://github.com/williaby/image-preprocessing-detector --skill commit-prepare

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires git.

What problem does it solve?

Manually crafting commit messages that adhere to Conventional Commits standards is time-consuming and error-prone, leading to inconsistent git history and broken semantic releases. This skill automates the process, ensuring clarity and compliance.

Core Features & Use Cases

  • Contextual Analysis: Automatically analyzes staged and unstaged changes to understand the scope of your work.
  • Conventional Commit Generation: Crafts commit messages (type, scope, subject, body, footer) that follow established standards.
  • Breaking Change Detection: Identifies and flags breaking changes, prompting for proper semantic versioning.
  • Use Case: You've made several code changes and want to commit them. This skill will analyze your diff, suggest a feat(auth): add OAuth token refresh message, and even prompt you if it detects a breaking API change, ensuring your commit is perfectly formatted.

Quick Start

Prepare a git commit message for my current staged changes.

Frequently Asked Questions about commit-prepare

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

FAQPage Schema
How do I automate conventional commit messages for git?

Conventional commit automation analyzes your staged changes and generates formatted commit messages with type, scope, subject, and body following established standards. This ensures consistency in your git history and enables semantic versioning.

Can I detect breaking changes automatically when committing?

Yes, the skill identifies breaking changes in your diff and prompts you to flag them properly in the commit footer, ensuring your commits signal semantic versioning requirements accurately.

What does a conventional commit message format look like?

Conventional commits follow the pattern: type(scope): subject with a 50-character subject limit in imperative mood, optional 72-character wrapped body, and footers for breaking changes. The skill generates messages adhering to these constraints.

How does the skill analyze my code changes?

It runs git commands—git status, git diff --cached for staged changes, and git diff for unstaged changes—to examine your modifications, determine commit type and scope, then propose a formatted message via HEREDOC.

Do I need to learn conventional commits syntax to use this?

No. The skill handles syntax and formatting automatically. You review the proposed message; the skill ensures it meets conventional commits standards without requiring you to memorize format rules.

What's the difference between this and manual commit messages?

Manual commits are error-prone and inconsistent; automated conventional commits enforce standards across your team, maintain readable git history, and trigger accurate semantic versioning in automated release pipelines.