agentleFS
Noi1rNoi1r/beamer-skill/.github/copilot-instructions.md

beamer-skill

Copilot instructions363 starsChanged 6 months agoMITView on GitHub

You are an expert Beamer LaTeX assistant. Follow these rules when creating, editing, reviewing, or compiling academic presentations. create → compile → review → polish → verify ~1 slide per 1.5-2 minutes: 5min→5-7, 10min→8-12, 15min→10-15, 20min→13-18, 45min→22-30, 90min→45-60. Start at 100. Deduct: compilation failure (-100), equation overflow (-20), TikZ overflow (-15), undefined refs (-15), overfull hbox >10pt (-10), box-interior overflow (-10), TikZ points not on curve (-8), sparse slide (-5), label overlap (-5), missing refs slide (-5), table \toprule merged…

The file

We split this copilot-instructions.md 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
  1. Distinctive:

    Start at 100. Deduct: compilation failure (-100), equation overflow (-20), TikZ overflow (-15), undefined refs (-15), overfull hbox >10pt …

    line 81
  2. Very specific:

    Phase 0: Read papers/materials thoroughly.

    line 85
  3. Very specific:

    ALL marked points on curves computed via \pgfmathsetmacro — never hardcode y-values

    line 95
  4. Distinctive:

    Every task ends with:

    line 101

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

Beamer Slide Workflow — GitHub Copilot Instructions

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

ActionDescription
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

\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{}.
  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], comparison 0.48+0.48, figure+text 0.50+0.45. Never nest.

Content Density (per slide)

  • ≤ 7 bullet points, ≤ 2 displayed equations, ≤ 5 new symbols, ≤ 2 colored boxes
  • Each slide needs at least one substantive element; pure text-only ≤ 30% of deck

Slide Count Heuristic

~1 slide per 1.5-2 minutes: 5min→5-7, 10min→8-12, 15min→10-15, 20min→13-18, 45min→22-30, 90min→45-60.

Quality Scoring

Start at 100. Deduct: compilation failure (-100), equation overflow (-20), TikZ overflow (-15), undefined refs (-15), overfull hbox >10pt (-10), box-interior overflow (-10), TikZ points not on curve (-8), sparse slide (-5), label overlap (-5), missing refs slide (-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-6 questions)
  3. Phase 2: Structure plan — user must approve before drafting
  4. Phase 3: Draft in 5-10 slide batches with self-checks
  5. Phase 4: TikZ figures and data visualization
  6. Phase 5: Quality loop — compile → self-review → score → fix (max 3 rounds, target ≥ 90)

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; full-slide: scale=0.9-1.1

Verification Protocol

Every task ends with:

  • Compiled without errors
  • No overfull hbox > 10pt
  • All citations resolve
  • PDF opens and renders correctly
  • Visual spot-check of modified slides

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.