/paideia:exam-drillfrom paideia
Generates exam-focused drill problems (twin variants, blind drills, integration chains, pattern cards, coverage maps) from analyzed math/physics course material. Reads course-index patterns and coverage files.
Ships in paideia. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The user does not type math into the CLI — it is too slow. All interactions obey:
Generation side (Claude → file). Problems, variants, and clean reference derivations are written as markdown files to quizzes/, twins/, chain/, derivations/. The user views them; no math dialogue in the terminal.
Answer side (user → PDF). The user solves on paper, scans as PDF, uploads to answers/<name>.pdf. The answer-processing skill (auto-loaded by /grade) converts the PDF to markdown and grades.
Strategy checks (when user is online) — when a command asks the user to verify understanding without producing a full written solution, it asks only for the strategy in 3–5 lines of prose (written in INTERFACE_LANG from .course-meta, default en): which pattern(s), which variables are fixed/expanded, what form the answer takes. Strategy matching is stronger evidence of mastery than line-by-line algebra.
HW density = exam probability. The professor has already told you, through HW, where the exam points live. Every drill command must bias toward HW-emphasized sections (🔥🔥 Exam-primary > 🔥 Exam-likely > 🟡 Exam-possible). Sections with no HW (⚪ Low-risk) are not "blind spots waiting to bite" — they are the professor's signal of what is off the exam. Do not treat low-HW sections as high-risk.
Concretely:
/twin, /blind default to the highest-HW-density problems when the user doesn't specify one./chain composes patterns drawn from Exam-primary sections; avoid pulling patterns from ⚪ sections unless the user explicitly asks./mock problem weighting follows HW density (see commands/mock.md)./quiz all samples ≥70% from 🔥🔥, ~25% from 🔥, ≤5% from 🟡, 0% from ⚪.This skill assumes /ingest and /analyze have been run. If course-index/patterns.md or course-index/coverage.md don't exist, tell the user to run those first.
course-index/patterns.md — recognition cards P1, P2, ...course-index/coverage.md — HW↔§ map, 🔥 exam tiers + ⚠weak flagscourse-index/summary.md — topic treeconverted/homework/*.md — original HW problemsconverted/solutions/*.md — HW solutions (ground truth for grading)errors/log.md — user's error history (append-only)<ts> is always date +%Y%m%d_%H%M%S (e.g. 20260611_213627) — one canonical
timestamp format for every drill artifact (/quiz, /twin, /chain, /mock).
Use underscores, not a - between date and time, and do not improvise a per-run
format. The stem you save (<id>_<ts>_sol.md) must be the exact <ts> you print
in the upload instruction (answers/…_<ts>.pdf) so /grade resolves it and the
course folder doesn't accumulate mixed-format filenames. (Generate it once with
date +%Y%m%d_%H%M%S and reuse that string for both the saved files and the
printed upload name.)
quizzes/<topic>_<ts>.md — problem statements (answers in _answers.md sibling)twins/<origin>_<ts>.md — variant problemschain/<ts>.md — integration problemsderivations/<topic>.md — clean reference derivations (post-success)errors/log.md — append error entries/twin <problem-id><problem-id> in converted/homework/ and converted/solutions/.course-index/patterns.md.twins/<id>_<ts>.md and solution to twins/<id>_<ts>_sol.md. Do not reveal solution unless user either (a) uploads their answer PDF, or (b) describes a correct strategy./blind <problem-id>converted/homework/.course-index/patterns.mdconverted/solutions/. Three checks: pattern / variable-choice / end-form.derivations/<stem>-<n>.md. On failure, flag the specific axis and log to errors/log.md./chain <N>course-index/coverage.md).⚠weak in course-index/coverage.md, or the latest weakmap's top entries)./pattern [§ or keyword or "all"]Read-only. Filter course-index/patterns.md by the query and return compact pattern cards.
/hwmap [§ | "hot" | "all"]Read-only. Project course-index/coverage.md by the query. hot ranks 🔥🔥/🔥 sections by HW density with their HW drill anchors and a per-§ recommendation (blind is accepted only as a legacy alias for hot — there is no blind-spot listing mode; ⚪ no-HW sections are low-risk by design).
Hold invariant:
Vary:
Quality check before presenting:
When any drill reveals an error, write to errors/log.md through the
deterministic writer — one call per graded source, entries as stdin:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/log_tool.py" append --source=<source> <<'YAML'
- problem_id: <HW#-P#, twin-id, or chain-ts>
pattern: <Pk from patterns.md>
error_type: pattern-missed | wrong-variable | wrong-end-form | algebraic | sign | definition
summary: "<one-line description>"
source: <answers/converted/<name>.md | blind/<id> | chain/<ts>>
date: <ISO8601>
YAML
This is the same canonical schema as skills/answer-processing/SKILL.md Step 6 — keep every key, including source: (the statusline's mock-phase detection regexes on it, and it doubles as the --source= idempotence key: re-grading a source replaces its entries instead of piling up duplicates). The tool schema-validates and writes atomically; never hand-edit the log's appended entries. /weakmap (top-level command) consumes this log; this skill just produces entries.
/grade → loads answer-processing skill (PDF → MD → compare with converted/solutions/)./ingest or /analyze → loads course-builder skill.pdf skill.INTERFACE_LANG (en or ko) from .course-meta. Default en if the field is absent.$...$ inline, $$...$$ display).course-index/summary.md (§, Ch., Ch 3.1, etc.) regardless of language.## One-line verdict, ## Page N, # Vision-OCR transcription) stay in English regardless of language.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
exam-drilling, problem-generation, course-review, math-physics
npx claudepluginhub optimeta/paideia --plugin paideia6 skills in this plugin
/alt-importParse an Exam Radar (OPTIMETA Alt plugin) export and fold its lecture-emphasis exam-probability signal into the PAIDEIA course index — write course-index/radar.md, annotate course-index/coverage.md with a lecture-emphasis column and divergence flags, and seed a gold-zone weakmap. Invoked by /paideia:alt. The export form is fixed (exam-radar:v1 marker)./answer-processingUse whenever the user uploads a hand-written or scanned answer PDF to be graded against a reference solution. Converts answer PDFs in `answers/*.pdf` to markdown in `answers/converted/*.md` using the pdf skill (OCR as needed), then performs strategy-based grading against `converted/solutions/*.md` or `quizzes/*_answers.md`. Invoked by `/grade`./course-builderUse whenever the user wants to ingest a new course's materials (lecture notes, textbook chapters, HW problems, HW solutions) and build the course-specific knowledge base — patterns.md (recurring solution techniques), coverage.md (HW-to-section map with 🔥 exam tiers + ⚠weak flags), and summary.md (topic tree). Invoked by `/ingest` and `/analyze` slash commands. Designed to be domain-general across math and physics courses (calculus, linear algebra, real/complex analysis, classical mechanics, E&M, thermodynamics, quantum, etc.)./pdfUse whenever the user works with PDF files — reading/extracting text from PDFs (lecture notes, textbook chapters, HW problems, HW solutions, hand-written answers), converting PDFs to markdown for downstream analysis, merging/splitting PDFs, or creating PDFs. For scanned or hand-written PDFs, OCR is required (pytesseract + pdf2image). Based on Anthropic's official PDF skill (github.com/anthropics/skills/tree/main/skills/pdf)./vision-ocrUse whenever a hand-written or scanned answer PDF needs transcription to markdown for /grade. Three tiers — Claude native vision (default, no extra install), local Qwen3-VL 8B via ollama (opt-in privacy mode), pytesseract fallback. The engine is selected via `OCR_ENGINE` in `.course-meta` (written by /paideia:init-course) and can be overridden per-call with `/paideia:grade --ocr=<engine>`.Other plugins' skills for the same job