Agent skill

Cheatsheet Generator

by Evan715823 in Evan715823/cheatsheet-generator-skill

Generate LaTeX exam cheatsheets from course materials (PDF/PPTX/MD/images).

MITAuto-check: notesDocuments & Office

Install Cheatsheet Generator

skills CLI
$ npx skills add Evan715823/cheatsheet-generator-skill --skill cheatsheet-generator -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Evan715823/cheatsheet-generator-skill cheatsheet-generator --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Evan715823/cheatsheet-generator-skill.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/cheatsheet-generator .claude/skills/cheatsheet-generator && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cheatsheet-generator
GitHub stars
201
Token cost
~3k tokens
SKILL.md length
1,090 words
Files
13 (incl. scripts)
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

Generate LaTeX exam cheatsheets from course materials (PDF/PPTX/MD/images).

  • Works in 3 steps: Configuration Collection → Read Materials & Generate LaTeX → Preview & Iterative Editing
  • User says generate cheatsheet
  • SKILL.md covers Phase 1: Configuration…, Phase 2: Read Materials &… and Phase 3: Preview & Iterative…
  • Runs Python scripts from its folder; calls python and curl

What it does

Cheatsheet Generator is an agent skill from Evan715823/cheatsheet-generator-skill. Generate LaTeX exam cheatsheets from course materials (PDF/PPTX/MD/images). Use when user says "generate cheatsheet", "make a cheat sheet", "create exam reference sheet", "condense notes", or has course materials to turn into a compact LaTeX review sheet for exams.

Its SKILL.md is about 3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 17 other files, including scripts (for example `scripts/config_server.py` and `scripts/editor_server.py`).

It sits in Documents & Office, covering LaTeX and PowerPoint presentations. It works with LaTeX and Microsoft PowerPoint. The repository describes itself as: Turn your course slides and PDFs into dense, exam-ready LaTeX cheatsheets. The licence is MIT.

When your agent uses it

  • User says generate cheatsheet
  • Make a cheat sheet
  • Create exam reference sheet
  • Has course materials to turn into a compact LaTeX review sheet for exams

Example prompts

  • “generate cheatsheet”
  • “make a cheat sheet”
  • “create exam reference sheet”
  • “/cheatsheet-generator”

Requirements

  • Python 3
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Bash, Glob, Grep

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Configuration Collection
  2. Read Materials & Generate LaTeX
  3. Preview & Iterative Editing

What it can do on your machine

Read from SKILL.md and the folder at commit c33d9ac. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Bash
    • Glob
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python
    • curl

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use curl, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Cheatsheet Generator loads about 3k tokens when it runs. Until then it costs about 72 tokens; SKILL.md has 1,090 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~72
When it runs · the whole SKILL.md, loaded when a task matches
~3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Write, Edit, Bash, Glob, Grep

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from Evan715823/cheatsheet-generator-skill at commit c33d9ac, republished under its MIT licence (© Evan715823). 1,090 words, ~2,984 tokens.

Download SKILL.mdSave it as .claude/skills/cheatsheet-generator/SKILL.md (or your agent's skills folder). This skill also uses 12 other files; get the full folder from GitHub.
name
cheatsheet-generator
description
Generate LaTeX exam cheatsheets from course materials (PDF/PPTX/MD/images). Use when user says "generate cheatsheet", "make a cheat sheet", "create exam reference sheet", "condense notes", or has course materials to turn into a compact LaTeX review sheet for exams.
allowed-tools
Read, Write, Edit, Bash, Glob, Grep

Cheatsheet Generator

You are a cheatsheet generation assistant. Help a university student turn course materials into a dense, color-coded LaTeX cheatsheet that compiles in Overleaf (with XeLaTeX).

The skill directory is ${CLAUDE_SKILL_DIR}. The working directory is the current working directory unless $ARGUMENTS specifies a different path.

Execute the three phases below in order.


Phase 1: Configuration Collection

Step 1.1 — Scan for materials

Use Glob to find all supported files in the working directory: **/*.pptx, **/*.pdf, **/*.md, **/*.txt, **/*.png, **/*.jpg, **/*.jpeg

Step 1.2 — Launch config server
bash
python "${CLAUDE_SKILL_DIR}/scripts/config_server.py" --workdir "<WORKDIR>"

This blocks until the user submits the form and exits.

Step 1.3 — Read config

Read <WORKDIR>/output/.cheatsheet_config.json.


Phase 2: Read Materials & Generate LaTeX

Step 2.1 — Read all materials

Read every file the user selected. Use the approach below for each file type:

  • PDF files: Use pymupdf (fitz) for both text and visual extraction:

    1. Text extraction — extract all text from every page:
      bash
      PYTHONIOENCODING=utf-8 python -c "
      import fitz, sys
      doc = fitz.open(sys.argv[1])
      for i, page in enumerate(doc):
          text = page.get_text()
          if text.strip():
              print(f'=== PAGE {i+1} ===')
              print(text)
      " "<FILE_PATH>"
    2. Page rendering — render pages with diagrams, charts, or handwritten content as PNG images, then Read them visually (you are multimodal):
      bash
      python -c "
      import fitz, os, sys
      doc = fitz.open(sys.argv[1])
      out_dir = os.path.splitext(sys.argv[1])[0] + '_pages'
      os.makedirs(out_dir, exist_ok=True)
      for i, page in enumerate(doc):
          pix = page.get_pixmap(dpi=200)
          out = os.path.join(out_dir, f'page_{i+1:03d}.png')
          pix.save(out)
          print(out)
      " "<FILE_PATH>"
      Then use the Read tool on the rendered PNGs to see diagrams, formulas written in images, charts, and handwritten content. For large PDFs (>20 pages), only render pages that likely contain visual content (diagrams, figures) — skip text-heavy pages already captured by step 1.

    Combine text and visual information for full understanding.

  • PPTX files: A .pptx is a zip archive containing XML slides and media. Use this two-step extraction process:

    1. Text extraction — run a Python script with python-pptx to parse all slides and extract text, tables, notes, and shape structure:
      bash
      PYTHONIOENCODING=utf-8 python -c "
      from pptx import Presentation
      import sys, os
      prs = Presentation(sys.argv[1])
      for i, slide in enumerate(prs.slides, 1):
          print(f'=== SLIDE {i} ===')
          for shape in slide.shapes:
              if shape.has_text_frame:
                  for para in shape.text_frame.paragraphs:
                      text = para.text.strip()
                      if text: print(text)
              if shape.has_table:
                  for row in shape.table.rows:
                      cells = [cell.text.strip() for cell in row.cells]
                      print(' | '.join(cells))
          if slide.has_notes_slide and slide.notes_slide.notes_text_frame:
              notes = slide.notes_slide.notes_text_frame.text.strip()
              if notes: print(f'[Notes: {notes}]')
      " "<FILE_PATH>"
    2. Image extraction — extract all images from the pptx media folder, then read them (you are multimodal and can see images directly):
      bash
      python -c "
      import zipfile, os, sys
      pptx_path = sys.argv[1]
      out_dir = os.path.splitext(pptx_path)[0] + '_media'
      os.makedirs(out_dir, exist_ok=True)
      with zipfile.ZipFile(pptx_path) as z:
          media = [n for n in z.namelist() if n.startswith('ppt/media/')]
          for m in media:
              data = z.read(m)
              fname = os.path.basename(m)
              with open(os.path.join(out_dir, fname), 'wb') as f:
                  f.write(data)
              print(os.path.join(out_dir, fname))
      " "<FILE_PATH>"
      Then use the Read tool on each extracted image — you can see diagrams, formulas, charts, and read text from images.

    Combine the text and image information to understand the full slide deck.

  • Markdown / Text: Read directly

  • Images (PNG/JPG): Read directly — you can see images, extract diagrams, formulas, tables from them

As you read, build a mental outline of key concepts, definitions, theorems, formulas, algorithms, and examples. Prioritize exam_focus topics.

Step 2.2 — Read template and example

Read these for reference:

  • ${CLAUDE_SKILL_DIR}/templates/cheatsheet_base.tex
  • ${CLAUDE_SKILL_DIR}/examples/sample_output.tex

The example shows the exact style from the student's previous cheatsheets. Match this style precisely.

Step 2.3 — Generate cheatsheet.tex

CRITICAL: Read the config values from .cheatsheet_config.json and apply them exactly. Do NOT use hardcoded defaults. Double-check that the generated tex matches the config before writing the file.

Read the base template from ${CLAUDE_SKILL_DIR}/templates/cheatsheet_base.tex and replace every %%PLACEHOLDER%% with the value from config:

PlaceholderConfig pathExample
%%PAPER_SIZE%%layout.paper_sizeletterpaper
%%MARGIN%%layout.margin_mm + mm4mm
%%FONT_FAMILY%%layout.font_familyVerdana
%%FONT_SIZE%%layout.font_size_pt + pt6pt
%%LINE_HEIGHT%%same as font size6pt
%%COLUMNS%%layout.columns5
%%COLOR_DEFINITIONS%%look up colors.scheme belowOcean block
%%CONTENT%%generated content...

Color schemes:

Classic (default — matches the student's previous cheatsheets):

latex
\definecolor{sectionblue}{RGB}{0,51,102}
\definecolor{conceptcyan}{RGB}{0,139,139}
\definecolor{processpurple}{RGB}{128,0,128}
\definecolor{categorygreen}{RGB}{0,128,0}
\definecolor{highlightyellow}{RGB}{255,255,150}

Ocean:

latex
\definecolor{sectionblue}{RGB}{21,101,192}
\definecolor{conceptcyan}{RGB}{0,151,167}
\definecolor{processpurple}{RGB}{40,53,147}
\definecolor{categorygreen}{RGB}{0,131,143}
\definecolor{highlightyellow}{RGB}{255,255,150}

Forest:

latex
\definecolor{sectionblue}{RGB}{46,125,50}
\definecolor{conceptcyan}{RGB}{0,105,92}
\definecolor{processpurple}{RGB}{78,52,46}
\definecolor{categorygreen}{RGB}{51,105,30}
\definecolor{highlightyellow}{RGB}{255,255,150}

Sunset:

latex
\definecolor{sectionblue}{RGB}{230,81,0}
\definecolor{conceptcyan}{RGB}{191,54,12}
\definecolor{processpurple}{RGB}{136,14,79}
\definecolor{categorygreen}{RGB}{245,127,23}
\definecolor{highlightyellow}{RGB}{255,255,150}

Mono:

latex
\definecolor{sectionblue}{RGB}{55,71,79}
\definecolor{conceptcyan}{RGB}{84,110,122}
\definecolor{processpurple}{RGB}{69,90,100}
\definecolor{categorygreen}{RGB}{96,125,139}
\definecolor{highlightyellow}{RGB}{255,255,150}
Show full SKILL.md (495 more words)Show less
Content generation rules — FOLLOW STRICTLY

Your goal: produce an extreme-density cheatsheet that fills the entire page. A cheatsheet with white space at the bottom is wasting the student's exam resource. Write as much relevant content as physically possible.

  1. Use color-coded commands for everything:

    • \concept{term} — cyan, for key definitions and concepts
    • \process{term} — purple, for process names, algorithms, procedures
    • \category{term} — green, for classification labels, types, categories
    • \important{text} — yellow highlight, for critical formulas and must-know facts
    • Section titles (\section{}) automatically render in deep blue
  2. Extreme density formatting:

    • Use \\ for line breaks, NOT \par or blank lines
    • Lists: \begin{itemize}...\end{itemize} (already configured for zero spacing)
    • No blank lines between content items — just \\
    • Abbreviate aggressively: thm, def, prop, iff, w/, s.t., wrt, WLOG, etc.
    • Section titles: ALL CAPS, 3-5 words max
  3. Formulas — prevent column overflow:

    • Inline $...$ for short formulas
    • \important{$formula$} for critical formulas (yellow background)
    • NEVER use \begin{equation} — wastes space
    • If a formula is too wide: \resizebox{\linewidth}{!}{$...$}
    • \important{} auto-wraps to column width (uses \parbox internally), so long text/formulas inside it will NOT overflow
    • For multi-line: aligned inside \[...\]
  4. Tables: minimal padding: \begin{tabular}{@{}ll@{}} — zero extra padding

  5. Theorems: write them out COMPLETELY. Don't abbreviate theorem statements. Use \important{} to highlight the theorem.

  6. Detail level (from config):

    • concise: bullet points and formulas only, no prose
    • moderate: 1-2 sentence explanations, include intuition
    • detailed: derivation steps, edge cases, worked examples
  7. Content toggles:

    • include_proofs: write proof sketches
    • include_examples: add concrete examples after definitions
    • include_derivations: show derivation steps
  8. Organize by topic hierarchy, NOT by source file order. Group related concepts. exam_focus topics get the most space.

  9. Fill the page completely. Keep writing content until you've covered every topic from the materials. If there's still space, add more examples, edge cases, or related concepts.

  10. This compiles with XeLaTeX (because of fontspec). Remind the user to select XeLaTeX in Overleaf if they get compilation errors.

Write the output to <WORKDIR>/output/cheatsheet.tex.


Phase 3: Preview & Iterative Editing

Step 3.1 — Launch editor server

Run in background:

bash
python "${CLAUDE_SKILL_DIR}/scripts/editor_server.py" --texfile "<WORKDIR>/output/cheatsheet.tex"

Capture the port from EDITOR_SERVER_PORT=<port> in stdout.

Step 3.2 — Edit loop

Loop:

  1. Wait for request (blocks until user acts):

    bash
    curl -s http://127.0.0.1:<PORT>/wait_for_request

    Use timeout: 600000.

  2. If {"type": "quit"} → exit loop. If {"type": "request", "text": "...", "images": [...]} → process it.

  3. Process: Read current tex, apply the change, write updated tex. If images array is non-empty, Read each image path — you are multimodal and can see the images. Use the visual information to inform your edits (e.g., user uploads a screenshot of a formula to add).

  4. Post result (use Python to JSON-escape the tex):

    bash
    python -c "
    import json, sys
    with open('<WORKDIR>/output/cheatsheet.tex', 'r', encoding='utf-8') as f:
        tex = f.read()
    payload = json.dumps({'summary': '<SUMMARY>', 'tex': tex})
    sys.stdout.write(payload)
    " | curl -s -X POST http://127.0.0.1:<PORT>/result \
      -H "Content-Type: application/json" -d @-
  5. Loop back to step 1.

Step 3.3 — Cleanup & Done

Remove all temporary directories created during generation:

bash
rm -rf "<WORKDIR>/output/.rendered" "<WORKDIR>/output/.uploads" "<WORKDIR>/output/.converted"

Also remove any extraction folders (*_media/ and *_pages/):

bash
rm -rf <WORKDIR>/*_media <WORKDIR>/*_pages

Tell the user:

Your cheatsheet is ready at output/cheatsheet.tex. Compile with XeLaTeX in Overleaf. Good luck on your exam!

© Evan715823, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 12 other files (scripts) in skills/cheatsheet-generator of Evan715823/cheatsheet-generator-skill.

  • SKILL.md
  • examples/sample_materials/test (1).pdf
  • examples/sample_materials/test (2).pdf
  • examples/sample_materials/test (3).pdf
  • examples/sample_output.tex
  • examples/screenshots/example_1.png
  • examples/screenshots/example_2.png
  • examples/screenshots/example_3.png
  • scripts/config_server.py
  • scripts/editor_server.py
  • templates/cheatsheet_base.tex
  • templates/config_form.html
  • templates/editor_ui.html

Open the folder on GitHubat commit c33d9ac

Compare with similar skills

Cheatsheet Generator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Cheatsheet Generator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cheatsheet Generator this skillEvan715823/cheatsheet-generator-skill201—~3kAutomated safety check: NotesMIT
Thesis Defense PPTX Builderzouchenzhen/thesis-defense-pptx-skill266—~2.4kAutomated safety check: PassApache-2.0
BeamerNoi1r/beamer-skill364—~13kAutomated safety check: NotesMIT
Powerpoint SlidesNoi1r/powerpoint-skill124—~12kAutomated safety check: NotesMIT
Explorable Deckclaesbackman/AI-research-feedback495—~2.9kAutomated safety check: PassMIT
Sci PptShZhao27208/Aut_Sci_Write209—~757Automated safety check: PassMIT

Similar skills

  • Thesis Defense PPTX Builder

    zouchenzhen/thesis-defense-pptx-skill

    Builds an editable thesis defense PowerPoint from a thesis PDF or LaTeX project while preserving a supplied university or lab template, then runs a visual quality check.

    266 GitHub stars~2.4k tokensUpdated 4 mo ago
    Documents & OfficeAuto-check passed
  • Beamer

    Noi1r/beamer-skill

    Beamer LaTeX slide workflow: create, compile, review, and polish academic presentations.

    364 GitHub stars~13k tokensUpdated 1 mo ago
    Documents & OfficeAuto-check: notes
  • Powerpoint Slides

    Noi1r/powerpoint-skill

    Create visually rich PowerPoint (.pptx) presentations from academic papers, research notes, or any content the user wants in slide format.

    124 GitHub stars~12k tokensUpdated 6 mo ago
    Documents & OfficeAuto-check: notes
  • Explorable Deck

    claesbackman/AI-research-feedback

    Build a Quarto reveal.js slide deck in the explorable-explanation style (Nicky Case) — one idea per slide, assertion titles, a concrete running example, run-time SVG stages the presenter drives…

    495 GitHub stars~2.9k tokensUpdated 13 days ago
    Documents & OfficeAuto-check passed
  • Sci Ppt

    ShZhao27208/Aut_Sci_Write

    Generate professional academic PowerPoint (PPTX) presentations from paper PDFs, structured outlines, or plain text.

    209 GitHub stars~757 tokensUpdated 1 mo ago
    Documents & OfficeAuto-check passed
  • Latex Defense Zh

    bahayonghang/academic-writing-skills

    Chinese thesis defense deck builder for existing XeLaTeX PhD or master thesis repositories.

    498 GitHub stars~2.2k tokensUpdated 11 days ago
    Documents & OfficeAuto-check passed

Questions about Cheatsheet Generator

What does Cheatsheet Generator do?

Generate LaTeX exam cheatsheets from course materials (PDF/PPTX/MD/images). Cheatsheet Generator is an agent skill from Evan715823/cheatsheet-generator-skill. Generate LaTeX exam cheatsheets from course materials (PDF/PPTX/MD/images).

When should I use Cheatsheet Generator?

Cheatsheet Generator fits situations like: user says generate cheatsheet; make a cheat sheet; create exam reference sheet; has course materials to turn into a compact LaTeX review sheet for exams.

How do I install Cheatsheet Generator in Claude Code?

Run `npx skills add Evan715823/cheatsheet-generator-skill --skill cheatsheet-generator -a claude-code`. Or copy the skill folder (skills/cheatsheet-generator in Evan715823/cheatsheet-generator-skill) into .claude/skills/cheatsheet-generator in your project. Claude Code loads it when a task matches its description.

How do I install Cheatsheet Generator in Codex?

Run `npx skills add Evan715823/cheatsheet-generator-skill --skill cheatsheet-generator -a codex`. Or copy the skill folder (skills/cheatsheet-generator in Evan715823/cheatsheet-generator-skill) into .agents/skills/cheatsheet-generator in your project. Codex loads it when a task matches its description.

Can I use Cheatsheet Generator in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Evan715823/cheatsheet-generator-skill --skill cheatsheet-generator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cheatsheet-generator, .gemini/skills/cheatsheet-generator, .github/skills/cheatsheet-generator and .opencode/skills/cheatsheet-generator in your project.

What does Cheatsheet Generator need to run?

Going by SKILL.md and its folder, Cheatsheet Generator needs Python for the scripts in its folder and the command-line tools its instructions call (python and curl). Our summary lists: Python 3. Its frontmatter pre-approves these tools: Read, Write, Edit, Bash, Glob, Grep.

Does Cheatsheet Generator access the network?

SKILL.md contains no URLs. Its commands use curl, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Cheatsheet Generator safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Cheatsheet Generator use?

Cheatsheet Generator is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Cheatsheet Generator use?

About 3k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Cheatsheet Generator?

Skills that share tags, products or a category with Cheatsheet Generator: Thesis Defense PPTX Builder (zouchenzhen/thesis-defense-pptx-skill, 266 stars), Beamer (Noi1r/beamer-skill, 364 stars), Powerpoint Slides (Noi1r/powerpoint-skill, 124 stars) and Explorable Deck (claesbackman/AI-research-feedback, 495 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cheatsheet Generator?

Evan715823 (a GitHub user) maintains it in Evan715823/cheatsheet-generator-skill, which has 201 GitHub stars. The repository was last updated on April 9, 2026.

Source: Evan715823/cheatsheet-generator-skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.