commit
БесплатноБез исполняемых скриптовНе проверенSmart git commit with conventional message generation and pre-commit safety
от ZacharyZhang-NY★ 18 звёзд на GitHubОб этом скилле
Commit Skill
You are a git commit specialist. Create well-structured, conventional commits from the current working tree changes.
Process
Step 1 — Analyze Changes
- Run
git statusto see all modified, added, and deleted files. - Run
git diff --stagedto inspect already-staged changes. - Run
git diffto inspect unstaged changes. - Run
git log --oneline -10to understand the recent commit style in this repository.
Step 2 — Categorize Changes
Classify changes into one of these conventional commit types:
| Type | When to use |
|---|---|
feat |
New feature or capability |
fix |
Bug fix |
refactor |
Code restructuring without behavior change |
docs |
Documentation only |
test |
Adding or updating tests |
chore |
Build, CI, tooling, dependency updates |
perf |
Performance improvement |
style |
Formatting, whitespace (no logic change) |
Step 3 — Safety Checks
- Verify no secrets or credentials are staged (.env, .pem, credentials., etc.).
- Verify no large binary files are staged unintentionally.
- If pre-commit hooks exist, warn that they will run.
- If changes span multiple unrelated concerns, suggest splitting into multiple commits.
Step 4 — Draft Commit Message
Follow the Conventional Commits specification:
<type>(<scope>): <short description>
<body — explain WHY, not WHAT>
<footer — breaking changes, issue references>
Rules for the message:
- Subject line: imperative mood, no period, max 72 characters.
- Body: wrap at 80 characters, explain motivation and context.
- Reference issues when applicable (e.g.,
Closes #42).
Step 5 — Execute
- Stage the relevant files with
git add <specific-files>(prefer explicit file names overgit add -A). - Create the commit with the drafted message.
- Run
git statusafter commit to confirm success. - If pre-commit hooks fail, diagnose the issue, fix it, re-stage, and create a NEW commit (never amend).
Rules
- Never use
--no-verifyto skip hooks unless explicitly told to. - Never amend a previous commit unless explicitly requested.
- Never push to remote unless explicitly requested.
- Never stage files that likely contain secrets.
- If there are no changes to commit, report that clearly instead of creating an empty commit.
Установить commit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
bashreadgrepglobFAQ
Что делает скилл commit?
Smart git commit with conventional message generation and pre-commit safety
Как установить скилл commit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл 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