math-worksheets
Installation
SKILL.md
Math Worksheet Generator
Generate a student worksheet PDF + full step-by-step answer key PDF for any K-12 math topic. Compiles LaTeX with tectonic (no TeX installation required — it auto-downloads packages).
Model Selection (Automatic)
This skill auto-detects the best available reasoning model and uses it for problem generation. Reasoning models (o1, o3, DeepSeek R1, Gemini DeepThink) work through math step-by-step and make significantly fewer errors than standard models.
Model rankings are kept fresh via a three-layer fallback:
- Hosted JSON (fetched from GitHub, 7-day cache) — updated by maintainers as models ship
- Bundled JSON (
references/model-rankings.json) — updated with each skill release on ClawhHub - Hardcoded defaults in the script — last-resort, never stale enough to cause failures
To update rankings without waiting for a skill release: edit the hosted JSON at the GitHub URL in references/model-rankings.md. The skill picks it up within 7 days.
Step 0 — run model detection before anything else: