commit-drafter

Automatically draft commit messages by analyzing git status and staged changes

242 stars

Best use case

commit-drafter is best used when you need a repeatable AI agent workflow instead of a one-off prompt. It is especially useful for teams working in multi. Automatically draft commit messages by analyzing git status and staged changes

Automatically draft commit messages by analyzing git status and staged changes

Users should expect a more consistent workflow output, faster repeated execution, and less time spent rewriting prompts from scratch.

Practical example

Example input

Use the "commit-drafter" skill to help with this workflow task. Context: Automatically draft commit messages by analyzing git status and staged changes

Example output

A structured workflow result with clearer steps, more consistent formatting, and an output that is easier to reuse in the next run.

When to use this skill

  • Use this skill when you want a reusable workflow rather than writing the same prompt again and again.

When not to use this skill

  • Do not use this when you only need a one-off answer and do not need a reusable workflow.
  • Do not use it if you cannot install or maintain the related files, repository context, or supporting tools.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/commit-drafter/SKILL.md --create-dirs "https://raw.githubusercontent.com/aiskillstore/marketplace/main/skills/abejitsu/commit-drafter/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/commit-drafter/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How commit-drafter Compares

Feature / Agentcommit-drafterStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Automatically draft commit messages by analyzing git status and staged changes

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Commit Message Drafter

Automatically generates commit messages by analyzing your staged changes.

## What It Does

- Analyzes git status and staged changes
- Extracts full diff content with statistics
- Provides structured context to Claude (the AI)
- Claude writes a meaningful commit message based on actual changes

## Usage

Just say:
- "draft a commit for me to review"
- "create a commit message"
- "suggest a commit message"

The skill will automatically:
1. Check git status
2. Extract file changes and statistics
3. Get the full diff content
4. Present context to Claude
5. Claude analyzes the changes and writes a clear, descriptive commit message
6. Return it for your review

## How It Works

Unlike template-based commit tools that just output placeholders, this skill provides **real git context** to Claude (the AI), who then writes a **meaningful commit message** based on understanding the actual code changes.

The script outputs:
- Files changed (added, modified, deleted, renamed)
- Change statistics (+insertions, -deletions)
- Full diff content showing exact changes
- Instructions for Claude to write the commit

Claude then reads this context and writes a commit message that actually describes what changed and why.

## Value

No more staring at `git diff` trying to write a commit message. No more useless templates with [TODO] placeholders. Claude reads your changes, understands them, and drafts a meaningful message automatically.

Related Skills

commit-work

242
from aiskillstore/marketplace

Create high-quality git commits: review/stage intended changes, split into logical commits, and write clear commit messages (including Conventional Commits). Use when the user asks to commit, craft a commit message, stage changes, or split work into multiple commits.

caveman-commit

242
from aiskillstore/marketplace

Ultra-compressed commit message generator. Cuts noise from commit messages while preserving intent and reasoning. Conventional Commits format. Subject ≤50 chars, body only when "why" isn't obvious. Use when user says "write a commit", "commit message", "generate commit", "/commit", or invokes /caveman-commit. Auto-triggers when staging changes.

backend-atomic-commit

242
from aiskillstore/marketplace

Pedantic backend pre-commit and atomic commit Skill for Django/Optimo-style repos. Enforces local AGENTS.md / CLAUDE.md, pre-commit hooks, .security/* helpers, and Monty’s backend engineering taste – with no AI signatures in commit messages.

commit-message-generator

242
from aiskillstore/marketplace

Generate appropriate commit messages based on Git diffs

making-commits

242
from aiskillstore/marketplace

Guidelines on makign git commits

pre-commit-check

242
from aiskillstore/marketplace

コミット前品質チェックスキル(Lint、テスト、ビルドの高速検証)

commit-message

242
from aiskillstore/marketplace

Format git commit messages combining Conventional Commits summary lines with Linux kernel-style bodies. Use when writing, reviewing, or formatting commit messages.

managing-commits

242
from aiskillstore/marketplace

Git commit quality and conventional commits expertise with automatic issue tracking integration. Auto-invokes when the user explicitly asks about commit message format, commit quality, conventional commits, commit history analysis, issue references in commits, or requests help writing commit messages. Integrates with the issue cache for automatic issue references.

commit-helper

242
from aiskillstore/marketplace

Expert conventional commits assistant for the Logseq Template Graph project. Analyzes git changes and generates proper conventional commit messages with correct type, scope, and format. Use when the user needs help writing commits or validating commit messages.

commit-prepare

242
from aiskillstore/marketplace

Prepare git commit messages following conventional commits. Activates on: commit, prepare commit, commit this, commit message, ready to commit, stage and commit

high-quality-commit

242
from aiskillstore/marketplace

コード変更を適切なgitコミット戦略でgit commitします。基本的には既存のgitコミットへのsquash戦略を採用し、必要に応じてブランチ全体のgitコミット履歴を再構成します。実装完了時やユーザーがgit commitを依頼した時に使用します。

draft-commit

242
from aiskillstore/marketplace

Create a thoughtful, supportive commit message from your staged changes.