git-commit
Write conventional commit messages from staged diff context. Use when the user asks to commit or mentions git commit message.
от HenriGrimm★ 25 звёзд на GitHub
Установить git-commit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Git commit helper
When to use
- User asks for a commit message,
/git-commit, or "commit these changes" - Before committing, always inspect the actual staged diff
Steps
- Run
git_status— confirm what is staged vs unstaged. - Run
git_diffwithstaged: true(or equivalent args) — read the real patch. - If nothing is staged, tell the user to stage files with
git_addfirst; do not invent a message for unstaged work. - Draft a conventional commit subject (≤72 chars) and optional body:
- Types:
feat,fix,docs,style,refactor,test,chore,perf,build,ci - Subject: imperative mood, no trailing period
- Scope: primary module or area (e.g.
git,ui,api) - Body: explain why — motivation, user impact, trade-offs — not a file list
- Types:
- If the user asked you to commit, run
git_commitwith the agreed message only after explicit approval unless they already said "commit it".
Gitmoji (when team uses them)
Prefix the subject with one emoji when the project convention calls for it. Use the Unicode character (✨), never a colon shortcode (:sparkles:):
| Emoji | Type |
|---|---|
| ✨ | feat |
| 🐛 | fix |
| 📝 | docs |
| 💄 | style |
| ♻️ | refactor |
| ✅ | test |
| 🔧 | chore |
| ⚡ | perf |
| 👷 | build |
| 🎨 | ui |
Example: ✨ feat(git): add AI commit message generator
Quality checks
- Message matches only the staged diff scope (ignore unstaged paths)
- Body explains why, not what files changed
- No secrets,
.env, or credentials in committed files — warn if diff shows them - Breaking changes called out in body with
BREAKING CHANGE: description - Use
git_logfor recent message style reference when unsure
Tools
git_status, git_diff, git_add, git_commit, git_log (for style reference)
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл git-commit?
Write conventional commit messages from staged diff context. Use when the user asks to commit or mentions git commit message.
Как установить скилл git-commit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл git-commit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…