К основному содержанию
скилл CX Codex

requesting-code-review · ganyuanran — скилл для Claude Code: обзор и установка

Запускает изолированного субагента для проверки кода без передачи истории сессии. Помогает найти архитектурные риски и баги перед слиянием ветки.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add GanyuanRan/Aegis --skill requesting-code-review -a claude-code
Открыть на GitHub

Что делает requesting-code-review

Скилл изолирует ревью от контекста диалога. Основной агент готовит структурированный запрос и вызывает ревизора по шаблону code-reviewer.md. В запрос передаются только факты: что написано, спецификация или план, доказательства работы тестов и границы совместимости. Рецензент не видит ход мыслей разработчика. Это исключает предвзятость.

Отчёт строится по правилу «сначала находки». Ошибки, пробелы в тестах и архитектурные сдвиги выводятся первыми, а похвала и общее впечатление уходят в конец. Ревью носит рекомендательный характер. Оно не даёт автоматического права на мерж и не заменяет финальную верификацию. Без зафиксированного хеша коммитов или списка рабочих файлов запустить ревью не получится.

Какие задачи решает

  • изолировать ревьюера от длинной истории сессии
  • передать субагенту точные границы диффа и доказательства тестов
  • выявить дефекты архитектуры перед переносом изменений в main
  • зафиксировать правила отказа от устаревших веток и временных патчей

Примеры запросов агенту

  • Запроси ревью текущих правок в рабочей директории через субагента
  • Проверь коммиты от a7981ec до HEAD по шаблону code-reviewer.md
  • Подготовь контекст для ревью задачи и запусти проверку с тестами

Как установить requesting-code-review

1Через Skills CLI (Vercel)

npx skills add GanyuanRan/Aegis --skill requesting-code-review -a claude-code

2Вручную: положить файлы

~/.claude/skills/requesting-code-review/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/requesting-code-review/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о requesting-code-review

Как установить requesting-code-review в Claude Code?

Выполните команду npx skills add GanyuanRan/Aegis --skill requesting-code-review -a claude-code. Конфигурация запишется по пути ~/.claude/skills/requesting-code-review/SKILL.md.

Зачем скрывать историю диалога от субагента?

Субагент должен оценивать исключительно результат работы и диффы Git, а не рассуждения в чате. Это сохраняет объективность и экономит контекст.

Даёт ли успешное ревью право на слияние ветки?

Нет, проверка остаётся исключительно консультативной. Для подтверждения готовности кода требуется отдельный шаг verification-before-completion.

Исходный текст

SKILL.md · MIT
---
name: requesting-code-review
description: "Use when requesting independent code review, after implementation slices, before merging high-risk work, or when verification exposes evidence, baseline, architecture, compatibility, or retirement uncertainty."
---

# Requesting Code Review

Dispatch a reviewer subagent using the canonical `code-reviewer.md` template to
catch issues before they cascade. The reviewer gets precisely crafted context
for evaluation — never your session's history. This keeps the reviewer focused
on the work product, not your thought process, and preserves your own context
for continued work.

This skill is the canonical review-request workflow for method-pack implementation work. Use it to request review only after you have enough evidence, enough context, and a clear authority boundary for what the reviewer is being asked to assess.

**Core principle:** Review early, review often.

**Findings First:** Reviews lead with concrete findings before summary. Use
bugs first, risk first, tests first. Strengths and general assessment are still
useful, but they must not bury correctness, evidence, architecture, or
retirement problems.

Review readiness is not merge approval. A review can reduce uncertainty and
recommend readiness, but it does not replace `verification-before-completion`
and does not grant completion authority.

## When to Request Review

**Mandatory:**
- After each task in subagent-driven development
- After completing major feature
- Before merge to main

**Optional but valuable:**
- When stuck (fresh perspective)
- Before refactoring (baseline check)
- After fixing complex bug

## Required Outputs

Before you leave this workflow, you must be able to state:

1. **What exact scope is being reviewed**
2. **What plan, requirement, or contract defines success**
3. **What Product / Requirement Baseline defines accepted behavior and non-goals**
4. **What Architecture / Runtime Boundary Baseline defines the expected architecture state**
5. **What fresh evidence already exists**
6. **What compatibility boundary must still hold**
7. **What old owner / fallback / patch stays, shrinks, or retires**
8. **What the reviewer must specifically validate**
9. **Whether the reviewer is providing advisory review only, or also any higher-level merge recommendation**
10. **Aegis Visibility**: why findings-first ordering, evidence sufficiency,
    baseline alignment, compatibility, or retirement risk matters for this
    review request
11. **Semantic context scope**: which relevant canonical terms, deprecated
    aliases, or public naming boundaries the review must preserve

Review in this method pack is advisory and evidence-oriented. It is not authoritative completion by itself.

Compare requirements and result in both directions: omissions or weakening,
and unsupported additions or strengthening. Preserve relevant relationships,
behavior, ownership and qualifiers within the authorized transformation. Pair
an evidenced defect with a relevant valid case; do not add acceptance criteria,
reject authorized summaries or corrections, or require exhaustive equivalence.

## How to Request

**1. Gather minimum review inputs:**

- What was implemented
- What requirement / plan / spec / ADR it should match
- What baseline / current authority docs the diff must align with, including
  requirements/product alignment and architecture/current-authority alignment
- What evidence already exists (tests, commands, logs, screenshots, diff summary)
- What compatibility boundary or risk deserves reviewer attention
- Whether there is any old path, fallback, duplicate owner, or temporary patch that should retire
- Whether the diff contains durable architecture decisions that need ADR
  Auto Backfill or baseline sync findings
- Whether `recording-architecture-decisions` was used, or should be used, when
  an ADR action or baseline sync closure is in scope
- Relevant active `CONTEXT.md` language when public/domain naming is in scope;
  passive reading does not load active modeling

If you cannot answer these, stop and gather them before dispatching review.

**2. Define the Git review scope:**
```bash
# Before the coordinator's task commit
REVIEW_SCOPE=working-tree
BASE_SHA=$(git rev-parse HEAD)

# Or for already committed work
REVIEW_SCOPE=committed-range
BASE_SHA=<known-start>
HEAD_SHA=$(git rev-parse HEAD)
```

For working-tree review, identify task-owned untracked paths explicitly. Do not
stage merely to make them visible to a reviewer.

**3. Dispatch reviewer subagent:**

Use the Task tool with a general-purpose reviewer subagent. Fill the canonical
template at `requesting-code-review/code-reviewer.md`; do not rely on a
separate named agent prompt.

**Placeholders:**
- `{WHAT_WAS_IMPLEMENTED}` - What you just built
- `{PLAN_OR_REQUIREMENTS}` - What it should do
- `{EVIDENCE}` - Fresh tests, commands, logs, or verification already available
- `{COMPATIBILITY_BOUNDARY}` - What existing behavior or interfaces must not break
- `{RETIREMENT_NOTES}` - Old owner / fallback / patch / duplicate branch and expected disposition
- `{REVIEW_SCOPE}` - `working-tree` or `committed-range`
- `{BASE_SHA}` - Starting commit
- `{HEAD_SHA}` - Ending commit, or `WORKTREE`
- `{DESCRIPTION}` - Brief summary

**4. Act on feedback:**
- Fix Critical issues immediately
- Fix Important issues before proceeding
- Note Minor issues for later
- Push back if reviewer is wrong (with reasoning)
- If feedback reveals evidence gaps, run the missing verification instead of arguing from confidence
- If feedback reveals Design Defect / Implementation Drift, stale logic, or a
  legacy alias such as architecture drift, decide explicitly whether to repair
  now, correct the baseline, or record retirement conditions

## Example

```
[Just completed Task 2: Add verification function]

You: Let me request code review before proceeding.

BASE_SHA=$(git log --oneline | grep "Task 1" | head -1 | awk '{print $1}')
HEAD_SHA=$(git rev-parse HEAD)

[Dispatch reviewer subagent using requesting-code-review/code-reviewer.md]
  WHAT_WAS_IMPLEMENTED: Verification and repair functions for conversation index
  PLAN_OR_REQUIREMENTS: Task 2 from docs/aegis/plans/deployment-plan.md
  EVIDENCE: pytest tests/index/test_verify.py -v -> 12 passed
  COMPATIBILITY_BOUNDARY: Existing index format and CLI flags must remain stable
  RETIREMENT_NOTES: Legacy repair fallback still exists in old helper; remove once new path covers all four issue types
  BASE_SHA: a7981ec
  HEAD_SHA: 3df7661
  DESCRIPTION: Added verifyIndex() and repairIndex() with 4 issue types

[Subagent returns]:
  Strengths: Clean architecture, real tests
  Issues:
    Important: Missing progress indicators
    Minor: Magic number (100) for reporting interval
  Assessment: Ready to proceed

You: [Fix progress indicators]
[Continue to Task 3]
```

## Integration with Workflows

**Subagent-Driven Development:**
- Review after EACH task
- Catch issues before they compound
- Fix before moving to next task

**Executing Plans:**
- Review after each batch (3 tasks)
- Get feedback, apply, continue

**Ad-Hoc Development:**
- Review before merge
- Review when stuck

## What the Reviewer Must Check

The review request must prompt the reviewer to inspect at least:

- Findings First: bugs first, risk first, tests first
- evidence sufficiency
- baseline / current authority alignment
- requirements/product alignment against accepted problem, success evidence, and
  non-goals
- architecture/current-authority alignment against owner, contract,
  source-of-truth, compatibility, and retirement boundaries
- Design Defect / Implementation Drift classification with
  `scope: requirements | architecture | both`
- legacy phrase mapping: baseline defect, architecture defect, and architecture
  drift must map back to Design Defect / Implementation Drift rather than
  becoming parallel result vocabularies
- duplicate owner risk
- compatibility boundary
- missing ADR Auto Backfill or baseline sync findings for durable architecture
  decisions
- missing `recording-architecture-decisions` handoff when ADR action or
  baseline sync closure is in scope
- unverified claims or missing proof
- old logic that should retire, stay temporarily, or converge
- public-name drift, deprecated-term re-entry, or a semantic change recorded in
  code/docs without composing `establishing-project-context`

If the review only asks “is this code good?”, it is underspecified.

## Red Flags

**Never:**
- Skip review because "it's simple"
- Ignore Critical issues
- Proceed with unfixed Important issues
- Argue with valid technical feedback
- Treat reviewer approval as equivalent to authoritative completion
- Ask for review without sharing what evidence already exists
- Add new logic without telling the reviewer what happens to the old path

**If reviewer wrong:**
- Push back with technical reasoning
- Show code/tests that prove it works
- Request clarification

## Review Boundaries

- Review can recommend merge readiness, residual risk, and follow-up work
- Review cannot grant authoritative completion by itself
- Review should reduce uncertainty, not hide it

See template at: requesting-code-review/code-reviewer.md

© GanyuanRan · MIT · GanyuanRan/Aegis

Похожие скиллы

Все скиллы по теме «Код-ревью и рефакторинг» →

Сначала — requesting-code-review от других авторов.

requesting-code-review Jesse Vincent Запрашивает ревью у субагента после задачи, крупной функции или перед слиянием в main. Помогает проверить изменения по требованиям, не перегружая основной контекст. CX Codex 262 135установок requesting-code-review Hermes Agent (adapted from obra/superpowers + MorAlekss) Конвейер проверки кода перед коммитом: статический аудит безопасности, контроль регрессий по тестам, запуск субагента-ревьюера и цикл автоисправления. CX Codex +1 469установок requesting-code-review bobmatnyc Скилл заставляет агента вызвать субагента-ревьюера и проверить код против плана или требований, прежде чем идти дальше. CX Codex +1 306установок improve-codebase-architecture Matt Pocock Скилл ищет архитектурные узкие места в кодовой базе и показывает варианты углубления модулей в HTML-отчёте. Подойдёт для ревью перед рефакторингом. 1 163 035установок tdd Matt Pocock Скилл управляет циклом красный-зелёный в TDD: проверяет, что тесты пишутся до кода, держит их на уровне публичных интерфейсов и не завязывает на внутреннюю структуру. 1 141 062установок triage Matt Pocock Скилл проводит issue и внешние PR через роли триажа, проверку и подготовку брифа для агента. Подойдёт мейнтейнеру, который разбирает очередь задач. 990 453установок codebase-design Matt Pocock Скилл помогает проектировать модули с небольшим интерфейсом и скрытой внутри сложностью. Подходит для рефакторинга, тестируемости и поиска чистого seam. 850 344установок code-review Matt Pocock Проверяет изменения от выбранной точки по стандартам репозитория и требованиям задачи. Нужен для ревью ветки, PR или незавершённой работы. 789 521установок implement Matt Pocock Выполняет задачу по спецификации или тикетам, ведёт работу через тесты и завершает её ревью с коммитом. Подходит для задач, где нужен дисциплинированный цикл разработки. 774 700установок

Из того же набора19

ui-ux-governance Скилл задаёт агенту рамки при работе с интерфейсами: как выбирать решения по потокам, состояниям и доступности. CX Codex +1 ★ 1 388звёзд репо test-driven-development Заставляет агента писать падающий тест перед любым изменением кода. Срабатывает при явном запросе строгой разработки через тестирование или флаге TDD Route: strict. CX Codex +1 ★ 1 388звёзд репо systematic-debugging Скилл помогает разбирать ошибки, сбои тестов и неожиданное поведение до правок. Он прослеживает причину до места, которое действительно нужно исправить. CX Codex +1 ★ 1 388звёзд репо subagent-driven-development Скилл ведёт выполнение плана: на каждую задачу запускается свежий субагент, после чего идут две проверки — соответствие спецификации и качество кода. CX Codex +1 ★ 1 388звёзд репо recording-architecture-decisions Скилл помогает решать, нужен ли ADR, выбрать действие и синхронизировать описание текущей архитектуры после значимых изменений. CX Codex +1 ★ 1 388звёзд репо goal-framing Скилл помогает зафиксировать цель, признаки успеха и границы задачи до начала работы. Он пригодится, когда важно согласовать, что считать результатом и когда остановиться. CX Codex +1 ★ 1 388звёзд репо first-principles-review Лёгкая проверка решения по первому принципу и бритве Оккама перед тем, как агент зафиксирует направление. Обычные багфиксы она не трогает. CX Codex +1 ★ 1 388звёзд репо finishing-a-development-branch Безопасно закрывает жизненный цикл рабочей ветки или worktree после тестов: сверяет статус Git, запрашивает подтверждение и удаляет только проверенные ресурсы. CX Codex +1 ★ 1 388звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой