agentleFS
dafaalzdafaalz/agent-skills/skills/council-review/SKILL.md

council-review

Skill2 starsChanged 2 months agoMITView on GitHub

Use when orchestrating an adversarial review council of independent specialized reviewer threads to stress-test designs, interactions, and accessibility. Don't use for single-thread code reviews (use code-review), single-perspective UI heuristic checks (use ui-ux-review), or greenfield design ideation (use brainstorming).

15 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

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

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

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

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

    Audit mode (default): Run Steps 1 through 3 read-only to discover caller runtime, dispatch three isolated reviewer threads, and emit …

    line 17
  2. Very specific:

    Remediation mode: Run Steps 1 through 4 to fix reported defects, verify builds and tests, and re-evaluate failing seats up to 3 remediation …

    line 18
  3. Very specific:

    Wait for every thread via t3_thread_wait, read results via t3_thread_read, and validate against references/scoring-rubric.md (starting …

    line 52
  4. Very specific:

    If min(Score_Visual, Score_Motion, Score_A11y) > 9.00, write $CNL_RUN_DIR/audit-signoff.json and finish.

    line 58
  5. Very specific:

    If any seat remains at or below 9.00 after Round 3, halt and write remaining blockers to $CNL_RUN_DIR/escalation.md for user direction.

    line 62
  6. Very specific:

    Keep reviewer threads strictly read-only and isolated from each other.

    line 78

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

Council review

Orchestrate three isolated reviewer threads (visual design system, interaction and motion physics, and WCAG accessibility) against a running web application, scoring reductively from 10.00 with no zero floor until every seat clears 9.00.

<HARD-GATE> Write-Target Boundary. Declare `CNL_RUN_ID` before Step 1 and store all council artifacts under `$CNL_RUN_DIR` (defaulting to `.agents/state/council-review/$CNL_RUN_ID`). In Audit mode, never modify tracked repository files. In Remediation mode, edit only files directly cited by verified council findings; never alter package manifests or database schemas unless explicitly cited. Reviewer threads must never inspect sibling threads or edit repository files. </HARD-GATE>

Modes

Declare the operating mode before Step 1:

  • Audit mode (default). Run Steps 1 through 3 read-only to discover caller runtime, dispatch three isolated reviewer threads, and emit $CNL_RUN_DIR/council-verdict.md.
  • Remediation mode. Run Steps 1 through 4 to fix reported defects, verify builds and tests, and re-evaluate failing seats up to 3 remediation rounds until every seat exceeds 9.00.

Reference quick routing

Council concernReference moduleLoad trigger
Thread dispatch and state schemareferences/orchestration-protocol.mdAlways load in Step 1 and Step 2 for t3-code capability discovery and thread dispatch
Seat and re-evaluation promptsreferences/council-prompts.mdLoad in Step 2 for initial seat prompts and Step 4 for failing-seat re-evaluation
Reductive scoring rubricreferences/scoring-rubric.mdLoad in Step 3 to validate starting 10.00 score and deduction tiers

Workflow

Bind run-scoped state paths once before Step 1 and reuse CNL_RUN_ID across all steps:

CNL_RUN_ID="${CNL_RUN_ID:-$(date -u +%Y%m%dT%H%M%SZ)-$$}"
CNL_RUN_DIR="${CNL_RUN_DIR:-.agents/state/council-review/$CNL_RUN_ID}"
mkdir -p "$CNL_RUN_DIR"

Step 1. Discover caller environment and target

Query orchestrator_capabilities from t3-code per references/orchestration-protocol.md, extract inheritedProviderInstanceId, inheritedModel, and inheritedOptions, identify the active preview URL and source directories, and write $CNL_RUN_DIR/discovery.json.

Completion criterion. $CNL_RUN_DIR/discovery.json exists on disk with inheritedProviderInstanceId, inheritedModel, inheritedOptions, and target_url.

Step 2. Dispatch three independent reviewer threads

Format three prompts from references/council-prompts.md (Seat 1 visual and design tokens, Seat 2 interaction and motion physics, Seat 3 WCAG 2.1 and 2.2 AA accessibility) with the target URL and source paths. Spawn all three threads in one create_threads call using discovered providerInstanceId, model, and options without sharing sibling thread context, and save the three thread IDs to $CNL_RUN_DIR/council-session.json.

Completion criterion. $CNL_RUN_DIR/council-session.json exists on disk with exactly three isolated reviewer thread IDs.

Step 3. Collect audits and synthesize verdict

Wait for every thread via t3_thread_wait, read results via t3_thread_read, and validate against references/scoring-rubric.md (starting score 10.00, deductions mapped to Fatal Flaw, Structural Flaw, Serious Flaw, or Cosmetic Flaw, and exact file.ext:line plus DOM or visual evidence). Compute min(Score_Visual, Score_Motion, Score_A11y) and write $CNL_RUN_DIR/council-verdict.md. Halt here in Audit mode.

Completion criterion. $CNL_RUN_DIR/council-verdict.md exists on disk with validated scores, itemized deductions for all three seats, and the compound minimum score.

Step 4. Remediate defects and re-evaluate (Remediation mode only)

If min(Score_Visual, Score_Motion, Score_A11y) > 9.00, write $CNL_RUN_DIR/audit-signoff.json and finish. Otherwise enter the bounded remediation loop (maximum 3 rounds):

  1. Apply targeted code fixes strictly for cited files and run project tests plus preview build verification.
  2. Send the re-evaluation prompt from references/council-prompts.md to failing threads via t3_thread_send, wait via t3_thread_wait, and read updated scores via t3_thread_read.
  3. If any seat remains at or below 9.00 after Round 3, halt and write remaining blockers to $CNL_RUN_DIR/escalation.md for user direction.

Completion criterion. $CNL_RUN_DIR/audit-signoff.json exists with all three seat scores strictly greater than 9.00 (or $CNL_RUN_DIR/escalation.md records unresolved defects after Round 3).

Anti-patterns

IDTitlePattern descriptionWhy it failsConcrete fix
CNC-1Provider driftHardcodes a provider or model instead of querying caller capabilitiesRuns reviewers on mismatched or unsupported modelsInherit provider, model, and options from orchestrator_capabilities
CNC-2Cross-thread contaminationAllows reviewer seats to read sibling thread outputsReplaces independent adversarial review with herd biasEnforce isolated zero-sibling-read prompts per seat
CNC-3Inflationary scoringStarts from 0 and adds points for working featuresMasks fatal defects behind unrelated aesthetic praiseEnforce uncapped reductive scoring strictly from 10.00
CNC-4Premature average exitDeclares pass when the mean of three seats exceeds 9.00Ships fatal defects hidden in one failing seatGate completion strictly on min(scores) > 9.00
CNC-5Unbounded remediation loopRetries failing seats indefinitely without a round ceilingBurns token budget on unresolved architectural conflictsCap remediation at 3 rounds and write $CNL_RUN_DIR/escalation.md

Boundary isolation

Keep reviewer threads strictly read-only and isolated from each other. Confine council state to $CNL_RUN_DIR and restrict Remediation edits strictly to cited UI defects verified by tests and preview builds.

Quick audit checklist

CheckPassing condition
Environment discovery$CNL_RUN_DIR/discovery.json captures inherited provider, model, options, and URL
Thread isolationThree independent threads created in one call with zero cross-thread reads
Reductive rubricEvery seat starts at 10.00 with cited file.ext:line deductions
Passing gatemin(scores) > 9.00 in $CNL_RUN_DIR/audit-signoff.json or escalated after Round 3

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.