<< All versions

Skill v1.0.0

currentAutomated scan100/100
abdullibrahim733-pixel/eagle/cheat-sheet-authoring
──Details
PublishedNovember 19, 2026 at 08:05 AM
Content Hashsha256:3ab582359d9de085...
Git SHA1f420fcb3f20
──Files
Files (1 file, 7.1 KB)
SKILL.md7.1 KBactive
SKILL.md · 167 lines · 7.1 KB

name: 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:

bash
# OCR early pages (table of contents area)
pdftoppm -jpeg -r 200 -f 4 -l 8 "textbook.pdf" /tmp/toc/page
tesseract /tmp/toc/page-004.jpg stdout | grep -i "chapter\|page\|topic"

2. Target the chapter

Convert relevant page range:

bash
pdftoppm -jpeg -r 200 -f [START] -l [END] "textbook.pdf" /tmp/output/prefix

3. OCR all pages

bash
for f in /tmp/output/*.jpg; do
base=$(basename "$f" .jpg)
tesseract "$f" "/tmp/output/${base}_ocr"
done

4. Read chapter summary (usually last pages of chapter)

bash
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:

  1. 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 ``

  1. Scan ACSEE solutions — these have the richest function questions. Check multiple years.
  2. Extract each question with full description and source attribution.
  3. Compile into practice file with numbered questions and a solutions reference table mapping each question to its source file.
  4. Save to vault: ~/Obsidian/<vault>/Notes/<Topic>-Practice-Questions.md
  5. 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:

  1. Each subagent writes to a UNIQUE file path (no two agents write the same file)
  2. Specify the exact YAML frontmatter tags to use
  3. Reference the format by describing it (not by linking to another file the subagent can't read)
  4. After all subagents complete, re-read the Notes/Index.md and do a full write_file rewrite (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:

  1. Audit existing extracts — check which PDFs have .txt files and how many lines
  2. Build topic frequency analysis — scan ACSEE solution files to map which topics appear at which question numbers (e.g., Q1=Calculating Devices, Q9=Integration)
  3. Create Topic Compilation — organize all questions by topic with source attribution
  4. Study Priority Table — rank topics by exam frequency and difficulty
  5. Save to: PastPapers/ACSEE/Topic-Compilation.md

Google Drive Download Fallback

When gdown fails or isn't installed:

bash
# 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 patch Notes/Index.md with new table rows. Parallel patches on the same file cause duplicate/conflicting entries. Fix: After any parallel write session, re-read the shared file with read_file before patching. If duplicates are found, do a clean write_file of the full corrected file instead of trying to patch out individual duplicates. Always verify the final state with grep -c "Cheat-Sheet" Index.md — the count should match the actual number of cheat sheet files.
  • Index.md patching after parallel writes: Avoid patch mode on shared index files when multiple agents/subagents may write simultaneously. Prefer a full write_file rewrite 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 ls after 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
All versions