agentsclimarketplace

Judge prompting

Skill usetheodev/judge-codex-plugin-cc/skills/judge-prompting

Internal prompting contract for assembling the Codex judge prompt. Used by the companion script to template the system + golden-rule + artifact bundle.From its SKILL.md

Install
npx -y skills add usetheodev/judge-codex-plugin-cc --skill judge-prompting

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

4.0 KB, as published. Nobody here has run it

judge-prompting

How the companion script assembles the prompt fed to codex exec.

Template (compose 4 segments, in order)

<segment 1: agent system prompt — read from ${CLAUDE_PLUGIN_ROOT}/agents/<stage>-judge.md>

<segment 2: golden-rule contract — read from CONSUMER_REPO/rules/<rule>.md OR ${CLAUDE_PLUGIN_ROOT}/templates/golden-rules/<rule>.md fallback>

<segment 3: artifact to judge — read from CONSUMER_REPO/knowledge-base/<dir>/<slug>-<stage>.md>

<segment 4: stage-specific instructions:>
You are judging stage "<stage>" of slug "<slug>". Read the golden-rule above, then the artifact, then emit ONLY a JSON object matching schemas/<stage>-judge-output.schema.json. No prose around the JSON. No code fences around the JSON.

Rules for the assembled prompt

  • The system / golden-rule / artifact MUST be quoted with clear delimiters (e.g., <<<AGENT_SYSTEM>>>, <<<GOLDEN_RULE>>>, <<<ARTIFACT>>>).
  • The artifact is included VERBATIM. No summarization, no truncation unless artifact > 200KB (in which case the companion logs a warning and truncates the prose body — never the headers).
  • The instruction at segment 4 ALWAYS includes "emit ONLY JSON" — Codex is reliable about following structured-output requests when the contract is explicit.

Per-stage rule files used

StagePrimary ruleFallback (in plugin)
discoverrules/discover-blueprint-golden-rule.mdtemplates/golden-rules/discover-blueprint-golden-rule.md
planrules/plan-confidence-golden-rule.mdtemplates/golden-rules/plan-confidence-golden-rule.md
implementationrules/cycle-implement.md + rules/code-quality-golden-rule.mdboth fallbacks
finalrules/cycle-review.mdtemplates/golden-rules/cycle-review.md

Schemas referenced in the prompt

StageOutput schema
discoverschemas/discover-judge-output.schema.json
planschemas/plan-judge-output.schema.json
implementationschemas/implementation-judge-output.schema.json
finalschemas/final-judge-output.schema.json

Cross-validation prompt elements (per-stage)

The instruction segment 4 also embeds the Claude-side verdict if it exists (for disagreement detection downstream):

Note: the Claude-side equivalent gate (`/plan-confidence`, `/review`, etc.) reached this verdict on this artifact:
  verdict: <V>
  score: <N>
  hard_caps_triggered: [...]

You MUST reach your own independent verdict. Do not anchor on the Claude-side result. Disagreement is the highest-value outcome.

This explicit anti-anchoring instruction is critical — without it, Codex tends to agree with the upstream verdict (sycophancy / mode-matching).

Token budget — QUALITY OVER ECONOMY

judge-codex prioritizes judgement quality over token economy. This is a deliberate trade-off:

  • Reasoning effort: the companion calls codex exec -c model_reasoning_effort="xhigh" by default — top tier on the OpenAI side. Override via env JUDGE_CODEX_EFFORT=high|medium|low|minimal|none or per-invocation flag if cost is a concern, but the default DOES NOT compromise.
  • Artifact reading: FULL file is fed to Codex. No head+tail truncation. The whole plan, the whole implementation log, the whole consolidated review — all of it.
  • Hard fence (defense in depth, not optimization): JUDGE_CODEX_MAX_ARTIFACT_BYTES defaults to 16 MB. Any artifact exceeding it fails loud (raise Error) rather than silently truncating. Raise the env var only if intentional; never silently lose context.
  • Buffer: the spawned codex subprocess is granted maxBuffer: 256 MB for stdout — comfortably above any judge run produced in xhigh mode.
  • Timeout: subject to the caller's wallclock. xhigh runs take several minutes per stage; plan accordingly.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.