--- name: presenterm description: > Create terminal-based presentations with presenterm markdown — end_slide separators, code highlighting with braces, Mermaid/D2 diagrams, column layouts, speaker notes. Themes include catppuccin, tokyonight, gruvbox, terminal-dark/light. Use when user mentions presentations, slides, slide deck, presenterm, terminal slides, or wants a talk in markdown format. --- # presenterm Skill Create terminal-based presentations using presenterm's markdown format. **Official docs**: https://mfontanini.github.io/presenterm/ ## Quick Reference ### Slide Structure ```markdown --- title: "My Talk" author: "Author Name" theme: name: dark --- # Slide Title Content goes here. # Next Slide ``` ### Built-in Themes | Dark Themes | Light Themes | | ------------------------------------- | ---------------- | | catppuccin-{frappe, macchiato, mocha} | catppuccin-latte | | dark | light | | gruvbox-dark | terminal-light | | terminal-dark | | | tokyonight-{moon, night, storm} | tokyonight-day | ### Key Bindings | Key | Action | | -------------- | ------------------- | | `j`/`l`/arrows | Next slide | | `h`/`k` | Previous slide | | `gg` | First slide | | `G` | Last slide | | `NG` | Jump to slide N | | `ctrl+p` | Slide index modal | | `?` | Key bindings modal | | `T` | Toggle visual grid | | `ctrl+e` | Execute code block | | `ctrl+r` | Reload presentation | | `q` | Quit | ## Comment Commands | Command | Purpose | | ---------------------------------- | ---------------------------------- | | `` | End current slide | | `` | Pause for next keypress | | `` | Insert blank line | | `` | Insert N blank lines | | `` | Center content vertically | | `` | Define column widths | | `` | Switch to column 0 | | `` | End column layout | | `` | Bullet points appear one at a time | | `` | Hide footer on this slide | | `` | Change font size (1-7, kitty only) | | `` | Align text left/center/right | | `` | Exclude from presentation | | `` | Add speaker note | | `` | Include external markdown | | `` | Extra spacing between list items | ## Column Layouts ```markdown Left content (2/3 width) Right content (1/3 width) ``` **Sizing**: `[2, 1]` = total 3 units, column 0 is 2/3, column 1 is 1/3. Equal halves: `[1, 1]`. Center content: `[1, 3, 1]` with content in column 1. ## Code Blocks ### Selective Highlighting ````markdown ```rust {1,3,5-7} fn main() { let x = 10; println!("Hello"); let mut q = 42; q = q * 1337; q } ``` ```` ```` ### Dynamic Reveal (progressive keypresses) ```markdown ```rust {1-3|5-7|all} fn potato() -> u32 { println!("Hello"); let mut q = 42; q = q * 1337; q } ```` ```` ### Code Block Attributes | Attribute | Effect | | -------------- | ----------------------------------- | | `+exec` | Make executable (ctrl+e) | | `+exec_replace` | Auto-execute and show output | | `+line_numbers` | Show line numbers | | `+no_background` | Remove code block background | | `+render` | Render mermaid/d2/LaTeX as image | | `+acquire_terminal` | Give full terminal to program | ### Hidden Lines (for execution) Prefix with `# ` to hide but still execute: ```markdown ```rust +exec # use std::thread::sleep; # use std::time::Duration; fn main() { println!("Only this line shows"); } ```` ```` ## Diagrams ### Mermaid ```markdown ```mermaid +render flowchart LR A[Producer] --> B[(Kafka)] B --> C[Consumer] ```` ```` See `references/mermaid-syntax.md` for full syntax. ### D2 ```markdown ```d2 +render direction: right Producer -> Broker -> Consumer ```` ```` See `references/d2-integration.md` for details and link to `d2` skill. ## Images ```markdown ![Alt text](path/to/image.png) ![image:width:50%](photo.png) ![image:300](icon.png) ```` Supported in kitty, iterm2, wezterm, ghostty, foot, sixel terminals. ## Pauses and Incremental Content ```markdown First appears Then on next keypress - Item 1 (appears alone) - Item 2 (next keypress) - Item 3 ``` ## Running Presentations ```bash presenterm slides.md # Development mode (hot reload) presenterm -p slides.md # Presentation mode presenterm -t catppuccin-mocha slides.md # Override theme presenterm -x slides.md # Enable code execution presenterm -P slides.md # Publish speaker notes presenterm -e slides.md -o out.pdf # Export to PDF presenterm -E slides.md # Export to HTML presenterm --validate-overflows # Check slide fits terminal ``` ## Theme Overrides ```yaml --- theme: name: dark override: default: colors: foreground: "#e6e6e6" background: "#040312" code: theme_name: base16-eighties.dark footer: style: progress_bar --- ``` ## Options (in frontmatter) ```yaml --- options: implicit_slide_ends: true # Auto-end slides on titles end_slide_shorthand: true # Allow --- as separator h1_slide_titles: true # # header becomes slide title auto_render_languages: # Auto-render these languages - mermaid --- ``` ## Design Patterns See `references/design-patterns.md` for: - Narrative Arc (setup → confrontation → resolution) - Gradual Consistency (progressive reveals) - Cave Painting (scripted demos) - Brain Breaks (every 10-15 minutes) - Antipatterns to avoid ## Generate New Presentation ```bash python scripts/new-presentation.py \ --title "My Talk" \ --author "Name" \ --theme catppuccin-mocha \ --template tech-talk \ --output slides.md python scripts/new-presentation.py --title "X" --author "Y" --output - # stdout ``` ### Available Templates - `minimal` - Bare starter with 2 placeholder slides - `tech-talk` - Narrative arc: Why → Problem → Solution → Demo → Summary ## Example Files See `references/example-kafka.md` for a full working presentation.