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.
npx agentmods add commands/optimeta/paideia/cheatsheetgit clone --depth 1 https://github.com/OPTIMETA/PAIDEIAWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00029 | $0.01669 |
| Opus 5 | $0.00015 | $0.00834 |
| Sonnet 5 | $0.00006 | $0.00334 |
| Haiku 4.5 | $0.00003 | $0.00167 |
Grade B, and why
cheatsheet scanned grade B 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 3d 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
`brew install font-nanum` / `sudo apt-get install fonts-nanum`, or keep the How it starts
The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Output language
Read INTERFACE_LANG from .course-meta (default en). All user-facing prose — chat output, clarification questions, and narrative sections of any MD file you write (including the cheatsheet's prose) — must be in that language. Keep in English regardless: file paths, slash command names, pattern IDs (P1, P2…), YAML keys, LaTeX, code, and the literal section anchors downstream tools regex on.
Load skills/exam-drill/SKILL.md. Read course-index/patterns.md, course-index/coverage.md, course-index/summary.md, and errors/log.md.
Arguments: $ARGUMENTS
Procedure:
-
Collect highest-value items:
- Top 5 patterns by frequency of appearance (from
patterns.md) - All formulas boxed in
derivations/*.md(final results) - User's most-frequent error types (from
errors/log.md) — with the correction, not the error - ⚪ no-HW sections (and any
⚠weak-flagged §) with one key formula each — never drilled, so reference-grade only
- Top 5 patterns by frequency of appearance (from
-
Structure the cheatsheet (target: fits on 1 page @ 10pt):
# <Course name> — Cheatsheet _Generated <date>. For exam reference only._ ## Core formulas <table or compact list of boxed results from derivations/> ## Pattern quick-ref | Pk | Recognition | Move | |---|---|---| ...top 8 patterns only ## Traps to remember (from my errors/log) - <correction 1> - <correction 2> ...max 5 ## No-HW formulas (memorize these — ⚪ sections no HW drilled) <one formula per ⚪ section, boxed> -
Write to
cheatsheet/final.md. -
If
--pdfin arguments:- Load
skills/pdf/SKILL.md - Convert cheatsheet/final.md to
cheatsheet/final.pdfusing reportlab - Use 2-column layout, 9pt font, no margins (for maximum density)
- Remember: NO Unicode subscripts/superscripts in reportlab — use
<sub>/<super>XML tags - CJK fonts (required when
INTERFACE_LANG=ko). reportlab's built-in Type-1 fonts (Helvetica/Times) cannot render Hangul — every Korean glyph silently comes out blank, so akocheatsheet PDF would be empty of prose. Register a CJK-capable TrueType font first and use it for every style (fontName=). reportlab'sTTFontonly parses TrueType (glyf) outlines — a CFF/OpenType-flavoured.ttc/.otfraises on registration. macOSAppleSDGothicNeo.ttcis CFF on recent macOS, so it reliably throws and the loop falls through to the next candidate; that's expected, not an error. Probe these in order (glyf-loadable Hangul fonts first) and keep the first that registers:
If none is found on afrom reportlab.pdfbase import pdfmetrics from reportlab.pdfbase.ttfonts import TTFont KFONT, candidates = "Helvetica", [ "/System/Library/Fonts/Supplemental/AppleGothic.ttf", # macOS (glyf — loads) "/usr/share/fonts/truetype/nanum/NanumGothic.ttf", # Ubuntu (fonts-nanum) "/opt/homebrew/share/fonts/NanumGothic.ttf", # macOS Homebrew font-nanum "/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc",# Noto CJK "/System/Library/Fonts/AppleSDGothicNeo.ttc", # macOS (CFF — usually fails; last resort) ] for cand in candidates: try: pdfmetrics.registerFont(TTFont("KFont", cand)); KFONT = "KFont"; break except Exception: continuekocourse, tell the user (inINTERFACE_LANG) tobrew install font-nanum/sudo apt-get install fonts-nanum, or keep the.mdand read it directly — don't ship a blank-glyph PDF. - Glyph coverage — keep
\ellasℓ, don't downgrade tol. In the LaTeX→text pass, map\ellto the realU+2113 ℓ(the angular-momentum symbol, all over central-force formulas) — not to an ASCIIl. CJK fonts almost always carry ℓ (AppleGothic, Nanum and Noto all do), so the glyph renders; silently rewriting\ell→lmakesℓ²/(2μr²)read like a lowercase L and is the more common failure here than a missing glyph. Only fall back to italiclif the registered font truly lacks the glyph — test it (a present glyph maps to a non-zero id;0is.notdef):from reportlab.pdfbase.pdfmetrics import getFont def has_glyph(ch): if KFONT == "Helvetica": return False return getFont(KFONT).face.charToGlyph.get(ord(ch), 0) != 0 ELL = "ℓ" if has_glyph("ℓ") else "<i>l</i>" # use ELL wherever \ell / ℓ appears - Use
pypandocif available as alternative:pypandoc.convert_file('final.md', 'pdf', outputfile='final.pdf')(its LaTeX engine needs a CJK-aware mainfont, e.g.-V mainfont='Apple SD Gothic Neo', for Korean too) - Build with a scratch script outside the course folder. Don't write the
reportlab build script into
cheatsheet/— it gets left behind in the user's committed course folder when the post-run cleanup is skipped. Put it in a temp path instead (e.g.SCRIPT=$(mktemp /tmp/paideia-cheatsheet-XXXX.py)), run it from there to emitcheatsheet/final.pdf, then delete it. If you do write one insidecheatsheet/anyway, remove it after the PDF is verified —cheatsheet/should end with onlyfinal.mdandfinal.pdf.
- Load
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.
- 3d ago First seen · 117 lines · 29 tokens per session scan B 2fc5b5c9b2db
cheatsheet is a command published in the GitHub repository OPTIMETA/PAIDEIA (91 stars, last pushed 1mo ago), licensed MIT. It adds 29 tokens to every session and 1,669 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
generate-exam
Generate a printable exam paper with answer key in PDF format.
summarize-pdf
기술 서적 PDF를 챕터별로 읽어 Obsidian 노트로 정리 (개별 노트 생성, 이미지/다이어그램 추출 포함).
courseware-gen
Generate the WSQ courseware for this course — the slide deck (PPT), Lesson Plan (LP) and Learner Guide (LG) plus their PDFs — to the published Tertiary Infotech standards, then audit with /courseware-qa.
read
Distill a single book into a reading guide and slide presentation. Supports epub, PDF (including scanned), and text files.
latex-posters
Create a large-format academic poster in LaTeX using beamerposter, tikzposter, or baposter. Use when the requested deliverable is a conference or research poster rather than sequential presentation slides. For slide decks, use $beamer-deck.
cti-report
Render case deliverables — relationship graph (PNG/SVG/Mermaid) and a polished PDF/DOCX assessment. Usage: /cti-report [--graph|--pdf].