swarm-pr-feedback · zaxbyhub, claude — скилл для Claude Code: что делает и как установить
Скилл swarm-pr-feedback для Claude Code собирает известные замечания к PR в реестр, проверяет каждое по коду и только после этого вносит правки. Разбирает замечания ревью, сбои CI и конфликты.
MIT ★ 539 обновлён 2026-10-29
npx skills add ZaxbyHub/opencode-swarm --skill swarm-pr-feedback -a claude-codeЧто делает swarm-pr-feedback
Скилл берёт работу по PR, где замечания уже есть: вставленный текст ревью, комментарии и треды GitHub, запрошенные изменения, упавшие проверки, конфликты, устаревшую ветку. Сначала всё это сводится в полный реестр. Каждый пункт висит как утверждение, пока код или логи не докажут обратное, и до этого момента правок нет.
Проверки идут ступенями. Stage A — это git diff --check, воспроизведение упавшего теста, если оно есть, плюс найденные в репозитории команды сборки, проверки типов и линта. Stage B — свежий субагент-ревьюер и субагент-тестировщик на уже зелёном диффе, закрытие — ещё пара «ревьюер и критик». В обычной сессии Claude механических инструментов плагина нет, это штатный Profile B: реестр, разбивку владельцев и учёт артефактов скилл ведёт сам в файлах рабочей области сессии, не в .swarm/. Падения CI забираются одной пачкой через gh pr checks <n> --json name,bucket,state,link и gh run view <run-id> --log-failed, а не пушем за пушем.
Ветку PR скилл выкачивает локально и сверяет HEAD с авторитетным SHA до любых изменений; force-push и checkout с подмодулями не используются. Треды ревью в GitHub он не закрывает, пока вы прямо не попросите — иначе они так и останутся висеть открытыми.
Какие задачи решает
- разобрать вставленный текст ревью и превратить его в список проверяемых пунктов
- собрать все упавшие CI-проверки одной пачкой, а не гонять пуш за пушем
- сверить локальный HEAD с головой PR до первой правки
- развести конфликты и устаревшую ветку перед мержем
- прогнать независимое ревью и тесты на уже зелёном диффе
Примеры запросов агенту
- Разбери замечания из ревью к PR #412 и проверь каждое до правок
- Собери все упавшие проверки на PR #87 одной пачкой и покажи, что именно сломалось
- Доведи ветку до конца: конфликты, ревью и тесты, потом один пуш без force
Как установить swarm-pr-feedback
1Через Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill swarm-pr-feedback -a claude-code2Вручную: положить файлы
~/.claude/skills/swarm-pr-feedback/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/swarm-pr-feedback/
1Через Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill swarm-pr-feedback -a codex2Вручную: положить файлы
.agents/skills/swarm-pr-feedback/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill swarm-pr-feedback -a cursor2Вручную: положить файлы
.cursor/skills/swarm-pr-feedback/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install ZaxbyHub/opencode-swarm .claude/skills/swarm-pr-feedback2Вручную: положить файлы
.github/skills/swarm-pr-feedback/SKILL.md1Через Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill swarm-pr-feedback -a gemini-cli2Командой платформы
gemini skills install https://github.com/ZaxbyHub/opencode-swarm --path .claude/skills/swarm-pr-feedbackВручную: положить файлы
.devin/skills/swarm-pr-feedback/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill swarm-pr-feedback -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о swarm-pr-feedback
Как установить swarm-pr-feedback в Claude Code?
Выполните npx skills add ZaxbyHub/opencode-swarm --skill swarm-pr-feedback -a claude-code. Файл скилла окажется в ~/.claude/skills/swarm-pr-feedback/SKILL.md.
Что делает swarm-pr-feedback?
Собирает реестр замечаний к PR — ревью, комментарии, упавшие проверки, конфликты — и проверяет каждый пункт по коду до того, как что-то менять. Правки идут только после того, как проверка закрыта.
Что будет, если в сессии Claude нет инструментов плагина?
Это штатный Profile B, а не сбой. Проверочные дорожки и роли гейтов запускаются свежими субагентами Agent/Task, а реестр и учёт артефактов скилл ведёт сам в файлах рабочей области сессии.
Исходный текст
SKILL.md · MIT
--- name: swarm-pr-feedback description: > Claude Code adapter for closing known PR feedback. Use when addressing pasted review feedback, GitHub review comments or threads, requested changes, CI/check failures, merge conflicts, stale PR branches, or PR follow-up work that must verify every claim before fixing it. metadata: audience: swarm-plugin --- # Swarm PR Feedback Read and follow `../../../.opencode/skills/swarm-pr-feedback/SKILL.md` as the canonical workflow. ## Claude Code Execution Notes - A plain Claude Code session has none of the plugin's mechanical controller tools: that is canonical Profile B, not an error. Never report BLOCKED merely because controller tools are absent — run verification lanes and gate roles as fresh `Agent`/`Task` subagents and keep the ledger, ownership partition, and digest accounting yourself in session task workspace files (never under `.swarm/`, which is plugin runtime state). - **Batch-collect all CI failures before proposing any fix** (Issue #1746). On GitHub, run `gh pr checks <n> --json name,bucket,state,link`, filter to `bucket == "fail" || bucket == "cancel"`, then fetch each failed log with `gh run view <run-id> --log-failed`. On other hosts, use the host-equivalent API. Build the complete failure ledger in one batch before triaging or proposing fixes — do not iterate check-by-check through push cycles. - Check out the PR branch locally before dispatching feedback lanes or verifying/fixing anything. Fetch the head ref if absent, preserve or surface all dirty tracked/untracked state, prove full HEAD equals the authoritative PR head SHA, and prove the final branch tracks the intended PR head remote/branch. In Profile A, a detached exact-head intake is valid because the first bind attaches only one unambiguous exact tracking ref; Profiles B/C must establish the branch themselves. Never use force or submodule-recursive checkout. - Build the complete feedback ledger before editing: pasted feedback, GitHub comments/threads, requested changes, CI/check failures, merge conflicts, stale branch state, PR body claims, linked issues, commits, and any validated `swarm-pr-review` handoff artifact. Treat every item as a claim until source evidence proves or disproves it, and preserve original finding IDs and reviewer/critic provenance from handoff artifacts. - Verification lanes (Profile B): partition the immutable FB inventory across fresh read-only subagents — every item owned by exactly one lane, one `[FEEDBACK-VERIFIED]` row per owned item, the exact PR head SHA in every prompt — and read each subagent's full report. Under Profile A, when a lane result carries an `output_ref`, treat inline `output` as a preview and call `retrieve_lane_output` for the full artifact. Degraded, truncated, or incomplete reports keep their items open as coverage gaps: retry bounded, or surface the affected items as BLOCKED. No edits before verification settles. - Do not resolve GitHub review threads unless the user explicitly instructs it. - **Mandatory gates — Stage A and Stage B (+ closeout) on every profile.** Stage A always runs exact `git diff --check` plus one proof command — the exact failing CI/test reproduction when available, otherwise a repo-appropriate targeted regression/test command — plus every build, typecheck, and lint/format category mechanically discovered from the repository; it never invents a no-op category to reach a fixed count. On Profile B run these commands yourself and record command+output receipts in the ledger; any content change invalidates the receipts and restarts Stage A. Stage B: one fresh independent reviewer subagent, then one fresh test-engineer-role subagent, on the Stage-A-green diff. Closeout: a separate fresh reviewer + critic pair on the Stage-B-approved diff. One verdict row per FB ID at every gate; record both closeout verdicts in the session task-gates artifact per the durable-session-state guidance. - Only if this session actually exposes the plugin's mechanical tools, run Profile A instead: `run_pr_feedback_stage_a`, then the exact ordered `swarm-pr-feedback:stage-b-reviewer`, `:stage-b-test`, `:closeout-reviewer`, and `:closeout-critic` structured modes, `complete_pr_workflow` arming, and the bound single-ref push. While that controller is active, direct subagent calls and free-form verdict prose are not equivalent evidence, and any edit restarts the sequence at Stage A. - Publication (Profile B): after all gates pass on the unchanged diff, create one reviewed commit on the PR branch, push exactly that commit with a single non-force push through the repository's commit/PR workflow, then verify read-only that the remote head equals the pushed commit before any PR comment/body/thread write. Final output must include a closure ledger for every original feedback item, including conflicts, stale branch state, obsolete CI, and generated-output drift when they affected the PR.
© ZaxbyHub · MIT · ZaxbyHub/opencode-swarm
Похожие скиллы
Все скиллы по теме «Настройка агента: память, контекст, субагенты» →Сначала — swarm-pr-feedback от других авторов.