Communitygithub.com

NeverSight/learn-skills.dev

用于前端/UI构建、重新设计、优化或扩展。编码前先生成UI参考图像,然后严格对照实现,而非另创新方向。

learn-skills.dev 是什么?

该技能专为涉及前端界面构建的任务而设计,无论是全新开发、重新设计、界面优化还是功能扩展。其核心原则是在编写任何前端代码之前,使用 OpenAI 图像生成工具生成或接受一个 UI 设计参考图像,并将该图像作为设计的最终“真理源”,要求实现代码忠实地翻译图像的布局、层次、间距、排版、色彩关系、资源放置和整体构图。该技能支持所有可见的界面类型,如登录页、仪表盘、应用壳、模态框、聊天UI等,并可适配桌面Web应用、移动应用、管理后台等不同平台。工作流程包括:生成参考图像 → 编写视觉简报 → 按区块实现前端 → 截屏对比 → 迭代优化直到渲染结果与参考图像在视觉上高度匹配。该技能特别强调:不跳过图像生成步骤;对于迭代任务,保留现有UI方向并收集当前UI截图作为输入;避免使用CSS/SVG重建照片或3D资源,而是使用真实图像资产;始终优先于其他建议自行发明视觉方向的前端技能。

兼容平台~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视为重要约束。

此技能有意保持严格:生成的或用户提供的图像不是情绪板。它是目标。实现应该看起来像是对图像的忠实翻译,转化为可工作的代码。

核心规则

在编写前端代码之前:

  1. 使用 imagegen 技能和内置的 OpenAI 图像生成工具。
  2. 如果是在现有UI基础上迭代,首先收集当前体验的参考截图,除非用户明确要求完全重新设计。
  3. 为所请求的界面生成或接受至少一个UI设计参考图像。
  4. 将参考图像视为设计的事实来源,同时当任务是迭代时,保持现有产品的约束。
  5. 通过尽可能接近地在真实代码中复制图像的布局、层次结构、间距、排版、颜色关系、资源放置和整体构图来实现前端。
  6. 使用截图验证并不断优化,直到渲染结果与参考图像明显匹配。

除非用户明确告知你不要这样做,否则不要跳过图像生成步骤。

工作流程

  1. 阅读产品/任务需求,推断需要存在的关键UI界面。
  2. 如果任务是修改现有前端,首先收集当前UI的参考截图。
  3. 除非用户要求完全重新设计,否则使用这些截图作为设计生成提示的参考输入和约束。
  4. 为界面编写设计生成提示。
  5. 使用内置的 OpenAI 图像工具生成参考图像。
  6. 检查结果并在编码前编写具体的视觉简报:
    • 布局结构
    • 对齐和间距
    • 字体大小体系
    • 组件形状
    • 调色板
    • 背景处理
    • 视觉密度
    • 主要资源位置和尺寸
    • 元素排序和 z-index/层级关系
    • 构图暗示的动效线索
  7. 构建真实的前端以紧密匹配该图像。当参考包含多个区块时,一次只处理一个区块或一个屏幕。
  8. 在与参考图像相同的视口/宽高比下捕获实现的截图。
  9. 将截图与参考图像进行比较,并在继续之前修复布局、间距、缩放、颜色、资源放置和排版上的不匹配。
  10. 如果生成的图像质量不佳,生成另一个并使用更强的参考。

图像提示指导

在提示图像模型时:

  • 描述产品类型和要渲染的准确屏幕。
  • 要求一个精致的产品UI模型,而不是抽象的灵感板。
  • 在相关时指定平台:桌面Web应用、移动应用、登录页、聊天工具、管理后台等。
  • 包含所需的语气和品牌感觉。
  • 要求清晰的层次结构、精细的间距和逼真的界面构图。
  • 请求全屏UI截图/模型视角。
  • 如果工具已有既定的产品方向,请保留而不是重新发明。
  • 如果是在现有UI基础上迭代,在图像工作流程支持的情况下提供当前UI截图作为参考。
  • 对于迭代工作,提示设计当前界面的改进版本,而不是替代设计,除非用户明确要求完全重新设计。

图像到代码转换规则

  • 不要使用CSS、SVG基元、渐变或装饰性div来重建插图/照片/3D资源。对这些部分使用真实的图像资源。
  • 如果参考图像包含嵌入的产品艺术、角色艺术、照片、渲染图、纹理、图标或抽象图像面板,在项目中创建明确的资源槽,并告知用户或未来的代理这些文件的确切位置。
  • 如果用户提供了提取的资源,直接使用这些资源,并复制周围的布局、组件、排版、间距和效果。
  • 如果资源需要透明背景,使用本地的 fal-media-gen Pixelcut 背景移除工作流;不要将用户发送到外部网络工具、用白色方块伪造透明度或用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.

相关技能