home / skills / athola / claude-night-market / unified-review

This skill orchestrates multiple review types by automatically selecting and executing integrated domain reviews for comprehensive code quality.

npx playbooks add skill athola/claude-night-market --skill unified-review

Review the files below or copy the command above to add this skill to your agents.

Files (4)
SKILL.md
7.0 KB
---
name: unified-review
description: 'Use this skill when orchestrating multiple review types. Use when general
  review needed without knowing which specific skill applies, full multi-domain review
  desired, integrated reporting needed. Do not use when specific review type known
  - use bug-review, test-review, etc. DO NOT use when: architecture-only focus - use
  architecture-review.'
category: orchestration
tags:
- review
- orchestration
- code-quality
- analysis
- multi-domain
tools:
- skill-selector
- context-analyzer
- report-integrator
usage_patterns:
- auto-detect-review
- full-review
- focused-review
complexity: intermediate
estimated_tokens: 400
progressive_loading: true
dependencies:
- pensive:shared
- imbue:evidence-logging
- imbue:structured-output
orchestrates:
- pensive:rust-review
- pensive:api-review
- pensive:architecture-review
- pensive:bug-review
- pensive:test-review
- pensive:makefile-review
- pensive:math-review
---
## Table of Contents

- [Quick Start](#quick-start)
- [When to Use](#when-to-use)
- [Review Skill Selection Matrix](#review-skill-selection-matrix)
- [Workflow](#workflow)
- [1. Analyze Repository Context](#1-analyze-repository-context)
- [2. Select Review Skills](#2-select-review-skills)
- [3. Execute Reviews](#3-execute-reviews)
- [4. Integrate Findings](#4-integrate-findings)
- [Review Modes](#review-modes)
- [Auto-Detect (default)](#auto-detect-(default))
- [Focused Mode](#focused-mode)
- [Full Review Mode](#full-review-mode)
- [Quality Gates](#quality-gates)
- [Deliverables](#deliverables)
- [Executive Summary](#executive-summary)
- [Domain-Specific Reports](#domain-specific-reports)
- [Integrated Action Plan](#integrated-action-plan)
- [Modular Architecture](#modular-architecture)
- [Exit Criteria](#exit-criteria)


# Unified Review Orchestration

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

## Quick Start

```bash
# 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

- Starting a full code review
- Reviewing changes across multiple domains
- Need intelligent selection of review skills
- Want integrated reporting from multiple review types
- Before merging major feature branches

## When NOT To Use

- Specific review type known
  - use bug-review
- Test-review
- Architecture-only focus - use
  architecture-review
- Specific review type known
  - use bug-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, architecture-review | Build complexity |
| 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 |

## Workflow

### 1. Analyze Repository Context
- Detect primary languages from extensions and manifests
- Analyze git status and diffs for change scope
- Identify project structure (monorepo, microservices, library)
- Detect build systems, testing frameworks, documentation

### 2. Select Review Skills
```python
# 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_skill("makefile-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
- Run selected skills concurrently
- Share context between reviews
- Maintain consistent evidence logging
- Track progress via TodoWrite

### 4. Integrate Findings
- Consolidate findings across domains
- Identify cross-domain patterns
- Prioritize by impact and effort
- Generate unified action plan

## Review Modes

### Auto-Detect (default)
Automatically selects skills based on codebase analysis.

### Focused Mode
Run specific review domains:
- `/full-review api` → api-review only
- `/full-review architecture` → architecture-review only
- `/full-review bugs` → bug-review only
- `/full-review tests` → test-review only

### Full Review Mode
Run all applicable review skills:
- `/full-review all` → Execute all detected 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
- Overall codebase health assessment
- Critical issues requiring immediate attention
- Review frequency recommendations

### Domain-Specific Reports
- API surface analysis and consistency
- Architecture alignment with ADRs
- Test coverage gaps and improvements
- Bug analysis and security findings
- Performance and maintainability recommendations

### Integrated Action Plan
- Prioritized remediation tasks
- Cross-domain dependencies
- Assigned owners and target dates
- Follow-up review schedule

## Modular Architecture

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

- **`pensive:shared`**: Common workflow, output templates, quality checklists
- **Each skill has `modules/`**: Domain-specific details loaded on demand
- **Cross-plugin deps**: `imbue:evidence-logging`, `imbue:diff-analysis/modules/risk-assessment-framework`

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

## Exit Criteria

- All selected review skills executed
- Findings consolidated and prioritized
- Action plan created with ownership
- Evidence logged per structured output format
## Supporting Modules

- [Review workflow core](modules/review-workflow-core.md) - standard 5-step workflow pattern for all pensive reviews
- [Output format templates](modules/output-format-templates.md) - finding entry, severity, action item templates
- [Quality checklist patterns](modules/quality-checklist-patterns.md) - pre-review, analysis, evidence, deliverable checklists

## 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 `TodoWrite` logs are accessible and that evidence files were correctly written by the individual skills.

Overview

This skill orchestrates multiple review types to produce a consolidated, multi-domain code review. It auto-detects relevant review domains, runs appropriate reviewer modules concurrently, and produces integrated reports and an actionable remediation plan. Use it when you need a general, comprehensive review without selecting a single-specialty skill.

How this skill works

The skill analyzes repository context (file types, manifests, diffs, ADRs, build tooling) to schedule domain-specific review skills such as bug-review, api-review, test-review, and architecture-review. Selected skills execute in parallel with shared context and evidence logging; results are consolidated into an executive summary, domain-specific reports, and a prioritized action plan. Modes include auto-detect, focused (domain-only), and full (all applicable skills).

When to use it

  • Starting a full code review when the scope spans multiple domains
  • You want intelligent selection of review skills based on repository analysis
  • Need integrated reporting that consolidates findings from several review types
  • Before merging major feature branches affecting API, tests, or architecture
  • When you don’t know which single specialized review is best

Best practices

  • Run in Auto-Detect by default; switch to Focused mode for targeted checks
  • Ensure tests run (pytest -v or equivalent) before review to surface runtime issues
  • Provide a git diff or branch context so the skill detects change scope accurately
  • Verify TodoWrite/evidence logging is accessible so findings are reproducible
  • Prioritize fixes by impact and effort in the integrated action plan

Example use cases

  • A feature branch touches API routes, business logic, and tests — run a full multi-domain review
  • A monorepo change affects multiple services; use auto-detect to schedule per-language reviews
  • Pre-merge quality gate to produce an executive summary and remediation tasks for stakeholders
  • Periodic health audit that checks API consistency, test coverage gaps, and architecture drift
  • When a security sweep is needed alongside bug and performance checks to create a unified report

FAQ

What if the auto-detect picks the wrong skills?

Use Focused mode to explicitly request a domain (e.g., /full-review api or /full-review rust) so only the desired skills run.

How are findings prioritized?

Findings are consolidated and ranked by impact and effort, producing a prioritized action plan with owners and target dates.