用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/exiao/skills --skill frontend-slides命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use when generating hooks, headlines, titles, and scroll-stopping openers for content. Also use when analyzing viral posts, Reels, TikToks, YouTube Shorts, or successful social examples to extract reusable hook patterns and improve hook guidance.
Verify a code change actually works by building/running the app and observing it at its real surface (CLI, API, UI, library, agent), capturing runtime evidence rather than trusting tests. Make sure to use this skill whenever the user has changed code and wants to know it works, is about to merge/push and wants confidence, says "did this actually work", "verify this works", "prove it works", "confirm the change", "make sure it works", wants runtime evidence, or is re-running tests / importing-and-calling just to check behavior, even if they never say the word "verify". When in doubt after any code change, reach for this. For post-deploy production health checks use verify-deploy; for static correctness/quality review use simplify or code-review.
Test an interactive lesson/course (or any "instructions to an AI" skill) by self-play. An agent plays BOTH the instructor following the lesson script AND a calibrated student persona, producing full turn-by-turn transcripts of every lesson, then publishes the raw transcripts to a single static page. Use when asked to "run lesson transcripts", "test the course end to end", "self-play the lessons", "publish raw test transcripts", "walk a synthetic student through every lesson", or to QA an interactive-instruction skill by actually running it rather than just reviewing findings. Distinct from dogfood and adversarial-ux-test (web-app browser QA) and synthetic-userstudies (findings plus a few cherry-picked transcripts). This one captures the COMPLETE run of every lesson and ships them all raw.
基于 SOC 职业分类
正在显示 SKILL.md
| name | frontend-slides |
| description | Use when creating animation-rich HTML presentations or convert PPT to web. |
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.
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 |
.html file. Include keyboard nav, swipe support, progress bar..html file; all CSS/JS inline<section class="slide"> per slide:root { --accent: ...; --title-size: clamp(...); }) for easy themingSlidePresentation JS class: keyboard nav (arrows, space), touch/swipe, mouse wheel, progress bar, nav dotsIntersectionObserver for scroll-triggered .reveal animationsEvery presentation needs:
IntersectionObserverOptional enhancements (based on chosen style): custom cursor, particle backgrounds, parallax, 3D tilt, magnetic buttons, counter animations.
<section>, <nav>, <main>)prefers-reduced-motion supportThe Golden Rule: Each slide = exactly one viewport height (100vh/100dvh). Content overflows? Split into multiple slides. Never allow scrolling within a slide.
html { scroll-snap-type: y mandatory; height: 100%; }
body { height: 100%; overflow-x: hidden; }
.slide {
width: 100vw;
height: 100vh;
height: 100dvh; /* 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);
}
| 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.
@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 */ }
.slide has height: 100vh; height: 100dvh; overflow: hidden;clamp()clamp() or viewport unitsmax-height constraintsmax-height: min(50vh, 400px)auto-fit with minmax()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).
This skill content is modularized into reference docs for readability.