Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от uw-ssec★ 33 звезды на GitHub

Об этом скилле

Commit

Commit staged and unstaged changes to the current branch.

Instructions

  1. Run git status (never use -uall) and git diff --stat to see all changes.
  2. Run git log --oneline -5 to see the commit message style for this repo.
  3. 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
  4. Do NOT commit files that likely contain secrets (.env, .env.local, credentials, API keys). Warn if any are staged.
  5. Do NOT commit .DS_Store files.
  6. Stage relevant untracked files by name (never use git add -A or git add .).
  7. 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
)"
  1. Run git status after to verify success.
  2. 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; never Co-Authored-By: for a tool, and never Signed-off-by: from an agent
  • An ai-assisted label 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
Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить commit с