From marketing
Create and evolve code-based slide decks and presentations (pitch decks, demos, product walkthroughs, technical talks) with HTML/CSS/JS or React/TypeScript, and generate AI-image slide packs from markdown or JSON content specs. Use when a user asks for slides implemented in code, a single-file HTML presentation, responsive behavior across mobile/tablet/desktop, PowerPoint/PPTX-to-web conversion, remote-control navigation, configurable right-side or bottom navigation, iframe-based deck rendering, visual style exploration, AI-generated full-slide images, Google-Slides-ready slide image exports, or image workflows that combine generated assets, external URLs, local repo images, and code-as-image product mockups. Trigger this skill for new deck creation, redesigns, refactors, framework migrations, image-deck generation, PPT conversions, and slide-quality QA.
How this skill is triggered — by the user, by Claude, or both
Slash command
/marketing:code-slidesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Build production-ready, code-first slide decks with deterministic structure, distinctive visual direction, and fast iteration. When the job is better served by fully AI-generated slide images, generate a consistent image deck from a structured content spec instead of forcing HTML or React.
README.mdagents/openai.yamlexamples/image-deck/sample-slides.jsonexamples/image-deck/sample-slides.mdreferences/README.mdreferences/distribution.mdreferences/image-deck-generator.mdreferences/image-deck-styles.mdreferences/image-strategy.mdreferences/mode-selection.mdreferences/ppt-conversion.mdreferences/remote-control.mdreferences/style-presets.mdreferences/viewport-fit.mdscripts/generate_image_deck.pyscripts/index_image_sources.pyscripts/install_local.shscripts/scaffold_deck.pyscripts/validate_deck.pytemplates/html/README.mdBuild production-ready, code-first slide decks with deterministic structure, distinctive visual direction, and fast iteration. When the job is better served by fully AI-generated slide images, generate a consistent image deck from a structured content spec instead of forcing HTML or React.
Think in magazine-quality slides, not generic app screens repeated 12 times.
references/mode-selection.md before choosing implementation mode.references/style-presets.md whenever the aesthetic is not already defined.references/image-deck-generator.md and references/image-deck-styles.md, then run scripts/generate_image_deck.py.references/viewport-fit.md before writing slides.scripts/scaffold_deck.py, template assets, and templates/ prompts when useful.references/image-strategy.md.references/remote-control.md when the deck needs multi-device control.references/ppt-conversion.md.scripts/validate_deck.py for the selected mode and fix every failed check.Handle each request as one of these modes:
Apply these rules in order:
ai-image mode when the user explicitly wants every slide rendered as an AI-generated image, wants a fast concept deck from a markdown/JSON content spec, or needs Google-Slides-ready slide images rather than authored browser slides.Load details from references/mode-selection.md when selecting the mode.
When the user does not have a clear aesthetic direction:
references/style-presets.md or generate three lightweight preview files that show distinct directions.references/image-deck-styles.md or map a custom visual direction onto one of those prompt baselines.Do not ship a deck with any of these defaults unless the user explicitly asked for them:
Run a simple swap test before handoff: if the deck would look interchangeable with a default SaaS landing page after changing the logo, redesign it.
Consecutive slides should vary their spatial approach.
Rotate between patterns such as:
Three centered slides in a row is a failure unless the user explicitly wants a rigid template.
Always ship navigation that supports local controls. Add the remote controller page whenever the delivery context requires multi-device presenting, speaker controls, or mirrored navigation across screens.
Required controls:
right or bottom.If remote control is included, also ship:
Implement remote transport with the following priority:
Load full protocol and validation requirements from references/remote-control.md.
Support all image pathways in every deck workflow. Choose deliberately instead of defaulting to one source type:
Use scripts/index_image_sources.py to inventory existing image assets.
Use the decision criteria in references/image-strategy.md.
For product-focused visuals, prefer code-as-image over asking an image model to invent a dashboard, UI, or terminal scene.
For local repository images, prefer promoting them to the project's stable asset host or public URL when portability matters instead of leaving them as ad hoc relative file references.
For AI-image decks, normalize content into slide prompts first, then render images with scripts/generate_image_deck.py. The generator accepts markdown sections separated by --- or a JSON slides array.
Design for mobile, tablet, and desktop.
clamp, relative units).references/viewport-fit.md.agents/openai.yaml: UI metadata for skill browsers and default prompts.scaffold_deck.py: Create HTML or React/TS starter deck files.generate_image_deck.py: Normalize slide content specs and optionally render AI-generated slide images.index_image_sources.py: Discover local images and external image URLs.validate_deck.py: Validate required deck capabilities.install_local.sh: Optional helper for copying this skill into a local skill registry after clone.mode-selection.md: Deterministic mode decision tree.image-deck-generator.md: AI-image deck workflow, content spec rules, and output artifacts.image-deck-styles.md: Prompt-oriented style presets for AI-image decks.remote-control.md: Remote protocol, UI rules, and acceptance checks.image-strategy.md: Multi-source image workflow and composition patterns.viewport-fit.md: Required slide sizing, density limits, and responsive validation targets.style-presets.md: Distinct visual directions for pitch decks, talks, and demos.ppt-conversion.md: PowerPoint extraction and reconstruction workflow.distribution.md: npx skills add, git clone, and manual install guidance.templates/html/: Default iframe-based HTML deck template with remote control page.templates/react-ts/: React/TypeScript deck template with library-ready control surface.slides-deck-plan.md: Lightweight planning prompt for outline and story flow.slides-deck-code.md: Lightweight implementation prompt for deck generation.slides-image-deck-content.md: Lightweight markdown template for AI-image slide specs.examples/image-deck/sample-slides.md: Markdown example with --- slide separators.examples/image-deck/sample-slides.json: JSON example for deterministic generation.# Scaffold default HTML deck
python3 scripts/scaffold_deck.py \
--mode html \
--output ./slides \
--title "Quarterly Product Review" \
--nav-position right
# Scaffold React/TS deck (when explicitly requested)
python3 scripts/scaffold_deck.py \
--mode react-ts \
--output ./slides-app \
--title "Quarterly Product Review" \
--nav-position bottom \
--component-lib shadcn
# Generate AI-image slide prompts only
python3 scripts/generate_image_deck.py \
--content ./examples/image-deck/sample-slides.md \
--style whiteboard \
--title "Quarterly Product Review" \
--output-dir ./generated-slides \
--dry-run
# Generate AI-image slides when GEMINI_API_KEY is set
python3 scripts/generate_image_deck.py \
--content ./examples/image-deck/sample-slides.json \
--style corporate \
--title "Quarterly Product Review" \
--output-dir ./generated-slides \
--aspect 16:9
# Discover reusable images in repository
python3 scripts/index_image_sources.py \
--repo-root . \
--output ./slides/image-index.json
# Validate finished deck
python3 scripts/validate_deck.py \
--project-root ./slides \
--mode html
# Validate generated AI-image slide assets
python3 scripts/validate_deck.py \
--project-root ./generated-slides \
--mode ai-image
Mark a deck complete only when all checks pass:
references/mode-selection.md.right and bottom placement.normalized-content.json, prompt-plan.md, and summary.json.html/react-ts, slide image pack for ai-image.scripts/validate_deck.py returns success when applicable.Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub alvarovillalbaa/plugins --plugin marketing