agentleFS
fmindfmind/dot/skills/subagent/SKILL.md

subagent

Skill14 starsChanged yesterdayMITView on GitHub

Author, compile, calibrate, and run read-only adversarial reviewer subagents (supagents or host roles).

10 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Tier 1 (1 role, default): run code, human, visuals, or project on the frozen diff before PR, push, or delivery.

    line 36
  2. Very specific:

    Follow authoring (standalone starter: template), run supagents build --strict --project && supagents clean --project --no-input && …

    line 44

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

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 representing orthogonal adversarial postures and permission tiers—never 1:1 skill mirrors. Pass matching SKILL.md/reference paths for stack-specific checks (Skill-as-Rubric), or add project-local <org>-review-* roles only where a repo needs a standing stack specialist. Project AGENTS.md/DESIGN.md/SECURITY.md and <org>-review-* override defaults without weakening security or Output Contract; reviewers stay single-lens and ignore Priorities while the coordinator arbitrates trade-offs.

Core Reviewer Roles

Active global roles compile from three partials (_reviewer.md air-gapped flash, _reviewer_pro.md extending _reviewer on pro, and _reviewer_web.md flash + public web lookup; host limits in cross-harness-agents):

  • fmind-review-code (flash): correctness, edge cases, failure atomicity, contracts, test strength, diff hygiene, plus supplied domain skills.
  • fmind-review-design (pro): architecture boundaries, alternatives/rollback, spec fit, YAGNI/DELETIONS, and end-to-end completeness/zero stubs.
  • fmind-review-security (pro): exploits, authn/authz, IAM/CI/CD, secrets, AI/prompt/MCP/hook boundaries, supply-chain pins, privacy, and license/ToS compliance.
  • fmind-review-human (flash): busy-reader cognitive load, take-home clarity, anti-slop, cuts/DELETIONS, README/doc parity, and runbook safety.
  • fmind-review-visuals (flash): rendered decks, charts, diagrams, and web UI captures (geometry, scales, CVD, tokens, WCAG AA, UI states).
  • fmind-review-project (flash): repo AGENTS.md constitution size, .agents/skills/ progressive disclosure, local supagents, and docs/ vs openspec/ lane hygiene.
  • fmind-review-factcheck (flash, _reviewer_web): live primary-source URL/version/quote checks and arithmetic, unit, FinOps, or pricing reconciliation.

Risk-Gated Triggering & Coordinator Loop

Centralize triggering here and in global AGENTS.md instead of scattering role menus across domain skills:

  1. Skip (Tier 0, 0 tokens): small local edits (< ~50 LOC, no contract/boundary change), refactors proven by linters/tests, and short 1:1 replies.
  2. Preflight & capture (0 tokens): confirm no repo-local .agents/agents/fmind-review-*, .agents/agents.json, or .github/agents/fmind-review-* shadows global roles (dot context --check); run linters, tests, scanners, and renders first, writing frozen diffs, manifests, gate logs, and PNG/PDF/DOM renders to a temp dir (headless-review).
  3. Invoke with absolute paths (Tier 1–Tier 2):
    • Tier 1 (1 role, default): run code, human, visuals, or project on the frozen diff before PR, push, or delivery. Pass absolute paths to any relevant SKILL.md/reference and AGENTS.md/DESIGN.md/SECURITY.md (copy external skills into $render_dir on sandboxed headless runs).
    • Tier 2 (2 roles max, rarely 3 on whole-repo audits): escalate only for trust boundaries (security), multi-module/spec/architecture changes (design), or external claims/math (factcheck, isolated in /var/tmp with sanitized extracts on secret-bearing repos).
    • Clean-context agy reviewers strip CWD and bind read_file only; unreadable targets fail closed (BLOCK; flash → Gemini 4 Hydrogen (High), pro → Gemini 4 Hydrogen (XHigh); pass --model explicitly on headless agy --agent).
  4. Triage skeptically & stop: treat findings as hypotheses, never orders. Re-read loc: in live files, drop fabricated/linter-cleared/out-of-scope items, fix verified P0s (BLOCK), arbitrate verified P1s (REVISE) per balancing (rejecting/downgrading over-calibrated items with a 1-line rationale), take quick P2/DELETIONS once, and cap at 2 rounds (round 2 checks only the fix diff with only the blocking lens; never re-review for P2/DELETIONS).
  5. Ratchet recurring P1s: promote defect patterns flagged >= 2 times into deterministic gates via lesson-learned.

Author, Compile & Calibrate

Follow authoring (standalone starter: template), run supagents build --strict --project && supagents clean --project --no-input && supagents check --strict --project, audit with fmind-review-design passing references/authoring.md, and calibrate live per calibration.

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, global sources live in dot_agents/supagents/, follow the repo AGENTS.md supagents gate, keep discovery < 2,000 tok, retire old roles in .chezmoiremove, and run mise run apply.

Documentation

  • Authoring · Balancing · Calibration · Template · agent-supagents · Companions: full-review, humanize, cross-harness-agents, headless-review.

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.