deep-review
Review branch diffs, working trees, or PRs in depth with defect, polish and cross-contract coverage. Includes incremental and spec-conformance reviews…
от pedronauck★ 661 звезда на GitHub
Установить deep-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Deep Review
Find actionable defects and improvements with complete selected-hunk and project-rule accounting. Scripts handle discovery, partitions, artifact assembly and validation; the model supplies applicability decisions and evidence-based review. Keep source read-only; write review artifacts under <out> (default .deep-review/<target>/). Resolve <skill-dir> from this file and run bundled commands from the reviewed repository root.
Contract
- No total file or line cap on the PR. Every selected hunk has exactly one defect owner and one polish owner. Both default to broad cohorts of 200 files / 15,000 changed lines per job, adjustable with
--max-cohort-files,--max-cohort-lines,--max-polish-filesand--max-polish-lines. Oversized files are sliced without losing hunks. An optional--max-context-lines Npreparation budget accounts for whole-file reading while preserving selection. - Every defect has causal evidence; every advisory has an observed premise, concrete improvement and bounded fix. Investigated rejections stay in the suppression ledger. No quota; advisories never block SHIP.
- Every applied rule comes from material actually read, with verbatim text, source, scope and explicit assessment. Root/nested instructions retain scope and precedence. Metadata is a triage queue, not an instruction to load every skill.
- Relevant linters run first or reuse evidence for the same frozen inputs. Record unavailable lanes; suppress overlapping findings. Never install tools to fill a lane.
- The checkout, rule evidence and job contracts are pinned. Valid outputs are reused only for their unchanged contracts. Missing coverage, stale evidence and malformed results prevent completion.
- Publish only with
--publishor explicit session authorization. Product fixes are outside this skill.
1. Prepare
python3 <skill-dir>/scripts/prepare_review.py --out <out> \
[--pr N | --base REF | --staged | --worktree] [--files p1,p2] \
[--spec PATH] [--full] [--max-cohort-files N] [--max-cohort-lines N] \
[--max-polish-files N] [--max-polish-lines N]
The helper creates the manifest, knowledge.md and decisions.template.json. Inspect the manifest summary for correct base/head and file selection, especially after a rebase. Empty selection ends as “nothing reviewable.” For PRs, fetch the missing head/base/history using the manifest's diagnostic and retry.
Read knowledge.md, not the raw registry. Use its metadata to classify routers; read applicable instructions and selected skill sections. Copy the template with cp <out>/decisions.template.json <out>/decisions.json, then edit only the semantic decisions, preserving fingerprints. Use compact source IDs or grouped exclusions; supply actual reasons, exact rule spans, change intent and linter evidence. Read context-pack.md — Decision file for this input contract, including rule lane/lens binding.
python3 <skill-dir>/scripts/prepare_review.py --out <out> --decisions <out>/decisions.json
Exit 2 means decisions remain: applied skill parents reveal their reference routes on the next compile. The refreshed decisions.template.json already preserves prior decisions and additional fields; copy it over decisions.json and edit the pending entries. Assess references from their routing conditions. Excluding a parent accounts for its dependent references; shared references remain pending while an applicable parent needs them. Missing required references block preparation.
Complete decisions compile rules.json, context-pack.md, a package-oriented plan.json, per-job contracts and jobs.json. Do not write preparation scripts, manually enumerate partitions, or author a walkthrough before dispatch. Adjust generated groups only for real semantic boundaries. Sweeps default to none; use orchestration.md — Sweeps only for a concrete cross-cohort hypothesis. --spec adds the conformance sweep automatically.
2. Review
Use native agents by default, at most six concurrent. A worker receives only its rendered prompt: “Read <prompt> and complete its assigned review; submit its draft with the local command in that prompt.” Start without inherited conversation where supported (fork_turns=none). The worker does not load this skill, global jobs/manifest files or orchestrator references. Its contract includes the necessary context, rules, hunk IDs, evidence grammar and output shape.
Workers fill the provided draft template with explicit assessments, then run:
python3 <skill-dir>/scripts/run_jobs.py --out <out> --job <label> --submit
This validates only that job and expands IDs into canonical output. Missing or invalid fields produce complete local diagnostics; repair the existing draft. No blanket clear/compliant, global validation in workers, or new investigation merely to reconstruct JSON.
The orchestrator alone runs the glob
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- assets/PROMPT.md
- assets/REVIEW_UI.html
- assets/findings.schema.json
- references/context-pack.md
- references/orchestration.md
- references/output-contracts.md
- references/publish-github.md
- references/state-and-learnings.md
- references/subagent-runtimes.md
- references/taxonomy.md
- scripts/_common.py
- scripts/_job_output.py
- scripts/_knowledge_sources.py
- scripts/_planning.py
- scripts/build_jobs.py
- scripts/build_knowledge.py
- scripts/build_manifest.py
- scripts/merge_findings.py
- scripts/prepare_review.py
- scripts/render_html.py
- scripts/render_review.py
- scripts/run_jobs.py
FAQ
Что делает скилл deep-review?
Review branch diffs, working trees, or PRs in depth with defect, polish and cross-contract coverage. Includes incremental and spec-conformance reviews; excludes fixes, spec-document reviews and quick single-file feedback.
Как установить скилл deep-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл deep-review запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…