commit
БесплатноБез исполняемых скриптовНе проверенUse when changes in the working tree are ready to be recorded in git on the current branch — staged or unstaged edits that need a conventional-commit message.
от uw-ssec★ 33 звезды на GitHubОб этом скилле
Commit
Commit staged and unstaged changes to the current branch.
Instructions
- Run
git status(never use-uall) andgit diff --statto see all changes. - Run
git log --oneline -5to see the commit message style for this repo. - Analyze ALL changes (staged + unstaged) and determine:
- The conventional commit type:
feat,fix,refactor,docs,chore,style,test,perf,ci,build - An optional scope in parentheses based on what area changed (e.g.,
data,pipeline,io,cli,viz,docs,ci,deps,skills) - A concise imperative description of WHY, not WHAT
- The conventional commit type:
- Do NOT commit files that likely contain secrets (
.env,.env.local, credentials, API keys). Warn if any are staged. - Do NOT commit
.DS_Storefiles. - Stage relevant untracked files by name (never use
git add -Aorgit add .). - Create the commit using this format:
git commit -m "$(cat <<'EOF'
type(scope): short imperative description
Optional body explaining the why, not the what.
Multi-line is fine for complex changes.
Assisted-by: <harness>:<model>
EOF
)"
- Run
git statusafter to verify success. - If a pre-commit hook fails, fix the issue and create a NEW commit (never amend).
AI Attribution
Disclosure is required, lightweight, and shame-free — its purpose is reviewer calibration and later process analysis, not judgment.
This repository follows the Linux kernel's
coding assistants guide.
On an AI-assisted commit, end the message with an Assisted-by: trailer naming
the harness and the model id, joined by a colon:
Assisted-by: <harness>:<model> [TOOL1] [TOOL2]
<harness> is the coding agent as a lowercase, hyphenated slug (claude-code,
codex-cli, copilot-cli, opencode, ...) and <model> is the model
identifier it reports, so <harness>:<model> is a single machine-readable token
with no spaces. [TOOL1] [TOOL2] are optional specialized analysis tools that
contributed to the change (for example mypy when its report drove the fix); do
not list basic development tools such as git, formatters, test runners, or
editors. Examples:
Assisted-by: claude-code:claude-fable-5-1
Assisted-by: codex-cli:gpt-5.3-codex mypy
Use the same harness and model string in the "AI assistance disclosure" section
of .github/pull_request_template.md, so the commits and the PR agree.
An AI agent MUST NOT add a Signed-off-by: trailer; only a human can certify
the Developer Certificate of Origin. A human who signs the commit adds their own
with git commit -s after reviewing every line.
Conventional Commit Types
| Type | When to use |
|---|---|
feat |
New feature or capability |
fix |
Bug fix |
refactor |
Code change that neither fixes a bug nor adds a feature |
docs |
Documentation only |
chore |
Maintenance, deps, config |
style |
Formatting, whitespace (not CSS) |
test |
Adding or updating tests |
perf |
Performance improvement |
ci |
CI/CD changes |
build |
Build system or tooling |
Rules
- Keep the first line under 72 characters
- Use imperative mood ("add" not "added", "fix" not "fixed")
- Scope is optional but preferred when changes are localized
- Never skip hooks (
--no-verify) - Never amend unless explicitly asked
- On an AI-assisted commit, add an
Assisted-by: <harness>:<model>trailer as shown in AI Attribution; neverCo-Authored-By:for a tool, and neverSigned-off-by:from an agent - An
ai-assistedlabel on the PR is an accepted companion or alternative — the workflow takes a label and/or a trailer - NEVER add "Generated with" or similar marketing lines. This is attribution, not promotion
Установить commit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл commit?
Use when changes in the working tree are ready to be recorded in git on the current branch — staged or unstaged edits that need a conventional-commit message.
Как установить скилл 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