← ClaudeAtlas

layered-reviewlisted

Review the current local diff in layers - a generic code-review pass plus the domain reviewer subagents whose paths the diff touches - then consolidate everything into one deduplicated, severity-grouped report. Never commits; reports only. Use before opening a pull request or when the user asks for a thorough local review. Triggers on "layered review", "review my local diff", "run the review agents", "revisao local", "revisa meu diff local", "/layered-review".
lucas-lima-s/claude-skill-layered-review · ★ 0 · Code & Development · score 70
Install: claude install-skill lucas-lima-s/claude-skill-layered-review
# Layered review Review the current local diff in layers: a generic pass, then every domain reviewer subagent whose configured paths the diff actually touches, then one consolidated report that deduplicates overlapping findings and groups everything by severity. ## Preconditions This skill needs two things: 1. A git repository - the diff comes from `git`, so there must be a repo to diff against. 2. A `review.toml` in the repository root - copy `review.example.toml` and adjust the `base_ref`, the `[[agents]]` entries, and the dedup thresholds for this project. If `review.toml` has no `[[agents]]` entries (or the file is missing and no agents can be resolved), the generic layer still runs alone, and the final report says explicitly that no domain agents were configured - it never pretends a layer ran when it did not. ## Step 0: resolve scope Run the scope resolver to find out what changed and which agents apply: ``` python scripts/scope.py --config review.toml --json ``` This unions the diff against `base_ref` with the worktree and staged changes (per `include_worktree` / `include_staged`), matches every changed file against each configured agent's `match` globs, and returns which agents fire (with the exact files that triggered them) and which are skipped (with a reason). If `base_ref` cannot be resolved - a common case on a fresh branch with no upstream yet - it degrades to worktree + staged changes only and says so on stderr; it still exits `0`. ## Step 1: