Back to skills
SKILL.md
Subagent
ASecurityAuthor, compile, calibrate, and run read-only adversarial reviewer subagents (supagents or host roles).
- 14 stars
- 0 votes
- 0 copies
- 1 view
- Added November 17, 2026
Security analysis
100/100Pro scans all 4 files and shows the line behind each finding
npx -y skills add fmind/dot --skill subagent --agent claude-codeAre you the author of Subagent?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/fmind-subagent)---
name: subagent
description: "Author, compile, calibrate, and run read-only adversarial reviewer subagents (supagents or host roles)."
license: MIT
metadata:
kind: task
author: Médéric HURIER (Fmind)
source: github.com/fmind/dot/tree/main/skills/subagent
created: "2026-09-09"
updated: "2026-12-01"
---
# Adversarial Reviewer Subagents
Keep producers dynamic (built-in subagents + skills) and domain rules single-sourced in `skills/`. Encode quality gates as **7 static, clean-context, read-only reviewer `supagents`** (never 1:1 skill mirrors). Pass active `SKILL.md`/reference paths for stack checks (Skill-as-Rubric), or add project-local `<org>-review-*` roles only for standing domain personas. Project `AGENTS.md`/`DESIGN.md`/`SECURITY.md` override defaults without weakening security or `Output Contract`; reviewers stay single-lens while the coordinator arbitrates via [balancing](references/balancing.md).
## Core Reviewer Roles
Global roles compile from two partials: `_reviewer.md` (air-gapped, `model: inherit`) and `_reviewer_web.md` (`model: inherit` + public web; limits in [cross-harness-agents](../agent-harnesses/references/cross-harness-agents.md#permission-limits)):
- `fmind-review-code`: correctness, atomicity, contracts, tests, diff simplicity, supplied skills.
- `fmind-review-design`: architecture, rollback, spec fit, YAGNI/`DELETIONS`, completeness.
- `fmind-review-security`: exploits, auth/IAM/CI/AI/hook boundaries, secrets, pins, privacy/legal.
- `fmind-review-human`: reader clarity, anti-slop, cuts/`DELETIONS`, doc parity, runbooks.
- `fmind-review-visuals`: rendered decks, charts, diagrams, web UI (geometry, scales, CVD, a11y).
- `fmind-review-project`: lean `AGENTS.md`, minimal governance, skills, local supagents, lanes.
- `fmind-review-factcheck` (`_reviewer_web`): live primary URL/version checks and arithmetic/FinOps math.
## Triggering & Coordinator Loop
1. **Skip (`Tier 0`)**: routine local coding edits, tested refactors, and short 1:1 replies. Keep reviewers opt-in unless triggered by an explicit review ask, PR/release readiness gate, or untrusted security, architecture, or external-publish boundary.
1. **Preflight**: check `dot context --check` for local shadowing (`.agents/agents/`, `.github/agents/`) and run linters, tests, scanners, and renders first. Pass absolute paths on interactive trusted repos; bundle frozen diffs, manifests, logs, and renders into a temp dir on headless or untrusted runs ([headless-review](../agent-harnesses/references/headless-review/GUIDE.md)).
1. **Invoke (`Tier 1` to `Tier 2`)**:
- **Tier 1 (`1` role)**: run `code`, `human`, `visuals`, or `project` with absolute paths to active skills and project docs (copy external skills into `$render_dir` on headless runs).
- **Tier 2 (`2` roles, rarely `3` on repo audits)**: add `visuals`, `security`, `design`, or `factcheck` (isolated in `/var/tmp` with sanitized extracts on secret-bearing repos).
- Headless `agy --agent` strips CWD and binds `read_file` only; unreadable targets fail closed (`BLOCK`; pass `--model`).
1. **Triage & ratchet**: verify `loc:` live, fix `P0`s (`BLOCK`), arbitrate `P1`s (`REVISE`) per [balancing](references/balancing.md), apply quick `P2`/`DELETIONS` once, and cap at `2` rounds (round 2 checks only the fix diff). Promote objective defects flagged `>= 2` times into hard gates; route length/style heuristics to advisory warnings or skills ([lesson-learned](../skillify/references/lesson-learned.md)).
## Author, Compile & Calibrate
Follow [authoring](references/authoring.md) ([template](templates/reviewer.md)), run `supagents build --strict --project && supagents clean --project --no-input && supagents check --strict --project`, audit with `fmind-review-design`, and calibrate live ([calibration](references/calibration.md)).
## Gotchas
- `agy` snapshots custom agents at startup: test edits in a fresh or headless session (`mise run test:supagents:live` in `fmind/dot`).
- In `fmind/dot`, retire removed global roles in `.chezmoiremove` before `mise run apply`.
## Documentation
- [Authoring](references/authoring.md) · [Balancing](references/balancing.md) · [Calibration](references/calibration.md) · [Template](templates/reviewer.md) · [agent-supagents](https://github.com/fmind/agent-supagents) · Companions: [full-review](../full-review/SKILL.md), [humanize](../humanize/SKILL.md), [cross-harness-agents](../agent-harnesses/references/cross-harness-agents.md), [headless-review](../agent-harnesses/references/headless-review/GUIDE.md).
Files in this skill
- SKILL.md
- references/calibration.md
- references/standards.md
- templates/reviewer.md
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.