cheatsheat

cheatsheat is a skill for Claude Code, Codex from phanghonghao/THU-Awesome-Skills. It costs 74 tokens per session (1,973 once invoked), scanned A, original, MIT.

A formatter that turns Markdown notes into a compact A4 cheat sheet for printing or revision. It uses three columns, small text, narrow margins, and specific rules for images, tables, and formulas.

In plain words
What is it for?
Converting a Markdown file into a CHEATSHEET version, reorganising local images, styling tables, and preparing compact study or reference material.
Why use it?
It removes the manual work of fitting notes onto a printable reference page while keeping images and tables readable. It also helps prevent content from being split awkwardly across columns.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Converting a Markdown file into a CHEATSHEET version, reorganising local images, styling tables, and preparing compact study or reference material.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/phanghonghao/thu-awesome-skills/cheatsheat
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add phanghonghao/THU-Awesome-Skills --skill cheatsheat
Clone the repo
git clone --depth 1 https://github.com/phanghonghao/THU-Awesome-Skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cheatsheat

README.md
[![agentmods](https://agentmods.dev/badge/skills/phanghonghao/thu-awesome-skills/cheatsheat/github.svg)](https://agentmods.dev/skills/phanghonghao/thu-awesome-skills/cheatsheat)
Your own site
<a href="https://agentmods.dev/skills/phanghonghao/thu-awesome-skills/cheatsheat"><img src="https://agentmods.dev/badge/skills/phanghonghao/thu-awesome-skills/cheatsheat/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cheatsheat

Your own site · 80×15
<a href="https://agentmods.dev/skills/phanghonghao/thu-awesome-skills/cheatsheat"><img src="https://agentmods.dev/badge/skills/phanghonghao/thu-awesome-skills/cheatsheat.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,973 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00074 $0.01973
Opus 5 $0.00037 $0.00986
Sonnet 5 $0.00015 $0.00395
Haiku 4.5 $0.00007 $0.00197

Measured 11d ago against content hash 18ce547668b7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

cheatsheat scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/cheatsheat/SKILL.md · 191 lines

How it starts

The opening of the file, as written. The whole thing — 191 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CHEATSHEET 技能

将 Markdown 笔记文件转换为紧凑的 A4 CHEATSHEET 格式(速查表/小抄),方便打印和复习。

使用方法

指定要转换的 Markdown 文件路径,技能将:

  1. 读取目标 Markdown 文件
  2. 添加 CHEATSHEET CSS 样式
  3. 处理图片样式(移动到 sources/ 目录,添加样式)
  4. 保存为新的 _CHEATSHEET.MD 文件

CHEATSHEET 样式规范

  • 纸张: A4 (210mm × 297mm)
  • 页边距: 10mm
  • 布局: 三栏 (column-count: 3)
  • 字号: 小六 (10.5px, 约 8pt)
  • 行距: 1.3
  • 栏间距: 12px
  • 图片: 根据文件名和位置判断宽度
    • 包含"(大)":单独占位,max-width: 95%
    • 不包含"(大)"且不在表格中:可左右并排,max-width: 45%
    • 在表格中:将图片作为表格的单独一行(第一列留空,第二列放图片),使用 max-width: 95%
      • 正确格式:| | <img src="..." style="max-width: 95%;"> |
      • 不要将图片和文字放在同一表格单元中
  • 表格:
    • 最多2列:禁止超过2列的表格,若原始表格超过2列,需拆分或改为单行公式列表
    • 公式单行显示:表格中的数学公式应在同一行内完整显示
    • 避免跨栏截断:使用 break-inside: avoid 防止表格被分到两栏

用户请求生成 CHEATSHEET,请执行以下操作:

  1. 确定输入文件 - 如果用户未指定文件路径,请询问文件路径
  2. 确定输出文件名 - 在原文件名后添加 _CHEATSHEET 后缀,如 前8周CHEATSHEAT_机械制图.MD
  3. 读取原始内容
  4. 创建 sources 目录(如不存在)
  5. 处理图片
    • 原始笔记文件中的图片在同一文件夹下(如 image.png, 图1.png
    • 查找所有图片引用(包括 ![](image.png) 等格式)
    • 对于本地图片(非 sources/ 目录):
      • 根据图片所在位置的上下文重命名
        • 优先使用最近的章节标题(如 ## 三、弯曲正应力弯曲正应力.png
        • 或使用图片前后的描述性文字(如 剪断示意图剪断示意图.png
        • 或使用 alt 文本中的描述
        • 如有冲突,添加序号(如 弯曲正应力_1.png, 弯曲正应力_2.png
      • 重命名并移动图片到 sources/ 目录
      • 更新 Markdown 中的引用为 sources/新文件名.png
    • 根据新文件名添加样式:有"(大)"用 95%,无"(大)"用 45%
  6. 处理表格
    • 检查所有表格列数
    • 超过2列的表格需要重新设计:拆分为多个2列表格,或改为单行公式列表
    • 表格添加 class="cheat-table" 确保不跨栏截断
  7. 生成 CHEATSHEET 内容
    • 在文件开头添加 CSS 样式块
    • <div class="cheatsheet-container"> 包裹全部内容
    • 在文件末尾添加 </div>
  8. 保存输出文件

CSS 模板(在转换时添加到文件开头)

<!-- CHEATSHEET: A4三栏紧凑布局,小六字体 -->
<style>
@page {
  margin: 10mm;
  size: A4;
}
@media print {
  body {
    margin: 0;
    padding: 0;
  }
}
.cheatsheet-container {
  column-count: 3;
  column-gap: 12px;
  column-rule: 1px solid #ccc;
  font-size: 10.5px;
  line-height: 1.3;
}
.cheatsheet-container img {
  max-width: 95%;
  break-inside: avoid;
  page-break-inside: avoid;
  display: block;
  margin: 6px auto;
}
.cheatsheet-container h1,
.cheatsheet-container h2,
.cheatsheet-container h3,
.cheatsheet-container h4,
.cheatsheet-container h5,
.cheatsheet-container h6 {
  font-size: 10.5px;
  break-after: avoid;
  page-break-after: avoid;
  margin-top: 8px;
  margin-bottom: 4px;
}
.cheatsheet-container h1 { font-weight: 900; }
.cheatsheet-container h2 { font-weight: 800; }
.cheatsheet-container h3 { font-weight: 700; }
.cheatsheet-container h4 { font-weight: 600; }
.cheatsheet-container h5 { font-weight: 600; }
.cheatsheet-container h6 { font-weight: 600; }
.cheatsheet-container p {
  margin: 3px 0;
  text-align: justify;
}
.cheatsheet-container ul,
.cheatsheet-container ol {
  margin: 3px 0;
  padding-left: 18px;
}
.cheatsheet-container li {
  margin: 2px 0;
}
.cheatsheet-container code {
  font-size: 9px;
  background: #f5f5f5;
  padding: 1px 3px;
}
.cheatsheet-container pre {
  font-size: 9px;
  background: #f5f5f5;
  padding: 6px;
  border-radius: 3px;
  break-inside: avoid;
  page-break-inside: avoid;
}
.cheatsheet-container table {
  font-size: 9.5px;
  border-collapse: collapse;
  width: 100%;
  break-inside: avoid;
  page-break-inside: avoid;
}
.cheatsheet-container th,
.cheatsheet-container td {
  border: 1px solid #ddd;
  padding: 2px 4px;
  white-space: nowrap;
}
/* 禁止超过3列的表格,需手动拆分 */
.cheatsheet-container table td {
  max-width: 60mm;
  overflow: hidden;
  text-overflow: ellipsis;
}
</style>
<div class="cheatsheet-container">

Read the full file on GitHub · 191 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 191 lines · 74 tokens per session scan A 18ce547668b7

Subscribe to this mod's changes

cheatsheat is a skill published in the GitHub repository phanghonghao/THU-Awesome-Skills (8 stars, last pushed 1mo ago), licensed MIT. It adds 74 tokens to every session and 1,973 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

stage-dsl

The map for reading and editing an OpenMAIC stage document with readstage, patchstage, and grepstage. Load it before patching a structure you have not patched before, when patchstage rejects an operation, or whenever the path from a stage, outline, scene, content object, or action to the field you need is uncertain.…

THU-MAIC/OpenMAIC · 104 tokens

pptx-import

A method for adding an uploaded PowerPoint presentation to an existing classroom as extra pages while keeping the slides' original layout. PowerPoint is Microsoft's presentation file format.

THU-MAIC/OpenMAIC · 125 tokens

dev-camp-deck

Creates a professional PowerPoint presentation about a Copilot Dev Camp lab or topic. Researches Microsoft Learn documentation, organizes content into a slide structure, and generates a polished deck with speaker notes. Use when user asks to "create a presentation on", "make a deck about", "build a slideshow for"…

microsoft/copilot-camp · 91 tokens

read-book

When you want to read and extract structured notes from a book — PDF, EPUB, MOBI, markdown, .txt, pasted text, or URL to a public-domain work. Reads in chunks (by chapter when a TOC exists, by 50-page blocks otherwise), extracts per-chapter TL;DR + key concepts + quotes + action items + frameworks, and offers to…

coreyhaines31/makerskills · 192 tokens

exam-study-guide

A study-guide builder for a completed exam chapter that has not yet passed its required checks. It creates a structured teaching checklist and, in full mode, a self-contained HTML and printable PDF guide with readable formulas, visible images, explanations, examples, and answers.

ZeKaiNie/universal-examprep-skill · 113 tokens

training-report

Produce a professional training/workshop report as a .docx file. Use this skill whenever the user mentions "training report", "workshop report", "compte rendu", "compte rendu de formation", "formation report", "debriefing a workshop", "write up a training session", "résumé de formation", or any request to document a…

samber/cc-skills · 179 tokens