html-to-interaction-prompts
它能做什么
这个技能读取 HTML 页面或实时参考页面,并撰写描述其关键交互和动画的提示词。适合希望解释页面行为方式的作者和开发者。
适用场景
- ✓你有一个 HTML 文件,并希望把它的动画描述为提示词的时候。
- ✓你想在文章中为每个交互附上截图的时候。
- ✓你想把网页的行为转换为可复用说明的时候。
技能链接
https://github.com/MengTo/Skills/blob/main/agent-skills/codex/html-to-interaction-prompts/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把这个 HTML 页面转换为一组交互提示词,并为每一条附上截图。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会找出重要的交互,截取对应的截图,并为每项撰写灵活的提示词。完成前,它会检查文章能否正确显示。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
HTML To Interaction Prompts
Goal
Turn an HTML reference into an article-ready prompt pack: identify the important interactions, capture the right visual evidence, write flexible prompts, insert screenshots under each prompt title, verify the article renders, and commit only the intended files.
Daily UI Inspiration Capture Contract
When this skill is used for a daily UI inspiration workflow:
- Each daily inspiration article must contain exactly 5 inspirations, not 20.
- Do not ship a screenshot gallery or append 20 shallow prompts.
- Each of the 5 inspirations must include a representative local still image, an embedded local MP4 video, multiple local screenshots or motion frames, motion/interaction notes, source metadata, and one super detailed AI-builder prompt.
- If the source is a Framer template or any other live website, record the actual landing page or preview URL while scrolling through the website itself. A marketplace cover image, thumbnail, screenshot pan, or static asset slideshow is not acceptable live-video evidence.
- For Framer, inspect the marketplace detail page for
Full Live Previewor the embeddedpreviewUrl, save that URL aspageUrl, and record the MP4 from that page. - For live websites, save one full landing-page scroll screenshot as a single tall image. Then cut section-by-section screenshots from that exact full image so the article includes both the whole page and each section separately.
- Section crops must be contiguous and pixel-complete relative to the full-page image. Do not miss pixels between sections, do not use arbitrary viewport screenshots as section substitutes, and only allow overlap when sticky elements make it unavoidable.
- Include as many section crops as the page has meaningful sections. At minimum include the hero, each major middle section in page order, and the footer. Use purpose-based labels when possible, such as
proof,features,process,gallery,pricing,faq, orfinal-cta; otherwise use ordered labels likesection-02. - In
content.md, match the established daily capture article structure from recent examples. Use### Full-Page And Section Evidence, render the full-page screenshot as a normal Markdown image, then use#### Section Cropsand render each crop as a normal Markdown image in top-to-bottom order. Do not rename this block toLocal Evidence, do not use text links, filename lists, Markdown tables, raw HTML grids, or crop-coordinate captions for this block. - Do not put crop-coordinate captions under screenshots in
content.md; keep crop coordinate details inmanifest.json. - Extract multiple motion frames from the live website video. The frames should show real page states across scroll, not repeated crops of the same cover image.
- If live capture is blocked, prefer replacing the candidate with another live website. Only create a local fallback video from still evidence when replacement is impossible or the source is image-only, and state the fallback reason in
content.mdandmanifest.json. - The prompt for each inspiration should be long enough to paste into an AI builder directly. It should include reference boundaries, anti-patterns, core idea, design system, layout rules, motion system, section-by-section anatomy, conversion/footer, responsive behavior, accessibility, performance, and reduced-motion guidance.
- Each prompt must describe the landing page section by section. Cover the global shell, header/navigation, hero, proof strip, feature/service modules, product/demo/media section, process/how-it-works, gallery/case-study/work section when present, testimonials/social proof, pricing/package/comparison when present, FAQ, final CTA, footer, and mobile behavior.
- For every major section, specify the purpose, layout anatomy, visual details, animation, interaction states, scroll behavior, recommended implementation library/API, and reduced-motion fallback.
- For Framer/live websites, each prompt must include a
Live-site evidencenote explaining that the still, MP4, and frames were captured from the actualpageUrl, not from a cover image. - The manifest must have
itemCount: 5and exactly 5items. - Keep all media inside
articles/YYYY-MM-DD-ui-inspiration-capture/.
Workflow
- Inspect the real source first.
- Read the HTML, CSS, and scripts. Search for interaction terms such as
mousemove,pointermove,canvas,webgl,ScrollTrigger,requestAnimationFrame,hover,sticky,pin
- Read the HTML, CSS, and scripts. Search for interaction terms such as
常见问题
它需要什么样的输入?
一个 HTML 文件、导出的页面,或可以打开的实时页面。
它包括截图吗?
包括。它会截取截图,并把截图放在每条提示词的标题下。
它会替我提交文件吗?
技能说明只提交预定的文件,以免无关的改动被一并提交。
详情
作者的原始描述
Convert a supplied HTML page or generated HTML reference into a screenshot-backed article containing multiple reusable interaction prompts. Use when the user provides an HTML file, exported page, generated-page.html, or local/live reference and asks to extract animation/interactions, create prompts, capture screenshots for each prompt, add them to an article, or commit the resulting article/assets.
repo: MengTo/Skills
热度
- GitHub 星标
- 7.2k
- 排名
- #13336
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …
同一仓库的更多技能
3d-cloth-material
7.2k帮你的智能体在 Three.js 中制作逼真的编织织物,包括纱线编织纹理、柔和光泽、自然褶皱、下摆和缝线。
3d-falling-leaves
7.2k帮你的智能体在 3D 场景中添加逼真的飘落树叶,树叶会翻滚、随风飘动,并在镜头移动时循环利用。
3d-four-seasons
7.2k帮你的智能体为 3D 场景添加春夏秋冬四季效果,无需重建场景即可改变植被、光线、天空和积雪。
3d-high-poly-models
7.2k帮你的智能体构建形状平滑、边缘可信的精细 3D 模型,然后制作在网页上运行流畅的轻量版本。