生活与工具
#web
frontend-slides
Use when creating animation-rich HTML presentations or convert PPT to web.
DeepseekModel
官方收录技能
质量 良好 · 64
v1.0.0
获取
https://deepseekmodel.com/api/download.php?id=exiao-skills-design-frontend-slides-skill-md&format=skill
下载 .skill
标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name frontend-slides description Use when creating animation-rich HTML presentations or convert PPT to web. Frontend Slides Skill Create 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. Core Philosophy Zero Dependencies — Single self-contained HTML files. No npm, no build tools. Show, Don't Tell — Generate visual previews; people don't know what they want until they see it. Distinctive Design — Avoid generic "AI slop" aesthetics. Every deck should feel custom-crafted. Production Quality — Well-commented, accessible, performant code. Viewport Fitting (NON-NEGOTIABLE) — Every slide MUST fit exactly in the viewport. No scrolling within slides. Ever. Phase 0: Detect Mode First Before anything else, identify which mode applies: Mode Trigger Go to A: New Presentation Creating from scratch Phase 1 (Content Discovery) B: PPT Conversion User has a .ppt/.pptx file Phase 4 (PPT Extraction) C: Enhancement Existing HTML presentation to improve Read file → enhance Core Workflow (New Presentation) Phase 1 — Content Discovery: Extract topic, key messages, audience, tone, slide count. Phase 2 — Style Discovery: Generate 3 visual thumbnails (different aesthetics). User picks or mixes. Never ask abstract style questions. Phase 3 — Generate Presentation: Build the full HTML file based on content + chosen style. Phase 4 (if PPT) — Extract & Convert: Parse PPTX structure, preserve layout intent, elevate with web animations. Phase 5 — Deliver: Output as a single .html file. Include keyboard nav, swipe support, progress bar. Generating the Presentation (Phase 3) Required HTML Architecture One .html file; all CSS/JS inline <section class="slide"> per slide CSS custom properties ( :root { --accent: ...; --title-size: clamp(...); } ) for easy theming SlidePresentation JS class: keyboard nav (arrows, space), touch/swipe, mouse wheel, progress bar, nav dots IntersectionObserver for scroll-triggered .reveal animations Required JavaScript Features Every presentation needs: Keyboard navigation (← → Space) Touch/swipe support Mouse wheel navigation Progress bar updates Navigation dots Scroll-triggered animations via IntersectionObserver Optional enhancements (based on chosen style): custom cursor, particle backgrounds, parallax, 3D tilt, magnetic buttons, counter animations. Code Quality Comment every section: what it does, why, how to modify Semantic HTML ( <section> , <nav> , <main> ) ARIA labels where needed prefers-reduced-motion support CRITICAL: Viewport Fitting Requirements The Golden Rule: Each slide = exactly one viewport height ( 100vh / 100dvh ). Content overflows? Split into multiple slides. Never allow scrolling within a slide. Mandatory CSS for Every Presentation html { scroll-snap-type : y mandatory; height : 100% ; } body { height : 100% ; overflow-x : hidden; } .slide { width : 100vw ; height : 100vh ; height : 100 dvh; /* mobile browsers */ overflow : hidden; /* CRITICAL */ scroll-snap-align : start; display : flex; flex-direction : column; position : relative; } /* ALL typography and spacing must use clamp() */ :root { --title-size : clamp ( 1.5rem , 5vw , 4rem ); --body-size : clamp ( 0.75rem , 1.5vw , 1.125rem ); --slide-padding : clamp ( 1rem , 4vw , 4rem ); } Content Density Limits (per slide) Slide Type Max Content Title 1 heading + 1 subtitle + optional tagline Content 1 heading + 4–6 bullets OR 2 paragraphs Feature grid 1 heading + 6 cards max Code 1 heading + 8–10 lines Quote 1 quote (3 lines max) + attribution Image 1 heading + 1 image (max 60vh) If content exceeds limits → split into multiple slides, never scroll. Responsive Breakpoints Required @media ( max-height : 700px ) { /* reduce padding + font sizes */ } @media ( max-height : 600px ) { /* hide decorative elements */ } @media ( max-height : 500px ) { /* extra compact for landscape phones */ } @media ( max-width : 600px ) { /* stack grids, larger font scale */ } Pre-Generation Checklist ✅ Every .slide has height: 100vh; height: 100dvh; overflow: hidden; ✅ All font sizes use clamp() ✅ All spacing uses clamp() or viewport units ✅ Content containers have max-height constraints ✅ Images constrained to max-height: min(50vh, 400px) ✅ Grids use auto-fit with minmax() ✅ Breakpoints for heights: 700px, 600px, 500px Output Format A single self-contained presentation.html file (or [name].html ) with all CSS/JS inline. No external dependencies except optional web fonts (Fontshare/Google Fonts). References This skill content is modularized into reference docs for readability. Core Philosophy CRITICAL: Viewport Fitting Requirements Phase 0: Detect Mode Phase 1: Content Discovery (New Presentations) Phase 2: Style Discovery (Visual Exploration) Phase 3: Generate Presentation Phase 4: PPT Conversion Phase 5: Delivery Style Reference: Effect → Feeling Mapping Animation Patterns Reference Troubleshooting Related Skills Example Session Flow Conversion Session Flow Adding Slides from Images — recreating screenshot visuals as inline SVG/HTML, slide critique workflow, Surge deploy tips Existing Surge Deck Enhancement — backup-first workflow, Google Slides visual extraction, localhost/live verification, screenshot delivery, and pitfalls for editing deployed HTML decks Live Demo Strategy — selecting, sequencing, and framing live demos in decks; the "toy vs factory" anti-pattern; risk management; slide structure for demo slides
Agent 识别该技能的关键词,点击任意一个即可复制。
该技能未提供触发词。
下载的 .skill 包内含以下字段。
| 字段 | 说明 |
|---|---|
| format | 格式标识(skill/v1) |
| skill_id | 技能唯一 ID |
| name | 技能名称 |
| version | 版本号 |
| description | 技能描述 |
| category | 所属分类(数组) |
| trigger_words | 触发词列表 |
| tags | 标签列表 |
| source | 来源标识 |
| source_url | 来源链接(本页地址) |
| exported_at | 导出时间(每次下载生成) |
| system_prompt | 系统提示词正文 |
| model_config | 模型参数:provider / model / temperature / max_tokens / top_p |
| examples | 示例 |
| install_guide | 各平台导入说明(Coze / Dify / Claude / 自定义框架) |