judges adding-a-judge.instructions.md

judges adding-a-judge.instructions.md is an instructions file for GitHub Copilot from KevinRabun/judges. It costs 1,680 tokens per session, scanned A, original, MIT.

Step-by-step instructions for adding a new judge to the Judges Panel in the KevinRabun/judges project. A judge is an evaluator definition that applies a set of rules to submitted work.

In plain words
What is it for?
Creating the judge's agent file, defining its evaluation script and ordering, writing its criteria, and checking that the project loads the new judge.
Why use it?
It explains which files and registration details must be added so the new judge is discovered and used correctly. This avoids missing the evaluator, metadata, or loading step.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt.

Not installable on its own: it reads a path above its own folder, which only exists inside its repository. The line is import type { Finding } from "../types.js";.

Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for judges adding-a-judge.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/kevinrabun/judges/adding-a-judge.svg)](https://agentmods.dev/instructions/kevinrabun/judges/adding-a-judge)
Your own site
<a href="https://agentmods.dev/instructions/kevinrabun/judges/adding-a-judge"><img src="https://agentmods.dev/badge/instructions/kevinrabun/judges/adding-a-judge.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,680 This file is loaded in full into every session.
When invoked 1,680 The same file — it is already loaded in full.
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.1 $0.01680 $0.01680
Opus 5 $0.00840 $0.00840
Sonnet 5 $0.00336 $0.00336
Haiku 4.5 $0.00168 $0.00168

Measured 5d ago against content hash 5323f357db38, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

judges adding-a-judge.instructions.md 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 5d ago.

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.

.github/instructions/adding-a-judge.instructions.md · 161 lines

How it starts

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

Adding a New Judge — Step-by-Step

When adding a new judge to the Judges Panel, follow these steps exactly. All judges now load from agent files (agents/<id>.judge.md). The registry bootstraps from the agents directory at runtime. Evaluators remain in src/evaluators/ and are referenced via the script: field in the agent frontmatter.

ℹ️ Back-compat: legacy .agent.md files are still readable, but all new agents must use .judge.md.

The legacy side-effect imports in src/judges/index.ts have been removed. If you need to add a judge, follow the agent-native workflow below.


0. Create/Update Agent File (agents/<id>.judge.md)

Frontmatter fields:

  • id, name, domain, rulePrefix, description, tableDescription, promptDescription
  • script: relative path to evaluator module (e.g., ../src/evaluators/cybersecurity.ts)
  • priority: integer ordering (lower runs earlier; 999 reserved for false-positive-review)

Body becomes the system prompt (persona + evaluation criteria). See existing agents for patterns.

You can regenerate agents from the registry with:

npm run generate:agents        # skip existing
npm run generate:agents:force  # overwrite
npm run validate:agents        # sanity check against registry

1. Create the Evaluator

Create src/evaluators/{judge-id}.ts with an analyze function:

import type { Finding } from "../types.js";

export function analyzeSupplyChain(code: string, language: string): Finding[] {
  const findings: Finding[] = [];
  const prefix = "SCS";
  // ... deterministic analysis logic ...
  return findings;
}

Key requirements:

  • The function signature is (code: string, language: string) => Finding[]
  • Use the same rulePrefix from the judge definition
  • Import shared utilities from ./shared.js as needed
  • Follow existing evaluators as templates (e.g. data-security.ts, cybersecurity.ts)

2. Create the Judge Definition (with self-registration)

Read the full file on GitHub · 161 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. 5d ago First seen · 161 lines · 1,680 tokens per session scan A 5323f357db38

Subscribe to this mod's changes

judges adding-a-judge.instructions.md is an instructions file published in the GitHub repository KevinRabun/judges (7 stars, last pushed 2mo ago), licensed MIT. It adds 1,680 tokens to every session, about $0.0084 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.