AgentStack
SKILL verified MIT Self-run

Review

skill-trevorbyrum-claude-skills-suite-review · by trevorbyrum

Multi-lens project review. Default tier runs 12 Sonnet lenses on the codebase in parallel. Optional tier adds UI / browser / breaking-change. Invoke with /review for a full pass, or "/review security" for a single lens.

No reviews yet
0 installs
4 views
0.0% view→install

Install

$ agentstack add skill-trevorbyrum-claude-skills-suite-review

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Review? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Review

> YOUR ROLE: ORCHESTRATOR ONLY. You dispatch Sonnet subagents; you do NOT read code and produce review findings inline. The lenses derive their value from being independent Sonnet workers running in parallel — if you do the review in the main thread, all of that collapses: lenses lose independence, context blows up, and the synthesis loses its multi-perspective signal. > > The ONLY work the main thread does is: Phase 1.5 SAST pre-scan (run scanners directly), Phase 3 dispatch and wait, Phase 5 synthesis from returned findings. If you catch yourself reading source files for the review itself in Phase 3, stop and dispatch the Agent.

Multi-lens code + plan review. Sonnet subagents run review lenses in parallel; the main thread aggregates findings into a synthesis at artifacts/reviews/review-synthesis-N.md.

Two paths share the orchestration:

  • Full — 12 default-tier lenses in parallel; user can opt in to 3 optional-tier lenses
  • Single lens — one named lens (/review security, /review tests, etc.)

Inputs

| Input | Source | Required | |---|---|---| | project-context.md | Project root | Yes | | project-plan.md | Project root | Recommended (for drift / completeness lenses) | | features.md | Project root | Recommended | | The full codebase | Project root | Yes |

Outputs

  • Per-lens findings: db_upsert '' 'findings' 'lens' "$CONTENT"
  • Synthesis: artifacts/reviews/review-synthesis-N.md — never overwrites a prior synthesis; N is the next sequential integer

Instructions

Phase 0: Detect mode

| Trigger | Mode | |---|---| | /review (no args) | full default-tier | | /review full or "full review" | full default-tier + ask about optional tier | | /review | single lens (e.g., /review security, /review tests) | | /review --include browser style | not supported (no flags) — user picks via AskUserQuestion | | "review the auth code" or area-scoped | single lens that fits OR ask via AskUserQuestion which lens |

If ambiguous → AskUserQuestion: "Full pass (default 12 lenses), one lens, or full + optional tier (adds UI / browser / breaking-change)?"

Read the matching reference:

  • Full or full+optional → references/default-tier.md (and optional-tier.md if applicable)
  • Single lens → references/default-tier.md or references/optional-tier.md (whichever lists the named lens)

All lenses share patterns documented in references/review-lens-framework.md.

Phase 1: Verify inputs

  1. Confirm project-context.md exists. If missing, stop and tell the user to run /init first.
  2. Create artifacts/reviews/ if it doesn't exist.
  3. Check fresh-findings cache (per framework Phase A): for each lens about to run, check db_age_hours '' 'findings' 'lens'. If /*.md` — pass these paths to the subagent and instruct it to read them on demand
  • agents/review-lens.md template (filled with lens name, scope, finding format)
  • $SAST_SUMMARY from Phase 1.5 (machine-verified findings to cross-reference)
  • Project root + paths to inputs
  1. No hard concurrency limit (Sonnet subagents are unbounded). Single-lens mode spawns one.
  2. Subagents return findings as response text. The MAIN thread writes them to DB:

``bash db_upsert '' 'findings' 'lens' "$AGENT_RESPONSE" ` Subagents do NOT have access to references/db.sh`. Per cross-cutting anti-pattern A2.

Phase 4: Wait for completion

Confirm all subagents returned. If any failed (timeout, crash, empty), note in synthesis but don't block.

Phase 5: Synthesis

Read findings from DB. Build a brand-new file artifacts/reviews/review-synthesis-.md where N is the next integer (never overwrite a prior synthesis):

N=$(ls artifacts/reviews/review-synthesis-*.md 2>/dev/null | sed -E 's/.*-([0-9]+)\.md/\1/' | sort -n | tail -1)
NEXT=$(( ${N:-0} + 1 ))

Structure:

# Review Synthesis 

Generated: 
Project: 
Scope: 

## Summary
- Total findings: N (after dedup)
- By severity: CRITICAL: X, HIGH: Y, MEDIUM: Z, LOW: W
- SAST findings included: N (gitleaks/linters)
- Lenses run: 
- Lenses skipped (cached fresh): 
- Lenses failed: 

## SAST Findings
[Pulled from Phase 1.5 $SAST_SUMMARY. Machine-verified secret scans + linter output.]

## Cross-Lens Patterns
[Patterns spanning >1 lens — highest priority]

## HIGH Confidence Findings
[Flagged by multiple lenses OR by SAST + a lens]

## MEDIUM Confidence Findings
[Flagged by one lens with strong evidence]

## Notable LOW Confidence Findings
[Single-lens findings at CRITICAL/HIGH severity — may be false positives but too important to drop]

## Per-Lens Summary
[One-paragraph per lens: finding count + headline issue]

## Recommendations
[Prioritized action list: fix first, fix later, ignore.]

Phase 6: Present + handoff

Show the user:

  • Total finding count + severity distribution
  • Top 3 cross-lens patterns
  • Lenses that found zero issues (suspicious — usually means prompt was too narrow or model "all-clear" hallucination)

Offer:

> "Review complete. {N} findings (CRITICAL: X, HIGH: Y). Run /execute fix to apply the prioritized fixes, or /save to snapshot and continue."

References (on-demand)

  • references/review-lens-framework.md — shared output pattern, fresh-findings check, severity tiers
  • references/default-tier.md — 12 default lenses with per-lens checks + finding categories
  • references/optional-tier.md — 3 optional lenses (UI, browser, breaking-change)

Agent prompts (on-demand)

  • agents/review-lens.md — Sonnet subagent prompt template (filled per lens)

Examples

User: /review
→ Phase 0: full default-tier. Phase 1.5 runs gitleaks + linters.
  Phase 3 spawns 12 Sonnet subagents in parallel. Phase 4 waits. Phase 5
  writes review-synthesis-3.md. Phase 6 presents top items.
User: /review security
→ Single lens mode. Phase 3 spawns one Sonnet subagent for security-review.
  Synthesis still uses the standard template — just one lens populated.
User: full review + check the UI too
→ Full + optional UI. Phase 3 spawns 13 subagents (12 default + ui).
User: review the auth code
→ Phase 0 ambiguous, AskUserQuestion → user picks security + tests.
  Two-lens fan-out scoped to auth/ directory.

Before completing, read and follow ../../references/cross-cutting-rules.md.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.