Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

requesting-code-review

БесплатноБез исполняемых скриптовНе проверен

Use when completing tasks, implementing major features, or before merging to verify work meets requirements

osmonteroот osmontero★ 18 звёзд на GitHub

Об этом скилле

Requesting Code Review

Dispatch code-reviewer sub-agent using the subagent tool 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.

Core principle: Review early, review often.

When to Request Review

Mandatory:

  • After each task in subagent-driven development
  • After completing major feature
  • Before merge to main
  • When the change touches security-relevant code — untrusted input, authn/authz, secrets, injection sinks, subprocess/plugin boundaries, or new dependencies (dispatch security-reviewer)

Optional but valuable:

  • When stuck (fresh perspective)
  • Before refactoring (baseline check)
  • After fixing complex bug

How to Request

1. Get git SHAs:

BASE_SHA=$(git rev-parse HEAD~1)  # or origin/main
HEAD_SHA=$(git rev-parse HEAD)

2. Dispatch spec-reviewer, code-reviewer, code-quality-reviewer, or security-reviewer global agent using the subagent tool:

These four agents are registered globally with appropriate review checklists. Invoke with context about what was implemented, plan reference, and git diff range. The agent will use git diff {BASE_SHA}..{HEAD_SHA} to inspect changes.

Context to include in your subagent prompt:

  • What you just built (brief summary)
  • What it should do (plan or requirements reference)
  • Starting commit SHA (BASE_SHA)
  • Ending commit SHA (HEAD_SHA)

3. 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)

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 code-reviewer sub-agent using the `subagent` tool]
  WHAT_WAS_IMPLEMENTED: Verification and repair functions for conversation index
  PLAN_OR_REQUIREMENTS: Task 2 from docs/plans/deployment-plan.md
  BASE_SHA: a7981ec
  HEAD_SHA: 3df7661
  DESCRIPTION: Added verifyIndex() and repairIndex() with 4 issue types

[Sub-agent 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

Choosing the Reviewer

Agent Use when Refuses to
spec-reviewer Immediately after implementation — does the code match the spec, nothing more, nothing less? Comment on style or quality
code-quality-reviewer After spec compliance passes — decomposition, naming, error handling, test quality Re-litigate scope
security-reviewer When the change touches untrusted input, authn/authz, secrets, injection sinks, subprocess/plugin boundaries, or new dependencies — after spec and quality pass Report findings without a traced input-to-impact path
code-reviewer End of a feature or before merge — production readiness across the whole change —
reviewing-interface-quality (skill) The change includes user-facing UI —

Order matters. Run spec compliance first, then code quality, then security, then the final production-readiness review. Running quality review before spec compliance wastes effort polishing code that may not be what was asked for; running security before spec compliance audits behavior that may be wrong on purpose. See subagent-driven-development.

Writing the Dispatch Prompt

The reviewer starts with no context. What you write is everything they know — never your session history. A reviewer given a vague prompt returns vague findings.

The prompt contains, in this order:

  1. What was built — two sentences
  2. What it should do — the requirement or plan task text, pasted in full, not a file reference
  3. The diff range — BASE_SHA and HEAD_SHA
  4. Where to look — the files that changed
  5. What you already know — deviations you made, and why
  6. What you want back — the report format

Paste the requirement text. Telling the reviewer to read docs/plans/x.md costs a tool call and risks them reading the wrong task. You already have the text.

Do not tell them what you think. "I think the error handling is solid" biases the review toward agreement. State facts, ask for findings.

Review the implementation of Task 2 from the auth plan.

REQUIREMENT (verbatim from the plan)
Полный SKILL.md на GitHub

Установить requesting-code-review в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

LICENSE.txt

FAQ

Что делает скилл requesting-code-review?

Use when completing tasks, implementing major features, or before merging to verify work meets requirements

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

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл requesting-code-review запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить requesting-code-review с