Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

cheatsheet-generator备忘单生成器

Agent Skill

cheatsheet-generator 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,297

周安装

53

GitHub Stars

27

下载量

416
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cheatsheet-generator(备忘单生成器)
来源仓库:https://github.com/evan715823/cheatsheet-generator-skill
仓库路径:skills/cheatsheet-generator
安装命令:
npx skills add https://github.com/evan715823/cheatsheet-generator-skill --skill cheatsheet-generator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

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

简介

cheatsheet-generator 将课程材料转换为 LaTeX 格式的彩色备忘单,支持 PPTX、PDF、Markdown 等格式。

  • 适用于学生整理学习资料、快速复习重点内容的场景,输出可在 Overleaf 编译的文档。
  • 使用时需扫描目录中的支持文件,提取关键信息并按学科分类排版,生成结构化摘要。
  • 安装前请确认文件路径和写入权限,避免误删原始材料,建议在本地预览编译结果后再使用。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

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

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: Combine text and visual information for full understanding.

1. Text extraction — extract all text from every page: 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): 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.

  • PPTX files: A .pptx is a zip archive containing XML slides and media. Use this two-step extraction process: Combine the text and image information to understand the full slide deck.

1. Text extraction — run a Python script with python-pptx to parse all slides and extract text, tables, notes, and shape structure: 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): 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.

  • 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):

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

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

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

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

\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}

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

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

  1. 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 \[...\]

  1. Tables: minimal padding: \begin{tabular}{@{}ll@{}} — zero extra padding
  2. Theorems: write them out COMPLETELY. Don't abbreviate theorem statements. Use \important{} to highlight the theorem.
  3. 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

  1. Content toggles:

- include_proofs: write proof sketches - include_examples: add concrete examples after definitions - include_derivations: show derivation steps

  1. Organize by topic hierarchy, NOT by source file order. Group related concepts. exam_focus topics get the most space.
  2. 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.
  3. 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:

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

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

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

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!

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.94%
按下载量换算145

Claude

31.47%
按下载量换算131

Cursor

18.49%
按下载量换算77

Gemini CLI

9.33%
按下载量换算39

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills