commit
БесплатноБез исполняемых скриптовНе проверенCommit staged git changes, or include current changes only when the user explicitly says /commit all or $commit all. Use when asked to commit, create a…
от elentok★ 25 звёзд на GitHubОб этом скилле
Create a git commit following the rules below.
Workflow
- Run
git status. - Unless the user explicitly says
/commit allor$commit all:- work only from staged changes
- if there are no staged files, STOP and tell the user to say
/commit allor$commit allto include current changes, or to name paths to stage - if unstaged changes exist, warn the user but do not inspect them
- invoke
gx-verifyinstagedmode unless the user saysskip checks
- If the user explicitly says
/commit allor$commit all:- inspect both staged and unstaged changes
- stage only the intended paths
- invoke
gx-verifyincommit-allmode unless the user saysskip checks
- After
gx-verify, inspect the final staged snapshot withgit diff --cached. - Unless the user says
skip secret scan:- check availability with
command -v gitleaks - if
gitleaksis installed, rungitleaks protect --staged - if
gitleaksis not installed, report that secret scanning was skipped
- check availability with
- Infer the subject scope from the final staged paths:
- if all paths are under one
core/ai/skills/<skill-name>/directory, use<skill-name> - if paths span multiple
core/ai/skills/<skill-name>/directories, useskills - otherwise, use the shared top-level directory
- if there is no shared top-level directory, use
repo
- if all paths are under one
- Draft the commit message directly.
- Run a quick checklist, then run
git commit.
Commit Message Rules
Format
- Always write a subject
- Add a body only when at least one is true:
- the change contains multiple distinct behaviors
- the rationale is not obvious from the diff
- the behavior change is risky or user-visible
- the user explicitly asks for a body
Subject
- Single-line
- Lowercase (no leading capitalized verb)
{scope}: {message}- Concise (50~72 chars)
- Imperative (add, fix, remove, update, ...)
Scope
- Infer it from the changed paths, not commit history
- Nested scopes are allowed when they improve clarity (
{top-scope}: {child-scope}: {message})
Body
- Explain what changed and why
- Do not write an implementation diary
- Prefer short paragraphs or bullets
- Keep paragraphs to 2 lines max
Quick Checklist
- Is the subject scoped?
- Is the verb imperative?
- Is the change intent clear in one line?
- Does the body exist only when it adds value?
- Is there any paragraph longer than 2 lines?
Установить commit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл commit?
Commit staged git changes, or include current changes only when the user explicitly says /commit all or $commit all. Use when asked to commit, create a commit, or finalize changes.
Как установить скилл 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