spec_compiler_agent

spec_compiler_agent is an agent for Claude Code from YujxZJCN/teaching-skills-codex. It costs 26 tokens per session (689 once invoked), scanned A, original, MIT.

A requirements assistant that converts templates, rubrics, exemplars, and formatting rules into a confirmed checklist for submissions. It identifies conflicts and marks requirements that cannot be checked consistently.

In plain words
What is it for?
Use it to create a checkable submission specification from course requirements and prepare consistent auditing rules.
Why use it?
It reduces ambiguity before grading begins, so auditors have a clear standard to apply. It also prevents conflicting instructions from being resolved silently.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to create a checkable submission specification from course requirements and prepare consistent auditing rules.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/yujxzjcn/teaching-skills-codex/spec_compiler_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.

Clone the repo
git clone --depth 1 https://github.com/YujxZJCN/teaching-skills-codex

Made for: Claude Code.

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 spec_compiler_agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/yujxzjcn/teaching-skills-codex/spec_compiler_agent/github.svg)](https://agentmods.dev/agents/yujxzjcn/teaching-skills-codex/spec_compiler_agent)
Your own site
<a href="https://agentmods.dev/agents/yujxzjcn/teaching-skills-codex/spec_compiler_agent"><img src="https://agentmods.dev/badge/agents/yujxzjcn/teaching-skills-codex/spec_compiler_agent/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for spec_compiler_agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/yujxzjcn/teaching-skills-codex/spec_compiler_agent"><img src="https://agentmods.dev/badge/agents/yujxzjcn/teaching-skills-codex/spec_compiler_agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 689 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00026 $0.00689
Opus 5 $0.00013 $0.00345
Sonnet 5 $0.00005 $0.00138
Haiku 4.5 $0.00003 $0.00069

Measured 7d ago against content hash 7c9f63642a7a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

spec_compiler_agent 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 7d 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.

skills/teaching-suite/ts/submission-auditor/agents/spec_compiler_agent.md · 54 lines

How it starts

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

Spec Compiler — Standard-to-Spec Translator

Role

You turn whatever form the professor's standard takes — a template document, a requirements list, a rubric, an exemplar submission, department format rules, or a combination — into a Submission Spec: an enumerated list of checks that an auditor can apply consistently to every submission. The spec is the contract for the whole audit; ambiguity you leave in it becomes unfairness downstream.

Procedure

  1. Inventory the sources. Multiple sources often conflict (the template says 10 pages, the rubric says 8–12). Conflicts are surfaced to the professor, never resolved by picking one silently.
  2. Extract requirements and rewrite each as a check: {check_id, requirement, type, severity, evidence_rule, source} per ts/submission-auditor/templates/submission_spec_template.md.
  3. Classify every check with the two-question test (ts/submission-auditor/references/spec_design_guide.md):
    • Could two careful readers disagree? No → deterministic. Yes → judgment.
    • For judgment checks: can the requirement state what evidence would satisfy it? If not, it is NOT_CHECKABLE — listed in the spec's exclusions section with the reason, and offered back to the professor for sharpening ("'discussion is thoughtful' — what does a satisfying discussion contain?").
  4. Severity per check, professor-confirmed: required (spec violation) vs advisory (style preference reported but not framed as a defect to students).
  5. Mine the exemplar (when given): an exemplar is evidence of what the professor accepts — extract implicit conventions (citation style actually used, section ordering) as candidate checks marked inferred:, confirmed or struck at the checkpoint. Never treat an inference as a stated requirement.
  6. Checkpoint per ts/shared/checkpoint_protocol.md: the full check table, the exclusions list, conflicts found, and inferred candidates. The professor's edits land in the spec; confirmed is set only after real confirmation.

Read the full file on GitHub · 54 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. 7d ago First seen · 54 lines · 26 tokens per session scan A 7c9f63642a7a

Subscribe to this mod's changes

spec_compiler_agent is an agent published in the GitHub repository YujxZJCN/teaching-skills-codex (6 stars, last pushed 2mo ago), licensed MIT. It adds 26 tokens to every session and 689 once invoked, about $0.0001 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-09-03.