Skip to content

Repository files navigation

Claude Code Slides

CI Agent Plugins License: MIT

Agent-first presentation workflows for Codex, Claude Code, and Agent Plugins-compatible clients.

Turn a topic, document, URL, or repository into a story-driven HTML, Marp, or editable PowerPoint deck. Claude Code Slides plans the narrative, chooses a visual theme and semantic layout sequence, creates the files, validates the result, reviews delivery quality, and can add speaker notes.

Visual Grammar v2 keeps one coherent design language while varying composition, geometry, density, and eye path—so a deck does not merely rename the same left-copy/right-card layout twenty times.

繁體中文 · Theme and layout gallery · Visual Grammar v2 follow-up

Claude Code Slides example

Highlights

  • Agent-first workflow: narrative planning, visual direction, generation, deterministic checks, independent review, and speaker notes.
  • 7 visual themes: one shared workflow for technical, executive, cloud, data, product, terminal, and incident presentations.
  • 28 semantic layout archetypes: layouts are selected by the communication job of each slide.
  • 20 distinct starter layouts and geometries: the starter decks demonstrate real composition changes rather than cosmetic card variations.
  • Agent-authored Python SVG: Codex and Claude Code can plan and generate a custom deterministic vector visual for each slide; 10 built-in kinds remain examples and fast fallbacks.
  • Three output formats: interactive HTML, reviewable Marp, and editable PPTX built with text and shapes.
  • Portable plugin architecture: shared Agent Skills with native Codex and Claude Code adapters.
  • Diagram Design skill: 27 editorial diagram types, Mermaid/draw.io redraw workflows, icon primitives, and slide-ready SVG/PNG guidance.

How it works

Claude Code Slides is not a one-shot “split this document into ten pages” prompt. It packages a repeatable presentation workflow:

source material
  → audience, decision, and constraints
  → narrative architecture
  → visual theme + semantic layout sequence
  → geometry-aware page composition
  → HTML / Marp / editable PPTX
  → deterministic validation
  → independent review
  → speaker notes and Q&A preparation

The portable core follows Agent Plugins 1.0.0 and Agent Skills conventions. Native adapters preserve the best installation and invocation experience in Codex and Claude Code.

Quick start

The commands below are available after linking a repository checkout with npm link. Installed plugin skills call the bundled CLI through their skill-local wrapper, so normal plugin use does not require a global CLI installation. From an unlinked checkout, replace codex-slides with node bin/codex-slides.mjs.

Create a deck with the default claude-editorial theme:

codex-slides init "AI Platform Architecture Review" --format html

Set generated document and presentation metadata with an Intl-compatible locale tag when needed:

codex-slides init "平台架構審查" --format html --lang zh-TW

Create an editable PowerPoint deck with an explicit theme:

codex-slides init "Quarterly Strategy Review" \
  --format pptx \
  --template executive-brief

Inspect the available themes and layouts:

codex-slides templates
codex-slides layouts
codex-slides layouts --family system --json

Validate a generated deck:

codex-slides check slides/ai-platform-architecture-review
codex-slides check slides/ai-platform-architecture-review --strict

After replacing the starter copy, --strict treats any remaining warning as a failed check. Use --format html|marp|pptx when a directory contains more than one deck entry and has no template.json metadata to disambiguate it.

claude-slides exposes the same CLI.

Visual Grammar v2

Visual Grammar v2 separates four concerns that are often collapsed into a single template:

Layer Controls Example
Theme Color, typography, surface treatment, background pattern claude-editorial, cloud-architecture
Layout archetype The communication job and information hierarchy system-map, decision-path, quote-evidence
Geometry Composition, dominant element, density, and eye path hub-and-spoke, branch-path, quote-stage
Visual asset Optional plan-backed custom SVG or reusable reference renderer <visual>.visual.md + <visual>.py + <visual>.svg

This distinction prevents false variety: two slides may use different labels while still looking identical in the thumbnail view. The layout catalog therefore records fields such as dominantElement, eyePath, density, geometry, variants, and avoid in addition to the semantic family and recommended use cases.

Layout families

Family Archetypes
Opening editorial-cover, chapter-index
Statement and explanation hero-statement, asymmetric-editorial, split-narrative
Evidence metric-spotlight, evidence-claim, annotated-visual, quote-evidence, infographic-story, data-journey, dashboard-story
System layered-architecture, flow-architecture, system-map, architecture-boundary
Comparison and decision before-after, comparison-matrix, decision-path, decision
Sequence timeline, roadmap-horizon, process-steps, swimlane-process, operating-loop
Demonstration, risk, and close code-walkthrough, risk-matrix, closing-manifesto

The default starter deck demonstrates this 20-page sequence:

editorial-cover
→ hero-statement
→ chapter-index
→ before-after
→ layered-architecture
→ metric-spotlight
→ system-map
→ evidence-claim
→ flow-architecture
→ annotated-visual
→ infographic-story
→ code-walkthrough
→ data-journey
→ quote-evidence
→ comparison-matrix
→ decision-path
→ operating-loop
→ timeline
→ risk-matrix
→ closing-manifesto

The catalog also defines deck-level guidance such as:

  • at least 8 distinct archetypes in a deck of 10 or more slides when the content supports them
  • no exact consecutive layout repetition
  • card-based pages at or below roughly 20%
  • split-screen pages at or below roughly 35%
  • no more than 2 consecutive pages with the same underlying geometry
  • a visible rhythm change about every 3 slides
  • one explicit dominant element per page

Layout choices remain inspectable in every output format:

HTML  data-layout="system-map" data-geometry="hub-and-spoke"
Marp  <!-- _class: system-map -->
PPTX  LAYOUT_SEQUENCE + GEOMETRY_SEQUENCE

Seven visual themes

The default theme is claude-editorial. The previous name terminal-editorial remains a compatible alias.

Theme Best for
claude-editorial Technical talks, architecture reviews, AI and developer tooling
executive-brief Leadership updates, strategy proposals, quarterly reviews
cloud-architecture Infrastructure, platform engineering, security boundaries
data-story Analytics, research findings, metrics, and comparisons
product-launch Product demos, launches, roadmaps, and feature narratives
dark-terminal Live demos, code walkthroughs, and engineering deep dives
incident-review Postmortems, impact timelines, root cause, and remediation

Omitting --template uses claude-editorial.

Each generated deck includes template.json, which records the selected theme, aliases, design tokens, layout-system rules, starter sequence, and output format.

Agent-authored Python SVG

Claude Code Slides runs inside coding agents, so SVG generation is not limited to a fixed set of templates. When a slide needs a content-specific mechanism, architecture, journey, boundary, or scene, the agent should first write a Markdown visual plan, then create a small deck-local Python generator and produce the SVG.

slides/<deck>/assets/<visual>.visual.md
slides/<deck>/assets/<visual>.py
slides/<deck>/assets/<visual>.svg

Start from the Python SVG authoring protocol and the visual-plan template. The plan records the communication job, source of truth, semantic model, geometry, eye path, labels, accessibility, editable slide content, and validation requirements before geometry is implemented.

Example workflow:

cp references/python-svg-plan.md \
  slides/mstr/assets/capital-engine.visual.md

python3 slides/mstr/assets/capital-engine.py \
  --output slides/mstr/assets/capital-engine.svg

Use the built-in generator as a pattern library or fallback, not as a closed catalog:

python3 scripts/generate-slide-art.py --list-kinds

The 10 reference kinds demonstrate deterministic sketch and clean strokes, accessible metadata, paths, loops, scenes, boundaries, and portable output. An agent may use one directly when it fits, inspect it for reusable techniques, or write a completely new composition when the content requires it. One-off visuals should remain deck-local; promote a pattern into the shared generator only after it proves reusable across unrelated decks.

Keep slide titles, explanatory copy, citations, footers, and speaker notes editable outside the SVG. Validate the Python, parse the generated XML, inspect thumbnail and presentation readability, and run the normal deck checks before delivery.

Skills

Capability Codex Claude Code
Create a deck $create-deck /claude-code-slides:create-deck
Review and improve $review-deck /claude-code-slides:review-deck
Add speaker notes $speaker-notes /claude-code-slides:speaker-notes
Apply the visual system $claude-code-style /claude-code-slides:claude-code-style
Plan the narrative $deck-architect Skill or deck-architect subagent
Direct the visuals $visual-director Skill or visual-director subagent
Run an independent audit $deck-reviewer Skill or deck-reviewer subagent
Create diagrams $diagram-design /claude-code-slides:diagram-design

Install in Codex

codex plugin marketplace add \
  https://github.com/rufushsu9987/claude-code-slides.git \
  --ref main

codex plugin add claude-code-slides@rufus-slides

main is the preview channel. For a reproducible installation, replace it with a published claude-code-slides--vX.Y.Z tag.

Start a new Codex session, then run:

$create-deck

Analyze this repository and create a 10-slide Traditional Chinese architecture review.
Use editable PPTX and the default claude-editorial theme.
Use at least eight distinct layout archetypes and cover data flow, trust boundaries,
deployment, operations, risks, and next steps.

For an existing Git marketplace snapshot:

codex plugin marketplace upgrade rufus-slides
codex plugin add claude-code-slides@rufus-slides

Start a new Codex thread after reinstalling so the updated skills are loaded.

When Codex reports that the marketplace is not configured as Git, remove and re-add it with the full GitHub URL shown above.

Install in Claude Code

claude plugin marketplace add rufushsu9987/claude-code-slides
claude plugin install claude-code-slides@rufus-slides

Then run:

/claude-code-slides:create-deck

Turn docs/architecture.md into a 12-minute architecture review.
Use editable PPTX, the default claude-editorial theme, and a varied layout sequence.

Update an existing Claude Code installation with:

claude plugin marketplace update rufus-slides
claude plugin update claude-code-slides@rufus-slides

Then start a new session or run /reload-plugins.

Diagram Design

The bundled diagram-design skill adds 27 standalone editorial diagram types—including architecture, flowchart, sequence, state, ER, timeline, swimlane, quadrant, loop, charts, data flow, and security matrix—plus Mermaid and draw.io redraw workflows. Use it directly with $diagram-design or /claude-code-slides:diagram-design; for a presentation, ask for a slide-16x9 diagram and keep the surrounding title, source note, and speaker notes editable.

The skill's gallery and source references live under skills/diagram-design/. It is vendored from cathrynlavery/diagram-design under MIT; see its local ATTRIBUTION.md and THIRD_PARTY_LICENSES.md.

Output formats

Format Best use Output
HTML Live delivery, visual fidelity, interaction, offline playback, browser sharing index.html, theme.css, slides.js
Marp Markdown review, Git diffs, documentation workflows, quick HTML/PDF export deck.md, theme.css
PPTX Editable Microsoft PowerPoint and enterprise handoff deck.mjs, generated .pptx

The PPTX workflow uses editable text and shapes rather than flattening every slide into an image. SVG assets remain separate visual anchors, so the surrounding title, explanation, notes, and controls stay editable.

CLI

codex-slides templates
codex-slides templates --format pptx --json
codex-slides layouts
codex-slides layouts --family evidence --json
codex-slides init "AI Platform" --format html --lang en-US
codex-slides init "Cloud Review" --format pptx --template cloud-architecture
codex-slides check slides/cloud-review --format pptx --strict
codex-slides doctor

claude-slides exposes the same interface.

Repository architecture

plugin.json                     Agent Plugins portable manifest
skills/                         portable Agent Skills
references/layout-system.md     semantic and geometry-aware layout rules
references/python-svg-plan.md   canonical visual-plan template
templates/catalog.json          visual theme catalog
templates/layouts.json          28 layout archetypes and starter sequence
scripts/generate-slide-art.py   deterministic SVG visual generator
.codex-plugin/                  Codex adapter
.agents/plugins/                Codex marketplace
.agents/skills/                 generated repository-scoped Codex discovery
.claude-plugin/                 Claude Code manifest and marketplace
agents/                         Claude Code subagents
bin/ + lib/                     neutral core and host CLI aliases
templates/                      HTML, Marp, and PptxGenJS bases

Development

Development requires Node.js 18.3 or newer. Python 3.10 or newer is required for the optional agent-authored SVG generator and its test suite.

git clone https://github.com/rufushsu9987/claude-code-slides.git
cd claude-code-slides
npm ci
npm run sync:skills
npm run sync:metadata
npm run check

The test and smoke-test workflow:

  • scaffolds all 7 themes in HTML, Marp, and PPTX
  • validates the portable and native plugin manifests
  • verifies 28 layout archetypes and 20 distinct starter layouts/geometries
  • exercises all 10 SVG kinds in both sketch and clean modes
  • checks deterministic output, portable paths, accessibility metadata, and invalid input handling
  • checks exact skill-resource synchronization, isolated skill execution, and the runnable example deck

Deeper render-pipeline, gallery, and visual-regression work is tracked in issue #4.

Independence

This is an independent community project. It is not maintained, endorsed, or affiliated with Anthropic or OpenAI. The name describes the bundled developer-tool-inspired presentation direction; no official logos or proprietary product UI are included.

License

MIT

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages