Skill v1.0.0
currentAutomated scan100/100name: cheat-sheet-authoring description: Create formula cheat sheets and study notes from scanned PDF textbooks using OCR extraction, with user-specific formatting (simplified formulas, memory tricks, cream-it mnemonics, where-it-comes-from explanations). platforms: [linux, macos] metadata: version: "1.0.0"
Cheat Sheet Authoring
Create structured formula cheat sheets from scanned PDF textbooks (especially TIE Tanzania Form 5/6 textbooks) following a specific user preference format.
When to Use
- User asks for formula summaries / cheat sheets
- User says "summarize the formulas for [topic]"
- User asks for "simple formulas simplified not complex, where they come from"
- Converting textbook chapter content to quick-reference study notes
Extraction Workflow
1. Find the right chapter
Extract the table of contents first:
# OCR early pages (table of contents area)pdftoppm -jpeg -r 200 -f 4 -l 8 "textbook.pdf" /tmp/toc/pagetesseract /tmp/toc/page-004.jpg stdout | grep -i "chapter\|page\|topic"
2. Target the chapter
Convert relevant page range:
pdftoppm -jpeg -r 200 -f [START] -l [END] "textbook.pdf" /tmp/output/prefix
3. OCR all pages
for f in /tmp/output/*.jpg; dobase=$(basename "$f" .jpg)tesseract "$f" "/tmp/output/${base}_ocr"done
4. Read chapter summary (usually last pages of chapter)
cat /tmp/output/prefix-[LAST_PAGES]_ocr.txt
5. Assemble the cheat sheet
User's Preferred Format
Required Sections
Title
🎯 [TOPIC] — Formula Cheat Sheet (Form 5)> Goal: Simplified formulas, memory tricks & quick reference for exams.
Core Concept
- Plain-language definition of the topic
- Cream it: "Short memorable one-liner"
- Simple ASCII diagram where helpful
- Where it comes from: first principles / origin story
Simplified Formulas (tabular)
Use this table format:
| Function | Formula | Memory ||----------|---------|--------|| $x^n$ | $nx^{n-1}$ | *"Bring power down"* |
Each formula gets a memory trick in *italic*.
Cream-It Sections
**Cream it:** *"Short catchy phrase to remember the rule."*
Where It Comes From
Brief origin explanation. Example: "From the limit definition of derivative."
Rapid Fire (10-Second Drills)
## Rapid Fire — 10-Second Drills ⚡| You see... | You write... ||-----------|-------------|| $\sin 2A$ | $2\sin A \cos A$ |
Memory Palace
ASCII box at bottom:
📐 [TOPIC] CRIB SHEET━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[all key formulas in one glance]
Formatting Rules
##for major sections,###for sub-sections- All formulas in
$...$or$$...$$(LaTeX) - Memory tricks in
*italic* - Cream it: "phrase" — bold heading + italic content
- Keep it simple per user's request
- Save to appropriate vault path (e.g.
~/Obsidian/*vault*/Notes/) - Link from Notes Index
Past Paper Question Compilation Workflow
When the user asks for practice questions on a specific topic from past papers:
- Search vault for topic keywords in both markdown papers and OCR'd solution text files:
``bash grep -n "f(x)\|domain\|asymptote\|composite\|inverse" *.md *.txt ``
- Scan ACSEE solutions — these have the richest function questions. Check multiple years.
- Extract each question with full description and source attribution.
- Compile into practice file with numbered questions and a solutions reference table mapping each question to its source file.
- Save to vault:
~/Obsidian/<vault>/Notes/<Topic>-Practice-Questions.md - Update Notes Index to link the new practice file.
Parallel Subagent Cheat Sheet Creation
When creating multiple cheat sheets via delegate_task, pass these constraints in the context:
- Each subagent writes to a UNIQUE file path (no two agents write the same file)
- Specify the exact YAML frontmatter tags to use
- Reference the format by describing it (not by linking to another file the subagent can't read)
- After all subagents complete, re-read the Notes/Index.md and do a full
write_filerewrite (not patch) to avoid duplicate entries
Subagent context template:
Style: YAML frontmatter with created/source/tags, numbered sections with emoji headers,"Cream it" memory tricks, "Where it comes from" explanations, tables for formulas,Memory Palace ASCII summary, Rapid Fire 10-second drills, and file path at bottom.Target ~250-280 lines. Tags: [cheat-sheet, <topic>, form-5, advanced-mathematics, formulas].
Topic-by-Topic Compilation Workflow
When the user asks to "deepen" or "strengthen" a vault's materials:
- Audit existing extracts — check which PDFs have
.txtfiles and how many lines - Build topic frequency analysis — scan ACSEE solution files to map which topics appear at which question numbers (e.g., Q1=Calculating Devices, Q9=Integration)
- Create Topic Compilation — organize all questions by topic with source attribution
- Study Priority Table — rank topics by exam frequency and difficulty
- Save to:
PastPapers/ACSEE/Topic-Compilation.md
Google Drive Download Fallback
When gdown fails or isn't installed:
# Direct curl download (works without gdown)curl -sL -o "output.pdf" "https://drive.usercontent.google.com/download?id=FILE_ID&export=download&confirm=t"
Verify the download is a valid PDF: head -c 5 output.pdf should show %PDF-.
Pitfalls
- Sibling subagent race condition on shared index files: When creating multiple cheat sheets in parallel (e.g., via subagents), each subagent may also try to
patchNotes/Index.mdwith new table rows. Parallel patches on the same file cause duplicate/conflicting entries. Fix: After any parallel write session, re-read the shared file withread_filebefore patching. If duplicates are found, do a cleanwrite_fileof the full corrected file instead of trying to patch out individual duplicates. Always verify the final state withgrep -c "Cheat-Sheet" Index.md— the count should match the actual number of cheat sheet files. - Index.md patching after parallel writes: Avoid
patchmode on shared index files when multiple agents/subagents may write simultaneously. Prefer a fullwrite_filerewrite of the index after all cheat sheets are created, then a single verification pass. - Subagent may combine topics: When requesting separate cheat sheets (e.g., Sets AND Logic), the subagent may create a combined file instead of two separate files. After completion, check for unexpected file names and rename/split as needed.
- Missing cheat sheets after parallel creation: Always verify all requested files exist with
lsafter subagents complete. Some may fail silently. - TIE textbooks are image-only PDFs — pdftotext returns 0 lines. Always use pdftoppm + tesseract.
- Page ranges can be found via table of contents OCR first few pages
- Some pages OCR poorly — use enhanced (contrast + sharpen) version:
ImageEnhance.Contrast(img).enhance(2.0)in PIL - Chapter summaries are the most formula-dense pages — read those first