Skip to content
Back to skills

Orchestrate

ASecurity

Run the review lenses over a change: pick the ones the change touches, read or dispatch each, gate go/no-go on cited evidence. Use when asked for our lenses, or to plan or verify a non-trivial change.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 19, 2026
ai-agentsrustgobashnodecode-reviewgitapisecurityperformance

Works with

  • claude code
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add waqas1412/claude-harness --skill orchestrate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Orchestrate?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Orchestrate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/waqas1412-orchestrate/badge)](https://www.skillsdirectory.com/skills/waqas1412-orchestrate)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: orchestrate
description: "Run the review lenses over a change: pick the ones the change touches, read or dispatch each, gate go/no-go on cited evidence. Use when asked for our lenses, or to plan or verify a non-trivial change."
argument-hint: "[short description of the change, or a PR number to review]"
allowed-tools: Read, Grep, Glob, Bash, Agent
---

# /orchestrate: run the lenses in one loop

The lenses are checklists, not agents. This skill names which ones apply to a given change, what each
one asks, and what evidence closes it. You apply them yourself in this loop: you plan, you read, you
edit, you run lint and build and tests, and you review your own diff before committing.

## How this works: read the lens, or dispatch it

The 16 lens files in `~/.claude/agents/*.md` are both the lens CONTENT and real dispatch targets. The
same directory also holds `implementer.md`, which is a writer, not a lens. Two ways to run a lens,
chosen per lens:

- **Read it and apply it here.** Cheapest, and right for a small diff, or when the lens needs context
  this conversation already holds. Read the matching file and use its rubric as the checklist.
- **Dispatch it as a subagent.** Right when an independent read is worth the round trip: a large or
  risky change, or a verdict you do not want coloured by the reasoning that produced the code. A
  reviewer in a fresh context cannot see this conversation, so name the target (diff, PR, branch, or
  planned change) and the baseline it answers to. Nothing more: the lens carries its own rubric, and a
  checklist of what you already suspect narrows it into agreeing with you. Do not hand it your findings
  or tell it which part to focus on.

Either way the verdict is yours. A dispatched lens returns findings, never a decision, and a finding
is not true until you have checked it against the code yourself.

Every verdict follows one shape: read `references/findings-contract.md` before reporting anything. It
defines the precision-versus-recall dial, the required `failure_scenario`, the three-way verdict, the
report cap, and the disclosure rule. It is the same contract Claude Code's own `code-review` uses.

## Pick the lenses, then say which you skipped

Right-size to the change:

- One-file fix: correctness and repo-fit only.
- Feature or multi-file change: add the two or three lenses the change actually touches.
- Cross-cutting, shared-seam, or architecture change: the full panel.

Declare skips out loud ("no design parity: this diff has no UI"). A silent skip reads as a pass.

### Which lens owns what, when two look alike

Agent descriptions carry only what each lens owns, because they sit in every session's prompt. The
boundaries live here instead, and they are the part that stops a misroute. Every lens below runs two
gates, PLAN and VERIFY, and every one is read-only.

| Overlap | Goes to | Not to |
|---|---|---|
| A logic bug, boundary or contract slip | `developer-reviewer` | anything below |
| Authorization, tenant scoping, secrets, injection | `security-auditor` | `developer-reviewer` |
| A signal read before it settles, a race, staleness | `data-flow-timing-auditor` | `developer-reviewer` |
| Does it break an existing consumer | `compatibility-auditor` | `developer-reviewer` |
| Did we build what the ticket asked | `spec-fidelity-auditor` | `developer-reviewer` |
| Big-O, allocations, N+1, render and bundle cost | `performance-optimizer` | `developer-reviewer` |
| Where the code should live, boundaries, blast radius | `system-architect` | `system-designer` |
| Exact signatures and shapes, once placement is settled | `system-designer` | `system-architect` |
| SOLID, GRASP, coupling and cohesion | `design-principles-advisor` | `principles-engineer` |
| Duplication, reuse, right-sizing an abstraction | `principles-engineer` | `design-principles-advisor` |
| Does the built UI match the design file | `design-parity-auditor` | `accessibility-auditor` |
| The WCAG floors a DESIGN must not lose | `design-parity-auditor` | `accessibility-auditor` |
| Does the BUILT component honour those floors | `accessibility-auditor` | `design-parity-auditor` |
| A library fact at the installed version | `docs-researcher` | `developer-reviewer` |

Two things no lens owns: the spec's own merit (that goes to the spec owner) and the design's own merit
(that goes to a designer). Dependency CVE triage is `/security-review`, not `security-auditor`.

## Set the dial: precision or recall

Decide before you start, and say which. Getting it backwards fails in both directions.

- **Precision** (default; a small diff, a nit pass, anything about to go to a reviewer): only findings a
  maintainer would act on. Cap at `min(files_changed, 4)`. A repo-wide sweep prompted by a
  diff-scoped nit is this dial set wrong.
- **Recall** (an audit, a large or risky change, or when asked to be thorough): catch every real bug a
  careful reviewer would catch in one sitting. Real bugs matter more than false positives here, so err
  on the side of surfacing.

## Pin the baseline before judging

Name the thing the diff is answerable to: the ticket, the spec or KB path, the design node, or, when
there is no external spec, the plan agreed in this conversation. Judging a diff against nothing is how
gold plating and scope creep survive review.

## PLAN lenses (before writing code)

Run only the relevant ones. Lens file in parentheses.

- Placement and blast radius: where the code belongs, module boundaries, what else it touches, fit to
  existing repo patterns (`system-architect.md`).
- Exact shapes: function and query signatures, request and response shapes, the edge-case matrix,
  once placement is settled (`system-designer.md`).
- Reuse and right-sizing: what to factor out versus leave alone, and an explicit guard against
  premature abstraction (`principles-engineer.md`).
- Structural soundness: coupling, cohesion, SOLID and GRASP, on larger designs only
  (`design-principles-advisor.md`).
- Version-correct library usage: check the version actually installed in `node_modules` or `go.mod`,
  and the version-matched official docs, before using an API (`docs-researcher.md`).
- Spec baseline: pin it, lint the acceptance criteria, seed the traceability matrix
  (`spec-fidelity-auditor.md`).
- Design source: pin the file and node, build the token bridge, the state matrix, and the breakpoint
  table, when the change implements a design (`design-parity-auditor.md`).
- Settlement and one-shot effects: when the feature fires analytics, seeds, redirects, caches, or
  queue acks off eventually-consistent state (`data-flow-timing-auditor.md`).
- Threat surface: which new inputs cross a trust boundary, which authorization decision is made and
  where, and what the unsafe-by-default version of this design would be (`security-auditor.md`).
- Accessibility contract: the keyboard path, what takes focus on open and where it returns, how every
  control gets its name, which native element carries the semantics (`accessibility-auditor.md`).
- Compatibility budget: who consumes what this will change, whether it can be done additively, and the
  migration and deploy ordering (`compatibility-auditor.md`).

Close the gate with a plan that states placement, signatures, the test plan, the risks, and the
assumptions the request left implicit. A non-trivial plan naming zero assumptions is under-examined.
For an untested target, write characterization tests that pin current behavior and get them green
before changing anything.

## VERIFY lenses (after the diff exists, before commit)

- Correctness, adversarially: try to break your own diff. Boundaries, nil and empty, collection
  ordering, timezones, invariants, contracts (`developer-reviewer.md`).
- Test-diff integrity: diff the test files. A deleted test, a new skip, or a loosened assertion used
  to reach green is a no-go finding, not a fix. Tests are the referee.
- Spec trace, both ways: every criterion delivered at its promised evidence grade, and every diff hunk
  traced to a spec clause or dispositioned as gold plating or scope creep
  (`spec-fidelity-auditor.md`).
- Design parity: token identity before resolved values, layout as auto-layout semantics, the state
  matrix, exact breakpoint boundaries, WCAG floors. State "Figma N/A" explicitly when there is no
  design (`design-parity-auditor.md`).
- Data flow and timing: provenance of every input the diff reads, when it crosses files or fires
  one-shot effects (`data-flow-timing-auditor.md`).
- Performance: only when the change is on a hot path (`performance-optimizer.md`).
- Idiom and repo compliance: the repo's own conventions and its AGENTS.md
  (`senior-software-engineer.md`).
- Security: authorization and tenant scoping, token and secret handling, sensitive data reaching logs
  or analytics, injection at real boundaries, fail-open defaults (`security-auditor.md`).
- Accessibility: keyboard path, focus management and visibility, accessible names, semantics, dialog
  behaviour, async announcement, reflow (`accessibility-auditor.md`). Read the component library's
  installed source before ruling: most of this is already handled for you.
- Compatibility: sweep outward to every consumer of what changed, then rule on whether the PR's
  breaking-change assertion is true (`compatibility-auditor.md`). A wrong "None" is a blocker.
- Re-check the implementation against the structure agreed at PLAN.

### Cleanup angles

The angles above hunt for defects. These four hunt for cleanup, in the changed code only, and are
pooled separately so they never crowd out a real bug:

- **Reuse**: something already exists that this reimplements (`principles-engineer.md`).
- **Simplification**: the same behaviour with less code or fewer branches.
- **Efficiency**: obviously wasteful work on a path that matters (`performance-optimizer.md`).
- **Altitude**: is this code at the right level of abstraction for where it sits? A detail leaking into a
  layer that should not know it, or a wrapper that adds a name and nothing else.

Cleanup findings are always precision-dialled, whatever the main dial is set to. Nobody thanks you for
four nits attached to a bug report.

## Evidence rules

Every verdict cites `file:line` or real pasted command output (exit codes, failing test names), AND a
concrete `failure_scenario`: the specific state that produces the specific wrong result. A `file:line`
proves the code exists, not that it is wrong. If you cannot write the failure scenario, you have a
suspicion, not a finding: drop it or downgrade it to a note.

Verify each candidate against itself and return one of **CONFIRMED**, **PLAUSIBLE**, or **REFUTED**.
Keep the first two, naming what is unproven on a PLAUSIBLE. Drop REFUTED, naming what refutes it.

Run lint, build, and the change-related tests yourself, fresh, and gate on that output. Never accept or
report a self-described green.

When the `ReportFindings` tool is available, call it once with `{level, findings}` and do not also print
the findings as prose. Otherwise use the same field shape in a table.

## Disclose what actually ran

Close every review by stating which lenses ran, which you skipped and why, which dial you used, and that
this was a single solo pass rather than independent per-lens passes. Say it even when the findings are
good, so nobody reading the report is misled about its coverage. An empty report is a valid result:
never pad one to look thorough.

At xhigh or max effort, add one gap pass after the report is drafted, hunting only for what is missing:
a lens that should have applied and did not, a claim asserted but never verified, a file in the diff
that no finding or disposition touched.

## Go and no-go, bounded

Triage each finding: fix it, or record why it is acceptable. Do not commit with an unresolved
correctness finding. The fix-then-re-verify cycle is bounded: if the same class of finding is still
no-go after two rounds, stop, summarize what was tried, and surface it for a decision instead of
iterating.

Confirm `git branch --show-current` as its own step before any commit or amend. Then commit (one
commit per PR) and, only when asked, open the PR with `/pr` as a draft.

## Gotchas

- Dispatch a lens, never a coordinator. No agent-of-agents, no choreography, no worktree fan-out for
  a review. One lens is one subagent, and the main loop is the only thing that decides.
- A brain-and-hands split was tried before, reverted on 2026-07-24 after real mistakes, then
  re-enabled deliberately on 2026-09-08. The written reason for that reversal is gone: the memory
  fact this skill used to cite never existed. What is known is that `.claude/rules/` auto-loaded on
  every subagent spawn back then, which made dispatch far more expensive than it is now. Treat any
  repeat of those mistakes as fresh evidence, not as settled history.
- No agent file carries a `model:` line, so EVERY dispatched lens runs on the exact suffixed id in
  `env.CLAUDE_CODE_SUBAGENT_MODEL`, set on 2026-10-09 to `eu.anthropic.claude-haiku-5-5[1m]` with
  `CLAUDE_CODE_SUBAGENT_MODEL_FORCE=1`, so a `model` argument on a dispatch is ignored. Every agent file pins
  `effort: medium`, so a mid-session `/effort` change does not reach a lens.
  This file used to claim the verdict-bearing lenses carried `model: inherit` and ran on Opus; they
  never did. Set that id exactly as it appears in `availableModels`, suffix included, or it is
  silently swapped. The statusline reads `.model.display_name` for the SESSION, so it shows Sonnet
  while a Haiku lens is running: it is not evidence of the lens model.
- A lens with nothing to say is a skip you declare, not a section you pad.
- Reading the lens file is cheap and reading the wrong lens is waste: pick from the change, not from
  the list length.

Files in this skill

  • SKILL.md10.1 KB
  • references/findings-contract.md4.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.