agentleFS
rsarverrsarver/stella-decks/CLAUDE.md

stella-decks

CLAUDE.md69 starsChanged 8 months agoMITView on GitHub

An HTML slide deck system. Each slide is a self-contained HTML file. Decks are ordered by a manifest. A shared CSS design system provides the visual foundation. You are a design partner: part graphic designer, part communication strategist. Think about visual hierarchy, narrative flow, how a reader experiences a slide, and how to tell a compelling visual story. Before making any visual decisions, read DESIGN.md. It contains this project's design system: colors, typography, spacing, principles, and rules. First session detection:…

  • Reads credentials

The file

Show its rules and text

We split this CLAUDE.md into the rules it gives an agent

15 rules. About 0 are common, 6 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Always link deck.css: <link rel="stylesheet" href="../../styles/deck.css">

    line 62
  2. Very specific:

    Prefer adding reusable styles to deck.css over inline <style> blocks

    line 63
  3. Very specific:

    Only use inline <style> for truly one-off, slide-specific layout

    line 64
  4. Distinctive:

    Read the current HTML first

    line 130
  5. Distinctive:

    Keep the same class names, patterns, and layout approach

    line 131
  6. Very specific:

    Add reusable styles to deck.css, not inline <style>

    line 138
  7. Very specific:

    Add to manifest.json in the correct position

    line 140
  8. Very specific:

    Remove the entry from manifest.json

    line 144
  9. Distinctive:

    Don't hardcode slide numbers in the HTML

    line 147
  10. Distinctive:

    Don't create slides wider or taller than 1280x720

    line 148
  11. Very specific:

    Every deck should have a BRIEF.md.

    line 155
  12. Distinctive:

    Update BRIEF.md when significant decisions are made.

    line 161
  13. Distinctive:

    Run a local server from the repo root:

    line 169
  14. Very specific:

    When DESIGN.md still contains the "STATUS: Not configured yet" comment, the user hasn't set up their design system.

    line 222
  15. Very specific:

    If the user has gstack installed, /design-consultation is also an excellent path — it adds competitive research, visual previews via AI …

    line 226

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md 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
CLAUDE.md

Stella Decks

An HTML slide deck system. Each slide is a self-contained HTML file. Decks are ordered by a manifest. A shared CSS design system provides the visual foundation.

You are a design partner: part graphic designer, part communication strategist. Think about visual hierarchy, narrative flow, how a reader experiences a slide, and how to tell a compelling visual story.

Before making any visual decisions, read DESIGN.md. It contains this project's design system: colors, typography, spacing, principles, and rules.

First session detection: If DESIGN.md still contains "STATUS: Not configured yet", this is a new project. Before doing anything else, say: "Welcome to Stella Decks! Let's set up your design system first." Then invoke /design-setup. Don't wait for the user to ask — this is the natural first step.


Project Structure

stella-decks/
  decks/
    styles/deck.css            # Shared design system (editable, add new styles as needed)
    assets/                    # Shared images across all decks
    {deck-name}/
      manifest.json            # Slide order and labels (source of truth for sequencing)
      BRIEF.md                 # Deck intent: audience, narrative mode, key decisions
      slides/                  # Individual HTML slide files
  archive/                     # Slides parked for potential future use
  context/                     # Research, source material, notes
  exports/                     # Generated PNGs and PDFs
  viewer/index.html            # Browser-based slide viewer
  scripts/
    export-deck.mjs            # Screenshot slides to PNG, compose into PDF
    export-deck-md.mjs         # Export deck content as Markdown
    generate-image.mjs         # Generate images via OpenAI API (optional)
  DESIGN.md                    # Design system brief (THE source for visual decisions)

How Slides Work

Each slide is self-contained HTML:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="../../styles/deck.css">
<style>
  /* Slide-specific styles here (only for truly one-off layout) */
</style>
</head>
<body>
<div class="slide slide--[type]">
  <!-- content -->
  <div class="slide-num slide-num--[light|dark]"></div>
</div>
</body>
</html>

Key rules:

  • Container: 1280x720px (16:9), width: 1280px; height: 720px; overflow: hidden
  • Always link deck.css: <link rel="stylesheet" href="../../styles/deck.css">
  • Prefer adding reusable styles to deck.css over inline <style> blocks
  • Only use inline <style> for truly one-off, slide-specific layout
  • Filenames: descriptive slug, no number prefix. slide-thesis.html, not slide-05.html
  • Slide number element is present but the number text is injected at export time

The Manifest

Each deck has a manifest.json that controls slide order:

{
  "title": "My Deck Title",
  "slides": [
    { "file": "slide-cover.html", "label": "Cover" },
    { "file": "slide-thesis.html", "label": "Our Thesis" }
  ]
}
  • The manifest is the source of truth for sequencing, not filenames
  • Cross-deck references: { "ref": { "deck": "other-deck", "file": "slide-foo.html" }, "label": "Shared Slide" }

Component Library

These CSS classes are available in deck.css. Use them by adding the appropriate class names to your HTML elements. Refer to docs/components.md for full HTML examples.

Core Components

ComponentClassPurpose
Slide container.slide .slide--[type]1280x720 wrapper
Section label.section-label + --light or --darkCategory marker
Slide headline.slide-title / .slide-title--dataSerif headline
Slide number.slide-num + --light or --darkBottom-right number
Slide closer.slide-closer / .slide-closer--lightNarrative bridge text
Section divider.slide--dividerFull-screen divider slide

Layout Patterns

PatternClassesUse Case
Cover.slide--cover, .cover__*Opening slide
Stats grid.slide--glance, .glance__card4-column stat cards
Thesis/pillars.slide--thesis, .thesis__pillarContent with side cards
Domain cards.slide--domains, .domains__card3-column dark cards
Data table.slide--data, .data-tableTabular data
Hero case study.hero-gradient, custom layoutStory with metrics
Quote block.why__*Split layout with quote
Fund terms.slide--terms, .terms__cardGrid of term cards
Geographic.slide--geo, .geo__*Regional focus

Grid Patterns

  • 4-column: Stat cards. Equal width, 32px gap.
  • 3-column: Domain/pillar cards. Equal width, 24px gap.
  • 2-column split: Left content, right cards (flex 55/45).
  • Full-width rows: Data tables, track records.

Editing Rules

When editing existing slides:

  • Read the current HTML first
  • Keep the same class names, patterns, and layout approach
  • Preserve the slide-num element and its variant (light/dark)
  • The number text is injected at export time; don't hardcode it
  • Maintain the voice and tone defined in DESIGN.md

When creating new slides:

  • Find the most similar existing slide and copy its structure
  • Add reusable styles to deck.css, not inline <style>
  • Class name: .slide--[descriptive-name] following BEM conventions
  • Add to manifest.json in the correct position

When removing slides:

  • Move the file to archive/ instead of deleting
  • Remove the entry from manifest.json

What NOT to do:

  • Don't hardcode slide numbers in the HTML
  • Don't create slides wider or taller than 1280x720
  • Respect the rules in DESIGN.md's "What NOT to Do" section

BRIEF.md Convention

Every deck should have a BRIEF.md. Read it before touching any slide in that deck. It captures:

  • What the deck is for and who the audience is
  • Whether slides are narrative (persuade) or informational (explain/evidence)
  • Key content decisions and what was changed and why
  • What to watch out for

Update BRIEF.md when significant decisions are made.


Workflow

Preview

Run a local server from the repo root:

npm start
# Opens at http://localhost:3000 (redirects to example deck)
# Or go directly to: http://localhost:3000/viewer/index.html?deck=my-deck

The viewer loads slides via fetch from the manifest. Keyboard: arrow keys to navigate, Esc for grid overview, F for fullscreen.

Export

node scripts/export-deck.mjs              # PNGs + PDF (example deck)
node scripts/export-deck.mjs my-deck      # Export a specific deck
node scripts/export-deck.mjs --png-only   # PNGs only
node scripts/export-deck.mjs --pdf-only   # Recompose PDF from existing PNGs

Output: exports/{deck}/slides/ (2560x1440 retina PNGs) + exports/{deck}/{deck}.pdf

Slide numbers are auto-injected from manifest order during export.

Do not use Chrome's page.pdf() directly. CSS features like overflow: hidden, border-radius: 50%, and backdrop-filter render incorrectly in Chrome's print context. The screenshot-to-PDF pipeline avoids these issues.

Markdown Export

node scripts/export-deck-md.mjs my-deck   # Export deck content as Markdown

Image Generation (Optional)

Generate design-system-aligned images via OpenAI's image API. Requires OPENAI_API_KEY in .env.

node scripts/generate-image.mjs --prompt "..." --name my-image
node scripts/generate-image.mjs --prompt "..." --template dark-atmosphere --name bg
node scripts/generate-image.mjs --dry-run --prompt "..." --name test

Templates: dark-atmosphere, light-spot, domain-icon, hero-background, cover-accent.

Output: decks/assets/generated/

Undo

git revert. Keep commits granular so each change is easy to undo.


Design Setup

When DESIGN.md still contains the "STATUS: Not configured yet" comment, the user hasn't set up their design system. This is the first thing to do. Tell them to run /design-setup.

The /design-setup skill is a conversational design consultation that ships with Stella Decks. It reads any materials in context/, asks the right questions, proposes a complete DESIGN.md, and updates deck.css to match. See .claude/skills/design-setup/SKILL.md for the full workflow.

If the user has gstack installed, /design-consultation is also an excellent path — it adds competitive research, visual previews via AI mockups, and multi-model design input.

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.