/research-convensions:slide-writingfrom research-convensions
Generates scroll-snapped two-column HTML slide decks in a neutral-academic style for research talks and project briefings. Enforces a two-phase workflow: logic flow first, then page design.
Ships in research-convensions. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Build a neutral-academic slide deck — research-style, formal. Each page is one scroll-snapped <section class="spread"> with a 2-column grid — figure left, commentary right. Global chrome is a quiet hairline scroll-progress bar, a small mono section tag, an nn / nn page indicator, and arrow-key navigation — all set on a warm-paper background. The visual identity (near-black ink #1a1a1a, terracotta accent #a55b3a used sparingly, Source Serif 4 + JetBrains Mono, warm paper #f8f7f4, no decorative noise) is fixed. The component library — masthead, numbered spec list, stats grid, data table, rail-pull, rail-callout, conclusion grid, voice-quote wall, tool stack, key-links — is also fixed. What's variable is what you put inside it.
The bundled template uses an editorial two-column pattern, in a restrained ink-on-paper palette typeset in Source Serif 4.
┌──────────────────────────┐ ┌──────────────────────────┐ ┌──────────────────────────┐
│ Phase 1 │ │ Phase 2 │ │ Phase 3 │
│ Logic flow │ → │ Page design │ → │ Assemble & verify │
│ │ │ │ │ │
│ topic · audience · │ │ per section: │ │ scaffold template · │
│ key claims → ordered │ │ pick pattern · write │ │ paste content in · │
│ section list + figure │ │ figure spec + commentary │ │ open in browser · │
│ ideas, signed off. │ │ confirm before next. │ │ walk arrow keys. │
└──────────────────────────┘ └──────────────────────────┘ └──────────────────────────┘
Skipping phase 1 produces decks that look polished but argue nothing. Treat the sign-off as a gate.
Capture intake in three lines. Ask the user (or read from the brief / slides.md):
Propose a section outline. 5–8 sections is the sweet spot; 12 is the ceiling. For each section write three things on one line:
§N · <section name> — <main claim, 1 sentence> — <figure idea, ≤ 8 words>
Example:
§1 · Problem — the pipeline breaks in three places — diagram with three red boxes
§2 · Model — two coupled cycles, one gate — wide timeline figure
§3 · Evidence — time inputs collapse — before/after table with accent total
§4 · Feasibility — mostly correct, honestly imperfect — vertical stack of three big numbers
§5 · Conclusion — copy the pattern, replace the topic — 2x2 audience grid + voice-quote wall
Show the outline. Wait for sign-off. If the user redirects, redraft the outline before touching HTML. The outline is the deck's thesis — if it's wrong, every page is wrong.
Once approved, write the outline into a notes.md (or outline.md) next to the deck file, so phase 2 has a single source of truth. The outline doubles as the chapter map for the talk.
For each section in the approved outline, do these steps in order:
Pick a pattern from references/layout-patterns.md. The decision is which job the slide is doing:
If the pattern is not obvious, use the lightweight router instead of reading the whole catalog:
python3 /path/to/skills/slide-writing/scripts/pattern_tool.py search --query "<slide job>" --limit 3
python3 /path/to/skills/slide-writing/scripts/pattern_tool.py summarize --pattern <pattern-id>
Use extract --pattern <pattern-id> only when you need the copyable HTML snippet.
| Slide does this | Pattern |
|---|---|
| Names 3–4 parallel things (failures, principles, constraints) | ol.spec numbered list |
| Headlines 3–4 numbers | .stats grid (.cols-2 or .cols-3) |
| Compares before/after across many rows | table.data with grouped rows |
| Carries one punch line | .rail-pull |
| Sidebar checklist or single big number | .rail-callout |
| Stacks three big numerals each with a sentence | .feasibility-stack (inside the figbox) |
| Closes with audience-shaped takeaways | .conclusion-grid (always 4 cards, one .dark with the CTA) |
| Surfaces verbatim quotes | .voice-group (categories: accept / cost / trap / ask) |
| Lists the tools we used | .tool-stack |
| End-of-deck links | .ribbon + .key-links |
Combine patterns when natural — e.g., a section may carry a numbered ol.spec and a .rail-pull at the bottom. Don't stack more than two patterns per .spread-text column — past that the eye loses the anchor.
Write the title, then design the figure column. The title (.run-title) is a direct child of <section class="spread"> and spans the full grid row above the two columns. Below it, the wide left column carries the figure. Use the source's own figures — do not synthesize. If the deck introduces a paper, project, or repo, the figures already exist there: in paper/figs/, in a README, in docs/assets/, in slides from a prior talk. Find them first; only then think about generating anything new. The author drew the figure once; redrawing it as inline SVG produces a worse copy that the audience will compare unfavourably to the original.
.run-title, sibling of .spread-fig and .spread-text): the claim as a sentence with one italic word in <em>. End with a period. The <em> inherits the title color; do not use a second title color. The title spans the full row (grid-column: 1 / -1), so it can read full-width without wrapping into a narrow column.figures/ next to the deck and reference it as <img src="figures/whatever.svg" /> inside a .figbox. SVGs scale; PNGs work; PDFs need converting (pdf2svg foo.pdf foo.svg or pdftocairo -png -r 180 -singlefile foo.pdf foo). Source GIFs (e.g. README animations) load directly from their raw URL.table.data, a .feasibility-stack, or a .conclusion-grid — these are the figure; no SVG needed.Wrap whatever you choose in a .figbox with .figbox-head (Fig N · title + short context) and .figbox-cap (the one-sentence "how to read this").
Do not add a .run-eyebrow. The section number + topic is already in the always-visible data-tag top chrome; putting it inside the slide too is duplicate furniture.
Write the commentary-right column. The right rail starts at the figbox top edge — no title repeats here.
.run-lead): one sentence — the headline restated with the operative number or fact. ≤ 30 words..run-body): zero to two short paragraphs of nuance. Don't recap the figure.Confirm before moving on. Show the user the section in markdown form (title + lead + the pattern's content), or open the HTML and screenshot. Only after sign-off, move to the next section.
House rules during page design:
--text-soft, not ink. Reserve ink for headings, rules, emphasis.voice-group cols-3 row, two in cols-2. Never mix.td.num or .k sup; never in plain serif.Scaffold the deck file into the target directory:
python3 /path/to/skills/slide-writing/scripts/scaffold.py [--name presentation] [target_dir]
This writes presentation.html (or <name>.html) into the target directory. Idempotent — passes skip over existing files; --force to overwrite.
Replace the template's masthead and five example sections with your real ones. Keep the chrome (the <div class="scroll-progress">, .brand-chip, .top-tag, .nav-hint, .page-indicator) and the bottom <script> exactly as-is. They are what makes it a deck, not a long article.
Update data-tag on every <section class="spread"> — that string is what the top-tag chrome shows when the section is on screen. Pattern: "§N · short label".
Verify in a browser:
python3 /path/to/skills/slide-writing/scripts/deck_lint.py --input presentation.html
python3 -m http.server # in the directory containing presentation.html
Fix any deck_lint.py errors before opening the deck. Warnings are not automatic blockers, but read them; they usually mean leftover template content or inline styling that should be cleaned up.
Then in the browser:
→, ←, space, PgUp, PgDn, Home, End. Every page should snap; no peek of the next page at the bottom.nn / nn correctly.<= 980 px), the two columns should collapse to one and the bottom chrome should hide.| File | Purpose |
|---|---|
references/template.html | The full deck template — chrome + masthead + 5 example .spread sections covering every pattern. Self-contained: CSS, JS, fonts via CDN. |
references/layout-patterns.md | Section-by-section catalog: every pattern, its HTML snippet, when to use it, and the house rules. |
references/style-tokens.md | The deck palette (ink + terracotta on warm paper), type scale, layout widths, and motion tokens. |
scripts/scaffold.py | Idempotent scaffold — copies template.html (as <name>.html) to a target directory. |
scripts/pattern_tool.py | Search / summarize / extract helper for layout-patterns.md, so agents can pick snippets without loading the full catalog. |
scripts/deck_lint.py | Local preflight for deck structure, chrome, section tags, title accent counts, missing assets, and obvious template leftovers. |
Treat each <section class="spread" id="..."> as the editable unit. For a local content change, replace only that section by id and preserve the fixed chrome (.scroll-progress, .brand-chip, .top-tag, .nav-hint, .page-indicator) and bottom <script>. For a small addition inside one slide, edit only the relevant .spread-fig or .spread-text block.
After editing, always run:
python3 /path/to/skills/slide-writing/scripts/deck_lint.py --input presentation.html
Only rebuild the whole deck when the approved outline or page count changes. If the deck structure changes, update every data-tag and re-check the page indicator in the browser.
2fr / 1fr is the ratio. Don't widen the commentary; if it overflows, the title or lead is too long.--text-soft, ink reserved for headings. Reading body copy in --ink is too heavy.td.num, .k sup, page indicators, eyebrows. Never let a numeric break sit in the serif.layout-patterns.md first, then use the new pattern.| Mistake | Fix |
|---|---|
| Synthesized an inline SVG for a slide that introduces a paper / repo / project | Stop. Find the source figure (in figs/, docs/assets/, the README, prior slides) and embed that instead. Hand-drawn SVG copies of a real figure read worse than the real figure and undermine the deck's credibility. Only use inline SVG when no source figure exists. |
| Started drafting pages before getting outline sign-off | Stop. Go back to phase 1. The outline is the deck's thesis. |
Title with two or more <em> words | Pick the operative word. The others go in run-lead, not the title. |
Title with a colored <em> word | Remove the color. Title emphasis inherits the title color and changes only style/weight. |
Bullet list in .spread-text | Use ol.spec (numbered). Plain bullets read as ad-hoc notes; numbered items read as a deliberate count. |
Three figures stacked vertically in one .figbox | That's three slides. Split. |
data-tag left as the template's default | The top-tag will lie about where the audience is. Always update. |
Removed the <script> block to "simplify" | Now arrow-keys don't work. The script is what makes it a deck. |
| Substituted a sans-serif for Source Serif 4 on titles | The deck deliberately uses Source Serif 4 for both display and body, with italic emphasis carrying the highlight. Don't undo it. |
Body copy set in --ink | Too heavy. Use --text or --text-soft. Ink is for headings, rules, accent. |
Pasted a non-.spread block between two .spread sections | Breaks the page-indicator math. Every page is a .masthead or a section.spread — no other shapes at the top level. |
Used oklch(), custom font sizes, or one-off hex colors inline | Don't ad-hoc style. Reuse tokens or add a class to the template. |
| Arrow keys, page indicator, or top-tag stopped working | Restore the fixed chrome and bottom script, then run scripts/deck_lint.py --input presentation.html. |
| Image renders broken | Keep image paths relative to the deck file and verify deck_lint.py does not report missing_asset. |
agents/openai.yaml (opens in a new tab)references/layout-patterns.md (opens in a new tab)references/style-tokens.md (opens in a new tab)references/template.html (opens in a new tab)scripts/deck_lint.py (opens in a new tab)scripts/pattern_tool.py (opens in a new tab)scripts/scaffold.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub codingthrust/templates --plugin research-convensions7 skills in this plugin
/fix-prUse when a pull request on the current branch has review comments, failing CI checks, or coverage gaps to address — guides a triaged cleanup pass that fixes feedback in priority order without bundling unrelated changes./issue-to-prUse when you have a GitHub issue and want to open a PR carrying an implementation plan — guides fetching the issue, brainstorming an approach with the user, writing a plan file, and pushing a plan-only PR ready for implementation (manual or automated)./repo-hygiene-auditUse when auditing a software repository for beginner-level best-practice violations, repo health, Git history hygiene, issue and PR usage, branch discipline, tests, docs, coding style, CI, security basics, or maintainability signals./report-writingUse when setting up or writing a research documentation/report site — scaffolds a fresh site (Makefile, build script, GitHub Pages workflow, HTML templates) or refreshes templates in an existing setup. Output is a single-page index with download cards, rendered markdown prose, and PDF viewers, all sharing the same neutral-academic stylesheet (ink + terracotta on warm paper). The build pipeline is a single Python script driven by a doc registry; the visual identity is fixed; the contents are yours./review-implementationUse when a code change is finished but not yet committed — dispatches a fresh-context subagent to review the diff for design principles (DRY/KISS/HC-LC), test quality, and (where applicable) public-API ergonomics, then consolidates findings and applies the clear fixes automatically./topic-reportUse when given a topic and a list of sources (URLs, arxiv IDs, DOIs, PDFs, local notes) and asked to collect what each source says about the topic and synthesize them into a single cited report. Drives a three-pass workflow — per-source extraction, cross-source synthesis, structured write-up — and grounds every claim in a specific source.Other plugins' skills for the same job