Communitygithub.com

NeverSight/learn-skills.dev

用於前端/UI 建置、重新設計、潤飾或擴充。在開始編碼前,先產生 UI 參考圖片,然後緊密貼合該圖片,而非憑空創造新方向。

learn-skills.dev 是什麼?

這個技能專為任何涉及前端介面的任務而設計,無論是新建畫面、頁面、元件集合、儀表板、登陸頁面、應用程式外殼、對話 UI 或其他可見的互動式介面。其核心哲學在於「以圖為準」——將生成的參考圖片視為設計的唯一事實來源,而非僅供靈感參考的 moodboard。在迭代既有 UI 時,它會先收集現有截圖作為約束條件,並在符合產品延續性的前提下進行修改。技能要求開發者在編寫任何前端程式碼之前,使用內建的 `imagegen` 工具生成設計參考圖,並將其佈局、層級、間距、字體、色彩關係與資產位置忠實地轉譯為實際程式碼。它提供了一套嚴謹的工作流程:從需求分析、圖片生成、視覺摘要撰寫、分區實作、截圖驗證到反覆修正,直到渲染結果與參考圖在視覺上高度一致。此技能支援所有主要的 UI 建置任務,並特別強調不應跳過圖片生成步驟,除非使用者明確要求。整體而言,它非常適合需要精確還原設計稿、避免風格偏移、或確保 UI 迭代時視覺一致性的開發者與 AI 代理。

相容平台~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/NeverSight/learn-skills.dev/tree/HEAD/data/skills-md/adamholter/hive-mind-landing-page/frontend-from-generated-image

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

根據生成圖片建立前端

對於任何包含前端、畫面、頁面、元件集合、儀表板、登陸頁面、應用程式外殼、對話 UI 或其他可見介面的任務,請使用此技能。

當任務是對既有 UI 進行迭代而非全面重新設計時,請將現有 UI 視為重要的限制條件。

此技能刻意設定得非常嚴格:生成的或用戶提供的圖片不是 moodboard,它就是目標。實作結果應看起來像是將圖片忠實地轉譯為可運作的程式碼。

核心規則

在編寫前端程式碼之前:

  1. 使用 imagegen 技能及內建的 OpenAI 圖片生成工具。
  2. 如果是對既有 UI 進行迭代,請先收集當前體驗的參考截圖,除非使用者明確要求全面重新設計。
  3. 為請求的介面生成或接受至少一張 UI 設計參考圖片。
  4. 將參考圖片視為設計的事實來源,同時在任務為迭代性質時保留既有產品的限制。
  5. 透過實作前端,盡可能在實際程式碼中貼近地複製圖片的佈局、層級結構、間距、字體、色彩關係、資產放置及整體構圖。
  6. 使用截圖進行驗證,並持續修正,直到渲染結果與參考圖在視覺上匹配。

除非使用者明確告知不要這麼做,否則不要跳過圖片生成步驟。

工作流程

  1. 閱讀產品/任務需求,並推斷需要存在的關鍵 UI 表面。
  2. 如果任務是修改現有前端,請先收集當前 UI 的參考截圖。
  3. 除非使用者要求全面重新設計,否則將這些截圖作為設計生成提示詞的參考輸入和限制條件。
  4. 為介面撰寫設計生成提示詞。
  5. 使用內建的 OpenAI 圖片工具生成參考圖片。
  6. 檢查結果,並在開始編碼前撰寫具體的視覺簡報:
    • 佈局結構
    • 對齊與間距
    • 字體大小比例
    • 元件形狀
    • 色彩調色盤
    • 背景處理方式
    • 視覺密度
    • 主要資產位置與尺寸
    • 元素排序與 z 軸/圖層關係
    • 構圖所暗示的動態線索
  7. 建置真實前端以緊密貼合該圖片。當參考圖包含多個區塊時,一次處理一個區塊或一個畫面。
  8. 在與參考圖相同的視口/長寬比下,擷取實作結果的截圖。
  9. 比較截圖與參考圖,在繼續進行之前,修正佈局、間距、比例、色彩、資產放置和字體方面的不匹配。
  10. 如果生成的圖片品質不佳,請生成另一張並使用更佳的參考圖。

圖片的提示詞指導

在對圖片模型進行提示時:

  • 描述產品類型及要渲染的具體畫面。
  • 要求精緻的產品 UI 模型,而非抽象的 moodboard。
  • 在相關時指定平台:桌面 Web 應用程式、行動應用程式、登陸頁面、聊天工具、管理後台等。
  • 包含期望的調性和品牌感覺。
  • 要求清晰的層級結構、精緻的間距及逼真的介面構圖。
  • 請求全螢幕 UI 截圖/模型視角。
  • 如果工具已有既定的產品方向,請保留它而非重新創造。
  • 如果是對既有 UI 進行迭代,只要圖片工作流程支援,請提供當前 UI 截圖作為參考。
  • 對於迭代工作,請提示改進當前設計的版本,而非替換設計,除非使用者明確要求全面重新設計。

圖片到程式碼的轉譯規則

  • 不要使用 CSS、SVG 圖元、漸層或裝飾性 div 來重建插圖/照片/3D 資源。對於這些部分,請使用真實的圖片資源。
  • 如果參考圖包含內嵌的產品圖稿、角色圖稿、照片、渲染圖、紋理、圖示或抽象圖片面板,請在專案中建立明確的資產插槽,並告知使用者或後續代理這些檔案應放置的確切路徑。
  • 如果用戶已提供提取好的資產,請直接使用這些資產,並複製其周圍的佈局、元件、字體、間距和效果。
  • 如果資產需要透明背景,請使用本地的 fal-media-gen Pixelcut 背景移除工作流程;不要將使用者導向外部 Web 工具、使用白色方塊假裝透明,或在 CSS 中重建圖片資產。
  • 對於多區塊頁面,一次轉譯一個區塊。不要草率地建置所有區塊,然後指望整體印象能撐起設計。
  • 保留參考圖的準確視覺層級:什麼最大、什麼最安靜、什麼對齊什麼、以及視線首先落在哪裡。
  • 盡可能從參考圖中測量比例:視口覆蓋率、區塊高度、圖片長寬比、欄寬、間距、導覽列高度、按鈕高度以及卡片密度。
  • 對於參考圖中明顯重複的色彩、間距、圓角和陰影,使用 CSS 變數或設計代幣。
  • 避免添加參考圖中未出現的額外說明文字、額外卡片、額外徽章或額外裝飾。
  • 當生成圖片中的文字難以閱讀或毫無意義時,請用簡潔逼真的文案替換,同時保留相同的行長度、字重、層級和密度。

實作指導

  • 複製生成的圖片,而不僅僅是「從中汲取靈感」。
  • 對於迭代工作,保留可辨識的產品結構,僅更改任務要求的內容。
  • 先匹配大決策:構圖、比例、對比度和佈局節奏。
  • 然後匹配小決策:圓角、邊框、陰影、間距、卡片比例和字體處理。
  • 在將圖片轉譯為產品程式碼時,保留可用性和無障礙性。
  • 如果生成的圖片包含不可能或不清晰的細節,請推斷最接近的可行實作方案,同時盡可能不改變視覺方向。

忠實度檢查清單

在宣告實作完成之前,請對照參考圖檢查以下項目:

  • 相同的視口框架:英雄區/區塊高度、首屏構圖,以及在適當時可見的下一區塊提示。
  • 相同的宏觀佈局:欄數、對齊方式、留白空間、重疊、不對稱性及區塊節奏。
  • 相同的視覺重量:標題字級、輔助文字字級、按鈕顯著性、圖片尺寸及卡片密度。
  • 相同的色彩關係:背景、文字對比度、強調色用量、邊框、陰影及漸層。
  • 相同的元件幾何:圓角、線條粗細、內距、間距及圖示/按鈕大小。
  • 相同的資產行為:圖片使用正確的長寬比、裁切、物件定位、透明度和圖層。
  • 相同的響應式意圖:行動版應感覺像忠實的改編,而非不同的設計。
  • 沒有意外添加:移除參考圖中未出現的預設導覽文字、通用功能卡片、填充用徽章、隨機圖示及裝飾效果。

如果截圖不匹配,請持續迭代。列出最主要的差異,修補它們,然後再次截圖。

優先於預設設計行為

如果另一個前端技能建議創造一個全新的視覺方向,此技能在 UI 方向上具有優先權。生成的圖片應主導設計。

交付行為

對於此技能涵蓋的前端任務,預期流程為:

  1. 生成參考圖片。
  2. 提取或準備任何所需的資產,並定義它們的專案路徑。
  3. 以區塊為單位或逐個畫面地建置 UI,使其匹配參考圖。
  4. 透過截圖進行視覺驗證實作結果。
  5. 朝著參考圖的方向修正,直到主要的不匹配被解決。

Individual skills in this repo

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

NeverSight/learn-skills.dev

Use when generating or modifying Remotion video code, creating demo videos, or working with the demo-video/ directory

NeverSight/learn-skills.dev

Create AI avatar and talking head videos via inference.sh CLI. Recommended: P-Video-Avatar (fastest, cheapest, built-in TTS). Also: OmniHuman, Fabric, PixVerse. Audio: Inworld TTS-2 (100+ languages, emotion steering for characters), ElevenLabs, Kokoro. Capabilities: audio-driven avatars, text-to-avatar, lipsync videos, talking head generation, virtual presenters, UGC content. Use for: AI presenters, explainer videos, virtual influencers, dubbing, marketing videos, UGC ads, gaming avatars, NPC dialogue. Triggers: ai avatar, talking head, lipsync, avatar video, virtual presenter, ai spokesperson, audio driven video, heygen alternative, synthesia alternative, talking avatar, lip sync, video avatar, ai presenter, digital human, ugc, ugc video, ugc ad, avatar ugc

NeverSight/learn-skills.dev

Create AI marketing videos for ads, promos, product launches, and brand content. Models: Veo, Seedance, Wan, FLUX for visuals, Kokoro for voiceover. Types: product demos, testimonials, explainers, social ads, brand videos. Use for: Facebook ads, YouTube ads, product launches, brand awareness. Triggers: marketing video, ad video, promo video, commercial, brand video, product video, explainer video, ad creative, video ad, facebook ad video, youtube ad, instagram ad, tiktok ad, promotional video, launch video

NeverSight/learn-skills.dev

Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0, HappyHorse 1.0, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, reference-to-video, video editing, lipsync, avatar animation, video upscaling, foley sound. Use for: social media videos, marketing content, explainer videos, product demos, AI avatars. Triggers: video generation, ai video, text to video, image to video, veo, animate image, video from image, ai animation, video generator, generate video, t2v, i2v, ai video maker, create video with ai, runway alternative, pika alternative, sora alternative, kling alternative, seedance, happyhorse

NeverSight/learn-skills.dev

ElevenLabs automatic dubbing - translate and dub audio/video into 29 languages while preserving speaker voice via inference.sh CLI. Capabilities: auto speaker detection, voice-preserving translation, video dubbing, audio localization. Use for: content localization, video translation, multilingual content, international distribution. Triggers: dubbing, dub video, translate audio, video translation, audio translation, localize content, elevenlabs dubbing, eleven labs dub, multilingual dub, voice translation, auto dub, language dub, content localization

NeverSight/learn-skills.dev

Explainer video production guide: scripting, voiceover, visuals, and assembly. Covers script formulas, pacing rules, scene planning, and multi-tool pipelines. Use for: product demos, how-it-works videos, onboarding videos, social explainers. Triggers: explainer video, how to make explainer, product video, demo video, video production, video script, animated explainer, product demo video, tutorial video, onboarding video, walkthrough video, video pipeline

NeverSight/learn-skills.dev

Still-to-video conversion guide: model selection, motion prompting, and camera movement. Covers Wan 2.5 i2v, Seedance, Fabric, Grok Video with when to use each. Use for: animating images, creating video from stills, adding motion, product animations. Triggers: image to video, i2v, animate image, still to video, add motion to image, image animation, photo to video, animate still, wan i2v, image2video, bring image to life, animate photo, motion from image

NeverSight/learn-skills.dev

Generate talking head avatar videos with Pruna P-Video-Avatar via inference.sh CLI. Turn a portrait image into a realistic speaking video with built-in TTS. 18x faster and 6x cheaper than competitors. Models: P-Video-Avatar, P-Image (for portrait generation). Capabilities: text-to-avatar, audio-driven avatars, 30 voices, 10 languages, 720p/1080p, built-in TTS, dynamic backgrounds, full-body control. Use for: AI presenters, product demos, explainer videos, virtual influencers, marketing, education, multilingual content, UGC, gaming avatars. Triggers: avatar video, talking head, ai avatar, p-video-avatar, pruna avatar, video avatar, ai presenter, digital human, virtual presenter, lipsync, talking avatar, ai spokesperson, heygen alternative, synthesia alternative, veed alternative, fabric alternative, omnihuman alternative

NeverSight/learn-skills.dev

Generate videos with Pruna P-Video and WAN models via inference.sh CLI. Models: P-Video, WAN-T2V, WAN-I2V. Capabilities: text-to-video, image-to-video, audio support, 720p/1080p, fast inference. Pruna optimizes models for speed without quality loss. Triggers: pruna video, p-video, pruna ai video, fast video generation, optimized video, wan t2v, wan i2v, economic video generation, cheap video generation, pruna text to video, pruna image to video

NeverSight/learn-skills.dev

Render videos from React/Remotion component code via inference.sh. Pass TSX code, get MP4. Supports all Remotion APIs: useCurrentFrame, useVideoConfig, spring, interpolate, AbsoluteFill, Sequence. Configurable resolution, FPS, duration, codec. Use for: programmatic video generation, animated graphics, motion design, data-driven videos, React animations to video. Triggers: remotion, render video from code, tsx to video, react video, programmatic video, remotion render, code to video, animated video, motion graphics code, react animation video

NeverSight/learn-skills.dev

Video ad creation with exact platform-specific specs for TikTok, Instagram, YouTube, Facebook, LinkedIn. Covers dimensions, duration limits, AIDA framework, and caption requirements. Use for: video ads, social media ads, paid media creative, video marketing, ad production. Triggers: video ad, social media ad, tiktok ad, instagram ad, youtube ad, facebook ad, linkedin ad, video creative, ad specs, paid media, video marketing, ad production, reels ad, stories ad, pre roll, bumper ad

NeverSight/learn-skills.dev

Best practices and techniques for writing effective AI video generation prompts. Covers: Veo, Seedance, Wan, Grok, Kling, Runway, Pika, Sora prompting strategies. Learn: shot types, camera movements, lighting, pacing, style keywords, negative prompts. Use for: improving video quality, getting consistent results, professional video prompts. Triggers: video prompt, how to prompt video, veo prompts, video generation tips, better ai video, video prompt engineering, video prompt guide, video prompt template, ai video tips, video prompt best practices, video prompt examples, cinematography prompts

NeverSight/learn-skills.dev

YouTube thumbnail design with specific dimensions, contrast rules, and mobile preview optimization. Covers safe zones, text placement, face expression psychology, and A/B testing. Use for: YouTube thumbnails, video cover images, click-through optimization. Triggers: youtube thumbnail, thumbnail design, video thumbnail, click through rate, ctr optimization, youtube cover, video cover image, thumbnail maker, thumbnail tips, youtube design, video preview image

NeverSight/learn-skills.dev

Landing page conversion optimization with layout rules, hero section design, and CTA psychology. Covers above-the-fold formula, social proof placement, mobile design, and F-pattern reading. Use for: startup landing pages, product pages, SaaS marketing, conversion optimization. Triggers: landing page, hero section, above the fold, conversion optimization, landing page design, cta button, hero image, landing page layout, saas landing page, product page design, conversion rate, landing page best practices

NeverSight/learn-skills.dev

Configure and use the hosted YouTube Data MCP end-to-end with minimal user input. Use when users want the agent to verify Node.js and `npx`, configure MCP server config (Windows/macOS, Cursor/Codex/OpenClaw/OpenCode), request API key at setup time, run post-install capability discovery (`tools/list` and `get_patch_notes`), and then strongly recommend helper skill and Python setup for full local document and spreadsheet workflows.

NeverSight/learn-skills.dev

Creates 120fps GPU-accelerated animations with Motion.dev (Framer Motion successor) for React, Next.js, Svelte, and Astro projects. Use when user requests animation, motion, scroll effects, parallax, hero animations, gestures, drag interactions, spring physics, whileHover effects, whileInView animations, animated UI, micro-interactions, page transitions, or layout animations. Generates production TypeScript/JSX code with accessibility (prefers-reduced-motion) and performance validation (≥60fps). Supports entrance animations, gesture interactions (hover/tap/drag), scroll-based reveals, and layout transitions using spring physics and natural timing. Do NOT use for CSS-only transitions (use native CSS), static sites without JavaScript, Vue animations (use motion-v variant instead), or SVG/Canvas complex animations (GSAP better suited).

NeverSight/learn-skills.dev

Static artifact craft skill for self-contained HTML/CSS/JS documents: docs, sheets, dashboards, explainers, slides, tools, and landing pages. Use when the user asks for a durable, openable, shareable web deliverable they'll keep or hand off — a report, a dashboard, a slide deck, a data table, a page. Local folder first, temporary public link via tunnel (localhost.run), optional durable publish to Surge, GitHub Pages, or Cloudflare. Not for quick look renders, inline snippets, or throwaway scratch. Not for SPA frameworks, backend APIs, database apps, or production product UI.

NeverSight/learn-skills.dev

FFmpeg commands for video/audio conversion, trimming, compression, and processing. Use when user mentions "ffmpeg", "convert video", "compress video", "extract audio", "trim video", "gif from video", "video codec", "transcode", "screen recording", "merge videos", "video to mp4", "reduce file size", or any media processing task.

NeverSight/learn-skills.dev

Vim keybindings, motions, text objects, and operators for efficient text editing. Use when user asks about "vim commands", "vim motions", "text objects", "vim keybindings", "vim cheat sheet", "learn vim", "vim in VS Code", or any Vim editing tasks.

NeverSight/learn-skills.dev

Grok Build ONLY. Turn a 2D character still into smooth animation sprites via image_gen/image_edit base → image_to_video (6s/10s run-in-place) → ffmpeg frames → magenta chroma-key → dense sampled sprites (strip/grid/GIF). Use when the user wants video-to-sprite, motion capture from generated video, smoother run/walk cycles from dense frames, or runs /video2dsprite. Do NOT use on Codex/Claude — only Grok Build has image_to_video. Prefer generate2dsprite for crisp pixel sheets without video.

相關技能