agentleFS
dgrissen2dgrissen2/persona-review-kit/skills/claude-plan-review/SKILL.md

claude-plan-review

Skill0 starsChanged 3 months agoMITView on GitHub

Run an independent Claude Opus 5 plan review with tools enabled. Use for milestone roadmaps, implementation plans, architecture/design docs, specs, or planning artifacts before code is written; not for ordinary code diff review.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. tykisgod/quick-question★ 12same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository6 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this for plans, not code diffs.

    line 14
  2. Very specific:

    If Claude times out or the wrapper cannot complete, report TOOLING FAILURE with the artifact path.

    line 49
  3. Distinctive:

    Run with persona aliases or persona file paths:

    line 66
  4. Very specific:

    Default permission mode: auto

    line 95
  5. Very specific:

    Default heartbeat: 20 seconds

    line 98
  6. Very specific:

    Default timeout: dynamic — soft budget auto-estimated from prompt + document sizes and effort, deadline auto-extends while streaming, stall …

    line 99

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Claude Plan Review

Independent plan review using Claude Code, pinned to claude-opus-5 with --effort xhigh, --tools default, and --permission-mode auto.

Focus

Use this for plans, not code diffs. Claude should look for:

  • spec fidelity gaps: required behavior missing, invented scope, vague acceptance criteria
  • internal contradictions: thresholds, formulas, naming, ranges, and definitions that disagree
  • dependency mistakes: milestones ordered incorrectly or pretending to be parallel
  • data contract gaps: undefined fields, schemas, enums, units, file paths, return shapes
  • feasibility risks: estimates, rollout assumptions, operational constraints
  • validation gaps: tests that do not cover the risk-bearing behavior

Workflow

  1. Identify the plan file and any useful context files, such as the spec, upstream model, ADR, schema, or previous roadmap.
  2. Run:
python3 ~/.codex/skills/claude-plan-review/scripts/claude_plan_review.py \
  <plan_file> \
  [context_file ...]
  1. Present Claude's findings directly. Do not include Codex's prior reasoning or other reviewer notes in the prompt unless the user explicitly asks for synthesis.

The runner streams Claude progress by default, emits heartbeat updates to stderr, and writes durable artifacts under ~/.cache/agent-review-runs/. Each Claude attempt records prompt.txt, stdout.stream, stderr.stream, events.jsonl, result.md, and timeout diagnostics. On SIGINT/SIGTERM/timeout, the wrapper terminates only its own Claude process group.

Timeouts are dynamic: the soft timeout is auto-estimated upfront from the prompt plus plan/context document sizes and effort, then the deadline keeps extending while Claude is still streaming output, bounded by a stall watchdog and a hard cap. Heartbeats, partial-output progress, and deadline-extension notices on stderr are the liveness signal — do not impose a shorter outer shell timeout or kill the process on brief silence; the wrapper always exits on its own.

If Claude times out or the wrapper cannot complete, report TOOLING FAILURE with the artifact path. A tooling failure is not a PASS, CONDITIONAL PASS, or FAIL plan verdict and must not be treated as plan approval.

Personas

Personas are optional overlays resolved from the shared persona registry, not from a hardcoded enum. Use them when a plan needs a specific lens such as architect, cto, red-team, or a direct persona file.

List available personas:

python3 ~/.codex/skills/claude-plan-review/scripts/claude_plan_review.py \
  --list-personas

Run with persona aliases or persona file paths:

python3 ~/.codex/skills/claude-plan-review/scripts/claude_plan_review.py \
  <plan_file> \
  [context_file ...] \
  --personas architect,red-team,/path/to/custom_persona.md

Canonical personas live at ~/.config/persona-review-kit/personas/, and the shared resolver lives at ~/.codex/skills/persona-registry/scripts/persona_registry.py.

Output Contract

The script asks Claude to return:

## Claude Plan Review — Verdict: PASS / CONDITIONAL PASS / FAIL (N findings)

plus a findings table and high-risk open questions.

Notes

  • Default model: claude-opus-5
  • Default effort: xhigh
  • Allowed effort values: low, medium, high, max, xhigh
  • Default tools: default
  • Default permission mode: auto
  • Allowed permission modes: auto, default, dontAsk, plan; edit-accepting and permission-bypass modes are intentionally rejected for review runs over untrusted plans/context
  • Exit code 0 means the wrapper completed and emitted a plan review; callers must parse the PASS / CONDITIONAL PASS / FAIL verdict from stdout. Exit code 1 means wrapper/tooling failure or invalid invocation.
  • Default heartbeat: 20 seconds
  • Default timeout: dynamic — soft budget auto-estimated from prompt + document sizes and effort, deadline auto-extends while streaming, stall watchdog 300s (CLAUDE_REVIEW_STALL_SEC), hard cap 3600s (CLAUDE_REVIEW_MAX_TIMEOUT_SEC). Pass --timeout-sec N (or CLAUDE_PLAN_REVIEW_TIMEOUT_SEC) to pin the soft budget instead.
  • Troubleshooting flags: --no-stream, --heartbeat-sec N, --safe-mode, --disable-slash-commands
  • Override with CLAUDE_PLAN_REVIEW_MODEL, CLAUDE_PLAN_REVIEW_EFFORT, CLAUDE_PLAN_REVIEW_TOOLS, CLAUDE_PLAN_REVIEW_PERMISSION_MODE, CLAUDE_PLAN_REVIEW_TIMEOUT_SEC, CLAUDE_PLAN_REVIEW_HEARTBEAT_SEC, or the shared runner watchdog vars CLAUDE_REVIEW_STALL_SEC / CLAUDE_REVIEW_MAX_TIMEOUT_SEC.

Intent and focus (automatic)

Derive these from the user's request — they should not need to type flags. From how they phrase the ask, infer intent (what the work is trying to do) and focus (what to weight) and pass them as --intent / --focus. For example, "review the auth refactor on this branch, focus on whether the logic is right and skip style" -> --intent "auth refactor" --focus "logic correctness, skip style".

The text is appended to the prompt as author framing, never as another reviewer's findings (the review stays independent). A guardrail still surfaces every CRITICAL/HIGH finding even when it falls outside the focus.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.