Unified review

From athola/claude-night-market · View interactive version

Unified review is an AI agent skill from the GitHub repository athola/claude-night-market. Orchestrates multi-domain review (code, arch, tests, security) in a single pass. Use when thorough pre-release review is needed.

How to use this skill

Skill file

Unified Review Orchestration

Intelligently selects and executes appropriate review skills based on codebase analysis and context.

Quick Start

# Auto-detect and run appropriate reviews
/full-review

# Focus on specific areas
/full-review api          # API surface review
/full-review architecture # Architecture review
/full-review bugs         # Bug hunting
/full-review tests        # Test suite review
/full-review all          # Run all applicable skills

Verification: Run pytest -v to verify tests pass.

When To Use

When NOT To Use

architecture-review

Review Skill Selection Matrix

| Codebase Pattern | Review Skills | Triggers |

|-----------------|---------------|----------|

| Rust files (*.rs, Cargo.toml) | rust-review, bug-review, api-review | Rust project detected |

| API changes (openapi.yaml, routes/) | api-review, architecture-review | Public API surfaces |

| Test files (test_*.py, *_test.go) | test-review, bug-review | Test infrastructure |

| Makefile/build system | makefile-review module, architecture-review | Build complexity |

| Shell scripts (*.sh, git hooks) | shell-review module | Shell changes |

| Mathematical algorithms | math-review, bug-review | Numerical computation |

| Architecture docs/ADRs | architecture-review, api-review | System design |

| General code quality | bug-review, test-review | Default review |

| Post-implementation audit | imbue:justify | High add/delete ratio, test changes, new abstractions |

Workflow

1. Analyze Repository Context

2. Select Review Skills

# Detection logic
if has_rust_files():
    schedule_skill("rust-review")
if has_api_changes():
    schedule_skill("api-review")
if has_test_files():
    schedule_skill("test-review")
if has_makefiles():
    schedule_module("makefile-review")
if has_shell_scripts():
    schedule_module("shell-review")
if has_math_code():
    schedule_skill("math-review")
if has_architecture_changes():
    schedule_skill("architecture-review")
# Default
schedule_skill("bug-review")

Verification: Run pytest -v to verify tests pass.

3. Execute Reviews

Dispatch selected skills concurrently via the Agent tool.

Use this mapping to resolve skill names to agent types:

| Skill Name | Agent Type | Notes |

|---|---|---|

| bug-review | pensive:code-reviewer | Covers bugs, API, tests |

| api-review | pensive:code-reviewer | Same agent, API focus |

| test-review | pensive:code-reviewer | Same agent, test focus |

| architecture-review | pensive:architecture-reviewer | ADR compliance |

| rust-review | pensive:rust-auditor | Rust-specific |

| code-refinement | pensive:code-refiner | Duplication, quality |

| math-review | general-purpose | Prompt: invoke Skill(pensive:math-review) |

| makefile-review | general-purpose | Prompt: follow this skill's modules/makefile-review.md |

| shell-review | general-purpose | Prompt: follow this skill's modules/shell-review.md |

Sub-agent isolation (required). One lens must not color how the

next is read. Two ways to get that, and the second only runs when the

user asks for it:

| Path | How isolation holds |

|------|---------------------|

| Agent tool | Dispatch ALL selected agents in a SINGLE parallel call, and read no output until every agent has returned. Reading the first result anchors synthesis toward it: each later result gets judged against the first rather than independently. Collect all, then synthesize once |

| /pensive:unified-review workflow (workflows/unified-review.js) | The script holds the results. It is not a reasoning entity, so it cannot be anchored by reading one stage before another, and findings pass between stages without entering anyone's context. Verification also starts per dimension instead of waiting for the slowest lens |

Prefer the workflow when the dimension list is known before the work

and each finding should face an adversarial check. Prefer the Agent

tool when the roster has to adapt to what the first lens finds, or when

no workflow was requested: a workflow never starts unasked.

Its subagents take the session's permission mode, so in an accept-edits

or auto session their edits land unreviewed. The shipped script scopes

its prompts to reading. And it has

no filesystem, so what it returns is a claim that survived refutation,

not proof-of-work evidence. Reproduce before acting on a finding.

Lens votes share one model and their errors correlate. Three standing

votes are not three independent confirmations: ten LLM judges carried

about 3.5 judges of independent information in arXiv 2609.22512. A

command that reproduces the defect is the independent evidence.

A reviewer that cannot assess its dimension returns declined, and

the workflow reports that dimension as unreviewed.

Rules:

4. Integrate Findings

Deferred capture for backlog findings:

Findings that are triaged to the backlog (out-of-scope for

the current review or deferred by the team) should be

preserved so they are not lost between review cycles.

For each finding assigned to the backlog, run:

python3 "${CLAUDE_PLUGIN_ROOT}/scripts/deferred_capture.py" \
  --title "<finding title>" \
  --source review \
  --context "Review dimension: <dimension>. <finding description>"

The <dimension> value should match the review skill that

surfaced the finding (e.g. bug-review, api-review,

architecture-review).

This runs automatically after the action plan is finalised,

without prompting the user.

Review Modes

Auto-Detect (default)

Automatically selects skills based on codebase analysis.

Focused Mode

Run specific review domains:

/makefile-review)

Full Review Mode

Run all applicable review skills:

Quality Gates

Each review must:

  1. Establish proper context
  2. Execute all selected skills successfully
  3. Document findings with evidence
  4. Prioritize recommendations by impact
  5. Create action plan with owners

Deliverables

Executive Summary

Domain-Specific Reports

Integrated Action Plan

Modular Architecture

All review skills use a hub-and-spoke architecture with progressive loading:

This reduces token usage by 50-70% for focused reviews while maintaining full capabilities.

Exit Criteria

Supporting Modules

exit-code, portability, safety and structure modules

dependency-graph, deduplication, portability, best-practice and dogfood

modules

Troubleshooting

Common Issues

If the auto-detection fails to identify the correct review skills, explicitly

specify the mode (e.g., /full-review rust instead of just /full-review). If

integration fails, check that the progress items were recorded and that evidence

files were correctly written by the individual skills.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.