Command Palette

Search for a command to run...

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

iterative-self-review

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

Use only when the user explicitly invokes this skill.

buYoungот buYoung★ 21 звезда на GitHub

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

Iterative Self-Review

A controlled loop where the main agent owns the answer and, when the user explicitly asks for verification or review, a clean-context sub-agent performs blind verification before the response is surfaced to the user. The sub-agent never edits the artifact, never writes the final response, and never receives anything beyond the applicable user input and the current main-agent response.

The loop guards against two failure modes:

  • The main agent over-trusting its first draft.
  • The verifier being biased by hidden hints, prior findings, or the main agent's reasoning.

When to use

Use this skill only when the user explicitly asks for verification, review, re-checking, proof, cross-checking, or another second-pass quality gate. Do not run this skill automatically for ordinary conversation or routine task completion.

When invoked, treat all of the following as current_response artifacts:

  • Code work and file-change reports.
  • Documents, design proposals, specifications, and plans.
  • Ordinary prose answers, summaries, recommendations, and explanations.
  • Claims that work was done, files contain something, or a conclusion follows from inspected material.

If the user explicitly narrows verification to one part (for example, "이 파일만 검증해줘", "요약 부분만 봐줘", "3번 항목만 확인해줘"), construct {{USER_INPUT}} from only the user utterances needed to define that requested scope and pass only the corresponding part of {{MAIN_RESPONSE}}. Do not let unrelated conversation context broaden the review.

Core principles

  1. Independent context contract. The sub-agent receives exactly two textual inputs: the applicable user requirements and the current response. Blocked: prior findings, the main agent's reasoning, planning, routing intent, evaluation-criteria summaries. Not blocked: reality — read-only access to cited artifacts is required so response claims can be verified. "No other context" means no main-agent context, not "no tools".
  2. Immutable base block. Within one verification session, the applicable user requirements, verification criteria, tool policy, and output schema remain byte-identical across rounds. Only the current response changes. If the user adds a new requirement, update the base block once and treat that as the new baseline.
  3. Sub-agent tool scope. Allowed: read-only inspection tools only. Forbidden: edits, writes, shell file utilities, state-mutating commands, user dialog, asking for more context, calling other agents, WebSearch, arbitrary browsing. Scope is bounded by claim-linkage: trace dependencies as far as needed to verify a specific claim, stop the moment the trace no longer maps to a claim. Full wrapper-vs-reality and cross-platform tool rules live in sub_agent_prompt_template.md.
  4. Inspection manifest is mandatory. Every cited artifact must have an artifact_inspections record. Intentionally skipped artifacts should be listed in skipped_artifacts. A clean verdict without complete manifest coverage is invalid. Schema and enforcement live in report_format.md.
  5. No numeric confidence. LLM-rated confidence scores, similarity ratios, and thresholds are unreliable. Use qualitative signals and deterministic counts only.
  6. Evidence-mandatory findings. Every issue, missing item, and unverified assertion must include a direct quote. Findings without evidence are downgraded.
  7. User clarification is a main-agent decision. The sub-agent flags ambiguity; the main agent decides whether to ask.
  8. Sub-agent reports to the main agent only. It never speaks to the user, never composes the final answer, never asks for additional context.

Role split

Role Responsibilities Forbidden
Main agent Draft answer, call sub-agent, parse report, route findings, revise, decide termination, ask user when needed, write final response with metadata Pass prior findings, reasoning, or criteria summaries to the sub-agent
Sub-agent Blind review, emit YAML report, quote evidence, classify unverified assertions Edit the answer, write the final response, ask the user, request more context, invent context

Workflow

Step 1 — Initial draft

Write the best current response. This is iteration 0's current_response. The response may be code-related, document-related, a plan, a summary, a file-change report, or ordinary prose.

Step 2 — Blind sub-agent call

Invoke the sub-agent with the prompt body from sub_agent_prompt_template.md. The template takes exactly two variables: {{USER_INPUT}} and {{MAIN_RESPONSE}}. Add nothing else.

{{USER_INPUT}} is not "the user's last message" — it is the applicable substantive task request that serves as the reference point for verification. When the user explicitly narrows verification, include only the user utterances that define that scope. When the most recent user message is a meta-trigg

Полный SKILL.md на GitHub

Установить iterative-self-review в Claude Code и Claude Desktop

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

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

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

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

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

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

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

references/report_format.mdreferences/routing_rules.mdreferences/sub_agent_prompt_template.mdreferences/termination_triggers.mdreferences/verification_criteria.md

FAQ

Что делает скилл iterative-self-review?

Use only when the user explicitly invokes this skill.

Как установить скилл iterative-self-review?

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

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

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

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

Сравнить iterative-self-review с