agent-team — скилл для Claude Code: цикл «реализация + ревью»
Скилл собирает команду из двух субагентов: один пишет код, второй проверяет, и так по кругу до выполнения условия выхода.
npx skills add dyoshikawa/rulesync --skill agent-team -a claude-codeЧто делает agent-team
Скилл agent-team запускает цикл, в котором работают два субагента. Implementer Agent получает задачу и правит файлы в текущем репозитории, Reviewer Agent проверяет изменения на корректность, качество дизайна, тесты и соответствие правилам проекта. Ревьюер также смотрит на безопасность.
Каждую находку ревьюер нумерует и помечает уровнем: low, mid, high или critical. В конце отчёта идёт сводка по уровням, по ней скилл механически решает, продолжать или остановиться. Цикл завершается, когда в одном раунде нет находок high и critical, а mid не больше трёх. Находки low на выход не влияют. Реализатор обязан разобрать все замечания прошлого раунда: исправить или объяснить, почему отклоняет. Перед возвратом он гоняет pnpm cicheck (или более узкие pnpm cicheck:code и cicheck:content) и чинит падения.
Есть жёсткий предохранитель на 10 итераций. Если условие выхода не выполнено к этому моменту, цикл останавливается, а оставшиеся находки уходят вам на ручное решение. Скилл не делает коммит и не открывает PR — это остаётся за вами. Если задачу не передали, он попросит её описать и на этом закончит.
Какие задачи решает
- прогнать задачу через цикл «написать код — проверить код» без ручного переключения между ролями
- получить список замечаний с номерами, путями к файлам и уровнями важности
- убедиться, что все замечания прошлого раунда разобраны, а не забыты
- остановить бесконечный цикл правок на разумном пределе
- проверить изменения на соответствие правилам проекта и на безопасность
Примеры запросов агенту
- Возьми задачу: добавить валидацию входных данных в API, и прогони её через команду агентов.
- Запусти agent-team на рефакторинге модуля оплаты, покажи сводку по уровням находок.
- Прогони цикл реализации и ревью для этой задачи и в конце предложи, что делать дальше.
Как установить agent-team
1Через Skills CLI (Vercel)
npx skills add dyoshikawa/rulesync --skill agent-team -a claude-code2Вручную: положить файлы
~/.claude/skills/agent-team/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/agent-team/
1Через Skills CLI (Vercel)
npx skills add dyoshikawa/rulesync --skill agent-team -a codex2Вручную: положить файлы
.agents/skills/agent-team/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add dyoshikawa/rulesync --skill agent-team -a cursor2Вручную: положить файлы
.cursor/skills/agent-team/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install dyoshikawa/rulesync agent-team2Вручную: положить файлы
.github/skills/agent-team/SKILL.md1Через Skills CLI (Vercel)
npx skills add dyoshikawa/rulesync --skill agent-team -a gemini-cli2Командой платформы
gemini skills install https://github.com/dyoshikawa/rulesync --path .rulesync/skills/agent-teamВручную: положить файлы
.devin/skills/agent-team/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add dyoshikawa/rulesync --skill agent-team -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о agent-team
Как установить agent-team в Claude Code?
Выполните npx skills add dyoshikawa/rulesync --skill agent-team -a claude-code. Скилл встанет в ~/.claude/skills/agent-team/SKILL.md.
Что делает agent-team?
Собирает команду из Implementer Agent и Reviewer Agent и крутит цикл реализации и ревью, пока ревьюер не найдёт ноль находок уровня high и critical и не больше трёх mid.
Сколько итераций выдержит цикл?
Предохранитель стоит на 10 итерациях. Если к этому моменту условие выхода не выполнено, скилл останавливается и отдаёт оставшиеся находки вам.
Исходный текст
SKILL.md · MIT
---
name: agent-team
description: >-
Form an Agent Team of Implementer and Reviewer subagents to tackle the given
task, looping implementation and review until the Reviewer reports zero
high-or-above findings and no more than three mid findings.
targets:
- claudecode
---
# Agent Team
TASK = the user's request
If TASK is not provided, ask the user for the task description and stop.
Coordinate an Agent Team composed of an **Implementer Agent** and a **Reviewer
Agent**. Iterate the implementation/review loop until the exit condition is
satisfied.
## 0. Exit Condition
The loop exits when **both** of the following hold in a single review round:
- **0** findings of severity `high` or `critical`.
- **3 or fewer** findings of severity `mid`.
Findings of severity `low` do not affect the exit condition.
Set a hard safety cap of **10 iterations**. If the exit condition is still not
met at the cap, stop the loop and report the remaining findings to the user for
manual decision.
## 1. Iteration Loop
Repeat the following steps until the exit condition is satisfied.
### 1-1. Implementation Phase
Delegate to the Implementer Agent via the Agent tool.
- `subagent_type`: `general-purpose`
- Role framing: "You are the Implementer Agent on an Agent Team."
- Inputs to pass:
- The original TASK.
- All Reviewer findings from the previous round (if any), grouped by
severity.
- Instructions to include in the prompt:
- Implement the TASK end-to-end in the current repository.
- Address every Reviewer finding from the previous round. For each finding,
either fix it or, if you intentionally reject it, record the reason.
- Edit files directly; do not only describe changes.
- Run `pnpm cicheck` (or the narrower `pnpm cicheck:code` / `cicheck:content`
when appropriate) and fix any failures before returning.
- Report: a concise summary of the changes, the list of modified files, how
each previous finding was handled, and the result of the checks.
### 1-2. Review Phase
Delegate to the Reviewer Agent via the Agent tool.
- `subagent_type`: `code-reviewer`
- Role framing: "You are the Reviewer Agent on an Agent Team."
- Inputs to pass:
- The original TASK.
- The Implementer's summary and the list of modified files from this round.
- Instructions to include in the prompt:
- Review the changes for correctness, design quality, tests, and adherence
to project conventions (see `CLAUDE.md`, `docs/**/*.md`, and
`.claude/rules/feature-change-guidelines.md`).
- Also consider security concerns.
- Produce a findings list. For each finding, include:
- Sequential number (e.g., `#1`, `#2`).
- Severity: `low` / `mid` / `high` / `critical`.
- File path and line number(s).
- Problem description and recommended fix.
- At the end of the report, include a **Severity Summary** with the counts
per severity level so the exit condition can be evaluated mechanically.
### 1-3. Evaluate the Exit Condition
Parse the Reviewer's Severity Summary.
- If `high + critical == 0` **and** `mid <= 3`: exit the loop.
- Otherwise: feed the findings into the next Implementation Phase and
continue.
Between iterations, emit a short status line to the user such as
`Iteration N complete — high/critical: X, mid: Y, low: Z`.
## 2. Final Report
After the loop exits, report the following to the user:
- **Outcome**: `Converged` (exit condition met) or `Capped` (hit iteration cap).
- **Iterations**: how many rounds were executed.
- **Remaining findings**: the final Severity Summary, plus the full list of
remaining `mid` and `low` findings (and any `high`/`critical` findings that
remain when the loop was capped).
- **Changes**: a brief summary of what was implemented and which files were
modified.
- **Next steps**: suggestions for the user (e.g., create a commit / PR via
the `commit-push-pr` skill).
Do **not** auto-commit or open a PR from this skill; leave that to the user.
© dyoshikawa · MIT · dyoshikawa/rulesync