q-validate

A multi-round review skill in which agents independently examine a plan file and discuss possible improvements before work begins.

In plain words
What is it for?
Reviewing a specified plan file, requesting additional critique rounds, and optionally producing more detailed output.
Why use it?
It helps expose missing details, risks, and disagreements in a draft plan before implementation is committed.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/sdewell/code-quorum/q-validate
Any agent
npx skills add sdewell/code-quorum --skill q-validate
Clone the repo
git clone --depth 1 https://github.com/sdewell/code-quorum

Made for: Claude Code, Codex.

Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,676 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00054 $0.01676
Opus 5 $0.00027 $0.00838
Sonnet 5 $0.00011 $0.00335
Haiku 4.5 $0.00005 $0.00168

Measured yesterday against content hash 8b2da4c5a742, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

q-validate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/code-quorum/skills/q-validate/SKILL.md · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Q-Validate — multi-round plan review

Completion gate

For every council start, q_await is the blocking completion notification. After completing the host's independent work, call it in the same turn as the start. Do not end the turn, tell the user you will check later, or leave a live job_id pending. If the council is still running, remain in the blocking call until it returns a result or error.

Arguments

$ARGUMENTS is the path to the plan file, optionally with --verbose to lift the terse output caps and/or --gemini-model <id> to run the gemini seat on a specific agy model. Strip --verbose and --gemini-model <id> from the path before passing plan_path. If the remaining path is empty, ask the user which plan file to review.

Host routing

Claude Code uses the mcp__plugin_code-quorum_quorum__* tools and passes host: "claude". Codex uses the mcp__quorum_codex__* tools and passes host: "codex". The workflows are otherwise identical.

If either required MCP tool is absent from the current task's tool registry, stop and report that the plugin MCP server did not load. Do not substitute the synchronous CLI, direct Python imports, or another runtime path: only the registered start/await pair enforces the structural anti-bias gate.

Every MCP council start requires an explicit absolute cwd. Never omit it: the MCP server's own working directory is its installation or runtime location, not the project selected by the user.

Step 1 — Start the agents (non-blocking)

Call mcp__plugin_code-quorum_quorum__q_validate_start (Claude Code) or mcp__quorum_codex__q_validate_start (Codex) with:

  • plan_path: a bare file path only (absolute, or relative to cwd) that resolves inside cwd; paths outside the working directory are rejected before reading. q_validate_start open()s this path directly, so it CANNOT carry an appended context/boundaries block — passing <path> + prose errors with File name too long. If $ARGUMENTS includes reviewer context beyond the path, do NOT forward it here; instead put that context, boundaries, or specific questions inside the plan file (e.g. an ## Open questions for review section) — the agents read the file.
  • cwd: the absolute path of the project working directory
  • host: the current host selected above
  • extended: false by default (2-round review). Set true for a 4-round deliberation with a stance rotation at round 3 — use only when the plan is contentious or high-stakes.
  • mode: "revise" (default) — agents soften or strengthen positions in light of peers. Use "critique" when you want them to attack each other's points.
  • agents: optional; omit it for every external seat in the current host profile (a seat the user has marked disabled in quorum setup-models is skipped from that default roster). Passing agents explicitly overrides the skip and runs a disabled seat anyway — a deliberate ask always runs.
  • verbose: false by default. The council writes terse output — no prose padding, path:line citations instead of pasted code, and later rounds omit restating what is unchanged. Set true only if the user gave --verbose; it produces a much larger matrix.
  • gemini_model: omit by default. Pass an agy model id (exactly as printed by agy models) when the user gave --gemini-model <id> or asked for a specific model in the gemini seat — e.g. claude-opus-4-6-thinking to have that seat answer with Claude on the same AI Pro plan.

Read the full file on GitHub · 96 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 96 lines · 54 tokens per session scan A 8b2da4c5a742

Subscribe to this mod's changes

q-validate is a skill published in the GitHub repository sdewell/code-quorum (0 stars, last pushed yesterday), licensed MIT. It adds 54 tokens to every session and 1,676 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.