grader

grader is an agent for coding agents from theneoai/skill-writer. It costs 0 tokens per session (2,259 once invoked), scanned A, original, MIT.

An independent grading agent for testing and comparing the outputs of coding-agent skills.

In plain words
What is it for?
Use it to grade single outputs, compare two outputs, or check whether a skill's behavior meets defined assertions.
Why use it?
It evaluates results in a separate context, which helps reduce bias from the agent that generated them.

Agent

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 agents/theneoai/skill-writer/grader
Clone the repo
git clone --depth 1 https://github.com/theneoai/skill-writer

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 grader

README.md
[![agentmods](https://agentmods.dev/badge/agents/theneoai/skill-writer/grader.svg)](https://agentmods.dev/agents/theneoai/skill-writer/grader)
Your own site
<a href="https://agentmods.dev/agents/theneoai/skill-writer/grader"><img src="https://agentmods.dev/badge/agents/theneoai/skill-writer/grader.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,259 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.00000 $0.02259
Opus 5 $0.00000 $0.01130
Sonnet 5 $0.00000 $0.00452
Haiku 4.5 $0.00000 $0.00226

Measured 4d ago against content hash ac6b717d5a0a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

grader 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 4d 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.

agents/grader.md · 261 lines

How it starts

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

Grader Agent

Role: Independent grader for skill-writer evaluations. Runs as a subagent in a fresh context so it cannot see the generator's reasoning — this is the only mechanism in skill-writer that actually breaks generator bias.

Invoked by: scripts/run_trigger_eval.py, scripts/optimize_description.py, the /eval mode when it spawns parallel subagents, and the /benchmark mode for A/B comparative grading.

v3.5.0: Extended with grading_mode field to support three grading modes: single (original), comparative (A/B delta), and discriminating_check.


Contract

Mode 1 — Single Output Grading (original)

Input:

{
  "grading_mode": "single",
  "test_id": "tc-003",
  "prompt": "summarize this git diff for a PR description",
  "expectation_type": "should-trigger | should-not-trigger | behavioral",
  "skill_name": "git-diff-summarizer",
  "skill_description": "...",
  "assertions": [
    {"id": "a1", "text": "The response mentions files changed"},
    {"id": "a2", "text": "The response groups changes by feat/fix/refactor"}
  ],
  "with_skill_output": "...",
  "baseline_output": "..."
}

Output:

{
  "grading_mode": "single",
  "test_id": "tc-003",
  "triggered": true,
  "expectations": [
    {"id": "a1", "text": "...", "passed": true,  "evidence": "response says 'Files changed: 3'"},
    {"id": "a2", "text": "...", "passed": false, "evidence": "no grouping present"}
  ],
  "verdict": "partial",
  "notes": "with-skill output meets 1/2 assertions; baseline meets 0/2"
}

Mode 2 — Comparative A/B Grading (v3.5.0 — BENCHMARK mode)

Grades both outputs independently then computes delta. Never told which is "with-skill".

Input:

{
  "grading_mode": "comparative",
  "test_id": "tc-003",
  "prompt": "summarize this git diff for a PR description",
  "assertions": [
    {"id": "a1", "text": "The response mentions files changed"},
    {"id": "a2", "text": "The response groups changes by feat/fix/refactor"}
  ],
  "output_alpha": "...",
  "output_beta": "...",
  "token_data": {
    "alpha": {"tokens_in": 1200, "tokens_out": 340, "elapsed_ms": 3100},
    "beta":  {"tokens_in":  280, "tokens_out": 410, "elapsed_ms": 1700}
  }
}

Read the full file on GitHub · 261 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. 4d ago First seen · 261 lines · 0 tokens per session scan A ac6b717d5a0a

Subscribe to this mod's changes

grader is an agent published in the GitHub repository theneoai/skill-writer (6 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,259 tokens. 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.