/workflow-skills:herdr-reviewfrom workflow-skills
Get a second opinion from a different agent — any Claude Code or pi model, chosen each time — running next to you in herdr. The reviewer reviews the PR or branch diff, posts its findings as a PR comment, and hands back a PASS/CHANGES verdict that also shows in the herdr sidebar. Use only when the user explicitly asks for a cross-agent or second-agent review with herdr (or invokes /herdr-review); also used by /herdr-fanout. Requires HERDR_ENV=1.
Ships in workflow-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Starts a reviewer agent in a pane beside the code, has it review the PR (or the branch diff), and brings back a verdict. A different model family catches different mistakes than the one that wrote the code.
test "${HERDR_ENV:-}" = 1. Outside herdr, say so and stop.S="${CLAUDE_PLUGIN_ROOT}/scripts/herdr-status". Workspace token review, set on the workspace being reviewed.review="review: needs you" and tell Alex.When called by /herdr-fanout, these are given: reviewer harness+model, the worker's workspace ID and pane ID, PR number, and a run directory. Skip to step 2.
When invoked directly, gather them:
pi --list-models lists pi's options.gh pr view --json number,url --jq '"\(.number) \(.url)"' in the current directory. No PR → review the branch diff against the default branch instead (no PR comment).$HERDR_WORKSPACE_ID) and pane ($HERDR_PANE_ID).mktemp -d "${TMPDIR:-/tmp}/herdr-review.XXXXXX"."$S" --workspace <workspace> set review="review …"
Write <run dir>/review-<n>.md (use the PR number, or branch when there's no PR):
# Review request
Review <PR URL> (or: the diff of the current branch against <default branch>; run `git diff <default branch>...HEAD`).
Repository checkout: <absolute path of the code under review>
Focus on correctness bugs, security problems, and missing tests. Skip style nits. For each finding give file:line, what's wrong, and a concrete fix.
## Deliver (required)
1. <PR only:> Post the full review as a PR comment: write it to a temp file and run `gh pr review <n> --comment --body-file <file>`. (Comment, not approve/request-changes: the author account can't approve its own PR.)
2. Write <run dir>/review-<n>.verdict. First line exactly `PASS` (nothing that must change) or `CHANGES` (at least one must-fix finding). Then a summary of at most 10 lines.
Do not wait for replies.
Split below the target pane so the code's pane keeps its width, and keep Alex's focus where it is:
herdr pane split --pane <pane> --direction down --cwd "<checkout path>" --no-focus
Save .result.pane.pane_id as REVIEW_PANE. Start the agent (name rv-<n>; if taken, add a suffix):
herdr agent start rv-<n> --kind <claude|pi> --pane <REVIEW_PANE> --timeout 60000 -- --model <model>
If it returns agent_not_ready, it's blocked at startup. If the screen shows the Claude trust prompt for exactly the checkout path above (a worktree created by /herdr-fanout), handle it as /herdr-fanout step 4c describes. Otherwise set review="review: needs you" and stop.
herdr agent wait rv-<n> --until idle --timeout 30000
sleep 3
herdr agent prompt rv-<n> "Read <run dir>/review-<n>.md and do exactly what it asks." --wait --timeout 480000
On agent_prompt_stalled: read the screen; if the input is empty, wait 3 seconds and resend once. On timeout: wait again with herdr agent wait rv-<n> --timeout 480000 (repeat up to 3 times). On blocked: review="review: needs you", tell Alex, stop.
A settled state isn't proof it's done — the verdict file is. If the agent settled with no verdict file, prompt once: "You haven't written /review-.verdict yet. Finish the Deliver steps." and wait again.
Read the first line of the verdict file:
"$S" --workspace <workspace> set review="review ✓"
for PASS, or review="review: changes" for CHANGES.
Then shut the reviewer down and close the pane you created (the full review lives on the PR):
herdr pane close <REVIEW_PANE>
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
10 skills in this plugin
/captureQuick capture to the Obsidian vault. Routes content to daily note or Inbox based on type. Use when the user says "capture", "note this", "jot down", "quick note", "add to inbox", or "meeting note"./herdr-cheatsheetLook up herdr keybindings, mouse actions, copy-mode and picker keys, agent states, and config syntax — resolved against the user's own ~/.config/herdr/config.toml overrides — or open the herdr cheatsheet web page. Use for "how do I X in herdr", "what's the herdr shortcut for", or "show the herdr cheatsheet". For actually driving herdr (splitting panes, running commands, reading output, waiting on agents), use the `herdr` skill instead./herdr-fanoutSplit a coding task into up to 3 independent parts and run each in its own herdr git worktree with its own Claude Code or pi worker, each landing its own reviewed PR, hands-off. Also cleans up merged fan-out worktrees. Runs only when the user explicitly asks to fan out, parallelize, or run parallel agents/workers with herdr (or invokes /herdr-fanout). Also load it, inside herdr (HERDR_ENV=1), when the user gives you a task that clearly splits into 2-3 independent parts touching different files — but then only SUGGEST fan-out in one line and wait; never start it without the user's yes./herdr-layoutAuto-detect a project's dev server, test, and log commands (package.json, Makefile, docker compose, pyproject, go.mod, Cargo.toml) and open them as named panes in a herdr "dev" tab that the agent can watch, plus a lazygit diffs pane showing what files are changing, with test pass/fail and a changed-files count in the herdr sidebar. Use only when the user explicitly asks to set up a herdr layout/dev tab or to check the herdr test/server/diffs panes (or invokes /herdr-layout). Requires HERDR_ENV=1./optimizeAnalyze agent and skill usage patterns, identify underused or ineffective components, and optimize descriptions, archive stale items, and update CLAUDE.md. Run via /optimize. Suggest running if 30+ days since last run./plan-reviewGenerate an interactive HTML review page for an implementation plan — runs the plan past two parallel critique agents (an adversarial reviewer and an architecture reviewer), then renders the plan and critique as a page with per-section and general feedback boxes that copy to clipboard as Markdown. Use before a non-trivial plan is presented for approval, or on demand via /plan-review <path-to-plan.md>. Triggers on "review this plan", "plan review", "pressure-test this plan".npx claudepluginhub arosenkranz/agent-config --plugin workflow-skills