agentleFS
shayaansultanshayaansultan/claude-companion/skills/claude-review/SKILL.md

claude-review

Skill1 starsChanged 3 months agoMITView on GitHub

Get a second-opinion code review from Claude Code on the current working tree or branch. Use when the user asks for a review, a second pair of eyes, or to check changes before committing or opening a PR, or before finishing a substantial change of your own. Returns findings ranked by severity with file and line. Review only, never fixes.

9 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use addskill, advocate and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ryanportfolioSkill

    addskill

    Create, import, update, or install repository or personal skills; includes runtime ownership, resources, and discovery validation.

    Also in 3 projects that use this

  • ryanportfolioSkill

    advocate

    Use only when the user explicitly invokes $advocate to challenge a change just made before it lands. Do not trigger from natural-language requests.

    Also in 3 projects that use this

  • +10 more from ryanportfolio

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not fix, patch, or offer to fix anything the review raises.

    line 62

“Common” is measured: kept by at least 6 in 10 of the 7 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

Runs Claude Code headlessly in read-only mode over the current git changes and returns structured findings. You relay them; you do not act on them.

Command

claude-companion review [--base <ref>] [--scope auto|working-tree|branch] [--focus "<text>"] [--model <m>] [--effort low|medium|high|xhigh|max]

claude-companion is on PATH after install. If it is not, run the copy next to this skill: <this skill's directory>/../../scripts/claude-companion.

In OpenCode profiles, CLAUDE_COMPANION_CONFIG_DIR and CLAUDE_COMPANION_ACCOUNT select and verify the Claude login. Keep that binding: AnswerThis may use its own account while other profiles use Default. An account mismatch stops dispatch; do not retry with another account. Run claude-companion setup --json to inspect the effective binding. From an ordinary terminal, oc native <profile> claude review ... supplies the same environment.

Scope resolution, in order: an explicit --base reviews commits since that ref; --scope working-tree reviews staged, unstaged and untracked changes; --scope branch diffs against the detected default branch; auto (the default) picks working tree when it is dirty and branch otherwise. Pass --focus only when the user names an area or concern to weight; do not add instructions of your own.

Model and effort

Defaults: --model fable (the latest Fable, the strongest reviewer) at --effort high. Leave both alone for a normal review.

You may override them when there is a reason: the user names a model or effort, or they ask for a quick or cheap pass (then --model sonnet or --model haiku and --effort medium is reasonable). Aliases fable, opus, sonnet, haiku and full model names are all accepted. Say which model ran if you changed it; the report footer shows it too.

Foreground or background

Size the change first: git status --short and git diff --shortstat (add --cached, or use <base>...HEAD for a branch review). Untracked files count.

  • One or two small files: run it in the foreground and wait.
  • Anything larger, or unclear: run it in a background terminal, keep working or tell the user it is running, and poll for completion. A review typically takes between fifteen seconds and a few minutes; do not kill it early.

Progress lines go to stderr; the report is on stdout.

Output rules

  • Return the command's stdout verbatim. Do not paraphrase, summarise, reorder, or drop findings, and do not add commentary before or after it.
  • Do not fix, patch, or offer to fix anything the review raises. If the user wants a finding addressed, that is a new request from them.
  • A non-zero exit with an error on stderr means the review did not run. Show the error. If it says Claude is not installed, not logged in, or the sandbox has no network access, tell the user to run claude-companion setup in a terminal for the exact fix.

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.