slides
Interactive HTML Slide Generator
Instructions
Act as an expert Frontend Developer and Presentation Designer to generate a "Keynote-quality" single-file HTML presentation by assembling pre-defined components.
1. Preparation
First, read the reference files to load the design system and templates. Theme Selection: Determine the visual theme based on the user's request:
- Cyberpunk (Default): Dark, neon, futuristic. Use
skills/slides/themes/cyberpunk.css. - Corporate: Light, professional, clean blue/slate. Use
skills/slides/themes/corporate.css. - Minimal: Stark, black & white, Swiss style. Use
skills/slides/themes/minimal.css. - Nature: Calm, cream/green, elegant serif fonts. Use
skills/slides/themes/nature.css.
Read the selected CSS file, plus:
- Template:
skills/slides/templates/template.html - Scripts:
skills/slides/templates/scripts.js - Layouts:
skills/slides/templates/layouts.md
2. Content Strategy
- Analyze: Transform user input into a logical 8-12 slide outline.
- Visuals: Use Nano Banana Pro to generate high-quality images if needed.
- Constraints:
- Max 5-7 bullet points per slide.
- Max 3-4 cards per slide.
- Use
.scrollablefor code/tables. - Use
.compactfor dense content. - Split content into multiple slides if it exceeds limits.
3. Assembly Process
Construct the single index.html file by injecting content into the template:
- Load Template: Start with the content of
template.html. - Inject CSS: Replace
/* CSS_INJECTION_POINT */with the content of the selected theme CSS file. - Inject JS: Replace
/* JS_INJECTION_POINT */with the content ofscripts.js.- CRITICAL: Inside the injected script, find
[TOTAL_SLIDES_COUNT]and replace it with the actual integer number of slides (e.g.,12).
- CRITICAL: Inside the injected script, find
- Generate Slides: Create HTML for each slide using patterns from
layouts.md.- Note for Minimal Theme: When using grid layouts, ensure you strictly follow the HTML structure as CSS borders rely on precise nesting.
- Inject Slides: Replace
<!-- SLIDES_INJECTION_POINT -->with the generated slide HTML.
4. Output
Save the final assembled file to slides/<ppt-name>/dist/index.html.
Design Philosophy
- Responsive: The system uses a specific "vertical scroll on mobile, single slide on desktop" logic. Do not modify the core media queries in the CSS.
- Overflow Protection: Always wrap potentially overflowing content (code blocks, long lists) in containers with explicit
min-height: 0or.scrollableclass.
Content Guidelines
| Element | Max | Action if Exceeded |
|---|---|---|
| Bullets | 7 | Split slide |
| Cards | 4 | Use Grid Compact |
| Code | 15 lines | Use .scrollable |
Code Block Formatting: Always include explicit empty lines between commands/logical groups in code blocks for readability.
Final Check
- Theme Check: Did you inject the correct CSS file based on user intent?
- Script Check: Is
[TOTAL_SLIDES_COUNT]replaced with a number? - Structure Check: Does the final HTML contain the full CSS and JS inline?
More from yugasun/skills
ai-news-collector
Automatically collect and summarize daily AI industry news, trends, and hot topics from platforms like GitHub (trending repos), X/Twitter (AI influencers/hashtags), and AI news aggregators. Use this skill when the user asks for "today's AI news", "AI industry updates", "what's trending in AI", or wants a daily digest of AI developments.
106s3
Uploads generated static sites or files (like slides) to AWS S3 or S3-compatible services (MinIO, Aliyun OSS, etc.) for public access. Use this skill when the user wants to publish or deploy their content to the cloud.
7dev-web
Create and manage modern React web applications using Bun, Vite, React 19, Tailwind CSS 4, and shadcn/ui. Use this skill when the user asks to build a frontend, a web app, or modify UI components.
6dev-server
Create and manage Python backend services using uv, FastAPI, Pydantic, SQLAlchemy, and AI libraries. Use this skill when the user asks to build a backend, API, or server-side application.
6skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
6tavily
AI-optimized web search using Tavily Search API. Use when you need comprehensive web research, current events lookup, domain-specific search, or AI-generated answer summaries. Tavily is optimized for LLM consumption with clean structured results, answer generation, and raw content extraction. Best for research tasks, news queries, fact-checking, and gathering authoritative sources.
2