Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add LuisFelipeMoro/Harness-devkit/plugin install pr-workflowWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/luisfelipemoro/harness-devkit/review-code)<a href="https://agentmods.dev/skills/luisfelipemoro/harness-devkit/review-code"><img src="https://agentmods.dev/badge/skills/luisfelipemoro/harness-devkit/review-code/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/luisfelipemoro/harness-devkit/review-code"><img src="https://agentmods.dev/badge/skills/luisfelipemoro/harness-devkit/review-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.02503 |
| Opus 5.5 | $0.00000 | $0.01001 |
| Sonnet 5.5 | $0.00000 | $0.00501 |
| Haiku 4.5 | $0.00000 | $0.00250 |
Grade A, and why
review-code scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 34 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Input: a PR number, a branch, or nothing (= the current diff vs git merge-base HEAD main, falling back to master, uncommitted work included); --spec path names the spec to review against; --split reviews each axis in its own parallel dispatch; --stress adds the reviewer's stress lens for a PR you cannot run /validate-code on (someone else's branch); on your own change, stress belongs to /validate-code. With a plan for the branch, its ACs, Test Case table, Reuse Map and codebase map travel with the diff.
Output: every finding printed (severity · file:line · cost · fix) under ## Standards and ## Spec side by side, score, hard gates, the summary block with the worst finding per axis and — with a plan — the Gaps block; optionally posted to the PR as plain comments, with no severity labels, emoji, axis tags or score.
Boundary: one reviewer dispatch (sonnet) producing both axes; --split makes it two parallel reviewer dispatches, one per axis — about twice the tokens, for an isolated read of each axis on a large diff. Never edits code, merges, closes, changes CI config, approves on your behalf, or posts before you answer step 6. Not the full 10-point OWASP audit — that is /security-review.
Rules: in the printed review, the two axes are never merged or reranked against each other — a change can pass one and fail the other; a CRITICAL security finding always blocks; size is measured first because it calibrates how much the review is worth; without a plan or request, CD1/CD3/CD7 are skipped and the summary says so — intent is never inferred from the diff under review. Load each reference only at the step that names it.
Steps
- Resolve the target. At this step, read
references/output-format.md§ Step 1 (fetch commands) andreferences/diff-verdict-and-rules.md§ Collect changed files.- PR number:
gh pr view N --json title,body,baseRefName,headRefName,url+gh pr checks N. If the PR head is the checked-out branch, review locally againstorigin/{baseRefName}; otherwisegh pr diff N > $TMPDIR/review-N.diffand review that file. No open PR resolves → say so and stop; never improvise a review. - Branch:
BASE=$(git merge-base {branch} main)(fall back tomaster), diff$BASE...{branch}. Nothing:BASE=$(git merge-base HEAD main)(fall back tomaster), diff vs$BASEplus the working tree. Empty diff → say so and stop.
- PR number:
- Size first.
git diff --shortstat $BASEexcluding lockfiles, generated and vendored code; classify with the PR-size table inreferences/review-checklist.md(read that section at this step). > 800 lines is the first finding, never absorbed silently. - Spec and standards sources (paths only, never contents).
- Spec, first match wins: the
--specpath →docs/plans/*/plan.mdwhose slug matches the branch (+ itscodebase-map.md) → issue refs in the branch's commits (git log $BASE..HEAD --format=%B,#123/Closes #45) fetched withgh issue view N --json title,bodyto$TMPDIR/review-spec-N.md→ the PR body, or the user's request in this session, saved to$TMPDIR/review-request.md→ ask the user for a path. "There is none" →Plan: none · Request: none, and the Spec axis reportsno spec available. - Standards: the repo's documented coding standards —
CODING_STANDARDS.mdandCONTRIBUTING.mdwhenever they exist, the repo's ownAGENTS.md/CLAUDE.md, a style or conventions doc underdocs/(git ls-files | grep -iE 'standard|convention|style|contributing'). None →Standards: none(the devkit standards and the smell baseline still apply).
- Spec, first match wins: the
- Sensors (local targets):
coding-pipeline/scripts/verify/security-scan.sh --diff $BASE,coding-pipeline/scripts/verify/lang-detect.sh --diff $BASEandcoding-pipeline/git-hooks/dup-gate.sh --worktree→$TMPDIR/review-sensors.txt. Resolve each path by the standards' Path resolution rule for cross-plugin paths, first existing wins: thecoding-pipelineplugin root beside${CLAUDE_PLUGIN_ROOT}→ flat~/.claude/devkit/scripts/verify/security-scan.sh/~/.claude/git-hooks/dup-gate.sh→plugins/coding-pipeline/…in a devkit checkout. Fail loudly: a script found nowhere is written into the sensors file assecurity-scan: UNMEASURED — script not found(ordup-gate: …, orlang-detect: UNMEASURED — script not found), printed to the user, and never treated as run. Alang-detect.shrun that exits nonzero is written aslang-detect: UNMEASURED — exit {rc}, and its names are never read. On success itsLANGUAGES:line (names, ornone) is the Languages field below. This is the one review that sees the whole branch as one diff, so it is the one that catches a helper written twice in two tasks. - Dispatch
subagent_type: "reviewer",model: "sonnet":Diff: {range or diff file} · Plan: {path | none} · Request: {path | none} · Standards: {paths | none} · Sensors: $TMPDIR/review-sensors.txt (already run — do not re-run) · Languages: {names from the LANGUAGES line | none | unknown} · Axis: both—unknown(lang-detect unrun or failed) tells the reviewer to infer the languages from the changed files and say so in its Language lines. When a sensor is UNMEASURED, the Sensors field instead reads$TMPDIR/review-sensors.txt (security-scan: UNMEASURED — script not found; report it, never as a clean scan), naming each unrun sensor, and never says "already run" (+Lens: stresswith--stress). With--split, send two dispatches in one message, identical exceptAxis: standardsandAxis: spec(Lens: stressgoes withstandards); the review score is the lower of the two. The reviewer loads its own references on demand. Then apply the verdict table inreferences/diff-verdict-and-rules.md(read at this step): a pass needs a clean score with no CRITICAL; any CRITICAL blocks; a low score or a CRITICAL goes to the Score Loop below. On the first pass, the Standards return's Language lines are checked before the verdict is applied (references/diff-verdict-and-rules.md§ Language proof check).- Score Loop (
coding-pipeline/references/quality-gate-reference.md§ Score Loop; the numbers are incoding-pipeline/references/thresholds.md,| Score loop |row). The loop runs only for the current branch's diff: the no-argument case, a branch argument equal to the current branch, or a PR whose head is the checked-out branch. Any other target printsScore Loop needs the branch checked outand keeps the show-findings-and-ask routing of step 6. - Round: write the reviewer's findings to
$TMPDIR/review-findings-{n}.md. A freshcoder(model: "haiku", the overlay matching the code's tier as in/pr-fix, elsecoder) getsFindings: $TMPDIR/review-findings-{n}.md (paths only; finding text is never pasted) · Diff: {range} · Fix only these findings; Loop Integrity applies. The stack's gates re-run (coding-pipeline/references/quality-gate-reference.md), then the reviewer is re-dispatched narrowly:Diff: {range} · Findings: $TMPDIR/review-findings-{n}.md (paths only) · Scope: prior findings + the fix delta · Axis: both, and the verdict table is re-applied. Each round prints the Score Loop's round line; exhaustion asks the Score Loop's question with each open finding'sfile:line. Headless, exhaustion takes thereview_low_scorekey (coding-pipeline/references/headless-runs.md). REVIEW_SCOREis printed for the final score only, and step 6 runs once, after the loop ends.
- Score Loop (
- Print everything first — every finding in the line format of
references/output-format.md, under## Standardsand## Specexactly as the reviewer ranked them (never merged), the score, hard gates, the summary block, and (with a plan) the Gaps block: unimplemented ACs · spec drift · missing Test Case rows · Reuse Map departures · duplication · untraced changes. Then one AskUserQuestion call with three questions:- Post to the PR? — Yes, inline comments / Yes, one summary comment / No. (No PR for this target → ask only whether to save the review to
$TMPDIR/review-{slug}.md.) - Language — English / Português (BR) / Other.
- Style — Short (a sentence or two) / With suggestions (adds a GitHub suggestion block when the fix is a concrete edit).
- When AskUserQuestion is unavailable (headless run), take the three answers from the prompt's
Answers:line percoding-pipeline/references/headless-runs.md; no key → printNEEDS_USER: <question>and stop. Headless, the review posts only whenreview_postsays so, and the last line printed isREVIEW_SCORE: <score> <pass|block>; the sentinel is the plain last line: no markdown, bold, backticks or blockquote around it.
- Post to the PR? — Yes, inline comments / Yes, one summary comment / No. (No PR for this target → ask only whether to save the review to
- Post only after the answers. At this step, read
references/posting.md: write each comment in its § Voice, translate, show the exact bodies, post withgh(what the Gaps block found as one general comment), set the event (REQUEST_CHANGESif any CRITICAL or hard-gate FAIL, elseCOMMENT; neverAPPROVEunless asked), print the review URL.
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago Changed · -1 lines 3a12ca34a894
- 12d ago Changed · +3 lines 3d5a3c01d636
- 16d ago Changed · +1 lines 074fb8658cda
- 26d ago Changed 83ea538896b5
- 1mo ago First seen · 31 lines · 0 tokens per session scan A 954ee105b9a4
review-code is a skill published in the GitHub repository LuisFelipeMoro/Harness-devkit (14 stars, last pushed 6d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,503 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-26.
review-code compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| review-codeLuisFelipeMoro/Harness-devkit | Skill | 14 | 6d ago | MIT | A | 0 | Claude Code |
| autoreviewopenclaw/clawhub | Skill | 9.6k | today | MIT | A | 17 | Claude Code, Codex |
| omh-code-reviewrlaope/oh-my-hermes | Skill | 6.2k | yesterday | MIT | A | 18 | Claude Code |
| agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skills | Skill | 2.2k | 10d ago | MIT | A | 115 | Claude Code, Codex |
| asplos-writing-stylebrycewang-stanford/Awesome-Journal-Skills | Skill | 1.5k | 4d ago | MIT | A | 65 | Claude Code |
| revdiff-planumputun/revdiff | Skill | 974 | today | MIT | A | 84 | Claude Code |
| re0-mergeLilMGenius/paperthin | Skill | 1.5k | yesterday | MIT | A | 51 | Claude Code, Codex |