agentleFS
ryanportfolioryanportfolio/Harness-Firmware/.claude/skills/claude-review/SKILL.md

claude-review

Skill1 starsChanged 2 months agoMITView on GitHub

Use when the user says /claude-review, asks Claude or Fable to review code written in Codex, or requests a cross-vendor review through Claude CLI.

  • Reads credentials

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 2

    Distinctive

    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 and claude auth status.

    line 13
  2. Very specific:

    Stop if subscription routing cannot be proven.

    line 19
  3. Very specific:

    Use $ARGUMENTS; otherwise prefer uncommitted work, then the latest commit, then the current branch against its remote default branch.

    line 25
  4. Distinctive:

    Run from the repository root, adapting quoting to the active shell:

    line 39
  5. Distinctive:

    Treat Claude's report as candidates, not conclusions.

    line 57

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “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 review

Run one fresh Claude CLI reviewer, then verify its findings in the current session. Default to the locally supported fable model alias at high effort under the user's Claude subscription. Honor explicit user model/effort choices within the authorized route; an alias is not evidence of the resolved model version. From Codex this is cross-vendor review; from Claude it provides fresh context only. State which applies.

1. Fail-closed preflight

Run claude --version and claude auth status. Require:

  • The installed CLI supports the model alias and every flag used below, as checked through current local help. The previous contract required at least 2.1.257; a version number alone does not prove compatibility.
  • loggedIn: true, authMethod: claude.ai, apiProvider: firstParty, and subscriptionType: max.
  • No ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN, ANTHROPIC_BASE_URL, ANTHROPIC_PROFILE, ANTHROPIC_DEFAULT_FABLE_MODEL, CLAUDE_CODE_USE_BEDROCK, CLAUDE_CODE_USE_VERTEX, CLAUDE_CODE_USE_FOUNDRY, or CLAUDE_CODE_USE_ANTHROPIC_AWS in the child process environment. Check presence only; never print values.

Stop if subscription routing cannot be proven. Do not use --bare: it ignores Claude.ai login credentials. Do not make a model probe, because a probe consumes usage.

Confirm the intended subscription route from current local authentication evidence; do not treat historical version or plan details as a permanent product guarantee. If Claude reports a plan limit, requests usage credits, or indicates pay-as-you-go billing, stop. Never accept or enable paid credits for the user.

2. Fix the scope

Use $ARGUMENTS; otherwise prefer uncommitted work, then the latest commit, then the current branch against its remote default branch. Support:

Requested scopeReviewer instruction
UncommittedInspect staged, unstaged, and untracked work
Branch or PRCompare the named head against the fetched remote-tracking base
CommitInspect the exact SHA and its parent

State the scope before launching. A fetch may refresh a remote-tracking base, but never push, post, edit, commit, or widen scope.

3. Run one local review

Create a unique .tmp/claude-review-* directory atomically and exclude it from review scope. Record the run ID, absolute workspace, resolved base/head SHAs, staged/unstaged diff and relevant untracked path/content hashes, CLI version, command, requested model/effort, and start time. Stop competing writers or review an isolated snapshot; a HEAD SHA alone cannot identify dirty content. Put the exact scope and review rubric in the prompt. The reviewer must inspect relevant code and call sites, report only actionable bugs or regressions, include path:line, explain impact, and propose a specific fix. It is a leaf reviewer: no edits, subagents, nested review processes, or skill invocation.

Run from the repository root, adapting quoting to the active shell:

claude -p --model fable --effort high \
  --permission-mode plan --permission-prompts none --restricted \
  --tools "Read,Glob,Grep,Bash" --disable-slash-commands --strict-mcp-config \
  --no-session-persistence --no-chrome --output-format text \
  "<review prompt with exact scope>" > "$RUN/report.md" 2> "$RUN/run.log"

On native Windows, replace Bash in --tools with PowerShell.

--disable-slash-commands prevents this repo's claude-review skill from recursively invoking itself. Keep the run foregrounded or monitor its process and log if background execution is required.

Success requires this process to exit 0 with a non-empty report in its new directory and an unchanged reviewed source manifest. Record process outcome, end time, report hash, and model/effort actually reported; if resolution is not exposed, mark it unverified. Missing required inspection or tests still means incomplete coverage even when the process exits 0. On failure, empty output, model rejection, auth ambiguity, or billing prompt, show the relevant error and stop. One invocation per request. No automatic retry, model fallback, effort downgrade, or silent widening; ask before another usage-consuming run.

4. Verify every finding

Treat Claude's report as candidates, not conclusions. Check every finding against the local code and call sites, all severities:

  • Confirmed: evidence supports it; present it.
  • Refuted: evidence disproves it; list it under Dismissed with the reason.
  • Kept with caveat: evidence is incomplete; state the missing check.

Order confirmed findings as BLOCKING, SHOULD-FIX, then NITPICK. Include path:line, impact, and fix. End with checked-and-fine items, dismissed findings, and a concrete merge recommendation. Attribute the run from its metadata: Claude (<observed model/effort, or requested settings with resolution unverified>) reviewed <scope at source identity>; N of M findings survived verification. Include missing coverage and the evidence path.

Optional ultrareview

Use claude ultrareview only when the user explicitly requests ultra and separately confirms after hearing that it uploads repository state, uses Anthropic's managed model fleet rather than the local fable alias, and may consume a free run or paid usage credits. claude-review alone is not that consent. Use --no-post; posting remains a separate explicit action. Never substitute ultrareview after a local-review failure.

Common mistakes

MistakeRequired response
API/provider variable presentStop before inference
Old CLI or rejected fable model aliasStop; do not probe or substitute
Failed or stalled runReport once; ask before retrying
Claude finding sounds plausibleVerify it locally before surfacing
Claude runtime invokes this skillDescribe it as fresh-context, not cross-vendor

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.