beamer-skill / rules
Cursor rule363 starsChanged 6 months agoMITView on GitHub
Beamer LaTeX slide workflow — create, compile, review, and polish academic presentations
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository3 other files it gives its agents.
- beamer/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- beamerSkill
The file
We split this beamer.mdc into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 86
Start at 100. Critical: compilation failure (-100), equation overflow (-20), TikZ overflow (-15), undefined refs (-15), overfull hbox >10pt …
- Very specific: line 90
Phase 0: Read papers/materials thoroughly.
- Very specific: line 100
ALL marked points on curves computed via \pgfmathsetmacro — never hardcode y-values
- Distinctive: line 115
Every task ends with:
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
---
description: Beamer LaTeX slide workflow — create, compile, review, and polish academic presentations
globs: ["**/*.tex", "**/*.bib", "**/*.sty"]
---
# Beamer Slide Workflow
You are an expert Beamer LaTeX assistant. Follow these rules when creating, editing, reviewing, or compiling academic presentations.
## Core Workflow
**create → compile → review → polish → verify**
## Actions
| Action | Description |
|--------|-------------|
| `create [topic]` | Iterative lecture creation: material analysis → needs interview → structure plan → draft → quality loop |
| `compile [file]` | 3-pass XeLaTeX + bibtex with post-compile diagnostics |
| `review [file]` | Read-only proofreading (grammar, typos, overflow, consistency, academic quality) |
| `audit [file]` | Visual layout audit (overflow, fonts, boxes, spacing) |
| `pedagogy [file]` | Pedagogical review with 13 validation patterns |
| `tikz [file]` | TikZ diagram review |
| `excellence [file]` | Comprehensive multi-dimensional quality review |
| `devils-advocate [file]` | Challenge slide design with 5-7 pedagogical questions |
| `visual-check [file]` | PDF→image systematic visual review for overflow/layout issues |
| `validate [file]` | Structural validation against constraints |
| `extract-figures [pdf]` | Extract figures from paper PDFs for slides |
## Default Preamble
```latex
\documentclass[aspectratio=169,10pt]{beamer}
\usetheme{Madrid}
\usecolortheme{default}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{footline}[frame number]
\usepackage{amsmath,amssymb,amsthm,booktabs,mathtools}
\usepackage{stmaryrd}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,positioning,decorations.pathreplacing}
% Semantic colors (colorblind-safe)
\definecolor{positive}{HTML}{0173B2}
\definecolor{negative}{HTML}{DE8F05}
\definecolor{emphasis}{HTML}{029E73}
\definecolor{neutral}{gray}{0.55}
\definecolor{cbPurple}{HTML}{CC78BC}
\newcommand{\pos}[1]{\textcolor{positive}{#1}}
\newcommand{\con}[1]{\textcolor{negative}{#1}}
\newcommand{\HL}[1]{\textcolor{emphasis}{#1}}
```
## Hard Rules (Non-Negotiable)
1. **No overlays** — never `\pause`, `\onslide`, `\only`, `\uncover`. Use multiple slides + color emphasis.
2. **Max 2 colored boxes per slide.**
3. **Motivation before formalism** — "Why?" before "What?".
4. **Worked example within 2 slides** of every definition.
5. **XeLaTeX only** — never pdflatex.
6. **Beamer .tex is the single source of truth.**
7. **Verify after every task** — compile, check warnings, open PDF.
8. **Telegraphic style** — keyword phrases, not full sentences. Each bullet ≤ 2 lines (~15 words).
9. **Every slide earns its place** — must contain formula, diagram, table, theorem, or algorithm.
10. **Box-interior overflow guard** — limit box content to one display equation OR 2-3 short bullets. Never `\qquad` inside boxes. Beamer suppresses overflow warnings inside blocks — always visually verify.
11. **Reference slide** — second-to-last (before Thank You), `\begin{thebibliography}{9}` with `\small`.
12. **Color contrast ≥ 4.5:1** (WCAG AA). Never red+green binary contrasts. Use `\pos{}`, `\con{}`, `\HL{}`. Limit palette to 3-5 colors.
13. **Never use `\tiny`** for user-facing content.
14. **Backup slides** — 3-5 after Thank You with `\appendix`. Not counted in timing.
15. **Columns**: `\begin{columns}[T]`, two columns `0.48+0.48`, figure+text `0.50+0.45`. Never nest.
## Content Density (per slide)
- ≤ 7 bullets, ≤ 2 equations, ≤ 5 new symbols, ≤ 2 colored boxes
- Each slide needs at least one substantive element; pure text-only ≤ 30% of deck
## Slide Count
~1 slide per 1.5-2 min: 5min→5-7, 10min→8-12, 15min→10-15, 20min→13-18, 45min→22-30, 90min→45-60.
## Quality Scoring
Start at 100. Critical: compilation failure (-100), equation overflow (-20), TikZ overflow (-15), undefined refs (-15), overfull hbox >10pt (-10). Major: box-interior overflow (-10), TikZ points not on curve (-8), sparse slide (-5), label overlap (-5), missing refs (-5), table `\toprule` merged with title bar (-5), table not centered (-3), notation inconsistency (-3). Target: ≥ 90.
## Create Workflow
1. **Phase 0**: Read papers/materials thoroughly; prefer `.md` for semantic structure when available, and use PDF for figures/visual reference
2. **Phase 1**: Needs interview (duration, audience, scope)
3. **Phase 2**: Structure plan — user must approve before drafting
4. **Phase 3**: Draft in 5-10 slide batches with density self-checks
5. **Phase 4**: TikZ figures and data visualization
6. **Phase 5**: Quality loop — compile → self-review → score → fix (max 3 rounds)
## TikZ Rules
- Labels never overlap curves, lines, dots, or other labels
- ALL marked points on curves computed via `\pgfmathsetmacro` — never hardcode y-values
- Visual semantics: solid=observed, dashed=counterfactual
- Mixed slides: `xscale=0.5-0.7`, `yscale=0.4-0.6`
## Compilation
```bash
xelatex -interaction=nonstopmode FILE.tex
bibtex FILE
xelatex -interaction=nonstopmode FILE.tex
xelatex -interaction=nonstopmode FILE.tex
```
## Verification Protocol
Every task ends with:
- [ ] Compiled without errors
- [ ] No overfull hbox > 10pt
- [ ] All citations resolve
- [ ] PDF renders correctly
- [ ] Visual spot-check of modified slides
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

