Communitygithub.com

影片轉超級提示詞

將參考影片轉換為超詳細的重現或靈感提示詞。當使用者提供、提及、上傳、連結或指向影片,並要求分析其設計、UI、動畫、轉場、滾動互動、排版、色彩、素材、WebGL/Three.js、敘事結構、分段行為,或建立可重現該頁面、應用程式、互動或動態系統的提示詞/文章時使用。

影片轉超級提示詞 是什麼?

這是一個將參考影片轉換為建構就緒提示詞(超級提示詞)的技能,旨在幫助開發者或AI代理精確重現或從影片中獲得靈感。它支援多種影片來源(本地路徑、上傳檔案、URL、瀏覽器中可見的影片等),並透過ffprobe與ffmpeg工具進行技術檢測,提取持續時間、解析度、幀率等關鍵資訊,並擷取代表性影格。技能要求進行多層次分析,涵蓋故事、畫面佈局、動態系統、視覺設計、技術重建方案、無障礙與效能考量,並最終生成一個名確的資產映射表與單一貼上就緒的提示區塊。預設輸出為提示詞,但也可切換為文章、實作簡報或資產生成包等模式。此技能適用於任何需要從影片中擷取設計、互動或動態系統細節的場景,並透過具體的建構指令避免模糊描述,確保提示詞的品質與可執行性。

相容平台~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 區塊作為可貼上的提示詞,除非使用者要求其他格式。
    • 從最終要建構的內容和參考邊界開始:精確重現 vs 啟發式改編。
    • 包含:素材映射表、品牌/內容、全域設計語言、佈局規則、逐區解剖、動態系統、滾動系統、影片行為、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.

相關技能