standardgraph: Command for Claude Code

.claude/commands/add-country.md

add-country is a command for Claude Code from swoopeagle/standardgraph. It costs 0 tokens per session (2,510 once invoked), scanned A, original, MIT.

A step-by-step command for adding or extending a country’s official school curriculum in StandardGraph, a system for storing education standards. It covers finding source documents, extracting their contents, and adding the resulting standards.

In plain words
What is it for?
It helps research official curriculum sources, extract standards from PDFs, use OCR when needed, check source URLs, add embeddings for search, and verify the imported curriculum.
Why use it?
It provides a tested process for handling difficult curriculum PDFs, including damaged fonts, rotated text, and tables, while reducing the chance of missing or misreading standards.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents.

This is swoopeagle/standardgraph's own configuration. It tells Claude Code how to work on standardgraph itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything standardgraph configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is DB_PATH=~/.standardgraph/common_core.db uv run python scripts/mcp_test.py.

Reuse

Borrowing it

Nothing to install: this file belongs to swoopeagle/standardgraph. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/swoopeagle/standardgraph/main/.claude/commands/add-country.md
Clone the repo
git clone --depth 1 https://github.com/swoopeagle/standardgraph

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 add-country

README.md
[![agentmods](https://agentmods.dev/badge/commands/swoopeagle/standardgraph/add-country.svg)](https://agentmods.dev/commands/swoopeagle/standardgraph/add-country)
Your own site
<a href="https://agentmods.dev/commands/swoopeagle/standardgraph/add-country"><img src="https://agentmods.dev/badge/commands/swoopeagle/standardgraph/add-country.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,510 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00000 $0.02510
Opus 5 $0.00000 $0.01255
Sonnet 5 $0.00000 $0.00502
Haiku 4.5 $0.00000 $0.00251

Measured 8d ago against content hash 45c4a987cc4f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

add-country scanned grade A with 1 finding 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 8d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

`urllib.request.Request(url, headers={"User-Agent": "Mozilla/5.0"})` +
.claude/commands/add-country.md · 185 lines

How it starts

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

Add a new country's curriculum (or extend/fix an existing one) to StandardGraph. This is the battle-tested playbook from the 2026-07 Africa expansion (10 new systems, 3 extended, 5,814+ new standards) — follow it instead of re-deriving the approach from scratch.

The single highest-leverage decision in that session: do extraction with Claude/subagents directly, not local Ollama models (gemma4, qwen). Local models got fooled by corrupted fonts, rotated/reversed text, and multi-column tables — Claude subagents caught and fixed all of these autonomously (one installed Tesseract OCR mid-task on CID-encoded garbage; another reverse-engineered a custom font substitution cipher; another caught a mislabeled source URL by actually reading the page). Reserve the Ollama fleet for what it's actually good at: nomic-embed-text embeddings, which are mechanical and don't need judgment. Only fall back to the fleet for extraction if the user explicitly asks for it.

Phase 1 — Research

  1. Identify the country's official curriculum body (ministry of education / curriculum development center / examinations council).
  2. Find real PDF URLs for the target subject/grade-bands via WebSearch. Before trusting a URL, WebFetch it and read page 1 to confirm it's actually the claimed subject — a government site mislabeling its own links is common. (Nigeria's given "math" URL turned out to be the National Values Curriculum — caught only by reading the extracted text.)
  3. Work out grade-band coverage (primary/secondary/A-level etc.) and map it to this project's convention: grades are plain strings "1""9", "K" for kindergarten/reception/Grade R, "HS" for any 10-12/A-level/upper-secondary content. Only set grade_band="9-12" when grade="HS" — every other grade gets grade_band=NULL.
  4. Pick a system code: lowercase, hyphenated, country-prefixed (na-nied, ke-kicd, zw-zimsec). Check it doesn't collide: sqlite3 ~/.standardgraph/common_core.db "SELECT DISTINCT system FROM standards WHERE system LIKE '<prefix>%';"
  5. Crosswalk hub: currently only math→ccss is wired for new systems. Science/ELA/social studies extractions are fine to add but won't get a crosswalk pass unless you extend crosswalk_engine/nlp_pass.py's hub logic first.

Read the full file on GitHub · 185 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. 8d ago First seen · 185 lines · 0 tokens per session scan A 45c4a987cc4f

Subscribe to this mod's changes

add-country is a command published in the GitHub repository swoopeagle/standardgraph (5 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,510 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.