Communitygithub.com

视频转超级提示词

将参考视频转化为极其详细的复刻或灵感提示词。适用于用户提供、上传、链接或指向视频,并要求分析其设计、UI、动画、过渡、滚动交互、排版、色彩、素材、WebGL/Three.js、叙事、逐段行为,或创建用于复刻页面、应用、交互或动效系统的提示词/文章。

视频转超级提示词 是什么?

此技能旨在将任何可用的参考视频转化为构建器就绪的提示词。它首先定位视频源(支持本地路径、上传文件、URL、浏览器可见视频、文章素材或仓库媒体),然后通过 `ffprobe` 和 `ffmpeg` 进行技术检测,提取关键帧。接着,技能会分层次分析视频:故事叙事、屏幕/布局、动效、视觉设计、技术复刻方案以及无障碍/性能要求。基于此,它生成一个包含素材映射的超级提示词,明确指出是精确复刻还是灵感改编。该提示词会详细指定每个部分的用途、布局、视觉细节、动画、交互、滚动行为、所用库/API 以及减少动效的降级方案,避免使用模糊的描述。该技能支持多种输出模式:仅提示词、文章、实施简报或素材生成包,并适用于 Claude Code、Cursor 以及任何基于 Markdown 的 AI 代理。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/MengTo/Skills/tree/HEAD/agent-skills/codex/video-to-superprompt

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

视频转超级提示词 是做什么的?

目标

将任何可用的参考视频转换为构建器就绪的提示词,该提示词能够捕捉视频所展示的内容、运动方式、应如何重建以及所需的素材或生成媒体。默认输出是一个可直接粘贴的提示词,除非用户要求生成文章、素材包或实现方案。

工作流程

  1. 定位源视频。

    • 接受本地路径、上传文件、URL、浏览器可见视频、文章素材或仓库媒体。
    • 如果视频被引用但无法访问,请在编造细节之前询问确切的文件或 URL。
    • 如果用户希望精确复刻,请在编写提示词之前检查与视频相关的任何源 HTML/CSS/JS 或本地页面。
  2. 技术检测视频。

    • 对于本地文件,运行 ffprobe 获取时长、尺寸、帧率、编码和大小。
    • 使用 ffmpeg 提取代表性帧,偏好于时间线节拍而非均匀缩略图。
    • 建议的快速通道:
      ffprobe -v error -show_entries format=duration,size:stream=width,height,r_frame_rate -of json "$VIDEO"
      mkdir -p /tmp/video-frames
      ffmpeg -y -i "$VIDEO" -vf fps=1 /tmp/video-frames/frame-%03d.jpg
      
    • 对于长视频或滚动密集的视频,还需提取开始/中间/结束帧以及可见的过渡时刻。
  3. 分层分析。

    • 故事:页面/应用目的、情感弧线、章节顺序、节拍之间的过渡。
    • 屏幕/布局:视口构图、网格、粘性区域、卡片、媒体、覆盖层、边距、导航、页脚。
    • 动效:显示时机、缓动、视差、遮罩、固定部分、滚动擦洗、悬停/点击状态、循环环境动效、摄像机移动。
    • 视觉设计:排版、配色方案、表面、边框、阴影、纹理、图标、图片/视频处理。
    • 技术复刻:CSS/原生 API、IntersectionObserver、Web Animations API、GSAP ScrollTrigger、Lenis、Framer Motion/Motion One、Three.js/WebGL、Canvas、video.currentTime 擦洗、轮播或其他领域库。
    • 可访问性/性能:减少动效、移动端行为、触摸/键盘状态、懒加载、视频预加载、像素比限制、静态降级。
  4. 规划素材。

    • 生成素材映射。包含提供的确切 URL、使用的本地文件名或尚需生成的占位符名称。
    • 如果需要 AI 素材,为图片板、视频剪辑、WebGL/Canvas 元素、海报、精灵、遮罩和纹理覆盖层分别创建提示词。
    • 如果用户指定了特定的模型或 API,请在提示词中精确保留它们,并将图片提示词与视频提示词分开。
  5. 编写超级提示词。

    • 使用单个围栏 text 块来存放可直接粘贴的提示词,除非用户要求其他格式。
    • 以最终要构建的目标和参考范围开头:精确复刻还是灵感改编。
    • 包含:素材映射、品牌/内容、全局设计语言、布局规则、逐节解剖、动效系统、滚动系统、视频行为、WebGL/Three.js 行为、响应式要求、可访问性/性能以及反模式。
    • 对于每个主要部分,指定用途、布局、视觉细节、动画、交互、滚动行为、库/API 选择以及减少动效的降级方案。
    • 避免使用模糊的短语,如“使其美观”、“类似动画”或“漂亮的过渡”。将品味转化为具体的构建指令。
  6. 在最终确定前进行验证。

    • 检查提示词中的所有素材路径/URL 是否存在,或明确标记为占位符。
    • 如果创建了截图/帧,请确认文件非空且具有代表性。
    • 如果编写文章或仓库工件,请遵循本地工作区指令,保持脏工作树暂存范围狭窄,并在需要时提交。

输出模式

  • 仅提示词: 提供可直接粘贴的提示词,并在需要时在其上方附加一个简短的素材映射。
  • 文章: 创建 content.md 以及本地帧/视频证据、清单和提示词。遵循当前仓库的文章约定。
  • 实施简报: 在提示词后添加构建计划和 QA 检查清单。
  • 素材生成包: 将提示词拆分为背景图片、视频剪辑、精灵/WebGL、海报和最终页面提示词。

质量标准

  • 提示词应足够长,以便无需观看原始视频即可重新构建交互。
  • 应保留视频的序列、节奏和显著特点。
  • 应明确指出具体的动效机制:固定部分、擦洗时间线、video.currentTime、视差层、不透明度显示、变换、遮罩、着色器、粒子场、悬停状态或轮播物理效果。
  • 每次都应包含移动端行为和减少动效行为。
  • 应指出需要避免的内容,尤其是通用的着陆页面部分、装饰性斑点、不匹配的库存媒体、需要滚动擦洗时仅自动播放的视频以及文本重叠。

参考

  • 在从头编写最终提示词或用户要求“完整详细提示词”时,阅读 references/superprompt-template.md。

Individual skills in this repo

This repo contains 9 individual skills — each has its own dedicated page.

MengTo/Skills

Create polished 60 fps 4:3 4K browser screen-recording style videos from Codex in-app browser captures, with browser-only crop, natural macOS cursor styling, deliberate click choreography, zoom-follow framing, ffprobe/thumbnail verification, and optional native recording compatibility checks. Use when the user asks to record or re-record browser actions, show cursor clicks and zooms, make Dribbble/UI inspiration or product demo recordings, or asks whether Codex, Playwright, or an MCP can produce a natural browser demo video.

MengTo/Skills

Generate ElevenLabs text-to-speech audio from scripts or inline text using local voice profiles. Use when the user asks for ElevenLabs, text-to-speech, TTS, narration, voiceover, speech audio, or voice generation; load voice names, voice ids, emails, owners, and account-specific defaults only from local config outside the skill.

MengTo/Skills

Profile, audit, and optimize frontend page performance with emphasis on animation work, memory-leak risks, long-session slowdowns, CSS animations, canvas/WebGL requestAnimationFrame loops, marquees, skeletons, GSAP/Three/Matter effects, timers, listeners, and observers. Use when the user asks to make animations performant, pause offscreen animations, look for memory leaks, profile pages that slow the computer over time, fix janky scrolling, reduce CPU/GPU use, or repeat the "only play in view" optimization on React/Vite/Next/frontend pages using Codex Browser.

MengTo/Skills

Create an on-scroll animation trigger using IntersectionObserver with Tailwind-friendly animation classes and keyframes. Use when asked for scroll-reveal, animate-on-scroll, or sequencing element animations when they enter the viewport.

MengTo/Skills

Use when designing or implementing product-grade web motion like Stripe, Linear, Apple, and Vercel. Covers motion principles, easing/duration defaults, choreography patterns, scroll/hover interactions, performance, accessibility (reduced motion), and implementation guidance.

MengTo/Skills

Create premium cinematic web motion systems with GSAP, ScrollTrigger, and Lenis. Use for luxury editorial websites, creative studio portfolios, Awwwards-style interactions, smooth scroll reveals, staggered text, parallax, pinned sections, magnetic hover states, custom cursors, and mouse-reactive layered movement.

MengTo/Skills

Create cinematic scroll-driven landing pages with Lenis smooth scrolling, GSAP ScrollTrigger, scroll-linked progression, staggered text reveals, sticky card stacks, parallax backgrounds, scroll-scrubbed transitions, footer reveals, and immersive preloaders. Use when analyzing or building premium editorial scroll experiences, sticky project stacks, kinetic typography, or section-by-section storytelling.

MengTo/Skills

Use when designing or rewriting a high-converting SaaS pricing page (structure, plan design, copywriting, SEO/AEO, FAQs, layout patterns, experiments). Includes checklists, templates, and common pitfalls.

MengTo/Skills

Use when creating or refining WebGL-heavy landing pages and you need to steer toward a specific visual outcome (premium, technical, playful, cinematic) while balancing conversion clarity, performance, and implementation complexity.

相关技能