exam-cheatsheet — pre-exam cheatsheet compiler
SkillDocs & knowledgeAfter all rounds are completed, compile the 错题本 (mistake log), notebook, knowledge-point windows, and wiki into a pre-exam quick-review cheatsheet.md (each point with a traceable anchor), and when in visual-output mode or when the user explicitly requests a PDF/print version, render it as a print-re
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the exam-cheatsheet — pre-exam cheatsheet compiler skill
What this skill tells your AI
The instructions your AI receives, as published by zekainie/universal-examprep-skill in full/skills/exam-cheatsheet/SKILL.md and read by ahel’s review.
Purpose
Compile, rather than free-generate, mastered content into workspace-root cheatsheet.md. Every top-level bullet must link into notebook/, mistakes/, or references/wiki/. Do not teach new material or invent questions. Render the requested-page-count PDF only for standing visual mode or an explicit PDF/print request. Never write the retired walkthrough.md; leave an existing copy untouched.
Activation
Trigger on an explicit request for 「考前小抄 / 速记 / 总复习」, or when review is wrapping up after all phases and persisted artifact_mode=visual. Automatic final review under chat stays a conversational exam-review summary.
Inputs
- Weak-spot source:
study_state.json(mistake_archive,confusion_log, andphase_checklist) when it exists; otherwise the possibly stale generatedstudy_progress.md. Read these first, thenmistakes/index.mdandnotebook/index.mdwhen present; their full entries provide preferred ready-made anchors. - Rank
knowledge_windowstatusout_windowabovein_windowandverified(codes are defined byscripts/i18n.py). - Read core conclusions and formulas from every mastered chapter in
references/wiki/, derived fromstudy_state.json'scurrent_phase/phase_checklistwhen it exists, otherwisestudy_progress.md, checked againststudy_plan.md. Lazy-load one chapter at a time. - Use
references/quiz_bank.jsonfor teacher-flagged items and answer frameworks. Resolvescripts/select_hard_questions.pyfrom${CLAUDE_SKILL_DIR}, never the student workspace; it returns a flat ranked list which the agent groups by knowledge point.
Workflow
- Gate artifacts. Read
study_state.json.artifact_mode; missing, legacy, or unknown meanschat. Never infer a subscription tier or add a fourth required first-contact question. Automaticchatreview creates no sheet; an explicit sheet request may create Markdown. Only standingvisualor an explicit one-shot PDF/print request authorizes rendering. A one-shot request does not modify the persisted value. Never install dependencies or skills silently. - Build the skeleton. Weak spots come first. Per chapter retain only high-frequency or high-scoring formulas, conclusions, and one-sentence definitions.
- Select one hard example per key point. For each mastered chapter run
python "${CLAUDE_SKILL_DIR}/scripts/select_hard_questions.py" --workspace <ws> --chapter <N> --mode 查缺补漏 -n <M> --json. Both--chapterand--modeare required: they avoid a missing-range failure in某章起步补弱and override easy-first零基础从头讲. Set<M>at least to the bank length so the default top ten cannot starve later points. Group the flat result, prioritize points linked to mistakes/confusions, and choose the hardest candidate per point. With no linked bank item, emit 「无题库例题」 and only the 「必背结论/公式」 and 「要点解释」 sections; never invent a replacement. - Fail closed on prompt assets. For
requires_assets=trueormaybe_requires_assets=true, embed everyquestion_context,figure,diagram, andtableas workspace-relativereferences/assets/links, labeled题面图forzh/bilingualorQuestion-side assetforen. Preserve but never embedstudent_attempt; one declaration taints the same physical path across the complete quiz, teaching, and content-unit layers, including a duplicate official-looking declaration. Missing or unusable assets require a self-contained alternative. Astuborpage_referenceitem likewise needs its original-page render or replacement by afullitem. Never include an example whose prompt figure/page is invisible.cheatsheet_render.pyperforms the shared three-layer policy and canonical-path gate; do not bypass it with a custom Markdown/image renderer. - Write the four sections. The worked solution states the formula, substituted values, and result; only intermediate arithmetic may be omitted. The takeaway starts with the recognition cue and then the answer framework. Material-backed lines may remain unlabeled; AI supplements require 🟡 AI补充,可能与你老师讲的不完全一致, AI answers require ⚠️ AI生成答案,非老师/教材提供, and missing/unknown bank answer provenance requires 「来源未知」. Do not let uncertain content inherit the material default; see
docs/language-policy.md. - Attach traceability. End every top-level
-bullet with[→](notebook/chNN.md#<anchor>),[→](mistakes/chNN.md#<anchor>), or[→](references/wiki/<file>.md), preferring notebook/mistake evidence. Runpython "${CLAUDE_SKILL_DIR}/scripts/validate_workspace.py" <ws>and fix every untraced or dead link before delivery. - Write only when authorized. Create workspace-root
cheatsheet.mdwith the four sections for every mastered chapter and a refreshed progress panel. Underchat, this requires an explicit sheet request. - Render only when authorized. For standing
visualor explicit one-shot PDF/print, ask for the page count if omitted (default 2), then runpython "${CLAUDE_SKILL_DIR}/scripts/cheatsheet_render.py" --workspace <ws> --pages <N>. Exit 0 must produce exactly N print-safe pages with margins ≥12 mm. Exit 3 returnscheatsheet.htmlplus the emitted print instruction. Visually inspect the result; adjust--font-size, not margins, until it fits N pages and the last page has at most about 15% blank. Under ordinarychat, stop after validated Markdown and do not ask for page count. - Never invent teacher emphasis; only material-flagged points may be described that way.
Output Contract
cheatsheet.mduses active-language headings per mastered chapter:zhuses 「必背结论/公式」→「例题」→「例题解答」→「要点解释」;enuses Must-memorize conclusions & formulas → Worked example → Worked solution → Takeaway. Every bullet is traced and validation passes.- An explicit
chatrequest delivers Markdown only unless it also requests print/PDF. Authorized rendering delivers exact-page-countcheatsheet.pdf, orcheatsheet.htmlplus print instructions on the no-browser path. - Student-facing output defaults to English (Simplified Chinese if the student opened in Chinese). Persisted
languagevalueszh,en, andbilingualselect single-language or mirrored output perdocs/language-policy.md.
Language packs
中文→../../locales/zh/skills/exam-cheatsheet.mdEnglish→../../locales/en/skills/exam-cheatsheet.md双语→ compose both blockwise, zh then> EN:, underdocs/language-policy.md
Display aliases are normalized to zh, en, or bilingual.
Boundaries
- Unsupported content needs the applicable 🟡 or ⚠️ label. The sheet compresses completed review; it never bypasses source labels or the
quiz_bank-only rule.
Signals
- GitHub stars
- 282
- Forks
- 16
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
exam-cheatsheet- Source
- github.com/zekainie/universal-examprep-skill