commit-pr · zaxbyhub, github — скилл для Claude Code: публикация коммитов и PR
Скилл commit-pr для Claude Code и Codex требует от агента пройти чек-лист до коммита, пуша и создания PR.
MIT ★ 539 обновлён 2026-10-29
npx skills add ZaxbyHub/opencode-swarm --skill commit-pr -a claude-codeЧто делает commit-pr
Скилл-обёртка для агента GitHub Copilot в репозитории opencode-swarm. Своих правил он не содержит: это точка входа, которая отправляет агента к единственному каноническому файлу .claude/skills/commit-pr/SKILL.md.
Порядок чтения задан жёстко: AGENTS.md, затем docs/engineering-invariants.md, потом канонический SKILL.md и адаптер .agents/skills/commit-pr/SKILL.md. При расхождении побеждает то, что стоит выше в этом списке. Пока чек-лист не закрыт, агенту запрещены коммит, пуш, gh pr create, gh pr edit и gh pr ready, правка тела PR и заявления о готовности CI или мержа.
Тело PR собирается из разделов ## Summary, ## Invariant audit и ## Test plan, а если PR закрывает issue, первой строкой идёт Closes #<issue-number>. Контракт проверяют CI-джоба pr-standards и хук pr-publication-gate, обойти их не выйдет. Пути внутри шима относительные и привязаны к раскладке opencode-swarm, поэтому в постороннем репозитории вести ему некуда.
Какие задачи решает
- Не дать агенту запушить код до прохождения чек-листа
- Собрать тело PR из обязательных разделов
- Привязать pull request к issue через
Closes #<issue-number> - Разобраться, какой файл главнее при конфликте инструкций
- Закрыть remote CI по правилам протокола
Примеры запросов агенту
- Перед коммитом прочитай
AGENTS.mdи.claude/skills/commit-pr/SKILL.mdи пройди чек-лист. - Открой PR по протоколу commit-pr с разделами
## Summary,## Invariant auditи## Test plan. - Проверь, закрыт ли чек-лист, прежде чем переводить PR в ready.
Как установить commit-pr
1Через Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill commit-pr -a claude-code2Вручную: положить файлы
~/.claude/skills/commit-pr/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/commit-pr/
1Через Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill commit-pr -a codex2Вручную: положить файлы
.agents/skills/commit-pr/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill commit-pr -a cursor2Вручную: положить файлы
.cursor/skills/commit-pr/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install ZaxbyHub/opencode-swarm .github/skills/commit-pr2Вручную: положить файлы
.github/skills/commit-pr/SKILL.md1Через Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill commit-pr -a gemini-cli2Командой платформы
gemini skills install https://github.com/ZaxbyHub/opencode-swarm --path .github/skills/commit-prВручную: положить файлы
.devin/skills/commit-pr/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill commit-pr -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о commit-pr
Как установить commit-pr в Claude Code?
Выполните npx skills add ZaxbyHub/opencode-swarm --skill commit-pr -a claude-code. Скилл окажется по пути ~/.claude/skills/commit-pr/SKILL.md.
Что делает commit-pr?
Задаёт обязательный порядок публикации: что прочитать перед коммитом, какие разделы нужны в теле PR, когда его можно переводить в ready. Сам файл служит переходником к каноническому SKILL.md.
Чем этот файл отличается от .claude/skills/commit-pr/SKILL.md?
Это адаптер для GitHub Copilot, он ничего не дублирует и нужен, чтобы агент нашёл воркфлоу по пути .github/skills. Правила живут в каноническом файле, и при конфликте он главнее адаптеров.
Исходный текст
SKILL.md · MIT
--- name: commit-pr description: > Mandatory publication protocol for the GitHub Copilot coding agent and custom Copilot agents in opencode-swarm. Load when assigned to an issue or when committing, pushing, opening/updating/readying a PR, writing release notes, or closing out remote CI. Routes to the single canonical commit-pr source of truth. --- # Commit PR (GitHub Copilot adapter) This repository has exactly **one** publication workflow, and it is mandatory. This file is a discovery shim so the GitHub Copilot agent can find the workflow under a `.github/skills` path. It is **not** the source of truth and intentionally duplicates none of the contract. The canonical, authoritative protocol is [`../../../.claude/skills/commit-pr/SKILL.md`](../../../.claude/skills/commit-pr/SKILL.md). Read and follow, in order: 1. [`../../../AGENTS.md`](../../../AGENTS.md) 2. [`../../../docs/engineering-invariants.md`](../../../docs/engineering-invariants.md) 3. [`../../../.claude/skills/commit-pr/SKILL.md`](../../../.claude/skills/commit-pr/SKILL.md) — **single source of truth** 4. [`../../../.agents/skills/commit-pr/SKILL.md`](../../../.agents/skills/commit-pr/SKILL.md) — Codex/Copilot execution adapter If instructions ever conflict, precedence is: `AGENTS.md` → `docs/engineering-invariants.md` → `.claude/skills/commit-pr/SKILL.md` → adapters → this file. Do not commit, push, run `gh pr create`, `gh pr edit`, or `gh pr ready`, edit a PR body, mark a PR ready, or claim CI/merge readiness until the canonical `commit-pr` checklist is satisfied. The required PR title, PR body sections (`## Summary`, `## Invariant audit`, `## Test plan`, plus `Closes #<issue-number>` as the first line *when the PR resolves an issue*), invariant audit, release fragment, validation suite, issue comment, draft/ready behavior, and CI closeout rules all come from [`../../../.claude/skills/commit-pr/SKILL.md`](../../../.claude/skills/commit-pr/SKILL.md). The `pr-standards` CI check and the `pr-publication-gate` hook enforce this contract; do not work around them.
© ZaxbyHub · MIT · ZaxbyHub/opencode-swarm
Похожие скиллы
Все скиллы по теме «Git и GitHub» →Сначала — commit-pr от других авторов.