[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EH6FBPZ84XSJ51DWXTRFSZ":3,"skill-same:01M7EH6FBPZ84XSJ51DWXTRFSZ":54},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":13,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7EH6FBPZ84XSJ51DWXTRFSZ","frontend-slides",null,"Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT\u002FPPTX to web, or create slides for a talk\u002Fpitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.","mhyahya854\u002FAI-Second-Brain_Universal-Rules","mhyahya854","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F194078115?v=4","01M7EGSP2M9T858SDHJMXQ257Y","01M7EGSP3N6HN6879SVDPMD4DZ",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002FBunsDev\u002Ffrontend-slides-skills\u002Ffrontend-slides-skills\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002FBunsDev\u002Ffrontend-slides-skills\u002Ffrontend-slides-skills\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: frontend-slides\ndescription: Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT\u002FPPTX to web, or create slides for a talk\u002Fpitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.\n---\n\n# Frontend Slides Skill\n\nCreate zero-dependency, animation-rich HTML presentations that run entirely in the browser. This skill helps non-designers discover their preferred aesthetic through visual exploration (\"show, don't tell\"), then generates production-quality slide decks.\n\n## Core Philosophy\n\n1. **Zero Dependencies** — Single HTML files with inline CSS\u002FJS. No npm, no build tools.\n2. **Show, Don't Tell** — People don't know what they want until they see it. Generate visual previews, not abstract choices.\n3. **Distinctive Design** — Avoid generic \"AI slop\" aesthetics. Every presentation should feel custom-crafted.\n4. **Production Quality** — Code should be well-commented, accessible, and performant.\n5. **Viewport Fitting (CRITICAL)** — Every slide MUST fit exactly within the viewport. No scrolling within slides, ever. This is non-negotiable.\n\n---\n\n## CRITICAL: Viewport Fitting Requirements\n\n**This section is mandatory for ALL presentations. Every slide must be fully visible without scrolling on any screen size.**\n\n### The Golden Rule\n\n```\nEach slide = exactly one viewport height (100vh\u002F100dvh)\nContent overflows? → Split into multiple slides or reduce content\nNever scroll within a slide.\n```\n\n### Content Density Limits\n\nTo guarantee viewport fitting, enforce these limits per slide:\n\n| Slide Type | Maximum Content |\n|------------|-----------------|\n| Title slide | 1 heading + 1 subtitle + optional tagline |\n| Content slide | 1 heading + 4-6 bullet points OR 1 heading + 2 paragraphs |\n| Feature grid | 1 heading + 6 cards maximum (2x3 or 3x2 grid) |\n| Code slide | 1 heading + 8-10 lines of code maximum |\n| Quote slide | 1 quote (max 3 lines) + attribution |\n| Image slide | 1 heading + 1 image (max 60vh height) |\n\n**If content exceeds these limits → Split into multiple slides**\n\n### Required CSS Architecture\n\nEvery presentation MUST include this base CSS for viewport fitting:\n\n```css\n\u002F* ===========================================\n   VIEWPORT FITTING: MANDATORY BASE STYLES\n   These styles MUST be included in every presentation.\n   They ensure slides fit exactly in the viewport.\n   =========================================== *\u002F\n\n\u002F* 1. Lock html\u002Fbody to viewport *\u002F\nhtml, body {\n    height: 100%;\n    overflow-x: hidden;\n}\n\nhtml {\n    scroll-snap-type: y mandatory;\n    scroll-behavior: smooth;\n}\n\n\u002F* 2. Each slide = exact viewport height *\u002F\n.slide {\n    width: 100vw;\n    height: 100vh;\n    height: 100dvh; \u002F* Dynamic viewport height for mobile browsers *\u002F\n    overflow: hidden; \u002F* CRITICAL: Prevent ANY overflow *\u002F\n    scroll-snap-align: start;\n    display: flex;\n    flex-direction: column;\n    position: relative;\n}\n\n\u002F* 3. Content container with flex for centering *\u002F\n.slide-content {\n    flex: 1;\n    display: flex;\n    flex-direction: column;\n    justify-content: center;\n    max-height: 100%;\n    overflow: hidden; \u002F* Double-protection against overflow *\u002F\n    padding: var(--slide-padding);\n}\n\n\u002F* 4. ALL typography uses clamp() for responsive scaling *\u002F\n:root {\n    \u002F* Titles scale from mobile to desktop *\u002F\n    --title-size: clamp(1.5rem, 5vw, 4rem);\n    --h2-size: clamp(1.25rem, 3.5vw, 2.5rem);\n    --h3-size: clamp(1rem, 2.5vw, 1.75rem);\n\n    \u002F* Body text *\u002F\n    --body-size: clamp(0.75rem, 1.5vw, 1.125rem);\n    --small-size: clamp(0.65rem, 1vw, 0.875rem);\n\n    \u002F* Spacing scales with viewport *\u002F\n    --slide-padding: clamp(1rem, 4vw, 4rem);\n    --content-gap: clamp(0.5rem, 2vw, 2rem);\n    --element-gap: clamp(0.25rem, 1vw, 1rem);\n}\n\n\u002F* 5. Cards\u002Fcontainers use viewport-relative max sizes *\u002F\n.card, .container, .content-box {\n    max-width: min(90vw, 1000px);\n    max-height: min(80vh, 700px);\n}\n\n\u002F* 6. Lists auto-scale with viewport *\u002F\n.feature-list, .bullet-list {\n    gap: clamp(0.4rem, 1vh, 1rem);\n}\n\n.feature-list li, .bullet-list li {\n    font-size: var(--body-size);\n    line-height: 1.4;\n}\n\n\u002F* 7. Grids adapt to available space *\u002F\n.grid {\n    display: grid;\n    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));\n    gap: clamp(0.5rem, 1.5vw, 1rem);\n}\n\n\u002F* 8. Images constrained to viewport *\u002F\nimg, .image-container {\n    max-width: 100%;\n    max-height: min(50vh, 400px);\n    object-fit: contain;\n}\n\n\u002F* ===========================================\n   RESPONSIVE BREAKPOINTS\n   Aggressive scaling for smaller viewports\n   =========================================== *\u002F\n\n\u002F* Short viewports (\u003C 700px height) *\u002F\n@media (max-height: 700px) {\n    :root {\n        --slide-padding: clamp(0.75rem, 3vw, 2rem);\n        --content-gap: clamp(0.4rem, 1.5vw, 1rem);\n        --title-size: clamp(1.25rem, 4.5vw, 2.5rem);\n        --h2-size: clamp(1rem, 3vw, 1.75rem);\n    }\n}\n\n\u002F* Very short viewports (\u003C 600px height) *\u002F\n@media (max-height: 600px) {\n    :root {\n        --slide-padding: clamp(0.5rem, 2.5vw, 1.5rem);\n        --content-gap: clamp(0.3rem, 1vw, 0.75rem);\n        --title-size: clamp(1.1rem, 4vw, 2rem);\n        --body-size: clamp(0.7rem, 1.2vw, 0.95rem);\n    }\n\n    \u002F* Hide non-essential elements *\u002F\n    .nav-dots, .keyboard-hint, .decorative {\n        display: none;\n    }\n}\n\n\u002F* Extremely short (landscape phones, \u003C 500px height) *\u002F\n@media (max-height: 500px) {\n    :root {\n        --slide-padding: clamp(0.4rem, 2vw, 1rem);\n        --title-size: clamp(1rem, 3.5vw, 1.5rem);\n        --h2-size: clamp(0.9rem, 2.5vw, 1.25rem);\n        --body-size: clamp(0.65rem, 1vw, 0.85rem);\n    }\n}\n\n\u002F* Narrow viewports (\u003C 600px width) *\u002F\n@media (max-width: 600px) {\n    :root {\n        --title-size: clamp(1.25rem, 7vw, 2.5rem);\n    }\n\n    \u002F* Stack grids vertically *\u002F\n    .grid {\n        grid-template-columns: 1fr;\n    }\n}\n\n\u002F* ===========================================\n   REDUCED MOTION\n   Respect user preferences\n   =========================================== *\u002F\n@media (prefers-reduced-motion: reduce) {\n    *, *::before, *::after {\n        animation-duration: 0.01ms !important;\n        transition-duration: 0.2s !important;\n    }\n\n    html {\n        scroll-behavior: auto;\n    }\n}\n```\n\n### Overflow Prevention Checklist\n\nBefore generating any presentation, mentally verify:\n\n1. ✅ Every `.slide` has `height: 100vh; height: 100dvh; overflow: hidden;`\n2. ✅ All font sizes use `clamp(min, preferred, max)`\n3. ✅ All spacing uses `clamp()` or viewport units\n4. ✅ Content containers have `max-height` constraints\n5. ✅ Images have `max-height: min(50vh, 400px)` or similar\n6. ✅ Grids use `auto-fit` with `minmax()` for responsive columns\n7. ✅ Breakpoints exist for heights: 700px, 600px, 500px\n8. ✅ No fixed pixel heights on content elements\n9. ✅ Content per slide respects density limits\n\n### When Content Doesn't Fit\n\nIf you find yourself with too much content:\n\n**DO:**\n- Split into multiple slides\n- Reduce bullet points (max 5-6 per slide)\n- Shorten text (aim for 1-2 lines per bullet)\n- Use smaller code snippets\n- Create a \"continued\" slide\n- **When adding images to existing slides:** Move image to new slide or reduce other content first\n\n**DON'T:**\n- Reduce font size below readable limits\n- Remove padding\u002Fspacing entirely\n- Allow any scrolling\n- Cram content to fit\n- Add images without checking if existing content already fills the viewport\n\n### Testing Viewport Fit\n\nAfter generating, recommend the user test at these sizes:\n- Desktop: 1920×1080, 1440×900, 1280×720\n- Tablet: 1024×768, 768×1024 (portrait)\n- Mobile: 375×667, 414×896\n- Landscape phone: 667×375, 896×414\n\n---\n\n## Phase 0: Detect Mode\n\nFirst, determine what the user wants:\n\n**Mode A: New Presentation**\n- User wants to create slides from scratch\n- Proceed to Phase 1 (Content Discovery)\n\n**Mode B: PPT Conversion**\n- User has a PowerPoint file (.ppt, .pptx) to convert\n- Proceed to Phase 4 (PPT Extraction)\n\n**Mode C: Existing Presentation Enhancement**\n- User has an HTML presentation and wants to improve it\n- Read the existing file, understand the structure, then enhance\n- **CRITICAL: When modifying existing slides, ALWAYS ensure viewport fitting is maintained**\n\n### Mode C: Critical Modification Rules\n\nWhen enhancing existing presentations, follow these mandatory rules:\n\n**1. Before Adding Any Content:**\n- Read the current slide structure and count existing elements\n- Check against content density limits (see table above)\n- Calculate if the new content will fit within viewport constraints\n\n**2. When Adding Images (MOST COMMON ISSUE):**\n- Images must have `max-height: min(50vh, 400px)` or similar viewport constraint\n- Check if current slide already has maximum content (1 heading + 1 image)\n- If adding an image to a slide with existing content → **Split into two slides**\n- Example: If slide has heading + 4 bullets, and user wants to add an image:\n  - **DON'T:** Cram image onto same slide\n  - **DO:** Create new slide with heading + image, keep bullets on original slide\n  - **OR:** Reduce bullets to 2-3 and add image with proper constraints\n\n**3. When Adding Text Content:**\n- Max 4-6 bullet points per slide\n- Max 2 paragraphs per slide\n- If adding content exceeds limits → **Split into multiple slides or create a continuation slide**\n\n**4. Required Checks After ANY Modification:**\n```\n✅ Does the slide have `overflow: hidden` on `.slide` class?\n✅ Are all new elements using `clamp()` for font sizes?\n✅ Do new images have viewport-relative max-height?\n✅ Does total content respect density limits?\n✅ Will this fit on a 1280×720 screen? On mobile portrait?\n```\n\n**5. Proactive Reorganization (NOT Optional):**\nWhen you detect that modifications will cause overflow:\n- **Automatically split content across slides** — Don't wait for user to ask\n- Inform user: \"I've reorganized the content across 2 slides to ensure proper viewport fitting\"\n- Use \"continued\" pattern for split content (e.g., \"Key Features\" → \"Key Features (Continued)\")\n\n**6. Testing After Modifications:**\nMentally verify the modified slide at these viewport sizes:\n- Desktop: 1280×720 (smallest common)\n- Tablet portrait: 768×1024\n- Mobile: 375×667\n\n**If in doubt → Split the content. Never allow scrolling within a slide.**\n\n---\n\n## Phase 1: Content Discovery (New Presentations)\n\nBefore designing, understand the content. Ask via AskUserQuestion:\n\n### Step 1.1: Presentation Context + Images (Single Form)\n\n**IMPORTANT:** Ask ALL 4 questions in a single AskUserQuestion call so the user can fill everything out at once before submitting.\n\n**Question 1: Purpose**\n- Header: \"Purpose\"\n- Question: \"What is this presentation for?\"\n- Options:\n  - \"Pitch deck\" — Selling an idea, product, or company to investors\u002Fclients\n  - \"Teaching\u002FTutorial\" — Explaining concepts, how-to guides, educational content\n  - \"Conference talk\" — Speaking at an event, tech talk, keynote\n  - \"Internal presentation\" — Team updates, strategy meetings, company updates\n\n**Question 2: Slide Count**\n- Header: \"Length\"\n- Question: \"Approximately how many slides?\"\n- Options:\n  - \"Short (5-10)\" — Quick pitch, lightning talk\n  - \"Medium (10-20)\" — Standard presentation\n  - \"Long (20+)\" — Deep dive, comprehensive talk\n\n**Question 3: Content**\n- Header: \"Content\"\n- Question: \"Do you have the content ready, or do you need help structuring it?\"\n- Options:\n  - \"I have all content ready\" — Just need to design the presentation\n  - \"I have rough notes\" — Need help organizing into slides\n  - \"I have a topic only\" — Need help creating the full outline\n\n**Question 4: Images**\n- Header: \"Images\"\n- Question: \"Do you have images to include? Select 'No images' or select Other and type\u002Fpaste your image folder path.\"\n- Options:\n  - \"No images\" — Text-only presentation (use CSS-generated visuals instead)\n  - \".\u002Fassets\" — Use the `assets\u002F` folder in the current project\n\nThe user can select **\"Other\"** to type or paste any custom folder path (e.g. `~\u002FDesktop\u002Fscreenshots`). This way the image folder path is collected in the same form — no extra round-trip.\n\n**Question 5: Inline Editing**\n- Header: \"Editing\"\n- Question: \"Do you need to edit text directly in the browser after generation?\"\n- Options:\n  - \"Yes (Recommended)\" — Can edit text in-browser, auto-save to localStorage, export file\n  - \"No\" — Presentation only, keeps file smaller\n\n**Remember the user's choice — it determines whether edit-related HTML\u002FCSS\u002FJS is included in Phase 3.**\n\nIf user has content, ask them to share it (text, bullet points, images, etc.).\n\n### Step 1.2: Image Evaluation\n\n**User-provided assets are important visual anchors** — but not every asset is necessarily usable. The first step is always to evaluate. After evaluation, the curated assets become additional context that shapes how the presentation is built. This is a **co-design process**: text content + curated visuals together inform the slide structure from the start, not a post-hoc \"fit images in after the fact.\"\n\n**If user selected \"No images\"** → Skip the entire image pipeline. Proceed directly to Phase 2 (Style Discovery) and Phase 3 (Generate Presentation) using text content only. The presentation will use CSS-generated visuals (gradients, shapes, patterns, typography) for visual interest — this is the original behavior and produces fully polished results without any images.\n\n**If user provides an image folder:**\n\n1. **Scan the folder** — Use `ls` to list all image files (`.png`, `.jpg`, `.jpeg`, `.gif`, `.svg`, `.webp`)\n2. **View each image** — Use the Read tool to see what each image contains (Claude is multimodal)\n3. **Evaluate each image** — For each image, assess:\n   - Filename and dimensions\n   - What it shows (screenshot, logo, chart, diagram, photo)\n   - **Usability:** Is the image clear, relevant to the presentation topic, and high enough quality? Mark as `USABLE` or `NOT USABLE` (with reason: blurry, irrelevant, broken, etc.)\n   - **Content signal:** What feature or concept does this image represent? (e.g., \"chat_ui.png\" → \"conversational interface feature\")\n   - Shape: square, landscape, portrait, circular\n   - Dominant colors (important for style compatibility later)\n4. **Present the evaluation and proposed slide outline to the user** — Show which images are usable and which are not, with reasons. Then show the proposed slide outline with image assignments.\n\n**Co-design: curated assets inform the outline**\n\nAfter evaluation, the **usable** images become context for planning the slide structure alongside text content. This is not \"plan slides then add images\" — it's designing the presentation around both text and visuals from the start:\n\n- 3 usable product screenshots → plan 3 feature slides, each anchored by one screenshot\n- 1 usable logo → title slide and\u002For closing slide\n- 1 usable architecture diagram → dedicated \"How It Works\" slide\n- 1 blurry\u002Firrelevant image → excluded, with explanation to user\n\nThis means curated images are factored in **before** style selection (Phase 2) and **before** HTML generation (Phase 3). They are co-equal context in the design process.\n\n5. **Confirm outline via AskUserQuestion** — Do NOT break the flow by asking the user to type free text. Use AskUserQuestion to confirm:\n\n**Question: Outline Confirmation**\n- Header: \"Outline\"\n- Question: \"Does this slide outline and image selection look right?\"\n- Options:\n  - \"Looks good, proceed\" — Move on to style selection\n  - \"Adjust images\" — I want to change which images go where\n  - \"Adjust outline\" — I want to change the slide structure\n\nThis keeps the entire flow in the AskUserQuestion format without dropping to free-text chat.\n\n---\n\n## Phase 2: Style Discovery (Visual Exploration)\n\n**CRITICAL: This is the \"show, don't tell\" phase.**\n\nMost people can't articulate design preferences in words. Instead of asking \"do you want minimalist or bold?\", we generate mini-previews and let them react.\n\n### How Users Choose Presets\n\nUsers can select a style in **two ways**:\n\n**Option A: Guided Discovery (Default)**\n- User answers mood questions\n- Skill generates 3 preview files based on their answers\n- User views previews in browser and picks their favorite\n- This is best for users who don't have a specific style in mind\n\n**Option B: Direct Selection**\n- If user already knows what they want, they can request a preset by name\n- Example: \"Use the Bold Signal style\" or \"I want something like Dark Botanical\"\n- Skip to Phase 3 immediately\n\n**Available Presets:**\n| Preset | Vibe | Best For |\n|--------|------|----------|\n| Bold Signal | Confident, high-impact | Pitch decks, keynotes |\n| Electric Studio | Clean, professional | Agency presentations |\n| Creative Voltage | Energetic, retro-modern | Creative pitches |\n| Dark Botanical | Elegant, sophisticated | Premium brands |\n| Notebook Tabs | Editorial, organized | Reports, reviews |\n| Pastel Geometry | Friendly, approachable | Product overviews |\n| Split Pastel | Playful, modern | Creative agencies |\n| Vintage Editorial | Witty, personality-driven | Personal brands |\n| Neon Cyber | Futuristic, techy | Tech startups |\n| Terminal Green | Developer-focused | Dev tools, APIs |\n| Swiss Modern | Minimal, precise | Corporate, data |\n| Paper & Ink | Literary, thoughtful | Storytelling |\n\n### Step 2.0: Style Path Selection\n\nFirst, ask how the user wants to choose their style:\n\n**Question: Style Selection Method**\n- Header: \"Style\"\n- Question: \"How would you like to choose your presentation style?\"\n- Options:\n  - \"Show me options\" — Generate 3 previews based on my needs (recommended for most users)\n  - \"I know what I want\" — Let me pick from the preset list directly\n\n**If \"Show me options\"** → Continue to Step 2.1 (Mood Selection)\n\n**If \"I know what I want\"** → Show preset picker:\n\n**Question: Pick a Preset**\n- Header: \"Preset\"\n- Question: \"Which style would you like to use?\"\n- Options:\n  - \"Bold Signal\" — Vibrant card on dark, confident and high-impact\n  - \"Dark Botanical\" — Elegant dark with soft abstract shapes\n  - \"Notebook Tabs\" — Editorial paper look with colorful section tabs\n  - \"Pastel Geometry\" — Friendly pastels with decorative pills\n\n(If user picks one, skip to Phase 3. If they want to see more options, show additional presets or proceed to guided discovery.)\n\n### Step 2.1: Mood Selection (Guided Discovery)\n\n**Question 1: Feeling**\n- Header: \"Vibe\"\n- Question: \"What feeling should the audience have when viewing your slides?\"\n- Options:\n  - \"Impressed\u002FConfident\" — Professional, trustworthy, this team knows what they're doing\n  - \"Excited\u002FEnergized\" — Innovative, bold, this is the future\n  - \"Calm\u002FFocused\" — Clear, thoughtful, easy to follow\n  - \"Inspired\u002FMoved\" — Emotional, storytelling, memorable\n- multiSelect: true (can choose up to 2)\n\n### Step 2.2: Generate Style Previews\n\nBased on their mood selection, generate **3 distinct style previews** as mini HTML files in a temporary directory. Each preview should be a single title slide showing:\n\n- Typography (font choices, heading\u002Fbody hierarchy)\n- Color palette (background, accent, text colors)\n- Animation style (how elements enter)\n- Overall aesthetic feel\n\n**Preview Styles to Consider (pick 3 based on mood):**\n\n| Mood | Style Options |\n|------|---------------|\n| Impressed\u002FConfident | \"Bold Signal\", \"Electric Studio\", \"Dark Botanical\" |\n| Excited\u002FEnergized | \"Creative Voltage\", \"Neon Cyber\", \"Split Pastel\" |\n| Calm\u002FFocused | \"Notebook Tabs\", \"Paper & Ink\", \"Swiss Modern\" |\n| Inspired\u002FMoved | \"Dark Botanical\", \"Vintage Editorial\", \"Pastel Geometry\" |\n\n**IMPORTANT: Never use these generic patterns:**\n- Purple gradients on white backgrounds\n- Inter, Roboto, or system fonts\n- Standard blue primary colors\n- Predictable hero layouts\n\n**Instead, use distinctive choices:**\n- Unique font pairings (Clash Display, Satoshi, Cormorant Garamond, DM Sans, etc.)\n- Cohesive color themes with personality\n- Atmospheric backgrounds (gradients, subtle patterns, depth)\n- Signature animation moments\n\n### Step 2.3: Present Previews\n\nCreate the previews in: `.claude-design\u002Fslide-previews\u002F`\n\n```\n.claude-design\u002Fslide-previews\u002F\n├── style-a.html   # First style option\n├── style-b.html   # Second style option\n├── style-c.html   # Third style option\n└── assets\u002F        # Any shared assets\n```\n\nEach preview file should be:\n- Self-contained (inline CSS\u002FJS)\n- A single \"title slide\" showing the aesthetic\n- Animated to demonstrate motion style\n- ~50-100 lines, not a full presentation\n\n**Logo in previews (if available):** If the user provided images in Step 1.2 and a logo was identified as `USABLE`, embed it (base64) into each of the 3 style previews. This creates a \"wow moment\" — the user sees their own brand identity styled three different ways, making the choice feel personal rather than abstract. Apply any necessary processing (e.g., circular crop) per-style so each preview shows the logo as it would actually appear in the final presentation. If no logo was provided, generate previews without one — this is fine.\n\nPresent to user:\n```\nI've created 3 style previews for you to compare:\n\n**Style A: [Name]** — [1 sentence description]\n**Style B: [Name]** — [1 sentence description]\n**Style C: [Name]** — [1 sentence description]\n\nOpen each file to see them in action:\n- .claude-design\u002Fslide-previews\u002Fstyle-a.html\n- .claude-design\u002Fslide-previews\u002Fstyle-b.html\n- .claude-design\u002Fslide-previews\u002Fstyle-c.html\n\nTake a look and tell me:\n1. Which style resonates most?\n2. What do you like about it?\n3. Anything you'd change?\n```\n\nThen use AskUserQuestion:\n\n**Question: Pick Your Style**\n- Header: \"Style\"\n- Question: \"Which style preview do you prefer?\"\n- Options:\n  - \"Style A: [Name]\" — [Brief description]\n  - \"Style B: [Name]\" — [Brief description]\n  - \"Style C: [Name]\" — [Brief description]\n  - \"Mix elements\" — Combine aspects from different styles\n\nIf \"Mix elements\", ask for specifics.\n\n---\n\n## Phase 3: Generate Presentation\n\nNow generate the full presentation based on:\n- Content from Phase 1 (text only, or text + curated images)\n- Style from Phase 2\n\nIf the user provided images, the slide outline already incorporates them as visual anchors from Step 1.2. If not, proceed with text-only content — CSS-generated visuals (gradients, shapes, patterns) provide visual interest.\n\n### Image Pipeline (skip if no images)\n\nIf the user chose \"No images\" in Step 1.2, **skip this entire section** and go straight to generating HTML. The presentation will be text-only with CSS-generated visuals — this is a fully supported, first-class path.\n\nIf the user provided images, execute these steps **before** generating HTML.\n\n**Key principle: Co-design, not post-hoc.** The curated images from Step 1.2 (those marked `USABLE`) are already part of the slide outline. The pipeline's job here is to process images for the chosen style and place them in the HTML.\n\n#### Step 3.1: Image Processing (Pillow)\n\nFor each curated image, determine what processing it needs based on the chosen style (e.g., circular crop for logos, resize for large files) and what CSS framing will bridge any color gaps between the image and the style's palette. Then process accordingly.\n\n**Rules:**\n- **Never repeat** the same image on multiple slides (except logos which may bookend title + closing)\n- **Always add CSS framing** (border, glow, shadow) for images whose colors clash with the style's palette\n\n**Dependency:** Python `Pillow` library (the standard image processing library for Python).\n\n```bash\n# Install if not available (portable across macOS\u002FLinux\u002FWindows)\npip install Pillow\n```\n\nThis is analogous to how `python-pptx` is used in Phase 4 (PPT Conversion) — a standard, well-maintained Python package that any user can install.\n\n**Common processing operations:**\n\n```python\nfrom PIL import Image, ImageDraw\n\n# ─── Circular Crop (for logos on modern\u002Fclean styles) ───\ndef crop_circle(input_path, output_path):\n    \"\"\"Crop a square image to a circle with transparent background.\"\"\"\n    img = Image.open(input_path).convert('RGBA')\n    w, h = img.size\n    # Make square if not already\n    size = min(w, h)\n    left = (w - size) \u002F\u002F 2\n    top = (h - size) \u002F\u002F 2\n    img = img.crop((left, top, left + size, top + size))\n    # Create circular mask\n    mask = Image.new('L', (size, size), 0)\n    draw = ImageDraw.Draw(mask)\n    draw.ellipse([0, 0, size, size], fill=255)\n    img.putalpha(mask)\n    img.save(output_path, 'PNG')\n\n# ─── Resize (for oversized images that inflate the HTML) ───\ndef resize_max(input_path, output_path, max_dim=1200):\n    \"\"\"Resize image so largest dimension \u003C= max_dim. Preserves aspect ratio.\"\"\"\n    img = Image.open(input_path)\n    img.thumbnail((max_dim, max_dim), Image.LANCZOS)\n    img.save(output_path, quality=85)\n\n# ─── Add Padding \u002F Background (for images that need breathing room) ───\ndef add_padding(input_path, output_path, padding=40, bg_color=(0, 0, 0, 0)):\n    \"\"\"Add transparent padding around an image.\"\"\"\n    img = Image.open(input_path).convert('RGBA')\n    w, h = img.size\n    new = Image.new('RGBA', (w + 2*padding, h + 2*padding), bg_color)\n    new.paste(img, (padding, padding), img)\n    new.save(output_path, 'PNG')\n```\n\n**When to apply each operation:**\n\n| Situation | Operation |\n|-----------|-----------|\n| Square logo on a style with rounded aesthetics | `crop_circle()` |\n| Image > 1MB (slow to load) | `resize_max(max_dim=1200)` |\n| Screenshot needs breathing room in layout | `add_padding()` |\n| Image has wrong aspect ratio for its slide slot | Manual crop with `img.crop((left, top, right, bottom))` |\n\n**Save processed images** alongside originals with a `_processed` suffix (e.g., `logo_round.png`). Never overwrite the user's original files.\n\n#### Step 3.2: Place Images\n\n**Use direct file paths** — do NOT convert images to base64 data URIs. Since presentations are viewed locally, reference images with relative paths from the HTML file:\n\n```html\n\u003Cimg src=\"assets\u002Flogo_round.png\" alt=\"Logo\" class=\"slide-image logo\">\n\u003Cimg src=\"assets\u002Fscreenshot.png\" alt=\"Screenshot\" class=\"slide-image screenshot\">\n```\n\nThis keeps the HTML file small and images easy to swap. Only use base64 encoding if the user explicitly requests a fully self-contained single-file presentation.\n\n**Image CSS classes (adapt border\u002Fglow colors to match the chosen style):**\n```css\n\u002F* Base image constraint — CRITICAL for viewport fitting *\u002F\n.slide-image {\n    max-width: 100%;\n    max-height: min(50vh, 400px);\n    object-fit: contain;\n    border-radius: 8px;\n}\n\n\u002F* Screenshots: add framing to bridge color gaps with the style *\u002F\n.slide-image.screenshot {\n    border: 1px solid rgba(255, 255, 255, 0.1);\n    border-radius: 12px;\n    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);\n}\n\n\u002F* Logos: smaller, no frame *\u002F\n.slide-image.logo {\n    max-height: min(30vh, 200px);\n}\n```\n\n**IMPORTANT:** Adapt the `.screenshot` border and shadow colors to match the chosen style's accent color. For example:\n- Dark Botanical (gold accent): `border: 1px solid rgba(197, 160, 89, 0.2); box-shadow: 0 0 20px rgba(197, 160, 89, 0.08);`\n- Creative Voltage (neon yellow): `border: 2px solid rgba(212, 255, 0, 0.25); box-shadow: 0 0 20px rgba(212, 255, 0, 0.08);`\n\n**Placement patterns:**\n- **Title slide:** Logo centered above or beside the title\n- **Feature slides:** Screenshot on one side, text on the other (two-column layout)\n- **Full-bleed:** Image as slide background with text overlay (use with caution)\n- **Inline:** Image within content flow, centered, with caption below\n\n**Note:** Processed images (e.g. `logo_round.png`) are saved alongside originals in the assets folder. Reference them with relative paths in the HTML.\n\n### File Structure\n\nFor single presentations:\n```\npresentation.html    # Self-contained presentation\nassets\u002F              # Images, if any\n```\n\nFor projects with multiple presentations:\n```\n[presentation-name].html\n[presentation-name]-assets\u002F\n```\n\n### HTML Architecture\n\nFollow this structure for all presentations:\n\n```html\n\u003C!DOCTYPE html>\n\u003Chtml lang=\"en\">\n\u003Chead>\n    \u003Cmeta charset=\"UTF-8\">\n    \u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    \u003Ctitle>Presentation Title\u003C\u002Ftitle>\n\n    \u003C!-- Fonts (use Fontshare or Google Fonts) -->\n    \u003Clink rel=\"stylesheet\" href=\"https:\u002F\u002Fapi.fontshare.com\u002Fv2\u002Fcss?f[]=...\">\n\n    \u003Cstyle>\n        \u002F* ===========================================\n           CSS CUSTOM PROPERTIES (THEME)\n           Easy to modify: change these to change the whole look\n           =========================================== *\u002F\n        :root {\n            \u002F* Colors *\u002F\n            --bg-primary: #0a0f1c;\n            --bg-secondary: #111827;\n            --text-primary: #ffffff;\n            --text-secondary: #9ca3af;\n            --accent: #00ffcc;\n            --accent-glow: rgba(0, 255, 204, 0.3);\n\n            \u002F* Typography - MUST use clamp() for responsive scaling *\u002F\n            --font-display: 'Clash Display', sans-serif;\n            --font-body: 'Satoshi', sans-serif;\n            --title-size: clamp(2rem, 6vw, 5rem);\n            --subtitle-size: clamp(0.875rem, 2vw, 1.25rem);\n            --body-size: clamp(0.75rem, 1.2vw, 1rem);\n\n            \u002F* Spacing - MUST use clamp() for responsive scaling *\u002F\n            --slide-padding: clamp(1.5rem, 4vw, 4rem);\n            --content-gap: clamp(1rem, 2vw, 2rem);\n\n            \u002F* Animation *\u002F\n            --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);\n            --duration-normal: 0.6s;\n        }\n\n        \u002F* ===========================================\n           BASE STYLES\n           =========================================== *\u002F\n        * {\n            margin: 0;\n            padding: 0;\n            box-sizing: border-box;\n        }\n\n        html {\n            scroll-behavior: smooth;\n            scroll-snap-type: y mandatory;\n            height: 100%;\n        }\n\n        body {\n            font-family: var(--font-body);\n            background: var(--bg-primary);\n            color: var(--text-primary);\n            overflow-x: hidden;\n            height: 100%;\n        }\n\n        \u002F* ===========================================\n           SLIDE CONTAINER\n           CRITICAL: Each slide MUST fit exactly in viewport\n           - Use height: 100vh (NOT min-height)\n           - Use overflow: hidden to prevent scroll\n           - Content must scale with clamp() values\n           =========================================== *\u002F\n        .slide {\n            width: 100vw;\n            height: 100vh; \u002F* EXACT viewport height - no scrolling *\u002F\n            height: 100dvh; \u002F* Dynamic viewport height for mobile *\u002F\n            padding: var(--slide-padding);\n            scroll-snap-align: start;\n            display: flex;\n            flex-direction: column;\n            justify-content: center;\n            position: relative;\n            overflow: hidden; \u002F* Prevent any content overflow *\u002F\n        }\n\n        \u002F* Content wrapper that prevents overflow *\u002F\n        .slide-content {\n            flex: 1;\n            display: flex;\n            flex-direction: column;\n            justify-content: center;\n            max-height: 100%;\n            overflow: hidden;\n        }\n\n        \u002F* ===========================================\n           RESPONSIVE BREAKPOINTS\n           Adjust content for different screen sizes\n           =========================================== *\u002F\n        @media (max-height: 600px) {\n            :root {\n                --slide-padding: clamp(1rem, 3vw, 2rem);\n                --content-gap: clamp(0.5rem, 1.5vw, 1rem);\n            }\n        }\n\n        @media (max-width: 768px) {\n            :root {\n                --title-size: clamp(1.5rem, 8vw, 3rem);\n            }\n        }\n\n        @media (max-height: 500px) and (orientation: landscape) {\n            \u002F* Extra compact for landscape phones *\u002F\n            :root {\n                --title-size: clamp(1.25rem, 5vw, 2rem);\n                --slide-padding: clamp(0.75rem, 2vw, 1.5rem);\n            }\n        }\n\n        \u002F* ===========================================\n           ANIMATIONS\n           Trigger via .visible class (added by JS on scroll)\n           =========================================== *\u002F\n        .reveal {\n            opacity: 0;\n            transform: translateY(30px);\n            transition: opacity var(--duration-normal) var(--ease-out-expo),\n                        transform var(--duration-normal) var(--ease-out-expo);\n        }\n\n        .slide.visible .reveal {\n            opacity: 1;\n            transform: translateY(0);\n        }\n\n        \u002F* Stagger children *\u002F\n        .reveal:nth-child(1) { transition-delay: 0.1s; }\n        .reveal:nth-child(2) { transition-delay: 0.2s; }\n        .reveal:nth-child(3) { transition-delay: 0.3s; }\n        .reveal:nth-child(4) { transition-delay: 0.4s; }\n\n        \u002F* ... more styles ... *\u002F\n    \u003C\u002Fstyle>\n\u003C\u002Fhead>\n\u003Cbody>\n    \u003C!-- Progress bar (optional) -->\n    \u003Cdiv class=\"progress-bar\">\u003C\u002Fdiv>\n\n    \u003C!-- Navigation dots (optional) -->\n    \u003Cnav class=\"nav-dots\">\n        \u003C!-- Generated by JS -->\n    \u003C\u002Fnav>\n\n    \u003C!-- Slides -->\n    \u003Csection class=\"slide title-slide\">\n        \u003Ch1 class=\"reveal\">Presentation Title\u003C\u002Fh1>\n        \u003Cp class=\"reveal\">Subtitle or author\u003C\u002Fp>\n    \u003C\u002Fsection>\n\n    \u003Csection class=\"slide\">\n        \u003Ch2 class=\"reveal\">Slide Title\u003C\u002Fh2>\n        \u003Cp class=\"reveal\">Content...\u003C\u002Fp>\n    \u003C\u002Fsection>\n\n    \u003C!-- More slides... -->\n\n    \u003Cscript>\n        \u002F* ===========================================\n           SLIDE PRESENTATION CONTROLLER\n           Handles navigation, animations, and interactions\n           =========================================== *\u002F\n\n        class SlidePresentation {\n            constructor() {\n                \u002F\u002F ... initialization\n            }\n\n            \u002F\u002F ... methods\n        }\n\n        \u002F\u002F Initialize\n        new SlidePresentation();\n    \u003C\u002Fscript>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n### Required JavaScript Features\n\nEvery presentation should include:\n\n1. **SlidePresentation Class** — Main controller\n   - Keyboard navigation (arrows, space)\n   - Touch\u002Fswipe support\n   - Mouse wheel navigation\n   - Progress bar updates\n   - Navigation dots\n\n2. **Intersection Observer** — For scroll-triggered animations\n   - Add `.visible` class when slides enter viewport\n   - Trigger CSS animations efficiently\n\n3. **Optional Enhancements** (based on style):\n   - Custom cursor with trail\n   - Particle system background (canvas)\n   - Parallax effects\n   - 3D tilt on hover\n   - Magnetic buttons\n   - Counter animations\n   - **Inline editing** (only if user opted in during content discovery):\n     - Edit toggle button (hidden by default, revealed via hover hotzone or `E` key)\n     - Auto-save to localStorage\n     - Export\u002Fsave file functionality\n     - See \"Edit Button Implementation\" section below for required code patterns\n\n### Edit Button Implementation (When User Opts In)\n\n**If the user chose \"No\" for inline editing in Phase 1, skip this entirely — do not generate any edit-related HTML, CSS, or JS.**\n\n**⚠️ Critical: Do NOT use CSS `~` sibling selector for hover-based show\u002Fhide.**\n\nThe CSS-only approach (`edit-hotzone:hover ~ .edit-toggle`) fails because `pointer-events: none` on the toggle button causes the hover chain to break: user hovers hotzone → button becomes visible → mouse moves toward button → leaves hotzone → button disappears before click reaches it.\n\n**Required approach: JS-based hover with delay timeout.**\n\nHTML structure:\n```html\n\u003Cdiv class=\"edit-hotzone\">\u003C\u002Fdiv>\n\u003Cbutton class=\"edit-toggle\" id=\"editToggle\" title=\"编辑模式 (E)\">✏️\u003C\u002Fbutton>\n```\n\nCSS (visibility controlled by JS classes only):\n```css\n\u002F* ⚠️ Do NOT use CSS ~ sibling selector for this!\n   pointer-events: none breaks the hover chain.\n   Must use JS with delay timeout. *\u002F\n.edit-hotzone {\n    position: fixed; top: 0; left: 0;\n    width: 80px; height: 80px;\n    z-index: 10000;\n    cursor: pointer;\n}\n.edit-toggle {\n    opacity: 0;\n    pointer-events: none;\n    transition: opacity 0.3s ease;\n    z-index: 10001;\n}\n\u002F* Only JS-added classes control visibility *\u002F\n.edit-toggle.show,\n.edit-toggle.active {\n    opacity: 1;\n    pointer-events: auto;\n}\n```\n\nJS (all three interaction methods):\n```javascript\n\u002F\u002F 1. Click handler on the toggle button\ndocument.getElementById('editToggle').addEventListener('click', () => {\n    editor.toggleEditMode();\n});\n\n\u002F\u002F 2. Hotzone hover with 400ms grace period\nconst hotzone = document.querySelector('.edit-hotzone');\nconst editToggle = document.getElementById('editToggle');\nlet hideTimeout = null;\n\nhotzone.addEventListener('mouseenter', () => {\n    clearTimeout(hideTimeout);\n    editToggle.classList.add('show');\n});\nhotzone.addEventListener('mouseleave', () => {\n    hideTimeout = setTimeout(() => {\n        if (!editor.isActive) editToggle.classList.remove('show');\n    }, 400);\n});\neditToggle.addEventListener('mouseenter', () => {\n    clearTimeout(hideTimeout);\n});\neditToggle.addEventListener('mouseleave', () => {\n    hideTimeout = setTimeout(() => {\n        if (!editor.isActive) editToggle.classList.remove('show');\n    }, 400);\n});\n\n\u002F\u002F 3. Hotzone direct click\nhotzone.addEventListener('click', () => {\n    editor.toggleEditMode();\n});\n\n\u002F\u002F 4. Keyboard shortcut (E key, skip when editing text)\ndocument.addEventListener('keydown', (e) => {\n    if ((e.key === 'e' || e.key === 'E') && !e.target.getAttribute('contenteditable')) {\n        editor.toggleEditMode();\n    }\n});\n```\n\n### Code Quality Requirements\n\n**Comments:**\nEvery section should have clear comments explaining:\n- What it does\n- Why it exists\n- How to modify it\n\n```javascript\n\u002F* ===========================================\n   CUSTOM CURSOR\n   Creates a stylized cursor that follows mouse with a trail effect.\n   - Uses lerp (linear interpolation) for smooth movement\n   - Grows larger when hovering over interactive elements\n   =========================================== *\u002F\nclass CustomCursor {\n    constructor() {\n        \u002F\u002F ...\n    }\n}\n```\n\n**Accessibility:**\n- Semantic HTML (`\u003Csection>`, `\u003Cnav>`, `\u003Cmain>`)\n- Keyboard navigation works\n- ARIA labels where needed\n- Reduced motion support\n\n```css\n@media (prefers-reduced-motion: reduce) {\n    .reveal {\n        transition: opacity 0.3s ease;\n        transform: none;\n    }\n}\n```\n\n**CSS Function Negation:**\n- Never negate CSS functions directly — `-clamp()`, `-min()`, `-max()` are silently ignored by browsers with no console error\n- Always use `calc(-1 * clamp(...))` instead. See STYLE_PRESETS.md → \"CSS Gotchas\" for details.\n\n**Responsive & Viewport Fitting (CRITICAL):**\n\n**See the \"CRITICAL: Viewport Fitting Requirements\" section above for complete CSS and guidelines.**\n\nQuick reference:\n- Every `.slide` must have `height: 100vh; height: 100dvh; overflow: hidden;`\n- All typography and spacing must use `clamp()`\n- Respect content density limits (max 4-6 bullets, max 6 cards, etc.)\n- Include breakpoints for heights: 700px, 600px, 500px\n- When content doesn't fit → split into multiple slides, never scroll\n\n---\n\n## Phase 4: PPT Conversion\n\nWhen converting PowerPoint files:\n\n### Step 4.1: Extract Content\n\nUse Python with `python-pptx` to extract:\n\n```python\nfrom pptx import Presentation\nfrom pptx.util import Inches, Pt\nimport json\nimport os\nimport base64\n\ndef extract_pptx(file_path, output_dir):\n    \"\"\"\n    Extract all content from a PowerPoint file.\n    Returns a JSON structure with slides, text, and images.\n    \"\"\"\n    prs = Presentation(file_path)\n    slides_data = []\n\n    # Create assets directory\n    assets_dir = os.path.join(output_dir, 'assets')\n    os.makedirs(assets_dir, exist_ok=True)\n\n    for slide_num, slide in enumerate(prs.slides):\n        slide_data = {\n            'number': slide_num + 1,\n            'title': '',\n            'content': [],\n            'images': [],\n            'notes': ''\n        }\n\n        for shape in slide.shapes:\n            # Extract title\n            if shape.has_text_frame:\n                if shape == slide.shapes.title:\n                    slide_data['title'] = shape.text\n                else:\n                    slide_data['content'].append({\n                        'type': 'text',\n                        'content': shape.text\n                    })\n\n            # Extract images\n            if shape.shape_type == 13:  # Picture\n                image = shape.image\n                image_bytes = image.blob\n                image_ext = image.ext\n                image_name = f\"slide{slide_num + 1}_img{len(slide_data['images']) + 1}.{image_ext}\"\n                image_path = os.path.join(assets_dir, image_name)\n\n                with open(image_path, 'wb') as f:\n                    f.write(image_bytes)\n\n                slide_data['images'].append({\n                    'path': f\"assets\u002F{image_name}\",\n                    'width': shape.width,\n                    'height': shape.height\n                })\n\n        # Extract notes\n        if slide.has_notes_slide:\n            notes_frame = slide.notes_slide.notes_text_frame\n            slide_data['notes'] = notes_frame.text\n\n        slides_data.append(slide_data)\n\n    return slides_data\n```\n\n### Step 4.2: Confirm Content Structure\n\nPresent the extracted content to the user:\n\n```\nI've extracted the following from your PowerPoint:\n\n**Slide 1: [Title]**\n- [Content summary]\n- Images: [count]\n\n**Slide 2: [Title]**\n- [Content summary]\n- Images: [count]\n\n...\n\nAll images have been saved to the assets folder.\n\nDoes this look correct? Should I proceed with style selection?\n```\n\n### Step 4.3: Style Selection\n\nProceed to Phase 2 (Style Discovery) with the extracted content in mind.\n\n### Step 4.4: Generate HTML\n\nConvert the extracted content into the chosen style, preserving:\n- All text content\n- All images (referenced from assets folder)\n- Slide order\n- Any speaker notes (as HTML comments or separate file)\n\n---\n\n## Phase 5: Delivery\n\n### Final Output\n\nWhen the presentation is complete:\n\n1. **Clean up temporary files**\n   - Delete `.claude-design\u002Fslide-previews\u002F` if it exists\n\n2. **Open the presentation**\n   - Use `open [filename].html` to launch in browser\n\n3. **Provide summary**\n```\nYour presentation is ready!\n\n📁 File: [filename].html\n🎨 Style: [Style Name]\n📊 Slides: [count]\n\n**Navigation:**\n- Arrow keys (← →) or Space to navigate\n- Scroll\u002Fswipe also works\n- Click the dots on the right to jump to a slide\n\n**To customize:**\n- Colors: Look for `:root` CSS variables at the top\n- Fonts: Change the Fontshare\u002FGoogle Fonts link\n- Animations: Modify `.reveal` class timings\n\nWould you like me to make any adjustments?\n```\n\nIf the user opted in to inline editing, also include:\n```\n**Editing:**\n- Hover over top-left corner or press E to enter edit mode\n- Click any text to edit directly\n- Ctrl+S or click \"Save file\" to save changes\n```\n\n---\n\n## Style Reference: Effect → Feeling Mapping\n\nUse this guide to match animations to intended feelings:\n\n### Dramatic \u002F Cinematic\n- Slow fade-ins (1-1.5s)\n- Large scale transitions (0.9 → 1)\n- Dark backgrounds with spotlight effects\n- Parallax scrolling\n- Full-bleed images\n\n### Techy \u002F Futuristic\n- Neon glow effects (box-shadow with accent color)\n- Particle systems (canvas background)\n- Grid patterns\n- Monospace fonts for accents\n- Glitch or scramble text effects\n- Cyan, magenta, electric blue palette\n\n### Playful \u002F Friendly\n- Bouncy easing (spring physics)\n- Rounded corners (large radius)\n- Pastel or bright colors\n- Floating\u002Fbobbing animations\n- Hand-drawn or illustrated elements\n\n### Professional \u002F Corporate\n- Subtle, fast animations (200-300ms)\n- Clean sans-serif fonts\n- Navy, slate, or charcoal backgrounds\n- Precise spacing and alignment\n- Minimal decorative elements\n- Data visualization focus\n\n### Calm \u002F Minimal\n- Very slow, subtle motion\n- High whitespace\n- Muted color palette\n- Serif typography\n- Generous padding\n- Content-focused, no distractions\n\n### Editorial \u002F Magazine\n- Strong typography hierarchy\n- Pull quotes and callouts\n- Image-text interplay\n- Grid-breaking layouts\n- Serif headlines, sans-serif body\n- Black and white with one accent\n\n---\n\n## Animation Patterns Reference\n\n### Entrance Animations\n\n```css\n\u002F* Fade + Slide Up (most common) *\u002F\n.reveal {\n    opacity: 0;\n    transform: translateY(30px);\n    transition: opacity 0.6s var(--ease-out-expo),\n                transform 0.6s var(--ease-out-expo);\n}\n\n.visible .reveal {\n    opacity: 1;\n    transform: translateY(0);\n}\n\n\u002F* Scale In *\u002F\n.reveal-scale {\n    opacity: 0;\n    transform: scale(0.9);\n    transition: opacity 0.6s, transform 0.6s var(--ease-out-expo);\n}\n\n\u002F* Slide from Left *\u002F\n.reveal-left {\n    opacity: 0;\n    transform: translateX(-50px);\n    transition: opacity 0.6s, transform 0.6s var(--ease-out-expo);\n}\n\n\u002F* Blur In *\u002F\n.reveal-blur {\n    opacity: 0;\n    filter: blur(10px);\n    transition: opacity 0.8s, filter 0.8s var(--ease-out-expo);\n}\n```\n\n### Background Effects\n\n```css\n\u002F* Gradient Mesh *\u002F\n.gradient-bg {\n    background:\n        radial-gradient(ellipse at 20% 80%, rgba(120, 0, 255, 0.3) 0%, transparent 50%),\n        radial-gradient(ellipse at 80% 20%, rgba(0, 255, 200, 0.2) 0%, transparent 50%),\n        var(--bg-primary);\n}\n\n\u002F* Noise Texture *\u002F\n.noise-bg {\n    background-image: url(\"data:image\u002Fsvg+xml,...\"); \u002F* Inline SVG noise *\u002F\n}\n\n\u002F* Grid Pattern *\u002F\n.grid-bg {\n    background-image:\n        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),\n        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);\n    background-size: 50px 50px;\n}\n```\n\n### Interactive Effects\n\n```javascript\n\u002F* 3D Tilt on Hover *\u002F\nclass TiltEffect {\n    constructor(element) {\n        this.element = element;\n        this.element.style.transformStyle = 'preserve-3d';\n        this.element.style.perspective = '1000px';\n        this.bindEvents();\n    }\n\n    bindEvents() {\n        this.element.addEventListener('mousemove', (e) => {\n            const rect = this.element.getBoundingClientRect();\n            const x = (e.clientX - rect.left) \u002F rect.width - 0.5;\n            const y = (e.clientY - rect.top) \u002F rect.height - 0.5;\n\n            this.element.style.transform = `\n                rotateY(${x * 10}deg)\n                rotateX(${-y * 10}deg)\n            `;\n        });\n\n        this.element.addEventListener('mouseleave', () => {\n            this.element.style.transform = 'rotateY(0) rotateX(0)';\n        });\n    }\n}\n```\n\n---\n\n## Troubleshooting\n\n### Common Issues\n\n**Fonts not loading:**\n- Check Fontshare\u002FGoogle Fonts URL\n- Ensure font names match in CSS\n\n**Animations not triggering:**\n- Verify Intersection Observer is running\n- Check that `.visible` class is being added\n\n**Scroll snap not working:**\n- Ensure `scroll-snap-type` on html\u002Fbody\n- Each slide needs `scroll-snap-align: start`\n\n**Mobile issues:**\n- Disable heavy effects at 768px breakpoint\n- Test touch events\n- Reduce particle count or disable canvas\n\n**Performance issues:**\n- Use `will-change` sparingly\n- Prefer `transform` and `opacity` animations\n- Throttle scroll\u002Fmousemove handlers\n\n---\n\n## Related Skills\n\n- **learn** — Generate FORZARA.md documentation for the presentation\n- **frontend-design** — For more complex interactive pages beyond slides\n- **design-and-refine:design-lab** — For iterating on component designs\n\n---\n\n## Example Session Flow\n\n1. User: \"I want to create a pitch deck for my AI startup\"\n2. Skill asks about purpose, length, content, and images (single form)\n3. User shares bullet points, selects `.\u002Fassets` folder\n4. **Evaluate:** Skill views each image (multimodal), builds slide outline with image assignments:\n   - `logo.png` → USABLE → title\u002Fclosing slide\n   - `chat_ui.png` → USABLE → feature slide\n   - `dashboard.png` → USABLE → feature slide\n   - `launch_card.png` → USABLE → feature slide\n   - `blurry_team.jpg` → NOT USABLE (too low resolution)\n5. User confirms outline via AskUserQuestion\n6. Skill asks about desired feeling (Impressed + Excited)\n7. Skill generates 3 style previews\n8. User picks Style B (Neon Cyber)\n9. **Process + Generate:** Skill runs Pillow operations (circular crop, resize), generates full presentation with direct image paths\n10. Skill opens the presentation in browser\n11. User requests tweaks to specific slides\n12. Final presentation delivered\n\n---\n\n## Conversion Session Flow\n\n1. User: \"Convert my slides.pptx to a web presentation\"\n2. Skill extracts content and images from PPT\n3. Skill confirms extracted content with user\n4. Skill asks about desired feeling\u002Fstyle\n5. Skill generates style previews\n6. User picks a style\n7. Skill generates HTML presentation with preserved assets\n8. Final presentation delivered\n","# Frontend Slides Skill\n\nCreate zero-dependency, animation-rich HTML presentations that run entirely in the browser. This skill helps non-designers discover their preferred aesthetic through visual exploration (\"show, don't tell\"), then generates production-quality slide decks.\n\n## Core Philosophy\n\n1. **Zero Dependencies** — Single HTML files with inline CSS\u002FJS. No npm, no build tools.\n2. **Show, Don't Tell** — People don't know what they want until they see it. Generate visual previews, not abstract choices.\n3. **Distinctive Design** — Avoid generic \"AI slop\" aesthetics. Every presentation should feel custom-crafted.\n4. **Production Quality** — Code should be well-commented, accessible, and performant.\n5. **Viewport Fitting (CRITICAL)** — Every slide MUST fit exactly within the viewport. No scrolling within slides, ever. This is non-negotiable.\n\n---\n\n## CRITICAL: Viewport Fitting Requirements\n\n**This section is mandatory for ALL presentations. Every slide must be fully visible without scrolling on any screen size.**\n\n### The Golden Rule\n\n```\nEach slide = exactly one viewport height (100vh\u002F100dvh)\nContent overflows? → Split into multiple slides or reduce content\nNever scroll within a slide.\n```\n\n### Content Density Limits\n\nTo guarantee viewport fitting, enforce these limits per slide:\n\n| Slide Type | Maximum Content |\n|------------|-----------------|\n| Title slide | 1 heading + 1 subtitle + optional tagline |\n| Content slide | 1 heading + 4-6 bullet points OR 1 heading + 2 paragraphs |\n| Feature grid | 1 heading + 6 cards maximum (2x3 or 3x2 grid) |\n| Code slide | 1 heading + 8-10 lines of code maximum |\n| Quote slide | 1 quote (max 3 lines) + attribution |\n| Image slide | 1 heading + 1 image (max 60vh height) |\n\n**If content exceeds these limits → Split into multiple slides**\n\n### Required CSS Architecture\n\nEvery presentation MUST include this base CSS for viewport fitting:\n\n```css\n\u002F* ===========================================\n   VIEWPORT FITTING: MANDATORY BASE STYLES\n   These styles MUST be included in every presentation.\n   They ensure slides fit exactly in the viewport.\n   =========================================== *\u002F\n\n\u002F* 1. Lock html\u002Fbody to viewport *\u002F\nhtml, body {\n    height: 100%;\n    overflow-x: hidden;\n}\n\nhtml {\n    scroll-snap-type: y mandatory;\n    scroll-behavior: smooth;\n}\n\n\u002F* 2. Each slide = exact viewport height *\u002F\n.slide {\n    width: 100vw;\n    height: 100vh;\n    height: 100dvh; \u002F* Dynamic viewport height for mobile browsers *\u002F\n    overflow: hidden; \u002F* CRITICAL: Prevent ANY overflow *\u002F\n    scroll-snap-align: start;\n    display: flex;\n    flex-direction: column;\n    position: relative;\n}\n\n\u002F* 3. Content container with flex for centering *\u002F\n.slide-content {\n    flex: 1;\n    display: flex;\n    flex-direction: column;\n    justify-content: center;\n    max-height: 100%;\n    overflow: hidden; \u002F* Double-protection against overflow *\u002F\n    padding: var(--slide-padding);\n}\n\n\u002F* 4. ALL typography uses clamp() for responsive scaling *\u002F\n:root {\n    \u002F* Titles scale from mobile to desktop *\u002F\n    --title-size: clamp(1.5rem, 5vw, 4rem);\n    --h2-size: clamp(1.25rem, 3.5vw, 2.5rem);\n    --h3-size: clamp(1rem, 2.5vw, 1.75rem);\n\n    \u002F* Body text *\u002F\n    --body-size: clamp(0.75rem, 1.5vw, 1.125rem);\n    --small-size: clamp(0.65rem, 1vw, 0.875rem);\n\n    \u002F* Spacing scales with viewport *\u002F\n    --slide-padding: clamp(1rem, 4vw, 4rem);\n    --content-gap: clamp(0.5rem, 2vw, 2rem);\n    --element-gap: clamp(0.25rem, 1vw, 1rem);\n}\n\n\u002F* 5. Cards\u002Fcontainers use viewport-relative max sizes *\u002F\n.card, .container, .content-box {\n    max-width: min(90vw, 1000px);\n    max-height: min(80vh, 700px);\n}\n\n\u002F* 6. Lists auto-scale with viewport *\u002F\n.feature-list, .bullet-list {\n    gap: clamp(0.4rem, 1vh, 1rem);\n}\n\n.feature-list li, .bullet-list li {\n    font-size: var(--body-size);\n    line-height: 1.4;\n}\n\n\u002F* 7. Grids adapt to available space *\u002F\n.grid {\n    display: grid;\n    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));\n    gap: clamp(0.5rem, 1.5vw, 1rem);\n}\n\n\u002F* 8. Images constrained to viewport *\u002F\nimg, .image-container {\n    max-width: 100%;\n    max-height: min(50vh, 400px);\n    object-fit: contain;\n}\n\n\u002F* ===========================================\n   RESPONSIVE BREAKPOINTS\n   Aggressive scaling for smaller viewports\n   =========================================== *\u002F\n\n\u002F* Short viewports (\u003C 700px height) *\u002F\n@media (max-height: 700px) {\n    :root {\n        --slide-padding: clamp(0.75rem, 3vw, 2rem);\n        --content-gap: clamp(0.4rem, 1.5vw, 1rem);\n        --title-size: clamp(1.25rem, 4.5vw, 2.5rem);\n        --h2-size: clamp(1rem, 3vw, 1.75rem);\n    }\n}\n\n\u002F* Very short viewports (\u003C 600px height) *\u002F\n@media (max-height: 600px) {\n    :root {\n        --slide-padding: clamp(0.5rem, 2.5vw, 1.5rem);\n        --content-gap: clamp(0.3rem, 1vw, 0.75rem);\n        --title-size: clamp(1.1rem, 4vw, 2rem);\n        --body-size: clamp(0.7rem, 1.2vw, 0.95rem);\n    }\n\n    \u002F* Hide non-essential elements *\u002F\n    .nav-dots, .keyboard-hint, .decorative {\n        display: none;\n    }\n}\n\n\u002F* Extremely short (landscape phones, \u003C 500px height) *\u002F\n@media (max-height: 500px) {\n    :root {\n        --slide-padding: clamp(0.4rem, 2vw, 1rem);\n        --title-size: clamp(1rem, 3.5vw, 1.5rem);\n        --h2-size: clamp(0.9rem, 2.5vw, 1.25rem);\n        --body-size: clamp(0.65rem, 1vw, 0.85rem);\n    }\n}\n\n\u002F* Narrow viewports (\u003C 600px width) *\u002F\n@media (max-width: 600px) {\n    :root {\n        --title-size: clamp(1.25rem, 7vw, 2.5rem);\n    }\n\n    \u002F* Stack grids vertically *\u002F\n    .grid {\n        grid-template-columns: 1fr;\n    }\n}\n\n\u002F* ===========================================\n   REDUCED MOTION\n   Respect user preferences\n   =========================================== *\u002F\n@media (prefers-reduced-motion: reduce) {\n    *, *::before, *::after {\n        animation-duration: 0.01ms !important;\n        transition-duration: 0.2s !important;\n    }\n\n    html {\n        scroll-behavior: auto;\n    }\n}\n```\n\n### Overflow Prevention Checklist\n\nBefore generating any presentation, mentally verify:\n\n1. ✅ Every `.slide` has `height: 100vh; height: 100dvh; overflow: hidden;`\n2. ✅ All font sizes use `clamp(min, preferred, max)`\n3. ✅ All spacing uses `clamp()` or viewport units\n4. ✅ Content containers have `max-height` constraints\n5. ✅ Images have `max-height: min(50vh, 400px)` or similar\n6. ✅ Grids use `auto-fit` with `minmax()` for responsive columns\n7. ✅ Breakpoints exist for heights: 700px, 600px, 500px\n8. ✅ No fixed pixel heights on content elements\n9. ✅ Content per slide respects density limits\n\n### When Content Doesn't Fit\n\nIf you find yourself with too much content:\n\n**DO:**\n- Split into multiple slides\n- Reduce bullet points (max 5-6 per slide)\n- Shorten text (aim for 1-2 lines per bullet)\n- Use smaller code snippets\n- Create a \"continued\" slide\n- **When adding images to existing slides:** Move image to new slide or reduce other content first\n\n**DON'T:**\n- Reduce font size below readable limits\n- Remove padding\u002Fspacing entirely\n- Allow any scrolling\n- Cram content to fit\n- Add images without checking if existing content already fills the viewport\n\n### Testing Viewport Fit\n\nAfter generating, recommend the user test at these sizes:\n- Desktop: 1920×1080, 1440×900, 1280×720\n- Tablet: 1024×768, 768×1024 (portrait)\n- Mobile: 375×667, 414×896\n- Landscape phone: 667×375, 896×414\n\n---\n\n## Phase 0: Detect Mode\n\nFirst, determine what the user wants:\n\n**Mode A: New Presentation**\n- User wants to create slides from scratch\n- Proceed to Phase 1 (Content Discovery)\n\n**Mode B: PPT Conversion**\n- User has a PowerPoint file (.ppt, .pptx) to convert\n- Proceed to Phase 4 (PPT Extraction)\n\n**Mode C: Existing Presentation Enhancement**\n- User has an HTML presentation and wants to improve it\n- Read the existing file, understand the structure, then enhance\n- **CRITICAL: When modifying existing slides, ALWAYS ensure viewport fitting is maintained**\n\n### Mode C: Critical Modification Rules\n\nWhen enhancing existing presentations, follow these mandatory rules:\n\n**1. Before Adding Any Content:**\n- Read the current slide structure and count existing elements\n- Check against content density limits (see table above)\n- Calculate if the new content will fit within viewport constraints\n\n**2. When Adding Images (MOST COMMON ISSUE):**\n- Images must have `max-height: min(50vh, 400px)` or similar viewport constraint\n- Check if current slide already has maximum content (1 heading + 1 image)\n- If adding an image to a slide with existing content → **Split into two slides**\n- Example: If slide has heading + 4 bullets, and user wants to add an image:\n  - **DON'T:** Cram image onto same slide\n  - **DO:** Create new slide with heading + image, keep bullets on original slide\n  - **OR:** Reduce bullets to 2-3 and add image with proper constraints\n\n**3. When Adding Text Content:**\n- Max 4-6 bullet points per slide\n- Max 2 paragraphs per slide\n- If adding content exceeds limits → **Split into multiple slides or create a continuation slide**\n\n**4. Required Checks After ANY Modification:**\n```\n✅ Does the slide have `overflow: hidden` on `.slide` class?\n✅ Are all new elements using `clamp()` for font sizes?\n✅ Do new images have viewport-relative max-height?\n✅ Does total content respect density limits?\n✅ Will this fit on a 1280×720 screen? On mobile portrait?\n```\n\n**5. Proactive Reorganization (NOT Optional):**\nWhen you detect that modifications will cause overflow:\n- **Automatically split content across slides** — Don't wait for user to ask\n- Inform user: \"I've reorganized the content across 2 slides to ensure proper viewport fitting\"\n- Use \"continued\" pattern for split content (e.g., \"Key Features\" → \"Key Features (Continued)\")\n\n**6. Testing After Modifications:**\nMentally verify the modified slide at these viewport sizes:\n- Desktop: 1280×720 (smallest common)\n- Tablet portrait: 768×1024\n- Mobile: 375×667\n\n**If in doubt → Split the content. Never allow scrolling within a slide.**\n\n---\n\n## Phase 1: Content Discovery (New Presentations)\n\nBefore designing, understand the content. Ask via AskUserQuestion:\n\n### Step 1.1: Presentation Context + Images (Single Form)\n\n**IMPORTANT:** Ask ALL 4 questions in a single AskUserQuestion call so the user can fill everything out at once before submitting.\n\n**Question 1: Purpose**\n- Header: \"Purpose\"\n- Question: \"What is this presentation for?\"\n- Options:\n  - \"Pitch deck\" — Selling an idea, product, or company to investors\u002Fclients\n  - \"Teaching\u002FTutorial\" — Explaining concepts, how-to guides, educational content\n  - \"Conference talk\" — Speaking at an event, tech talk, keynote\n  - \"Internal presentation\" — Team updates, strategy meetings, company updates\n\n**Question 2: Slide Count**\n- Header: \"Length\"\n- Question: \"Approximately how many slides?\"\n- Options:\n  - \"Short (5-10)\" — Quick pitch, lightning talk\n  - \"Medium (10-20)\" — Standard presentation\n  - \"Long (20+)\" — Deep dive, comprehensive talk\n\n**Question 3: Content**\n- Header: \"Content\"\n- Question: \"Do you have the content ready, or do you need help structuring it?\"\n- Options:\n  - \"I have all content ready\" — Just need to design the presentation\n  - \"I have rough notes\" — Need help organizing into slides\n  - \"I have a topic only\" — Need help creating the full outline\n\n**Question 4: Images**\n- Header: \"Images\"\n- Question: \"Do you have images to include? Select 'No images' or select Other and type\u002Fpaste your image folder path.\"\n- Options:\n  - \"No images\" — Text-only presentation (use CSS-generated visuals instead)\n  - \".\u002Fassets\" — Use the `assets\u002F` folder in the current project\n\nThe user can select **\"Other\"** to type or paste any custom folder path (e.g. `~\u002FDesktop\u002Fscreenshots`). This way the image folder path is collected in the same form — no extra round-trip.\n\n**Question 5: Inline Editing**\n- Header: \"Editing\"\n- Question: \"Do you need to edit text directly in the browser after generation?\"\n- Options:\n  - \"Yes (Recommended)\" — Can edit text in-browser, auto-save to localStorage, export file\n  - \"No\" — Presentation only, keeps file smaller\n\n**Remember the user's choice — it determines whether edit-related HTML\u002FCSS\u002FJS is included in Phase 3.**\n\nIf user has content, ask them to share it (text, bullet points, images, etc.).\n\n### Step 1.2: Image Evaluation\n\n**User-provided assets are important visual anchors** — but not every asset is necessarily usable. The first step is always to evaluate. After evaluation, the curated assets become additional context that shapes how the presentation is built. This is a **co-design process**: text content + curated visuals together inform the slide structure from the start, not a post-hoc \"fit images in after the fact.\"\n\n**If user selected \"No images\"** → Skip the entire image pipeline. Proceed directly to Phase 2 (Style Discovery) and Phase 3 (Generate Presentation) using text content only. The presentation will use CSS-generated visuals (gradients, shapes, patterns, typography) for visual interest — this is the original behavior and produces fully polished results without any images.\n\n**If user provides an image folder:**\n\n1. **Scan the folder** — Use `ls` to list all image files (`.png`, `.jpg`, `.jpeg`, `.gif`, `.svg`, `.webp`)\n2. **View each image** — Use the Read tool to see what each image contains (Claude is multimodal)\n3. **Evaluate each image** — For each image, assess:\n   - Filename and dimensions\n   - What it shows (screenshot, logo, chart, diagram, photo)\n   - **Usability:** Is the image clear, relevant to the presentation topic, and high enough quality? Mark as `USABLE` or `NOT USABLE` (with reason: blurry, irrelevant, broken, etc.)\n   - **Content signal:** What feature or concept does this image represent? (e.g., \"chat_ui.png\" → \"conversational interface feature\")\n   - Shape: square, landscape, portrait, circular\n   - Dominant colors (important for style compatibility later)\n4. **Present the evaluation and proposed slide outline to the user** — Show which images are usable and which are not, with reasons. Then show the proposed slide outline with image assignments.\n\n**Co-design: curated assets inform the outline**\n\nAfter evaluation, the **usable** images become context for planning the slide structure alongside text content. This is not \"plan slides then add images\" — it's designing the presentation around both text and visuals from the start:\n\n- 3 usable product screenshots → plan 3 feature slides, each anchored by one screenshot\n- 1 usable logo → title slide and\u002For closing slide\n- 1 usable architecture diagram → dedicated \"How It Works\" slide\n- 1 blurry\u002Firrelevant image → excluded, with explanation to user\n\nThis means curated images are factored in **before** style selection (Phase 2) and **before** HTML generation (Phase 3). They are co-equal context in the design process.\n\n5. **Confirm outline via AskUserQuestion** — Do NOT break the flow by asking the user to type free text. Use AskUserQuestion to confirm:\n\n**Question: Outline Confirmation**\n- Header: \"Outline\"\n- Question: \"Does this slide outline and image selection look right?\"\n- Options:\n  - \"Looks good, proceed\" — Move on to style selection\n  - \"Adjust images\" — I want to change which images go where\n  - \"Adjust outline\" — I want to change the slide structure\n\nThis keeps the entire flow in the AskUserQuestion format without dropping to free-text chat.\n\n---\n\n## Phase 2: Style Discovery (Visual Exploration)\n\n**CRITICAL: This is the \"show, don't tell\" phase.**\n\nMost people can't articulate design preferences in words. Instead of asking \"do you want minimalist or bold?\", we generate mini-previews and let them react.\n\n### How Users Choose Presets\n\nUsers can select a style in **two ways**:\n\n**Option A: Guided Discovery (Default)**\n- User answers mood questions\n- Skill generates 3 preview files based on their answers\n- User views previews in browser and picks their favorite\n- This is best for users who don't have a specific style in mind\n\n**Option B: Direct Selection**\n- If user already knows what they want, they can request a preset by name\n- Example: \"Use the Bold Signal style\" or \"I want something like Dark Botanical\"\n- Skip to Phase 3 immediately\n\n**Available Presets:**\n| Preset | Vibe | Best For |\n|--------|------|----------|\n| Bold Signal | Confident, high-impact | Pitch decks, keynotes |\n| Electric Studio | Clean, professional | Agency presentations |\n| Creative Voltage | Energetic, retro-modern | Creative pitches |\n| Dark Botanical | Elegant, sophisticated | Premium brands |\n| Notebook Tabs | Editorial, organized | Reports, reviews |\n| Pastel Geometry | Friendly, approachable | Product overviews |\n| Split Pastel | Playful, modern | Creative agencies |\n| Vintage Editorial | Witty, personality-driven | Personal brands |\n| Neon Cyber | Futuristic, techy | Tech startups |\n| Terminal Green | Developer-focused | Dev tools, APIs |\n| Swiss Modern | Minimal, precise | Corporate, data |\n| Paper & Ink | Literary, thoughtful | Storytelling |\n\n### Step 2.0: Style Path Selection\n\nFirst, ask how the user wants to choose their style:\n\n**Question: Style Selection Method**\n- Header: \"Style\"\n- Question: \"How would you like to choose your presentation style?\"\n- Options:\n  - \"Show me options\" — Generate 3 previews based on my needs (recommended for most users)\n  - \"I know what I want\" — Let me pick from the preset list directly\n\n**If \"Show me options\"** → Continue to Step 2.1 (Mood Selection)\n\n**If \"I know what I want\"** → Show preset picker:\n\n**Question: Pick a Preset**\n- Header: \"Preset\"\n- Question: \"Which style would you like to use?\"\n- Options:\n  - \"Bold Signal\" — Vibrant card on dark, confident and high-impact\n  - \"Dark Botanical\" — Elegant dark with soft abstract shapes\n  - \"Notebook Tabs\" — Editorial paper look with colorful section tabs\n  - \"Pastel Geometry\" — Friendly pastels with decorative pills\n\n(If user picks one, skip to Phase 3. If they want to see more options, show additional presets or proceed to guided discovery.)\n\n### Step 2.1: Mood Selection (Guided Discovery)\n\n**Question 1: Feeling**\n- Header: \"Vibe\"\n- Question: \"What feeling should the audience have when viewing your slides?\"\n- Options:\n  - \"Impressed\u002FConfident\" — Professional, trustworthy, this team knows what they're doing\n  - \"Excited\u002FEnergized\" — Innovative, bold, this is the future\n  - \"Calm\u002FFocused\" — Clear, thoughtful, easy to follow\n  - \"Inspired\u002FMoved\" — Emotional, storytelling, memorable\n- multiSelect: true (can choose up to 2)\n\n### Step 2.2: Generate Style Previews\n\nBased on their mood selection, generate **3 distinct style previews** as mini HTML files in a temporary directory. Each preview should be a single title slide showing:\n\n- Typography (font choices, heading\u002Fbody hierarchy)\n- Color palette (background, accent, text colors)\n- Animation style (how elements enter)\n- Overall aesthetic feel\n\n**Preview Styles to Consider (pick 3 based on mood):**\n\n| Mood | Style Options |\n|------|---------------|\n| Impressed\u002FConfident | \"Bold Signal\", \"Electric Studio\", \"Dark Botanical\" |\n| Excited\u002FEnergized | \"Creative Voltage\", \"Neon Cyber\", \"Split Pastel\" |\n| Calm\u002FFocused | \"Notebook Tabs\", \"Paper & Ink\", \"Swiss Modern\" |\n| Inspired\u002FMoved | \"Dark Botanical\", \"Vintage Editorial\", \"Pastel Geometry\" |\n\n**IMPORTANT: Never use these generic patterns:**\n- Purple gradients on white backgrounds\n- Inter, Roboto, or system fonts\n- Standard blue primary colors\n- Predictable hero layouts\n\n**Instead, use distinctive choices:**\n- Unique font pairings (Clash Display, Satoshi, Cormorant Garamond, DM Sans, etc.)\n- Cohesive color themes with personality\n- Atmospheric backgrounds (gradients, subtle patterns, depth)\n- Signature animation moments\n\n### Step 2.3: Present Previews\n\nCreate the previews in: `.claude-design\u002Fslide-previews\u002F`\n\n```\n.claude-design\u002Fslide-previews\u002F\n├── style-a.html   # First style option\n├── style-b.html   # Second style option\n├── style-c.html   # Third style option\n└── assets\u002F        # Any shared assets\n```\n\nEach preview file should be:\n- Self-contained (inline CSS\u002FJS)\n- A single \"title slide\" showing the aesthetic\n- Animated to demonstrate motion style\n- ~50-100 lines, not a full presentation\n\n**Logo in previews (if available):** If the user provided images in Step 1.2 and a logo was identified as `USABLE`, embed it (base64) into each of the 3 style previews. This creates a \"wow moment\" — the user sees their own brand identity styled three different ways, making the choice feel personal rather than abstract. Apply any necessary processing (e.g., circular crop) per-style so each preview shows the logo as it would actually appear in the final presentation. If no logo was provided, generate previews without one — this is fine.\n\nPresent to user:\n```\nI've created 3 style previews for you to compare:\n\n**Style A: [Name]** — [1 sentence description]\n**Style B: [Name]** — [1 sentence description]\n**Style C: [Name]** — [1 sentence description]\n\nOpen each file to see them in action:\n- .claude-design\u002Fslide-previews\u002Fstyle-a.html\n- .claude-design\u002Fslide-previews\u002Fstyle-b.html\n- .claude-design\u002Fslide-previews\u002Fstyle-c.html\n\nTake a look and tell me:\n1. Which style resonates most?\n2. What do you like about it?\n3. Anything you'd change?\n```\n\nThen use AskUserQuestion:\n\n**Question: Pick Your Style**\n- Header: \"Style\"\n- Question: \"Which style preview do you prefer?\"\n- Options:\n  - \"Style A: [Name]\" — [Brief description]\n  - \"Style B: [Name]\" — [Brief description]\n  - \"Style C: [Name]\" — [Brief description]\n  - \"Mix elements\" — Combine aspects from different styles\n\nIf \"Mix elements\", ask for specifics.\n\n---\n\n## Phase 3: Generate Presentation\n\nNow generate the full presentation based on:\n- Content from Phase 1 (text only, or text + curated images)\n- Style from Phase 2\n\nIf the user provided images, the slide outline already incorporates them as visual anchors from Step 1.2. If not, proceed with text-only content — CSS-generated visuals (gradients, shapes, patterns) provide visual interest.\n\n### Image Pipeline (skip if no images)\n\nIf the user chose \"No images\" in Step 1.2, **skip this entire section** and go straight to generating HTML. The presentation will be text-only with CSS-generated visuals — this is a fully supported, first-class path.\n\nIf the user provided images, execute these steps **before** generating HTML.\n\n**Key principle: Co-design, not post-hoc.** The curated images from Step 1.2 (those marked `USABLE`) are already part of the slide outline. The pipeline's job here is to process images for the chosen style and place them in the HTML.\n\n#### Step 3.1: Image Processing (Pillow)\n\nFor each curated image, determine what processing it needs based on the chosen style (e.g., circular crop for logos, resize for large files) and what CSS framing will bridge any color gaps between the image and the style's palette. Then process accordingly.\n\n**Rules:**\n- **Never repeat** the same image on multiple slides (except logos which may bookend title + closing)\n- **Always add CSS framing** (border, glow, shadow) for images whose colors clash with the style's palette\n\n**Dependency:** Python `Pillow` library (the standard image processing library for Python).\n\n```bash\n# Install if not available (portable across macOS\u002FLinux\u002FWindows)\npip install Pillow\n```\n\nThis is analogous to how `python-pptx` is used in Phase 4 (PPT Conversion) — a standard, well-maintained Python package that any user can install.\n\n**Common processing operations:**\n\n```python\nfrom PIL import Image, ImageDraw\n\n# ─── Circular Crop (for logos on modern\u002Fclean styles) ───\ndef crop_circle(input_path, output_path):\n    \"\"\"Crop a square image to a circle with transparent background.\"\"\"\n    img = Image.open(input_path).convert('RGBA')\n    w, h = img.size\n    # Make square if not already\n    size = min(w, h)\n    left = (w - size) \u002F\u002F 2\n    top = (h - size) \u002F\u002F 2\n    img = img.crop((left, top, left + size, top + size))\n    # Create circular mask\n    mask = Image.new('L', (size, size), 0)\n    draw = ImageDraw.Draw(mask)\n    draw.ellipse([0, 0, size, size], fill=255)\n    img.putalpha(mask)\n    img.save(output_path, 'PNG')\n\n# ─── Resize (for oversized images that inflate the HTML) ───\ndef resize_max(input_path, output_path, max_dim=1200):\n    \"\"\"Resize image so largest dimension \u003C= max_dim. Preserves aspect ratio.\"\"\"\n    img = Image.open(input_path)\n    img.thumbnail((max_dim, max_dim), Image.LANCZOS)\n    img.save(output_path, quality=85)\n\n# ─── Add Padding \u002F Background (for images that need breathing room) ───\ndef add_padding(input_path, output_path, padding=40, bg_color=(0, 0, 0, 0)):\n    \"\"\"Add transparent padding around an image.\"\"\"\n    img = Image.open(input_path).convert('RGBA')\n    w, h = img.size\n    new = Image.new('RGBA', (w + 2*padding, h + 2*padding), bg_color)\n    new.paste(img, (padding, padding), img)\n    new.save(output_path, 'PNG')\n```\n\n**When to apply each operation:**\n\n| Situation | Operation |\n|-----------|-----------|\n| Square logo on a style with rounded aesthetics | `crop_circle()` |\n| Image > 1MB (slow to load) | `resize_max(max_dim=1200)` |\n| Screenshot needs breathing room in layout | `add_padding()` |\n| Image has wrong aspect ratio for its slide slot | Manual crop with `img.crop((left, top, right, bottom))` |\n\n**Save processed images** alongside originals with a `_processed` suffix (e.g., `logo_round.png`). Never overwrite the user's original files.\n\n#### Step 3.2: Place Images\n\n**Use direct file paths** — do NOT convert images to base64 data URIs. Since presentations are viewed locally, reference images with relative paths from the HTML file:\n\n```html\n\u003Cimg src=\"assets\u002Flogo_round.png\" alt=\"Logo\" class=\"slide-image logo\">\n\u003Cimg src=\"assets\u002Fscreenshot.png\" alt=\"Screenshot\" class=\"slide-image screenshot\">\n```\n\nThis keeps the HTML file small and images easy to swap. Only use base64 encoding if the user explicitly requests a fully self-contained single-file presentation.\n\n**Image CSS classes (adapt border\u002Fglow colors to match the chosen style):**\n```css\n\u002F* Base image constraint — CRITICAL for viewport fitting *\u002F\n.slide-image {\n    max-width: 100%;\n    max-height: min(50vh, 400px);\n    object-fit: contain;\n    border-radius: 8px;\n}\n\n\u002F* Screenshots: add framing to bridge color gaps with the style *\u002F\n.slide-image.screenshot {\n    border: 1px solid rgba(255, 255, 255, 0.1);\n    border-radius: 12px;\n    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);\n}\n\n\u002F* Logos: smaller, no frame *\u002F\n.slide-image.logo {\n    max-height: min(30vh, 200px);\n}\n```\n\n**IMPORTANT:** Adapt the `.screenshot` border and shadow colors to match the chosen style's accent color. For example:\n- Dark Botanical (gold accent): `border: 1px solid rgba(197, 160, 89, 0.2); box-shadow: 0 0 20px rgba(197, 160, 89, 0.08);`\n- Creative Voltage (neon yellow): `border: 2px solid rgba(212, 255, 0, 0.25); box-shadow: 0 0 20px rgba(212, 255, 0, 0.08);`\n\n**Placement patterns:**\n- **Title slide:** Logo centered above or beside the title\n- **Feature slides:** Screenshot on one side, text on the other (two-column layout)\n- **Full-bleed:** Image as slide background with text overlay (use with caution)\n- **Inline:** Image within content flow, centered, with caption below\n\n**Note:** Processed images (e.g. `logo_round.png`) are saved alongside originals in the assets folder. Reference them with relative paths in the HTML.\n\n### File Structure\n\nFor single presentations:\n```\npresentation.html    # Self-contained presentation\nassets\u002F              # Images, if any\n```\n\nFor projects with multiple presentations:\n```\n[presentation-name].html\n[presentation-name]-assets\u002F\n```\n\n### HTML Architecture\n\nFollow this structure for all presentations:\n\n```html\n\u003C!DOCTYPE html>\n\u003Chtml lang=\"en\">\n\u003Chead>\n    \u003Cmeta charset=\"UTF-8\">\n    \u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    \u003Ctitle>Presentation Title\u003C\u002Ftitle>\n\n    \u003C!-- Fonts (use Fontshare or Google Fonts) -->\n    \u003Clink rel=\"stylesheet\" href=\"https:\u002F\u002Fapi.fontshare.com\u002Fv2\u002Fcss?f[]=...\">\n\n    \u003Cstyle>\n        \u002F* ===========================================\n           CSS CUSTOM PROPERTIES (THEME)\n           Easy to modify: change these to change the whole look\n           =========================================== *\u002F\n        :root {\n            \u002F* Colors *\u002F\n            --bg-primary: #0a0f1c;\n            --bg-secondary: #111827;\n            --text-primary: #ffffff;\n            --text-secondary: #9ca3af;\n            --accent: #00ffcc;\n            --accent-glow: rgba(0, 255, 204, 0.3);\n\n            \u002F* Typography - MUST use clamp() for responsive scaling *\u002F\n            --font-display: 'Clash Display', sans-serif;\n            --font-body: 'Satoshi', sans-serif;\n            --title-size: clamp(2rem, 6vw, 5rem);\n            --subtitle-size: clamp(0.875rem, 2vw, 1.25rem);\n            --body-size: clamp(0.75rem, 1.2vw, 1rem);\n\n            \u002F* Spacing - MUST use clamp() for responsive scaling *\u002F\n            --slide-padding: clamp(1.5rem, 4vw, 4rem);\n            --content-gap: clamp(1rem, 2vw, 2rem);\n\n            \u002F* Animation *\u002F\n            --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);\n            --duration-normal: 0.6s;\n        }\n\n        \u002F* ===========================================\n           BASE STYLES\n           =========================================== *\u002F\n        * {\n            margin: 0;\n            padding: 0;\n            box-sizing: border-box;\n        }\n\n        html {\n            scroll-behavior: smooth;\n            scroll-snap-type: y mandatory;\n            height: 100%;\n        }\n\n        body {\n            font-family: var(--font-body);\n            background: var(--bg-primary);\n            color: var(--text-primary);\n            overflow-x: hidden;\n            height: 100%;\n        }\n\n        \u002F* ===========================================\n           SLIDE CONTAINER\n           CRITICAL: Each slide MUST fit exactly in viewport\n           - Use height: 100vh (NOT min-height)\n           - Use overflow: hidden to prevent scroll\n           - Content must scale with clamp() values\n           =========================================== *\u002F\n        .slide {\n            width: 100vw;\n            height: 100vh; \u002F* EXACT viewport height - no scrolling *\u002F\n            height: 100dvh; \u002F* Dynamic viewport height for mobile *\u002F\n            padding: var(--slide-padding);\n            scroll-snap-align: start;\n            display: flex;\n            flex-direction: column;\n            justify-content: center;\n            position: relative;\n            overflow: hidden; \u002F* Prevent any content overflow *\u002F\n        }\n\n        \u002F* Content wrapper that prevents overflow *\u002F\n        .slide-content {\n            flex: 1;\n            display: flex;\n            flex-direction: column;\n            justify-content: center;\n            max-height: 100%;\n            overflow: hidden;\n        }\n\n        \u002F* ===========================================\n           RESPONSIVE BREAKPOINTS\n           Adjust content for different screen sizes\n           =========================================== *\u002F\n        @media (max-height: 600px) {\n            :root {\n                --slide-padding: clamp(1rem, 3vw, 2rem);\n                --content-gap: clamp(0.5rem, 1.5vw, 1rem);\n            }\n        }\n\n        @media (max-width: 768px) {\n            :root {\n                --title-size: clamp(1.5rem, 8vw, 3rem);\n            }\n        }\n\n        @media (max-height: 500px) and (orientation: landscape) {\n            \u002F* Extra compact for landscape phones *\u002F\n            :root {\n                --title-size: clamp(1.25rem, 5vw, 2rem);\n                --slide-padding: clamp(0.75rem, 2vw, 1.5rem);\n            }\n        }\n\n        \u002F* ===========================================\n           ANIMATIONS\n           Trigger via .visible class (added by JS on scroll)\n           =========================================== *\u002F\n        .reveal {\n            opacity: 0;\n            transform: translateY(30px);\n            transition: opacity var(--duration-normal) var(--ease-out-expo),\n                        transform var(--duration-normal) var(--ease-out-expo);\n        }\n\n        .slide.visible .reveal {\n            opacity: 1;\n            transform: translateY(0);\n        }\n\n        \u002F* Stagger children *\u002F\n        .reveal:nth-child(1) { transition-delay: 0.1s; }\n        .reveal:nth-child(2) { transition-delay: 0.2s; }\n        .reveal:nth-child(3) { transition-delay: 0.3s; }\n        .reveal:nth-child(4) { transition-delay: 0.4s; }\n\n        \u002F* ... more styles ... *\u002F\n    \u003C\u002Fstyle>\n\u003C\u002Fhead>\n\u003Cbody>\n    \u003C!-- Progress bar (optional) -->\n    \u003Cdiv class=\"progress-bar\">\u003C\u002Fdiv>\n\n    \u003C!-- Navigation dots (optional) -->\n    \u003Cnav class=\"nav-dots\">\n        \u003C!-- Generated by JS -->\n    \u003C\u002Fnav>\n\n    \u003C!-- Slides -->\n    \u003Csection class=\"slide title-slide\">\n        \u003Ch1 class=\"reveal\">Presentation Title\u003C\u002Fh1>\n        \u003Cp class=\"reveal\">Subtitle or author\u003C\u002Fp>\n    \u003C\u002Fsection>\n\n    \u003Csection class=\"slide\">\n        \u003Ch2 class=\"reveal\">Slide Title\u003C\u002Fh2>\n        \u003Cp class=\"reveal\">Content...\u003C\u002Fp>\n    \u003C\u002Fsection>\n\n    \u003C!-- More slides... -->\n\n    \u003Cscript>\n        \u002F* ===========================================\n           SLIDE PRESENTATION CONTROLLER\n           Handles navigation, animations, and interactions\n           =========================================== *\u002F\n\n        class SlidePresentation {\n            constructor() {\n                \u002F\u002F ... initialization\n            }\n\n            \u002F\u002F ... methods\n        }\n\n        \u002F\u002F Initialize\n        new SlidePresentation();\n    \u003C\u002Fscript>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n### Required JavaScript Features\n\nEvery presentation should include:\n\n1. **SlidePresentation Class** — Main controller\n   - Keyboard navigation (arrows, space)\n   - Touch\u002Fswipe support\n   - Mouse wheel navigation\n   - Progress bar updates\n   - Navigation dots\n\n2. **Intersection Observer** — For scroll-triggered animations\n   - Add `.visible` class when slides enter viewport\n   - Trigger CSS animations efficiently\n\n3. **Optional Enhancements** (based on style):\n   - Custom cursor with trail\n   - Particle system background (canvas)\n   - Parallax effects\n   - 3D tilt on hover\n   - Magnetic buttons\n   - Counter animations\n   - **Inline editing** (only if user opted in during content discovery):\n     - Edit toggle button (hidden by default, revealed via hover hotzone or `E` key)\n     - Auto-save to localStorage\n     - Export\u002Fsave file functionality\n     - See \"Edit Button Implementation\" section below for required code patterns\n\n### Edit Button Implementation (When User Opts In)\n\n**If the user chose \"No\" for inline editing in Phase 1, skip this entirely — do not generate any edit-related HTML, CSS, or JS.**\n\n**⚠️ Critical: Do NOT use CSS `~` sibling selector for hover-based show\u002Fhide.**\n\nThe CSS-only approach (`edit-hotzone:hover ~ .edit-toggle`) fails because `pointer-events: none` on the toggle button causes the hover chain to break: user hovers hotzone → button becomes visible → mouse moves toward button → leaves hotzone → button disappears before click reaches it.\n\n**Required approach: JS-based hover with delay timeout.**\n\nHTML structure:\n```html\n\u003Cdiv class=\"edit-hotzone\">\u003C\u002Fdiv>\n\u003Cbutton class=\"edit-toggle\" id=\"editToggle\" title=\"编辑模式 (E)\">✏️\u003C\u002Fbutton>\n```\n\nCSS (visibility controlled by JS classes only):\n```css\n\u002F* ⚠️ Do NOT use CSS ~ sibling selector for this!\n   pointer-events: none breaks the hover chain.\n   Must use JS with delay timeout. *\u002F\n.edit-hotzone {\n    position: fixed; top: 0; left: 0;\n    width: 80px; height: 80px;\n    z-index: 10000;\n    cursor: pointer;\n}\n.edit-toggle {\n    opacity: 0;\n    pointer-events: none;\n    transition: opacity 0.3s ease;\n    z-index: 10001;\n}\n\u002F* Only JS-added classes control visibility *\u002F\n.edit-toggle.show,\n.edit-toggle.active {\n    opacity: 1;\n    pointer-events: auto;\n}\n```\n\nJS (all three interaction methods):\n```javascript\n\u002F\u002F 1. Click handler on the toggle button\ndocument.getElementById('editToggle').addEventListener('click', () => {\n    editor.toggleEditMode();\n});\n\n\u002F\u002F 2. Hotzone hover with 400ms grace period\nconst hotzone = document.querySelector('.edit-hotzone');\nconst editToggle = document.getElementById('editToggle');\nlet hideTimeout = null;\n\nhotzone.addEventListener('mouseenter', () => {\n    clearTimeout(hideTimeout);\n    editToggle.classList.add('show');\n});\nhotzone.addEventListener('mouseleave', () => {\n    hideTimeout = setTimeout(() => {\n        if (!editor.isActive) editToggle.classList.remove('show');\n    }, 400);\n});\neditToggle.addEventListener('mouseenter', () => {\n    clearTimeout(hideTimeout);\n});\neditToggle.addEventListener('mouseleave', () => {\n    hideTimeout = setTimeout(() => {\n        if (!editor.isActive) editToggle.classList.remove('show');\n    }, 400);\n});\n\n\u002F\u002F 3. Hotzone direct click\nhotzone.addEventListener('click', () => {\n    editor.toggleEditMode();\n});\n\n\u002F\u002F 4. Keyboard shortcut (E key, skip when editing text)\ndocument.addEventListener('keydown', (e) => {\n    if ((e.key === 'e' || e.key === 'E') && !e.target.getAttribute('contenteditable')) {\n        editor.toggleEditMode();\n    }\n});\n```\n\n### Code Quality Requirements\n\n**Comments:**\nEvery section should have clear comments explaining:\n- What it does\n- Why it exists\n- How to modify it\n\n```javascript\n\u002F* ===========================================\n   CUSTOM CURSOR\n   Creates a stylized cursor that follows mouse with a trail effect.\n   - Uses lerp (linear interpolation) for smooth movement\n   - Grows larger when hovering over interactive elements\n   =========================================== *\u002F\nclass CustomCursor {\n    constructor() {\n        \u002F\u002F ...\n    }\n}\n```\n\n**Accessibility:**\n- Semantic HTML (`\u003Csection>`, `\u003Cnav>`, `\u003Cmain>`)\n- Keyboard navigation works\n- ARIA labels where needed\n- Reduced motion support\n\n```css\n@media (prefers-reduced-motion: reduce) {\n    .reveal {\n        transition: opacity 0.3s ease;\n        transform: none;\n    }\n}\n```\n\n**CSS Function Negation:**\n- Never negate CSS functions directly — `-clamp()`, `-min()`, `-max()` are silently ignored by browsers with no console error\n- Always use `calc(-1 * clamp(...))` instead. See STYLE_PRESETS.md → \"CSS Gotchas\" for details.\n\n**Responsive & Viewport Fitting (CRITICAL):**\n\n**See the \"CRITICAL: Viewport Fitting Requirements\" section above for complete CSS and guidelines.**\n\nQuick reference:\n- Every `.slide` must have `height: 100vh; height: 100dvh; overflow: hidden;`\n- All typography and spacing must use `clamp()`\n- Respect content density limits (max 4-6 bullets, max 6 cards, etc.)\n- Include breakpoints for heights: 700px, 600px, 500px\n- When content doesn't fit → split into multiple slides, never scroll\n\n---\n\n## Phase 4: PPT Conversion\n\nWhen converting PowerPoint files:\n\n### Step 4.1: Extract Content\n\nUse Python with `python-pptx` to extract:\n\n```python\nfrom pptx import Presentation\nfrom pptx.util import Inches, Pt\nimport json\nimport os\nimport base64\n\ndef extract_pptx(file_path, output_dir):\n    \"\"\"\n    Extract all content from a PowerPoint file.\n    Returns a JSON structure with slides, text, and images.\n    \"\"\"\n    prs = Presentation(file_path)\n    slides_data = []\n\n    # Create assets directory\n    assets_dir = os.path.join(output_dir, 'assets')\n    os.makedirs(assets_dir, exist_ok=True)\n\n    for slide_num, slide in enumerate(prs.slides):\n        slide_data = {\n            'number': slide_num + 1,\n            'title': '',\n            'content': [],\n            'images': [],\n            'notes': ''\n        }\n\n        for shape in slide.shapes:\n            # Extract title\n            if shape.has_text_frame:\n                if shape == slide.shapes.title:\n                    slide_data['title'] = shape.text\n                else:\n                    slide_data['content'].append({\n                        'type': 'text',\n                        'content': shape.text\n                    })\n\n            # Extract images\n            if shape.shape_type == 13:  # Picture\n                image = shape.image\n                image_bytes = image.blob\n                image_ext = image.ext\n                image_name = f\"slide{slide_num + 1}_img{len(slide_data['images']) + 1}.{image_ext}\"\n                image_path = os.path.join(assets_dir, image_name)\n\n                with open(image_path, 'wb') as f:\n                    f.write(image_bytes)\n\n                slide_data['images'].append({\n                    'path': f\"assets\u002F{image_name}\",\n                    'width': shape.width,\n                    'height': shape.height\n                })\n\n        # Extract notes\n        if slide.has_notes_slide:\n            notes_frame = slide.notes_slide.notes_text_frame\n            slide_data['notes'] = notes_frame.text\n\n        slides_data.append(slide_data)\n\n    return slides_data\n```\n\n### Step 4.2: Confirm Content Structure\n\nPresent the extracted content to the user:\n\n```\nI've extracted the following from your PowerPoint:\n\n**Slide 1: [Title]**\n- [Content summary]\n- Images: [count]\n\n**Slide 2: [Title]**\n- [Content summary]\n- Images: [count]\n\n...\n\nAll images have been saved to the assets folder.\n\nDoes this look correct? Should I proceed with style selection?\n```\n\n### Step 4.3: Style Selection\n\nProceed to Phase 2 (Style Discovery) with the extracted content in mind.\n\n### Step 4.4: Generate HTML\n\nConvert the extracted content into the chosen style, preserving:\n- All text content\n- All images (referenced from assets folder)\n- Slide order\n- Any speaker notes (as HTML comments or separate file)\n\n---\n\n## Phase 5: Delivery\n\n### Final Output\n\nWhen the presentation is complete:\n\n1. **Clean up temporary files**\n   - Delete `.claude-design\u002Fslide-previews\u002F` if it exists\n\n2. **Open the presentation**\n   - Use `open [filename].html` to launch in browser\n\n3. **Provide summary**\n```\nYour presentation is ready!\n\n📁 File: [filename].html\n🎨 Style: [Style Name]\n📊 Slides: [count]\n\n**Navigation:**\n- Arrow keys (← →) or Space to navigate\n- Scroll\u002Fswipe also works\n- Click the dots on the right to jump to a slide\n\n**To customize:**\n- Colors: Look for `:root` CSS variables at the top\n- Fonts: Change the Fontshare\u002FGoogle Fonts link\n- Animations: Modify `.reveal` class timings\n\nWould you like me to make any adjustments?\n```\n\nIf the user opted in to inline editing, also include:\n```\n**Editing:**\n- Hover over top-left corner or press E to enter edit mode\n- Click any text to edit directly\n- Ctrl+S or click \"Save file\" to save changes\n```\n\n---\n\n## Style Reference: Effect → Feeling Mapping\n\nUse this guide to match animations to intended feelings:\n\n### Dramatic \u002F Cinematic\n- Slow fade-ins (1-1.5s)\n- Large scale transitions (0.9 → 1)\n- Dark backgrounds with spotlight effects\n- Parallax scrolling\n- Full-bleed images\n\n### Techy \u002F Futuristic\n- Neon glow effects (box-shadow with accent color)\n- Particle systems (canvas background)\n- Grid patterns\n- Monospace fonts for accents\n- Glitch or scramble text effects\n- Cyan, magenta, electric blue palette\n\n### Playful \u002F Friendly\n- Bouncy easing (spring physics)\n- Rounded corners (large radius)\n- Pastel or bright colors\n- Floating\u002Fbobbing animations\n- Hand-drawn or illustrated elements\n\n### Professional \u002F Corporate\n- Subtle, fast animations (200-300ms)\n- Clean sans-serif fonts\n- Navy, slate, or charcoal backgrounds\n- Precise spacing and alignment\n- Minimal decorative elements\n- Data visualization focus\n\n### Calm \u002F Minimal\n- Very slow, subtle motion\n- High whitespace\n- Muted color palette\n- Serif typography\n- Generous padding\n- Content-focused, no distractions\n\n### Editorial \u002F Magazine\n- Strong typography hierarchy\n- Pull quotes and callouts\n- Image-text interplay\n- Grid-breaking layouts\n- Serif headlines, sans-serif body\n- Black and white with one accent\n\n---\n\n## Animation Patterns Reference\n\n### Entrance Animations\n\n```css\n\u002F* Fade + Slide Up (most common) *\u002F\n.reveal {\n    opacity: 0;\n    transform: translateY(30px);\n    transition: opacity 0.6s var(--ease-out-expo),\n                transform 0.6s var(--ease-out-expo);\n}\n\n.visible .reveal {\n    opacity: 1;\n    transform: translateY(0);\n}\n\n\u002F* Scale In *\u002F\n.reveal-scale {\n    opacity: 0;\n    transform: scale(0.9);\n    transition: opacity 0.6s, transform 0.6s var(--ease-out-expo);\n}\n\n\u002F* Slide from Left *\u002F\n.reveal-left {\n    opacity: 0;\n    transform: translateX(-50px);\n    transition: opacity 0.6s, transform 0.6s var(--ease-out-expo);\n}\n\n\u002F* Blur In *\u002F\n.reveal-blur {\n    opacity: 0;\n    filter: blur(10px);\n    transition: opacity 0.8s, filter 0.8s var(--ease-out-expo);\n}\n```\n\n### Background Effects\n\n```css\n\u002F* Gradient Mesh *\u002F\n.gradient-bg {\n    background:\n        radial-gradient(ellipse at 20% 80%, rgba(120, 0, 255, 0.3) 0%, transparent 50%),\n        radial-gradient(ellipse at 80% 20%, rgba(0, 255, 200, 0.2) 0%, transparent 50%),\n        var(--bg-primary);\n}\n\n\u002F* Noise Texture *\u002F\n.noise-bg {\n    background-image: url(\"data:image\u002Fsvg+xml,...\"); \u002F* Inline SVG noise *\u002F\n}\n\n\u002F* Grid Pattern *\u002F\n.grid-bg {\n    background-image:\n        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),\n        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);\n    background-size: 50px 50px;\n}\n```\n\n### Interactive Effects\n\n```javascript\n\u002F* 3D Tilt on Hover *\u002F\nclass TiltEffect {\n    constructor(element) {\n        this.element = element;\n        this.element.style.transformStyle = 'preserve-3d';\n        this.element.style.perspective = '1000px';\n        this.bindEvents();\n    }\n\n    bindEvents() {\n        this.element.addEventListener('mousemove', (e) => {\n            const rect = this.element.getBoundingClientRect();\n            const x = (e.clientX - rect.left) \u002F rect.width - 0.5;\n            const y = (e.clientY - rect.top) \u002F rect.height - 0.5;\n\n            this.element.style.transform = `\n                rotateY(${x * 10}deg)\n                rotateX(${-y * 10}deg)\n            `;\n        });\n\n        this.element.addEventListener('mouseleave', () => {\n            this.element.style.transform = 'rotateY(0) rotateX(0)';\n        });\n    }\n}\n```\n\n---\n\n## Troubleshooting\n\n### Common Issues\n\n**Fonts not loading:**\n- Check Fontshare\u002FGoogle Fonts URL\n- Ensure font names match in CSS\n\n**Animations not triggering:**\n- Verify Intersection Observer is running\n- Check that `.visible` class is being added\n\n**Scroll snap not working:**\n- Ensure `scroll-snap-type` on html\u002Fbody\n- Each slide needs `scroll-snap-align: start`\n\n**Mobile issues:**\n- Disable heavy effects at 768px breakpoint\n- Test touch events\n- Reduce particle count or disable canvas\n\n**Performance issues:**\n- Use `will-change` sparingly\n- Prefer `transform` and `opacity` animations\n- Throttle scroll\u002Fmousemove handlers\n\n---\n\n## Related Skills\n\n- **learn** — Generate FORZARA.md documentation for the presentation\n- **frontend-design** — For more complex interactive pages beyond slides\n- **design-and-refine:design-lab** — For iterating on component designs\n\n---\n\n## Example Session Flow\n\n1. User: \"I want to create a pitch deck for my AI startup\"\n2. Skill asks about purpose, length, content, and images (single form)\n3. User shares bullet points, selects `.\u002Fassets` folder\n4. **Evaluate:** Skill views each image (multimodal), builds slide outline with image assignments:\n   - `logo.png` → USABLE → title\u002Fclosing slide\n   - `chat_ui.png` → USABLE → feature slide\n   - `dashboard.png` → USABLE → feature slide\n   - `launch_card.png` → USABLE → feature slide\n   - `blurry_team.jpg` → NOT USABLE (too low resolution)\n5. User confirms outline via AskUserQuestion\n6. Skill asks about desired feeling (Impressed + Excited)\n7. Skill generates 3 style previews\n8. User picks Style B (Neon Cyber)\n9. **Process + Generate:** Skill runs Pillow operations (circular crop, resize), generates full presentation with direct image paths\n10. Skill opens the presentation in browser\n11. User requests tweaks to specific slides\n12. Final presentation delivered\n\n---\n\n## Conversion Session Flow\n\n1. User: \"Convert my slides.pptx to a web presentation\"\n2. Skill extracts content and images from PPT\n3. Skill confirms extracted content with user\n4. Skill asks about desired feeling\u002Fstyle\n5. Skill generates style previews\n6. User picks a style\n7. Skill generates HTML presentation with preserved assets\n8. Final presentation delivered\n",{"name":5,"description":7},"main","4c174e06a831864e98c30f630a7aa6c04738b094","skills\u002F_intake\u002Fgithub\u002FBunsDev\u002Ffrontend-slides-skills\u002Ffrontend-slides-skills","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules","https:\u002F\u002Fgithub.com\u002Fmhyahya854","2026-11-06 02:03:37",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add mhyahya854\u002FAI-Second-Brain_Universal-Rules --skill frontend-slides",{"tool":36,"command":37},"bunx","bunx skills add mhyahya854\u002FAI-Second-Brain_Universal-Rules --skill frontend-slides",{"tool":39,"command":40},"pnpm","pnpm dlx skills add mhyahya854\u002FAI-Second-Brain_Universal-Rules --skill frontend-slides","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002FBunsDev\u002Ffrontend-slides-skills\u002Ffrontend-slides-skills\u002FSKILL.md",true,[44,48],{"path":45,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":15},"LICENSE","许可证",1067,{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"README.md","REFERENCE","参考文档",4689,"https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002FBunsDev\u002Ffrontend-slides-skills\u002Ffrontend-slides-skills\u002FREADME.md",[55,61,69,77,84,91],{"skillNo":56,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":57,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7EX4T721AAH60R0239P8WBZ","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fzarazhangrui\u002Ffrontend-slides\u002Ffrontend-slides\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fzarazhangrui\u002Ffrontend-slides\u002Ffrontend-slides\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":65,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7EX495RSHTTCEJVX7C83FA3","design-dna","Extract, define, and apply design DNA across three dimensions: design system (tokens), design style (qualitative feel), and visual effects (Canvas, WebGL, 3D, particles, shaders, scroll effects, etc.). Use this skill when: (1) a user wants to see the full 3-dimension design structure\u002Fschema, (2) a user provides images, screenshots, or URLs of reference designs and wants them analyzed into a structured JSON profile covering all three dimensions, (3) a user has a Design DNA JSON and content and wants a design generated from it, or (4) any combination of these phases. Triggers on \"design DNA\", \"extract design style\", \"analyze design\", \"design tokens from reference\", \"generate design from JSON\", \"design system from screenshot\", \"design profile\", \"style guide JSON\", \"visual effects analysis\", \"design with effects\", \"3d design analysis\".","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fzanwei\u002Fdesign-dna\u002Fdesign-dna\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fzanwei\u002Fdesign-dna\u002Fdesign-dna\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":73,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7EX45RF2XZKRC3KDJDTT1PH","wireframe","Generate JSON wireframe with HTML preview","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fyhassy\u002Fwireframe-skill\u002Fwireframe-skill\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fyhassy\u002Fwireframe-skill\u002Fwireframe-skill\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7EWZEM3MHD48AYSYFR2C9JP","social-publishing","Schedule and publish social media posts across 13 platforms (X, LinkedIn, Instagram, Facebook Pages, TikTok, Discord, Telegram, YouTube, Reddit, WordPress, Pinterest) via the SocialClaw API. Use when the user wants to publish, schedule, or manage social media content programmatically. Requires SOCIALCLAW_API_KEY.","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fwshobson\u002Fagents\u002Fsocial-publishing\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7EWKDEK9840C728VXT78EQ9","hermes-tweet","Install and operate Hermes Tweet, a Hermes Agent plugin for X\u002FTwitter research, timeline reading, tweet analysis, and approval-gated private or state-changing operations. Use this skill when installing Hermes Tweet, researching X\u002FTwitter accounts, monitoring launch signals, investigating mentions, auditing giveaways, or preparing gated X operations. Use proactively when a Hermes Agent workflow needs current X\u002FTwitter context. Requires XQUIK_API_KEY for read and action tools.","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fwshobson\u002Fagents\u002Fhermes-tweet\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M7EWASXP3NZWW95CJPT2CRWN","refactoring-ui","Audit and fix visual hierarchy, spacing, color, and depth in web UIs. Use when the user mentions \"my UI looks off\" (or amateur\u002Funprofessional), \"fix the design\", \"Tailwind styling\", \"color palette\", \"visual hierarchy\", \"design system\", \"spacing scale\", or \"component styling\". Also trigger when building consistent design tokens, creating dark mode themes, improving data-visualization clarity, or polishing UI details before launch. Covers grayscale-first workflow, constrained design scales, shadows, and component styling. For typeface selection, see web-typography. For usability audits, see ux-heuristics.","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fwondelai\u002Fskills\u002Frefactoring-ui\u002FSKILL.md",[],[]]