swarm-pr-feedback · zaxbyhub — скилл для Claude Code: что делает и как установить
Скилл swarm-pr-feedback для автоматической обработки замечаний к pull request, падений CI и конфликтов слияния перед публикацией правок.
MIT ★ 539 обновлён 2026-10-29
npx skills add ZaxbyHub/opencode-swarm --skill swarm-pr-feedback -a claude-codeЧто делает swarm-pr-feedback
Скилл собирает единый реестр замечаний: комментарии из GitHub, треды ревью, упавшие тесты CI, конфликты слияния и устаревшее состояние ветки. Каждый пункт считается гипотезой, пока агент не подтвердит или не опровергнет его кодом. Ветки переключаются локально без форсированного чекаута и без рекурсивных субмодулей.
Процесс разделён на обязательные гейты. Этап Stage A запускает git diff --check, сборку, линтер, тайпчекер и точную команду воспроизведения сбоя CI. Любое новое изменение кода аннулирует результаты проверок и перезапускает Stage A заново. После этого отдельные субагенты проводят ревью кода и проверку тестов на этапе Stage B, а перед пушем diff подтверждает пара критика и ревьюера.
Публикация выполняется одним коммитом без ключа force push. По умолчанию скилл никогда не закрывает треды ревью в GitHub сам, если пользователь не запросил это отдельной командой.
Какие задачи решает
- разобрать замечания ревьюера и комментарии из тредов GitHub
- воспроизвести и устранить сбои проверок CI
- разрешить конфликты слияния и обновить устаревшую ветку PR
- прогнать обязательные гейты линтинга, типов и тестов перед пушем
Примеры запросов агенту
- Разбери все комментарии к текущему PR и подготовь реестр замечаний.
- Устрани сбой тестов в CI и проверь ветку через Stage A.
- Выполни
/swarm pr-feedback <PR_URL> continue from .swarm/pr-review/<run_id>/feedback-handoff.jsonдля закрытия ревью.
Как установить 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 .agents/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 .agents/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.
Что делает swarm-pr-feedback?
Он переносит правки по замечаниям в код, проверяет регрессии отдельными субагентами и формирует финальный отчёт закрытия каждого замечания.
Закрывает ли скилл обсуждения в GitHub автоматически?
Нет. Скилл не разрешает треды ревью в интерфейсе GitHub, пока пользователь прямо не поручит это в промпте.
Исходный текст
SKILL.md · MIT
--- name: swarm-pr-feedback description: > Codex adapter for closing known PR feedback in any repository. Use when asked to address pasted review feedback, GitHub review comments or threads, requested changes, CI/check failures, merge conflicts, stale PR branches, or follow-up work that must verify and close all known PR issues. metadata: audience: swarm-plugin --- # Swarm PR Feedback Read and follow `../../../.opencode/skills/swarm-pr-feedback/SKILL.md` as the canonical workflow. ## Codex Execution Notes - Codex and ZCode sessions normally have no mechanical controller tools: that is canonical Profile B, not an error — both runtimes can spawn fresh-context subagents. Never report BLOCKED merely because those tools are absent — run verification lanes and every gate role as fresh independent subagents with the same one-row-per-item verdict contracts, and keep the ledger, ownership partition, and digest accounting yourself in working notes (never under `.swarm/`, which is plugin runtime state). Use Profile C strictly separated sequential passes, with the procedural independence disclosed in the closure ledger, only when the session genuinely lacks a subagent mechanism. - 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. - For a Profile-A review continuation, require the exact user command `/swarm pr-feedback <PR_URL> continue from .swarm/pr-review/<run_id>/feedback-handoff.json`; its mechanical transition validates terminal review state and creates an unbound feedback gate. The artifact by itself does not authorize writes. - Verification (Profiles B/C): every FB item is owned by exactly one verification lane or pass, each returning one `[FEEDBACK-VERIFIED]` row per owned item with the exact PR head SHA recorded. Under Profile A, when a lane result carries an `output_ref`, treat inline lane `output` as a preview and retrieve the full artifact via the runtime's lane-output retrieval capability before classifying; on any profile, degraded or incomplete lane outputs keep the affected items open as evidence gaps. 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 Profiles B/C run these commands yourself and record command+output receipts in the ledger; any content change invalidates the receipts and restarts Stage A. Stage B: an independent reviewer role, then a test-engineer role, on the Stage-A-green diff (fresh subagents on B; strictly separated re-derivation passes on C). Closeout: a separate 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 guidance. - Only if the 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 (Profiles B/C): 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. - Load the repository's test-authoring guidance before changing tests and the repository's PR publication workflow before pushing or updating the PR. Final responses 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 от других авторов.