agentleFS
ryanportfolioryanportfolio/Harness-Firmware/.agents/skills/opus-fullreview/SKILL.md

opus-fullreview

Skill1 starsChanged 2 months agoMITView on GitHub

Full multi-reviewer Claude review from Codex: Claude CLI runs impartial-review as Manager with fresh Opus sub-reviewers, then Codex verifies each finding. Use for $opus-fullreview or a full Claude/Opus review with sub-reviewers.

  • Reads credentials

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run claude --version, claude auth status, and claude -p --help.

    line 14
  2. Very specific:

    Stop if subscription routing cannot be proven.

    line 21
  3. Very specific:

    Run it in the background and poll its process and log with bounded waits.

    line 51

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Opus full review

Run one Claude CLI process in which Claude runs the repository's Claude impartial-review skill as Manager: it spawns fresh-context Opus sub-reviewers (the standard review areas, an open-lens reviewer, and an intent reviewer when a brief is supplied), verifies their findings, and writes one report. Then verify every finding in this Codex session. From Codex this is a cross-vendor review; say so in the result. claude-review is the single-reviewer alternative; keep the two entrypoints separate.

The requested review does not authorize fixes, commits, pushes, PRs, merges, posting, publication, or paid usage.

1. Fail-closed preflight

Run claude --version, claude auth status, and claude -p --help. Require:

  • Local help supports every flag used below, including --session-id, --restricted, --permission-prompts, and --output-format json. A version number alone does not prove compatibility.
  • loggedIn: true, authMethod: claude.ai, apiProvider: firstParty, and subscriptionType: max.
  • None of ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN, ANTHROPIC_BASE_URL, ANTHROPIC_PROFILE, ANTHROPIC_DEFAULT_OPUS_MODEL, CLAUDE_CODE_USE_BEDROCK, CLAUDE_CODE_USE_VERTEX, CLAUDE_CODE_USE_FOUNDRY, or CLAUDE_CODE_USE_ANTHROPIC_AWS in the child environment. Check presence only; never print values.
  • .claude/skills/impartial-review/SKILL.md exists at the root of the reviewed repository. If it is absent, stop and point to claude-review; do not substitute a plain prompt and call it a full review.

Stop if subscription routing cannot be proven. Do not use --bare: it ignores Claude.ai login credentials. Do not probe models; a probe consumes usage. If Claude reports a plan limit, requests usage credits, or indicates pay-as-you-go billing, stop. Never accept or enable paid credits.

Model: the opus alias at high effort for the Manager and every sub-reviewer, unless the user names another model or effort. An alias is not evidence of the resolved version; Step 4 reads the resolved model from the transcripts.

2. Fix the scope

Use the scope named in the invocation input; otherwise prefer uncommitted work, then the latest commit, then the current branch against its remote default branch. Resolve exact revisions: a branch diff uses git merge-base origin/<default> HEAD as base after a fetch of the remote-tracking ref; a commit uses its parent, or the empty tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904 for a root commit; uncommitted work uses HEAD plus staged, unstaged, and untracked content. A branch or commit review covers committed changes only: check git status --porcelain or state that dirty paths are excluded. State the scope before launch. Never push, post, edit, commit, or widen scope.

3. Launch the review

Create a unique .tmp/opus-fullreview-* directory atomically and exclude it from review scope. Generate a UUID for the Claude session. Record the run ID, absolute workspace, resolved base and head SHAs (plus diff identities and untracked path and content hashes for uncommitted work, or the excluded dirty path count otherwise), CLI version, session UUID, command, requested model and effort, whether a brief was supplied and its hash, and start time.

Author brief. By default write $RUN/brief.md. Its first line is exactly Author brief <run directory name>, a marker Step 4 uses to confirm which sub-reviewers received it. The rest is facts only: the goal in one or two sentences, the files or behaviors most likely to break, related work in flight (other PRs, merge order), and checks already run with their results. No verdicts or opinions. Skip it when the user asks for a fully blind review; the run then has no intent reviewer.

Prompt, for a branch diff (adapt the scope sentence for a commit or uncommitted work as in Step 2):

Read .claude/skills/impartial-review/SKILL.md completely with the Read tool and act as its Manager on the branch diff: base <base>, head <head>. Read the diff with git diff <base> <head>. Dispatch every reviewer with the Agent tool, subagent_type general-purpose, model opus, in fresh context, as the skill directs; each is a leaf reviewer that spawns no agents and loads no skills. Author brief: <path to brief.md>; give it only to the Bucket F intent reviewer, as the skill directs; every other reviewer gets the diff without it. No file edits, no Git writes, no publication. Verify the reviewers' findings and write the final verified report. First line: Scope: base <base>, head <head>. Second line: Sub-reviewers: <number spawned>.

Drop the author-brief sentence for a fully blind review. Write the prompt to $RUN/prompt.txt and pass it on stdin, never as a positional argument: options that take a list of values, such as --tools or --add-dir, consume a prompt that follows them, and the run exits before any reviewer starts. Run from the repository root:

claude -p --model opus --effort high --session-id "$SESSION" \
  --permission-mode plan --permission-prompts none --restricted \
  --tools "Read,Glob,Grep,Bash,Agent" --disable-slash-commands --strict-mcp-config \
  --no-chrome --output-format json \
  < "$RUN/prompt.txt" > "$RUN/result.json" 2> "$RUN/run.log"

On native Windows, replace Bash in --tools with PowerShell. --disable-slash-commands keeps the child from invoking skills, including a Claude review skill that would recurse; the Manager loads impartial-review by reading the file. Do not pass --no-session-persistence: Step 4 reads the saved transcripts. --restricted ignores user and project settings files, so a CLAUDE_CODE_SUBAGENT_MODEL set there does not apply; the prompt names the sub-reviewer model instead.

Run it in the background and poll its process and log with bounded waits; a full review takes longer than claude-review. On a stall or timeout, stop only this process, keep partial output, and report the failed attempt.

4. Collect and bind evidence

Accept the result only after the process exits 0, result.json parses, its is_error is false, its session_id equals the recorded UUID, and the reviewed source is unchanged. Write its result field to $RUN/report.md and record the report hash. Take the resolved models from modelUsage in result.json and from the transcripts below, never from the alias.

The transcripts live under ~/.claude/projects/<workspace slug>/: the Manager in <session>.jsonl, and each sub-reviewer in <session>/subagents/agent-<id>.jsonl with a sibling agent-<id>.meta.json holding agentType and spawnDepth. Find the Manager file by globbing ~/.claude/projects/*/<session>.jsonl. Then check:

  • Skill load: a Manager tool_use of Read whose file_path ends in .claude/skills/impartial-review/SKILL.md in the reviewed repository. Without it, attribute the run as a plain custom-prompt review, never as impartial-review.
  • Sub-reviewers that ran: the agent-*.meta.json files with spawnDepth 1. Any spawnDepth above 1 means a reviewer spawned its own agent, against the leaf rule: disclose it. No subagent files in a readable session means no sub-reviewers ran.
  • Models: the message.model values on assistant records in each sub-reviewer transcript. Disclose any reviewer that did not run on the requested model.
  • Intent reviewer: the sub-reviewer transcripts that contain the brief's first line, trimmed. Exactly one means it ran; zero with a brief means brief supplied, intent reviewer not run; more than one means the brief reached a diff-only reviewer, so disclose it.
  • Scope identity: the report's Scope: line matches the recorded base and head.

A missing transcript or a record shape that does not match leaves the affected count unverified; say so, never report it as zero. One invocation per request: no automatic retry, model fallback, or effort downgrade. Ask before another usage-consuming run.

5. Verify every finding

The Manager's verification ran without this session's context; it does not replace yours. Check every finding, all severities, against the local code and callers: Confirmed (evidence supports it), Refuted (evidence disproves it; list it under Dismissed with the reason), or Kept with caveat (state the missing check). Treat BLOCKING findings adversarially.

6. Present

Order confirmed findings as BLOCKING, SHOULD-FIX, then NITPICK, each with path:line, impact, and fix; keep the Manager's blind / intent / both tag when the intent reviewer ran. Then checked-and-fine items, the Manager's list of skipped standard areas with reasons, the open-lens reviewer's chosen lenses, dismissed findings, and a concrete merge recommendation. Attribute: Claude (<resolved models and effort, or requested with resolution unverified>) ran <impartial-review as Manager (skill read verified) | a plain custom prompt> over <scope at source identity>, scope identity <verified | unverified>, with <N sub-reviewers | no sub-reviewers ran | count unverified>, intent reviewer <ran with brief | brief supplied, intent reviewer not run | brief reached N reviewers | not run: no brief | unverified>; M of T findings survived verification. Cross-vendor from Codex. Include the run directory and session UUID.

Common mistakes

MistakeRequired response
API or provider variable presentStop before inference
--no-session-persistence or --bareEvidence or subscription auth is lost; do not use them
Invoking impartial-review as a skillSkills are disabled on purpose; the Manager reads the file
Counting Agent calls in the Manager transcript as reviewersCount sub-reviewer transcripts with spawnDepth 1
Prompt passed as a trailing argumentA list-valued option such as --add-dir swallows it; pass the prompt on stdin
Failed or stalled runReport once; ask before retrying

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.