commit
БесплатноЗапускает вложенные скриптыНе проверен"Commit staged or intended changes: compose a Conventional Prefix or Natural Language message, then use ai-commit — with --all, --staged, --close, --finding…
от PaulRBerg★ 109 звёзд на GitHubОб этом скилле
Git Commit
Compose the semantic commit message from immutable evidence. Let ai-commit own deterministic preparation, commit,
index reconciliation, and push mechanics.
Run every command from the target repository cwd. Do not surround ai-commit with extra git status, git log, or
git diff calls: preparation provides the complete evidence for this workflow. Use --porcelain only in deterministic
automation that explicitly parses its stable TSV records. The normal skill flow consumes the human-readable sections.
1. Parse Arguments
Arguments: $ARGUMENTS
ai-commitselects the message format from repository config. Pass--naturalor--conventionalonly as an explicit one-off override, never to reproduce repository policy.--all: capture all worktree and index changes. This intentionally risks including another agent's work.--staged: capture exactly the current index. Do not add session paths. It conflicts with--all.--natural: force Natural Language Format for this commit.--conventional: force Conventional Prefix Format for this commit.--push: request a push after commit. Otherwise push only when standing instructions authorize it.--rebase: with--push, letai-commitrebase a behind branch onto its fetched upstream before the push. Pass it with every authorized push unless the user excludes it.--close <issue_numbers>: pass oneai-commit commit --close <N>per positive decimal issue number. Accept comma- or space-separated input.ai-commitwrites theCloses #Nlines.--finding <finding_ids>: pass oneai-commit commit --finding <id>per ledger finding this commit fixes. Accept comma- or space-separated input. Also infer a finding from context when this session's commit fixes a specific ledger finding.ai-commitwrites theFinding-ID: <id>trailer and resolves the finding after the commit. Never include or resolve findings the commit does not actually fix.--squash: replace every branch commit after the merge base with one commit that carries the net branch diff. The helper finds the merge base with the resolved default branch. Squash mode requires a clean tree and index and an attached non-default branch. It conflicts with--all,--staged, and--push.--base <branch>: override default-branch detection. Use it only with--squash.- In Conventional Prefix Format, a positional type keyword overrides the inferred type. In Natural Language Format, a positional verb or category keyword overrides the inferred verb. Quoted positional text overrides the inferred description or subject.
If the requested operation is only to push a clean branch that is already ahead, skip preparation. Check the push
destination below. Run ai-commit push --rebase only when a destination is available.
Push Destination
Before requesting a push, read the current branch with git symbolic-ref --short HEAD. Check
git config --get branch.<name>.remote and git remote. Config exit 1 means the branch has no configured remote.
Other command failures are errors, not evidence that no remote exists.
When no branch remote and no named remotes exist, omit --push and --rebase. Complete the local commit and report
Push skipped: no remote configured. For push-only work, report the skip without invoking ai-commit push. Do not
create a remote or retry. If the user requires remote publication, report the missing destination as a blocker.
ai-commit pushes to the configured upstream: branch.<name>.remote and branch.<name>.merge. The remote can be a
named remote or a URL, even when git remote is empty. Without a branch remote, ai-commit uses origin. Other
configured remotes do not replace origin automatically. If the upstream branch has a different name,
branch.<name>.pushRemote must equal branch.<name>.remote. gh pr checkout writes this configuration for a PR that
lets maintainers push.
When you work on an existing PR, get its head repository and branch from gh pr view before you commit or push. A push
to another branch does not update the PR. If the upstream does not match the PR head, correct the branch configuration:
git config branch.<branch>.remote '<head-remote-or-url>'
git config branch.<branch>.merge 'refs/heads/<head-branch>'
git config branch.<branch>.pushRemote '<head-remote-or-url>'
Then push with ai-commit. Do not push manually. Do not force-push. If ai-commit refuses the destination, report its
error. Before you report completion, read the PR again and verify that its head SHA matches the pushed commit.
Squash Mode
Enter squash mode only when the user explicitly requests a squash. Never infer it from branch state, a merge request, or
standing instructions. When --squash is present, follow references/squash.md for the plan and
reset steps. Then continue with steps 2 to 5 in --staged mode. Never pass --push in squash mode, even when st
Установить commit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл commit?
"Commit staged or intended changes: compose a Conventional Prefix or Natural Language message, then use ai-commit — with --all, --staged, --close, --finding, or --push. Also squash a branch into one commit with --squash."
Как установить скилл commit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл commit запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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