Zum Inhalt springen

Skills / cheatsheet generator skill

cheatsheet generator skill

Turn your course slides and PDFs into dense, exam-ready LaTeX cheatsheets.

β˜… 67von @Evan715823vor 148d aktualisiertMITGitHub β†’

Installation

Kompatibilitaet

Claude Code

Beschreibung

πŸ“„ Claude Cheatsheet Generator

Turn your course slides and PDFs into dense, exam-ready LaTeX cheatsheets β€” powered by Claude Code.

One command. Browser-based config. AI-generated LaTeX. Iterative editing loop. Done.

you: /cheatsheet-generator
      ↓
 β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
 β”‚  Phase 1: Configure in browser                         β”‚
 β”‚  β†’ paper size, columns, colors, font, file selection   β”‚
 β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
 β”‚  Phase 2: Claude reads your materials & generates .tex  β”‚
 β”‚  β†’ PDFs, PPTX, Markdown, images β€” all supported        β”‚
 β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
 β”‚  Phase 3: Live editor in browser                        β”‚
 β”‚  β†’ request changes in natural language, Claude edits    β”‚
 β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
      ↓
 cheatsheet.tex β€” ready for Overleaf (XeLaTeX)

πŸ“Έ Examples

Generated cheatsheets β€” compiled in Overleaf with XeLaTeX:

Sample materials are available in skills/cheatsheet-generator/examples/sample_materials/ β€” try them yourself!


✨ Features

  • Multi-format input β€” reads PDFs (with images/diagrams), PPTX (text + embedded media), Markdown, plain text, and images (PNG/JPG)
  • Browser-based configuration β€” clean UI to set paper size, columns (2–6), font, margins, color scheme, detail level, and select which files to include
  • 5 color schemes β€” Classic, Ocean, Forest, Sunset, Mono β€” all designed for print readability
  • Extreme density β€” fills every inch of the page with color-coded, abbreviated, formula-heavy content
  • Smart organization β€” groups by topic hierarchy, not source file order; prioritizes exam-focus topics
  • Iterative editing β€” browser-based editor where you describe changes in plain English (or attach images); Claude applies them live
  • Image-aware β€” upload screenshots of formulas or diagrams during editing; Claude sees and incorporates them
  • XeLaTeX-ready β€” output compiles directly in Overleaf with custom fonts

πŸš€ Quick Start

Install

npx skills add https://github.com/Evan715823/cheatsheet-generator-skill

Then install Python dependencies:

pip install flask python-pptx pymupdf

Use

  1. cd into a folder containing your course materials (PDFs, slides, notes)
  2. Run Claude Code and type:
    generate a cheatsheet for my exam based on the <your material files>
    
    Or use the slash command directly:
    /cheatsheet-generator
    
  3. A browser window opens β€” configure your cheatsheet layout, select files, pick a color scheme
  4. Claude reads all materials and generates cheatsheet.tex
  5. Another browser window opens β€” request edits in natural language until you're happy
  6. Upload cheatsheet.tex to Overleaf, compile with XeLaTeX

🎨 Color Schemes

| Classic | Ocean | Forest | Sunset | Mono | |:---:|:---:|:---:|:---:|:---:| | πŸ”΅ Deep blue | 🌊 Royal blue | 🌲 Forest green | πŸŒ… Burnt orange | ⬛ Slate gray | | Cyan / Purple | Teal / Indigo | Teal / Brown | Crimson / Magenta | Blue-gray tones | | Green | Sea green | Olive | Amber | Cool gray |

All schemes include yellow highlight for critical formulas.


βš™οΈ Configuration Options

| Category | Options | |---|---| | Paper | Letter, A4, A3 | | Orientation | Landscape, Portrait | | Columns | 2 – 6 | | Font size | 4 – 8 pt | | Font | Verdana, Arial, Helvetica Neue, Times New Roman, Courier New, CMU Serif | | Margins | 2 – 12 mm | | Detail level | Concise (bullets only), Moderate (short explanations), Detailed (derivations + examples) | | Content toggles | Include proofs, examples, derivations | | Exam focus | Free-text field to prioritize specific topics |


πŸ“ Project Structure

skills/cheatsheet-generator/
β”œβ”€β”€ SKILL.md                    # Claude Code skill definition (orchestrator)
β”œβ”€β”€ scripts/
β”‚   β”œβ”€β”€ config_server.py        # Phase 1: browser config form server
β”‚   └── editor_server.py        # Phase 3: iterative editing server
β”œβ”€β”€ templates/
β”‚   β”œβ”€β”€ cheatsheet_base.tex     # Parameterized LaTeX template
β”‚   β”œβ”€β”€ config_form.html        # Configuration UI
β”‚   └── editor_ui.html          # Editing/preview UI
└── examples/
    β”œβ”€β”€ sample_output.tex       # Reference cheatsheet (compilable)
    β”œβ”€β”€ sample_materials/       # Sample PDFs to try the skill
    └── screenshots/            # README images

πŸ”§ How It Works

Phase 1 β€” Configure

A local Flask server launches and opens a browser form. You configure layout (paper, columns, font, margins), content settings (detail level, proofs, examples), select a color scheme, and pick which files to include. Submitting writes .cheatsheet_config.json and the server exits.

Phase 2 β€” Generate

Claude reads every selected file:

  • PDFs β€” read directly (text + images via multimodal vision)
  • PPTX β€” extracts text via python-pptx + all embedded images
  • Markdown/Text β€” read directly
  • Images β€” read directly (Claude is multimodal)

Then generates a complete cheatsheet.tex using the base template with your config values. Content is organized by topic, color-coded with semantic commands (\concept{}, \process{}, \category{}, \important{}), and packed to fill the entire page.

Phase 3 β€” Edit

Another Flask server launches with a split-panel editor:

  • Left: LaTeX source with syntax highlighting + optional PDF preview
  • Right: natural language edit requests + image upload + change history

The server uses a blocking HTTP protocol β€” no polling, no file watching. When you submit a request, Claude reads the current .tex, applies your change, and posts the result back. Repeat until satisfied, then click Done.


πŸ’‘ Tips

  • Compile with XeLaTeX in Overleaf (not pdfLaTeX) β€” required for fontspec custom fonts
  • Exam focus field is powerful β€” write "focus on: gradient descent, bias-variance tradeoff" and those topics get more space
  • Image upload in editor β€” screenshot a formula from your textbook, paste/drag it into the editor, and ask Claude to add it
  • Multiple cheatsheets β€” run the skill in different folders for different courses; each gets its own cheatsheet.tex
  • Install latexmk and pdftoppm for live PDF preview in the editor (optional)

πŸ“‹ Requirements

| Dependency | Required | Purpose | |---|:---:|---| | Claude Code | βœ… | AI engine | | Python 3.8+ | βœ… | Server scripts | | Flask | βœ… | Web servers | | python-pptx | ⚠️ | PPTX reading (install if you have slides) | | pymupdf | ⚠️ | PDF text extraction fallback | | latexmk + pdftoppm | ❌ | Optional: live PDF preview in editor |


πŸ“„ License

MIT


Aehnliche Skills