ybbms777/compound-engineering/ce-review

Claude Code and agent skill by ybbms777/compound-engineering

Trust tier 2
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Structured code review using tiered persona agents, confidence-gated findings, and a merge/dedup pipeline. Use when reviewing code changes before creating a PR.

Install

npx vskill@latest install ybbms777/compound-engineering/ce-review

SKILL.md

The same SKILL.md was published earlier as ybbms777/compound-engineering/ce-review.

Code Review

Reviews code changes using dynamically selected reviewer personas. Spawns parallel sub-agents that return structured JSON, then merges and deduplicates findings into a single report.

When to Use

  • Before creating a PR
  • After completing a task during iterative implementation
  • When feedback is needed on any code changes
  • Can be invoked standalone
  • Can run as a read-only or autofix review step inside larger workflows

Argument Parsing

Parse $ARGUMENTS for the following optional tokens. Strip each recognized token before interpreting the remainder as the PR number, GitHub URL, or branch name.

TokenExampleEffect
mode:autofixmode:autofixSelect autofix mode (see Mode Detection below)
mode:report-onlymode:report-onlySelect report-only mode
mode:headlessmode:headlessSelect headless mode for programmatic callers (see Mode Detection below)
base:<sha-or-ref>base:abc1234 or base:origin/mainSkip scope detection — use this as the diff base directly
plan:<path>plan:docs/plans/2026-03-25-001-feat-foo-plan.mdLoad this plan for requirements verification

All tokens are optional. Each one present means one less thing to infer. When absent, fall back to existing behavior for that stage.

Conflicting mode flags: If multiple mode tokens appear in arguments, stop and do not dispatch agents. If mode:headless is one of the conflicting tokens, emit the headless error envelope: Review failed (headless mode). Reason: conflicting mode flags — <mode_a> and <mode_b> cannot be combined. Otherwise emit the generic form: Review failed. Reason: conflicting mode flags — <mode_a> and <mode_b> cannot be combined.

Mode Detection

ModeWhenBehavior
Interactive (default)No mode token presentReview, apply safe_auto fixes automatically, present findings, ask for policy decisions on gated/manual findings, and optionally continue into fix/push/PR next steps
Autofixmode:autofix in argumentsNo user interaction. Review, apply only policy-allowed safe_auto fixes, re-review in bounded rounds, write a run artifact, and emit residual downstream work when needed
Report-onlymode:report-only in argumentsStrictly read-only. Review and report only, then stop with no edits, artifacts, todos, commits, pushes, or PR actions
Headlessmode:headless in argumentsProgrammatic mode for skill-to-skill invocation. Apply safe_auto fixes silently (single pass), return all other findings as structured text output, write run artifacts, skip todos, and return "Review complete" signal. No interactive prompts.
Autofix mode rules
  • Skip all user questions. Never pause for approval or clarification once scope has been established.
  • Apply only `safe_auto -> review-fixer` findings. Leave gated_auto, manual, human, and release work unresolved.
  • Write a run artifact under .context/compound-engineering/ce-review/<run-id>/ summarizing findings, applied fixes, residual actionable work, and advisory outputs.
  • Create durable todo files only for unresolved actionable findings whose final owner is downstream-resolver. Load the todo-create skill for the canonical directory path and naming convention.
  • Never commit, push, or create a PR from autofix mode. Parent workflows own those decisions.
Report-only mode rules
  • Skip all user questions. Infer intent conservatively if the diff metadata is thin.
  • Never edit files or externalize work. Do not write .context/compound-engineering/ce-review/<run-id>/, do not create todo files, and do not commit, push, or create a PR.
  • Safe for parallel read-only verification. mode:report-only is the only mode that is safe to run concurrently with browser testing on the same checkout.
  • Do not switch the shared checkout. If the caller passes an explicit PR or branch target, mode:report-only must run in an isolated checkout/worktree or stop instead of running gh pr checkout / git checkout.
  • Do not overlap mutating review with browser testing on the same checkout. If a future orchestrator wants fixes, run the mutating review phase after browser testing or in an isolated checkout/worktree.
Headless mode rules
  • Skip all user questions. Never use the platform question tool (AskUserQuestion in Claude Code, request_user_input in Codex, ask_user in Gemini) or other interactive prompts. Infer intent conservatively if the diff metadata is thin.
  • Require a determinable diff scope. If headless mode cannot determine a diff scope (no branch, PR, or base: ref determinable without user interaction), emit Review failed (headless mode). Reason: no diff scope detected. Re-invoke with a branch name, PR number, or base:<ref>. and stop without dispatching agents.
  • Apply only `safe_auto -> review-fixer` findings in a single pass. No bounded re-review rounds. Leave gated_auto, manual, human, and release work unresolved and return them in the structured output.
  • Return all non-auto findings as structured text output. Use the headless output envelope format (see Stage 6 below) preserving severity, autofix_class, owner, requires_verification, confidence, evidence[], and pre_existing per finding.
  • Write a run artifact under .context/compound-engineering/ce-review/<run-id>/ summarizing findings, applied fixes, and advisory outputs. Include the artifact path in the structured output.
  • Do not create todo files. The caller receives structured findings and routes downstream work itself.
  • Do not switch the shared checkout. If the caller passes an explicit PR or branch target, mode:headless must run in an isolated checkout/worktree or stop instead of running gh pr checkout / git checkout. When stopping, emit Review failed (headless mode). Reason: cannot switch shared checkout. Re-invoke with base:<ref> to review the current checkout, or run from an isolated worktree.
  • Not safe for concurrent use on a shared checkout. Unlike mode:report-only, headless mutates files (applies safe_auto fixes). Callers must not run headless concurrently with other mutating operations on the same checkout.
  • Never commit, push, or create a PR from headless mode. The caller owns those decisions.
  • End with "Review complete" as the terminal signal so callers can detect completion. If all reviewers fail or time out, emit Code review degraded (headless mode). Reason: 0 of N reviewers returned results. followed by "Review complete".

Severity Scale

All reviewers use P0-P3:

LevelMeaningAction
P0Critical breakage, exploitable vulnerability, data loss/corruptionMust fix before merge
P1High-impact defect likely hit in normal usage, breaking contractShould fix
P2Moderate issue with meaningful downside (edge case, perf regression, maintainability trap)Fix if straightforward
P3Low-impact, narrow scope, minor improvementUser's discretion

Action Routing

Severity answers urgency. Routing answers who acts next and whether this skill may mutate the checkout.

autofix_classDefault ownerMeaning
safe_autoreview-fixerLocal, deterministic fix suitable for the in-skill fixer when the current mode allows mutation
gated_autodownstream-resolver or humanConcrete fix exists, but it changes behavior, contracts, permissions, or another sensitive boundary that should not be auto-applied by default
manualdownstream-resolver or humanActionable work that should be handed off rather than fixed in-skill
advisoryhuman or releaseReport-only output such as learnings, rollout notes, or residual risk

Routing rules:

  • Synthesis owns the final route. Persona-provided routing metadata is input, not the last word.
  • Choose the more conservative route on disagreement. A merged finding may move from safe_auto to gated_auto or manual, but never the other way without stronger evidence.
  • Only `safe_auto -> review-fixer` enters the in-skill fixer queue automatically.
  • `requires_verification: true` means a fix is not complete without targeted tests, a focused re-review, or operational validation.

Reviewers

17 reviewer personas in layered conditionals, plus CE-specific agents. See the persona catalog included below for the full catalog.

Always-on (every review):

AgentFocus
compound-engineering:review:correctness-reviewerLogic errors, edge cases, state bugs, error propagation
compound-engineering:review:testing-reviewerCoverage gaps, weak assertions, brittle tests
compound-engineering:review:maintainability-reviewerCoupling, complexity, naming, dead code, abstraction debt
compound-engineering:review:project-standards-reviewerCLAUDE.md and AGENTS.md compliance -- frontmatter, references, naming, portability
compound-engineering:review:agent-native-reviewerVerify new features are agent-accessible
compound-engineering:research:learnings-researcherSearch docs/solutions/ for past issues related to this PR

Cross-cutting conditional (selected per diff):

AgentSelect when diff touches...
compound-engineering:review:security-reviewerAuth, public endpoints, user input, permissions
compound-engineering:review:performance-reviewerDB queries, data transforms, caching, async
compound-engineering:review:api-contract-reviewerRoutes, serializers, type signatures, versioning
compound-engineering:review:data-migrations-reviewerMigrations, schema changes, backfills
compound-engineering:review:reliability-reviewerError handling, retries, timeouts, background jobs
compound-engineering:review:adversarial-reviewerDiff >=50 changed non-test/non-generated/non-lockfile lines, or auth, payments, data mutations, external APIs
compound-engineering:review:cli-readiness-reviewerCLI command definitions, argument parsing, CLI framework usage, command handler implementations
compound-engineering:review:previous-comments-reviewerReviewing a PR that has existing review comments or threads

Stack-specific conditional (selected per diff):

AgentSelect when diff touches...
compound-engineering:review:dhh-rails-reviewerRails architecture, service objects, session/auth choices, or Hotwire-vs-SPA boundaries
compound-engineering:review:kieran-rails-reviewerRails application code where conventions, naming, and maintainability are in play
compound-engineering:review:kieran-python-reviewerPython modules, endpoints, scripts, or services
compound-engineering:review:kieran-typescript-reviewerTypeScript components, services, hooks, utilities, or shared types
compound-engineering:review:julik-frontend-races-reviewerStimulus/Turbo controllers, DOM events, timers, animations, or async UI flows

CE conditional (migration-specific):

AgentSelect when diff includes migration files
compound-engineering:review:schema-drift-detectorCross-references schema.rb against included migrations
compound-engineering:review:deployment-verification-agentProduces deployment checklist with SQL verification queries

Review Scope

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
3

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 30 Apr 2026, 7 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ybbms777/compound-engineering/ce-review/badge)](https://verified-skill.com/skills/ybbms777/compound-engineering/ce-review)

Something wrong with this skill or its page? Tell us.