course-review-pack

Build exam-review study packs from a course's own material — lecture slides or handwritten notes, homework sets, past midterms/finals, textbook chapters — into a typeset A4 PDF with a fixed 8-part structure (knowledge map, chapter-by-chapter explanation, worked examples, formula cheat card, mock exam) plus an optional single-sheet two-sided A4 cheat sheet for open-note exams. Everything is written in the user's language, at the level of an average student in that course. Use when the user asks to make review material for a course, prepare for a midterm or final, build a cheat sheet, or organise a course's material for revision.

¿Qué es course-review-pack?

course-review-pack is a Claude Code agent skill that build exam-review study packs from a course's own material — lecture slides or handwritten notes, homework sets, past midterms/finals, textbook chapters — into a typeset A4 PDF with a fixed 8-part structure (knowledge map, chapter-by-chapter explanation, worked examples, formula cheat card, mock exam) plus an optional single-sheet two-sided A4 cheat sheet for open-note exams. Everything is written in the user's language, at the level of an average student in that course. Use when the user asks to make review material for a course, prepare for a midterm or final, build a cheat sheet, or organise a course's material for revision.

Compatible con~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/hanktwe21/course-review-pack/tree/HEAD

Installed? Explore more Productividad y colaboración skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

Preguntar en tu IA favorita

Abre un nuevo chat con esta habilidad de agente ya precargada.

Documentación

Course Review Pack

A portable playbook. It assumes nothing about the course, the school, or the user's preferences beyond what is stated below — establish those first (section 1), then follow the pipeline (section 2). Sections 3–6 are hard-won technical knowledge that applies to any Typst-based build on macOS.

Everything here is a default. If the user's instructions conflict, the user wins.

1. Establish these first (do not guess)

Step 1a — ask for the material inventory, in full. Never start from "what's in the folder". Ask one batched question that covers every item below, and explicitly say "tell me which of these you have; anything you don't mention I'll assume is missing":

  1. Lecture material — slides/decks (PPT or PDF), lecture handouts, recorded lectures (and whether transcripts/subtitles exist), scanned whiteboard photos.
  2. Your own notes — handwritten notes (photos/scans), typed notes, annotated slides.
  3. Textbook — title, edition, which chapters are in scope, and whether the course follows it closely.
  4. Homework — every set, with or without solutions; whether the teacher said the exam is based on homework (this usually decides the whole document's shape).
  5. Past exams — midterms/finals from previous years, with or without answers; mock papers; quizzes.
  6. Exam info — date, duration, marks, closed/open book, allowed aids (one A4 sheet? formula table provided?), calculator, language of the paper.
  7. Scope hints — syllabus, the teacher's "only these chapters" remark, review session slides, a list of emphasis points.
  8. Anything else — lab manuals, project briefs, problem sets from recitations, previous students' summaries.

Then check what was actually delivered: open the folder, list files, and report what is present, what is missing, and what that implies (e.g. "no past papers → scope inferred from homework; no solutions → I'll solve and verify each problem myself").

Step 1b — then confirm the working assumptions, in the same or a follow-up message:

Ask concisely, in one message, whatever the material does not answer by itself:

  1. Which exam / scope — midterm or final, which chapters, closed-book or open-book, how many marks, how long.
  2. What material exists — slides, handwritten notes, homework, past papers, textbook, recordings. Where is it?
  3. Language — the language the review material should be written in, and the language the exam itself is in (they can differ).
  4. Format — a full review document, a one-page exam cheat sheet, or both. Any page cap?
  5. Level — "average student in this course" is the default; confirm the prerequisite knowledge.
  6. Anything to reuse — an existing template, an earlier pack for another course, a house style.

If the user cannot answer (e.g. no syllabus), infer from the material and say so in one line: "past papers only cover Ch1–4, so I scope to that."

Rules that hold for every user

  • Write for an average student: no "obviously", no "it is easy to see". Every formula states when it applies; every problem type gets a numbered recipe.
  • Deliver results, not reasoning. No "I think / my approach" in the document.
  • Before writing anything, ask for the full material inventory (section 1a) and report what is missing. Starting to write from a folder you only glanced at is how a pack ends up covering the wrong chapters.
  • Never put a study plan / timetable / "7-day route" / countdown into the deliverable. It is filler for the reader and goes stale immediately. Plan-type content is added only when the user explicitly asks for it; the document otherwise opens straight into exam intel and the knowledge map.
  • Never modify the source material. Write only into a dedicated output folder.
  • Colour is the default for reading material; grayscale only for the sheet that will be printed and carried into the exam (check whether the user's printer is B/W).
  • Attribute each part to its source chapter/lecture. Where notes and textbook disagree, the lecture wins — never write from memory.

Language policy

  • The review material is written in the language the user asked for (usually the language they write to you in). English is used only for: the English term in parentheses after a first-use local term, quoted originals from the course's own English problems, and — for English-medium exams — a solution block the student can copy verbatim.
  • If the course is taught in English but the user wants Chinese explanations, that is the normal case: Chinese body text, per-example English solution box, English phrase cards for the answer patterns the exam expects.
  • File names, headings and captions follow the document language.

2. Pipeline

0 — Inventory. List every file; classify: readable text / scanned images / slides / source code (LaTeX) / recordings. Decide scope: homework types ≈ exam types; past papers reveal the syllabus; a chapter missing from the material is usually out of scope.

1 — Make the unreadable readable.

  • Scanned PDF → extract embedded images (pypdf/pdfimages-style script) or render pages with sips -s format png -Z 2400, then read page by page.
  • Slide decks → extract text with python-pptx; unzip ppt/media for figures.
  • LaTeX homework sources (main*.tex) → read directly, cleaner than the PDF.
  • Recordings behind SSO are usually unreachable; try once, never depend on them.

2 — Write brief.md in the output folder. Always the same 10 sections: one-line goal / exam intel / file & chapter assignment / fixed per-chapter structure / style & notation / Typst macro table / per-chapter content checklist / figure list / source locations / self-check list. This is the contract every writer works from.

3 — Scaffold, and make it compile before anyone writes. One main.typ (cover + TOC + #include of chapters), one template.typ (page setup + macros), one preview.typ (--input ch=chN compiles a single chapter), ch0..ch7.typ, fig/. Keep chapter numbers typed into the heading text (auto-numbering drifts across files).

Minimal portable template — start from this and extend:

#let accent = rgb("#1F6FB2")
#let bg-formula = rgb("#EDF4FB")
#let bg-warn = rgb("#FDEFEC")
#let bg-tip = rgb("#EDF8F1")
#let bg-example = rgb("#FFF7EC")

#let style(body) = {
  set page(paper: "a4", margin: (x: 1.85cm, y: 1.85cm), numbering: "1")
  set text(font: ("Helvetica Neue", "Hiragino Sans GB", "Heiti SC"), size: 10.2pt, lang: "zh")
  set par(justify: true, leading: 0.76em)
  set heading(numbering: none)
  show heading.where(level: 1): it => { pagebreak(weak: true)
    block(fill: accent, width: 100%, inset: (x: 12pt, y: 9pt), radius: 3pt, text(fill: white, weight: "bold", size: 14.5pt)[#it.body]) }
  body
}

#let kw(body) = strong(body)
#let fx(body) = block(width: 100%, fill: bg-formula, inset: (x: 8pt, y: 6pt), radius: 2pt, align(center, body))
#let tip(body) = block(width: 100%, fill: bg-tip, stroke: (left: 3pt + rgb("#1E7B4D")), inset: (x: 9pt, y: 6pt), alignment: left)[*小贴士* #body]
#let warn(body) = block(width: 100%, fill: bg-warn, stroke: (left: 3pt + rgb("#C0392B")), inset: (x: 9pt, y: 6pt))[*易错点* #body]
#let ex(title, body) = block(width: 100%, fill: bg-example, stroke: (left: 3pt + rgb("#D68910")), inset: (x: 10pt, y: 7pt), breakable: false)[*例题 · #title* #body]
#let ans(body) = block(width: 100%, fill: rgb("#F4F6F8"), inset: (x: 8pt, y: 6pt))[*答* #body]
#let fig(name, caption, w: 58%) = figure(image("fig/" + name + ".svg", width: w), caption: caption)
#let tag(body) = box(fill: rgb("#E8EEF4"), inset: (x: 4pt, y: 1pt), radius: 2pt, text(size: 8.5pt, weight: "bold")[#body])
#let chk(body) = block(spacing: 0.42em, grid(columns: (1.15em, 1fr), column-gutter: 0.4em, align: (left + top, left + top), text(fill: accent, weight: "bold", size: 11pt)[☐], body))

4 — Write in parallel; draw figures separately. One writer per chapter, each editing only their own chN.typ — never the template, main.typ, or fig/. One figure artist writes SVG by hand: white background, black strokes, no external fonts, no <foreignObject>. Each writer self-checks: single-chapter compile with 0 errors → export PNGs and inspect every page (overflow, orphan headings, collapsed table rows, figure/caption split) → delete intermediates → report pages, size, coverage, fixes.

5 — Assemble, verify, deliver.

  • Compile the whole book; check page count, page size and TOC with pypdf.
  • After any figure change, recompile and re-inspect every page with a figure — figure height changes pagination.
  • Deliver the PDF into a 复习资料-style output folder plus a copy of sources; keep names explicit (<course>_midterm_review.pdf, <course>_cheatsheet_A4.pdf).
  • If a ledger/handbook file exists in the workspace, add a row and record new pitfalls.

3. Structure that works (8 parts)

  1. Front matter: exam intel (format, marks, scope, language) and a knowledge map table. No study plan, no day-by-day schedule, no countdown — see the rule in section 1; those are included only when the user explicitly asks for one.
  2. –6. One chapter per teaching unit, each with the same skeleton: 本章一句话 / 考点权重 → 知识地图 → 概念与公式(带适用条件)→ 解题步骤模板 → 例题(含另一解或验算)→ 易错点 → 本章自测清单.
  3. Formula cheat card: tables of every formula with a "when to use" column.
  4. Mock exam: past paper or self-made 8 problems with full solutions, plus an answer-key table and a self-scoring rubric.

Optional extras that have proven valuable: a full past-paper walkthrough, an English phrasebook for English-medium exams, a distribution/device/component "encyclopedia" page, and strategy tables ("problem wording → first move").

4. Typst pitfalls (measured on Typst 0.15.x, macOS)

  • #set page(columns: 2) and #columns(2)[…] may not produce columns → build two columns with #grid(columns: (1fr, 1fr), gutter…) and split pages with #pagebreak().
  • A #block / #table / grid on the line directly after paragraph text (no blank line) is treated as inline: its height collapses to 0 and it overlaps the line above. Always leave blank lines around block calls.
  • table(...) has no width parameter; width comes only from columns: ratios. (auto, 1fr) inside a narrow column squeezes the description column to one character per line → use explicit ratios such as (1.2fr, 1fr).
  • Rows containing Σ / ∫ / ⋃ are about twice the line height → give those tables a larger vertical inset macro; do not change the global one.
  • Inline math must be compact $...$; $ … $ with spaces is display math and collapses block heights. Division: \/ or slash.
  • LaTeX commands do not exist: delta, sigma, theta, max, product, integral (no backslash). CJK text cannot appear inside $...$ — quote it: $P("相等")$.
  • **bold** is invalid (use *bold*). // starts a comment everywhere, including inside math.
  • When content just exceeds a page, Typst shows overlapping blocks instead of paginating → keep 3–5 % slack and reduce font size step by step rather than trusting the page count alone.

5. Tool fallbacks (macOS, if the obvious tools are missing)

PyMuPDF / matplotlib may fail to load (dlopen blocked by code-signature Team IDs); Electron printToPDF can crash; typst @preview packages may be unwritable; swiftc may fail on module cache permissions. Working substitutes: pypdf for extraction, sips for page rasterisation, hand-written SVG for figures, typst compile --format png for visual checks, pypdf to verify page count and media box.

6. Pre-delivery checklist

  • Whole document compiles with 0 errors; header, page numbers and TOC correct; chapter numbers continuous; chapter-end self-test lists unnumbered.
  • Every page rendered and inspected: no overflow, no orphan headings, no collapsed rows, no over-wide formulas; tables not split across pages; figures sharp and consistent with the text's notation.
  • Every chapter has the four essentials: formula + validity condition, step recipe, verified worked example, common traps.
  • No "obviously"; nothing copied verbatim from the notes.
  • Cheat sheet (if any): exactly the allowed size, grayscale-safe, no formula without a "when to use" note.
  • Deliverables in the agreed place and language; sources recompilable; no placeholder figures left.

Skills relacionados