draft-commit
БесплатноБез исполняемых скриптовНе проверенDraft clear commit messages from staged Git changes without modifying the repository.
Об этом скилле
Draft a Commit
Create a thoughtful, supportive commit message from your staged changes.
Welcome
Writing good commit messages is an art. This skill helps you capture the essence of your changes in a clear, inviting way that your future self (and teammates) will appreciate.
Your staged changes tell a story. Let's write that story together.
What You're Doing
You're about to:
- Review what you've staged
- Understand the nature of your changes
- Create a commit message that captures both what AND why
- Copy that message and use it when you commit
How It Works
Step 1: Analyzing Staged Changes
First, we'll look at your staged changes using git diff --cached.
This shows us:
- What files changed: Which files did you touch?
- What changed in them: Added lines? Deleted? Refactored?
- Patterns: Can we detect what you were working on?
Step 2: Understanding Intent
From the changes, we infer:
- Type of work: Feature? Bug fix? Refactoring? Documentation?
- Scope: Which part of the system?
- Impact: What improves? What does this enable?
Step 3: Drafting the Message
We craft a message that:
- Is specific: Not "Update files" but "Add StandardsRepository abstraction"
- Explains why: Not just what changed, but why it matters
- Shows confidence: Your changes are worth celebrating
- Invites understanding: Future readers will understand your intent
Step 4: Sharing with You
We display the drafted message so you can:
- Review it
- Copy it
- Use it in your git commit command
Configuration
Loading Configuration
The skill reads from .claude/skills/draft-commit/config.json:
- style: How the message sounds ("supportive" or "concise")
- format: Message structure ("descriptive" or "conventional")
- messageLength: How much detail ("concise" or "detailed")
- includeContext: Add explanatory context (true/false)
- includeFileCounts: Show file/line counts (true/false)
Customizing Behavior
Edit config.json to change defaults:
{
"style": "supportive", // or "concise"
"format": "descriptive", // or "conventional"
"messageLength": "concise", // or "detailed"
"includeContext": true,
"includeFileCounts": true
}
Process
Get Staged Changes
Run: git diff --cached
Returns: All staged changes in unified diff format
Categorize Changes
Analyze the diff to understand:
- Added files, deleted files, modified files
- Lines added, lines deleted
- Change patterns (new feature, bug fix, refactoring, docs, etc.)
Infer Work Type
From patterns, detect:
feat— New functionalityfix— Bug fixesdocs— Documentation changesrefactor— Code structure improvementstest— Test additions/changeschore— Dependency updates, config changesstyle— Formatting, cleanupperf— Performance improvements
Determine Scope
Identify what part of the system:
- Components affected
- Modules changed
- Features impacted
Draft the Message
For Supportive Style + Descriptive Format
Template:
[Brief description of what you did]
[Why this matters — what improves or what it enables]
[Optional: More context if helpful]
[Optional: File counts if configured]
Example:
Add StandardsRepository abstraction
Centralizes standards access into a single, reliable interface.
This eliminates duplication and makes the system easier to maintain.
Files:
- Added: lib/standards-repository.md, lib/schemas/standards-schema.json
- Modified: 7 agent/skill files updated to use new pattern
Why: Standards were scattered across multiple files, creating duplication
and coupling. Now there's one clear way to access standards with validation.
For Concise Style
Template:
[Concise description]
[Brief context if needed]
Example:
Centralize standards access
Standards scattered across 7 files now use single repository pattern.
For Conventional Format
Template:
[type]: [description]
[Why this matters / additional context]
Example:
refactor: Centralize standards access with repository pattern
Consolidates standards loading into single interface.
Eliminates duplication and improves testability.
Output Format
The skill displays the drafted message like this:
## 📝 Drafted Commit Message
[The actual message, ready to copy]
---
## How to Use It
1. Copy the message above
2. Stage your changes: `git add .` (or select specific files)
3. Create the commit: `git commit -m "your message"`
Or paste into your editor's commit message prompt.
---
**Changes analyzed**:
- [X files] changed
- [+Y lines] added
- [-Z lines] deleted
Important Notes
What This Does
- Analyzes your staged changes only
- Drafts a message for you to review
- Shows the message in chat for easy copying
- Does NOT commit automatically
What This Doesn't Do
Установить draft-commit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл draft-commit?
Draft clear commit messages from staged Git changes without modifying the repository.
Как установить скилл draft-commit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл draft-commit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic