Communitygithub.com

NVlabs/Skill2Env

生成带有3D CSS动画、GSAP滚动效果和鼠标视差深度的精美单页HTML落地页。通过强制收集(产品+电梯演讲、受众登记、品牌覆盖、语气)在文案编写前锁定定位,确保页面反映实际产品而非通用模板。

Skill2Env 是什么?

该技能专为需要为产品、服务或活动快速创建高质量单页落地页的开发者设计。它通过一系列强制性问题(产品/服务、受众、品牌颜色、语气)确保内容精准定位,避免通用模板。生成的HTML文件完全自包含,内联CSS和JS,仅通过CDN依赖Google Fonts和GSAP,支持动画(如GSAP时间线、鼠标视差、滚动触发卡片动画)和响应式设计。该技能兼容Claude Code CLI(直接写入文件系统)和Claude.ai(输出为HTML伪影),并提供验证脚本以确保代码质量和结构完整性。它区别于同类技能(既有的基于Next.js的生成器),专注于纯视觉体验和单文件交付。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/NVlabs/Skill2Env/tree/HEAD/SkillHub/skills/marketing/landing

在你喜欢的 AI 中提问

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

文档

Landing — 高级HTML落地页生成器

与 product-team/skills/landing-page-generator/ 不同。 该技能输出的是针对转化/潜客优化基于Next.js的TSX组件。而本技能输出的是针对高级视觉体验优化的单个自包含 .html 文件,附带GSAP动画。根据用例选择。

根据文本提示或简要描述生成精美的自包含 .html 落地页。输出为一个HTML文件:所有CSS内联在 <style> 中,所有JS内联在 <script> 中,仅有的外部依赖是通过CDN加载的Google Fonts和GSAP。页面在视觉上独特、具有动画效果,并且达到生产级质量。

调用触发词

  • "创建一个落地页"
  • "构建一个落地页"
  • "为X制作一个落地页"
  • "我需要一个关于Y的网页"
  • "促销页面"
  • "产品页面"
  • "单页网站"
  • "在线展示"
  • "销售页面"
  • "X的落地页"

交付模式

在 Claude Code CLI 中,将文件写入指定路径。在 Claude.ai 网页版 中,创建包含相同内容的HTML伪影。

阶段0:深入询问(4个强制性问题,一次一个)

按依赖顺序排列。每个问题都带有明确的“我为什么问这个”。停止条件:最多4个问题。

问题1(根本)—— 产品/服务

产品或服务是什么?请提供名称及1–2句话的电梯演讲——它做什么,目标用户是谁?

> 我为什么问: 标题、副文本和功能文案都源于此。"提高生产力的应用"产生通用模板;"面向讨厌Zoom的远程工程团队的异步站会工具"产生能转化的落地页。

拒绝模糊回答。 如果用户仅提供名称而没有演讲,则追问一次:“它做什么?目标用户是谁?”如果追问后仍未提供演讲,则在交付时附带明确的“通用定位”说明。

问题2(依赖于问题1)—— 受众登记

受众是谁?请选择一项:

  1. 技术买家(工程师、运维、安全)
  2. 商业买家(产品经理、高管、运营负责人)
  3. 消费者(普通大众、爱好者)
  4. 内部人员(员工、合作伙伴——非公开销售)

我为什么问: 受众决定文案语气、专业术语程度、社交证明选择和呼吁行动框架。技术买家想要细节;消费者想要好处;内部页面可跳过说服。

强制选择。

问题3(始终)—— 品牌覆盖

覆盖默认品牌(深海军蓝 + 青色 + Inter)的颜色/字体?请提供:主色HEX、强调色HEX、可选背景色HEX。如果希望使用精美的默认设置,请说“默认”。

我为什么问: 默认设置特意美观,但匹配您的品牌能使页面看起来像是您现有网站的原生部分。即使仅覆盖主色也会产生很大影响。

接受“默认”或部分覆盖(例如仅主色)。如果仅提供主色,则通过算法推导强调色(变亮/变暗)。

问题4(依赖于问题1)—— 语气

语气——请选择一项:

  1. 专业——自信、克制、适合B2B
  2. 俏皮——温暖、轻松、偶尔幽默
  3. 权威——专家型、数据驱动、建立信任
  4. 极简——简洁、设计主导、文案密度低

我为什么问: 语气影响每句话——标题、微文案、按钮文本、结尾文案。提前选择可防止各部分的语气不协调。

强制选择。推荐默认值: 如果问题2为技术/商业买家则选择“专业”;如果问题2为消费者则选择“俏皮”;如果产品由设计主导则选择“极简”。

停止条件: 在问题4之后,承诺并生成。生成过程中不进行追问。

内容提取(含降级策略)

从问题1的电梯演讲中推导:

  • 英雄区标题——对“它做什么”的精炼版本(8–12个词)
  • 英雄区副文本——关于“目标用户 + 预期收益”的版本(1–2句话)
  • 3–6个功能要点——从演讲、受众(问题2)和语气(问题4)中提炼
  • 呼吁行动文本——行动导向,匹配语气
  • 结尾文案——简短、感性、匹配语气

当输入信息匮乏时的降级策略: 根据产品名称语义和受众语气创造引人入胜的内容。在HTML源代码中使用注释标记推断的内容(<!-- inferred: ... -->)。不要等待更多输入而停滞。

品牌系统规范

默认调色板(深海军蓝 + 青色)

:root {
  --navy:       #0A1628;
  --navy-mid:   #0D1F38;
  --teal:       #00D4AA;
  --teal-glow:  rgba(0, 212, 170, 0.12);
  --amber:      #F5A623;
  --off-white:  #F7F7F2;
  --text-muted: rgba(247, 247, 242, 0.68);
  --card-bg:    rgba(0, 212, 170, 0.06);
  --card-border:rgba(0, 212, 170, 0.15);
}

覆盖模式

当问题3提供自定义品牌值时,该技能将其替换到 :root 块中:

品牌覆盖:
- 主色: #FF6B35    →  --navy / 英雄区背景
- 强调色:  #2EC4B6    →  --teal / 呼吁行动 / 高亮
- 背景色:  #011627    →  --navy-mid / 节背景
- 文本色:  #FDFFFC    →  --off-white

如果仅提供主色,则通过算法推导强调色(变亮15%作为强调色;变暗8%作为navy-mid;以0.12 alpha转换为rgba用于发光)。使用 scripts/brand_palette_validator.py 进行确定性推导。

有关色彩理论、WCAG和算法调色板推导规范,请参见 references/brand_system_design.md。

排版

  • 字体家族: Inter(通过Google Fonts)
  • 字重比例: 400(正文)、500(眉标)、600(链接)、700(副标题)、800(H1 + H2)
  • 字号比例:
    • 英雄区H1: 68–82px
    • 节H2: 52–62px
    • 卡片标题: 22px
    • 正文: 17–19px
    • 眉标: 13px(大写,字母间距)
    • 呼吁行动按钮: 18px(字重500)

组件(必须指定CSS)

  • .btn-primary — 呼吁行动按钮,带悬停状态(上移 + 亮度增加)
  • .feature-card — 卡片带悬停上移效果(translateY(-6px) + 边框变亮)
  • .eyebrow — 字母间距(0.2em)的大写类别标签

第1节:英雄区

  • min-height: 100vh,flex居中内容
  • H1上方可选眉标标签
  • H1(68–82px,字重800)
  • 副标题(17–19px,1–2句话)
  • 呼吁行动按钮(.btn-primary)
  • 向下滚动指示器(CSS弹跳动画)
  • 景深层(鼠标视差):
    • .hero-shapes-back — 大号模糊圆形,绝对定位,低透明度
    • .hero-shapes-mid — 较小形状,边缘较锐利,较高透明度
    • 内容层(H1 + 副标题)—— 随鼠标同向轻微移动

第2节:功能

  • 默认3列(repeat(3, 1fr) 网格)
  • 响应式:
    • 在900px断点处变为2列
    • 在580px断点处变为1列
  • 每张卡片:
    • SVG图标(28px,描边=var(--teal),无填充)
    • 标题(22px,字重700)
    • 描述(15–16px,--text-muted)
  • 悬停状态:
    • transform: translateY(-6px)
    • border-color: var(--teal)(从--card-border变亮)
    • transition: 0.3s ease

第3节:结尾呼吁行动

  • 全宽,background: var(--navy-mid)
  • padding: 120px 24px,文本居中
  • 大号结尾标题(52–62px,字重800)
  • 简短副文本(--text-muted,1–2句话)
  • 呼吁行动按钮,背后带环境径向渐变发光:
    background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%);
    

动画模式

参见 references/gsap_animation_patterns.md 获取规范。需要五种模式:

1. 英雄区入场(GSAP时间线)

// 必须首先使用 gsap.set() 以防止FOUC
gsap.set([".eyebrow", ".hero h1", ".hero .subtitle", ".btn-primary", ".scroll-down"], {
  opacity: 0,
  y: 30
});

const tl = gsap.timeline({ defaults: { ease: "power3.out" } });
tl.to(".eyebrow", { opacity: 1, y: 0, duration: 0.6 })
  .to(".hero h1", { opacity: 1, y: 0, duration: 0.8 }, "-=0.3")
  .to(".hero .subtitle", { opacity: 1, y: 0, duration: 0.6 }, "-=0.5")
  .to(".btn-primary", { opacity: 1, y: 0, duration: 0.5 }, "-=0.3")
  .to(".scroll-down", { opacity: 1, y: 0, duration: 0.4 }, "-=0.2");

2. 鼠标视差

const hero = document.querySelector(".hero");
hero.addEventListener("mousemove", (e) => {
  const x = (e.clientX / window.innerWidth - 0.5) * 2;
  const y = (e.clientY / window.innerHeight - 0.5) * 2;
  gsap.to(".hero-shapes-back", { x: x * 45, y: y * 22, duration: 0.8 });
  gsap.to(".hero-shapes-mid",  { x: x * 22, y: y * 11, duration: 0.8 });
  gsap.to(".hero .container",  { x: x * 8,  y: y * 5,  duration: 0.8 });
});

3. 滚动触发的功能卡片

gsap.set(".feature-card", { opacity: 0, y: 55, rotateX: 18 });

ScrollTrigger.batch(".feature-card", {
  start: "top 80%",
  onEnter: batch => gsap.to(batch, {
    opacity: 1, y: 0, rotateX: 0,
    duration: 0.8,
    stagger: 0.11,
    ease: "power2.out"
  })
});

4. 浮动装饰形状(CSS关键帧——非GSAP)

CSS处理环境的持续运动(对于无限动画比GSAP更流畅、更经济):

@keyframes floatA {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(20px, -30px) rotate(8deg); }
}
@keyframes floatB { /* 不同的持续时间和旋转 */ }
@keyframes floatC { /* 不同的持续时间和旋转 */ }

.hero-shapes-back .shape-a { animation: floatA 12s ease-in-out infinite; }

5. 滚动指示器(CSS弹跳)

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}
.scroll-down { animation: bounce 2s ease-in-out infinite; }

所需CDN依赖

<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/ScrollTrigger.min.js"></script>

不允许使用其他外部CSS或JS文件。所有自定义CSS在 <style> 中,所有自定义JS在同一个HTML文件的 <script> 块中。

内联唯一性原理参见 references/single_file_html_discipline.md。

布局规则

  • 容器最大宽度: 1200px,居中
  • 节内边距: 120px 24px(垂直120,水平24,移动端按比例缩小)
  • 响应式断点:
    • 900px → 功能网格从3列变为2列
    • 580px → 所有网格变为1列;H1缩小至约52px
  • 视口元标签: <meta name="viewport" content="width=device-width, initial-scale=1">

输出规范

  • 路径: ${OUTPUT_DIR}/<产品名-kebab形式>.html
  • 默认 ${OUTPUT_DIR}: ./landing-pages/
  • 文件名: 产品名的小写kebab形式("Quill AI" → quill-ai.html)。使用 scripts/kebab_slug_generator.py 进行确定性slugs生成和重复检测。
  • 自包含: 所有CSS在 <style> 中,所有JS在 <script> 中,仅Google Fonts和GSAP CDN为外部。

验证(生成后)

生成后运行 scripts/html_validator.py --file ${OUTPUT_DIR}/<slug>.html。检查:

  • 所有3个必需节(.hero, .features, .closing-cta)都存在
  • CDN依赖存在(Inter + GSAP + ScrollTrigger)
  • gsap.set() 初始状态先于任何 gsap.timeline 或 gsap.to(FOUC预防)
  • 在900px和580px处的响应式断点
  • 除Google Fonts外无外部 <link rel="stylesheet">
  • 除GSAP CDN外无外部 <script src=>
  • <meta name="viewport"> 存在
  • 所有动画元素都有初始状态声明

错误处理

情况行为
输入仅为名称无上下文根据名称语义和受众语气创造引人入胜的内容;在HTML源代码中标记为 <!-- inferred -->
输入文件很大或是PDF生成前完整读取;不截断
品牌颜色不足(仅提供1个HEX)将其用作主色;通过算法推导辅助/强调色(通过 brand_palette_validator.py 变亮/变暗)
功能数量未指定默认为4
输出目录不存在创建它
输出路径存在文件附加时间戳后缀或询问用户(kebab_slug_generator.py 标记重复)
html_validator 返回FAIL仅针对失败的部分进行一次定向重新生成;不要放弃文件

可移植性

  • Claude Code CLI: 原生——直接将HTML文件写入文件系统。
  • Claude.ai 网页版: 原生——将HTML作为伪影输出而非文件。

工具

脚本角色
scripts/brand_palette_validator.py验证HEX格式,检查WCAG AA对比度,从主色生成派生调色板(算法变亮/变暗)。
scripts/kebab_slug_generator.py产品名 → kebab形式文件名 + 输出目录重复检测。
scripts/html_validator.py生成后结构检查:3个节、CDN依赖、gsap.set()初始状态、响应式断点、无外部文件。

参考

拒绝的反模式

  • 输出目录中的硬编码绝对路径
  • 未附带覆盖文档的单一品牌调色板
  • 先草拟再编写——应一次性完成
  • 外部CSS或JS文件(必须内联;仅允许Google Fonts + GSAP CDN)
  • 跳过 gsap.set() 初始状态(导致FOUC)
  • 默认网格中超过6个功能(导致不可扫描)
  • 技能本身中的品牌特定内容引用

版本: 1.0.0 源规范: megaprompts/04-landing-megaprompt.md 构建模式: 路径B(直接转换)。与 product-team/skills/landing-page-generator/ 不同。

Individual skills in this repo

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

NVlabs/Skill2Env

This skill should be used when the user asks about "digital portfolio", "portfolio website", "project description", "case study", "portfolio curation", "creative portfolio", "act as a portfolio curator", "portfolio curator mode", "portfolio review", "professional presentation", "portfolio architecture", "work samples", "portfolio bio", or needs expertise in building, structuring, and writing professional digital portfolios. Part of the AlterLab FC Skills collection (New Media & Communication department).

NVlabs/Skill2Env

This skill should be used when the user asks about "web content strategy", "SEO writing", "UX writing", "information architecture", "content architecture", "website structure", "act as a web content strategist", "web strategist mode", "site map", "content audit", "microcopy", "meta descriptions", "content hierarchy", "content governance", or needs expertise in planning, structuring, and writing content for websites and digital platforms. Part of the AlterLab FC Skills collection (New Media & Communication department).

NVlabs/Skill2Env

When the user wants to create, generate, or produce video content using AI tools or programmatic frameworks. Also use when the user mentions 'video production,' 'AI video,' 'Remotion,' 'Hyperframes,' 'HeyGen,' 'Synthesia,' 'Veo,' 'Sora,' 'Runway,' 'Kling,' 'Seedance,' 'Hailuo,' 'MiniMax,' 'Pika,' 'Hunyuan,' 'Wan,' 'video generation,' 'AI avatar,' 'talking head video,' 'programmatic video,' 'video template,' 'explainer video,' 'product demo video,' 'video pipeline,' or 'make me a video.' Use this for video creation, generation, and production workflows. For video content strategy and what to post, see social. For paid video ad creative, see ad-creative.

NVlabs/Skill2Env

Balance visual design with ATS compatibility for creative roles

NVlabs/Skill2Env

Build immersive, cinematic 2.5D interactive websites using scroll storytelling, parallax depth, text animations, and premium scroll effects — no WebGL required. Use this skill for any web design task: landing pages, product sites, hero sections, scroll animations, parallax, sticky sections, section overlaps, floating products between sections, clip-path reveals, text that flies in from sides, words that light up on scroll, curtain drops, iris opens, card stacks, bleed typography, and any site that should feel cinematic or premium. Trigger on phrases like "make it feel alive", "Apple-style animation", "sections that overlap", "product rises between sections", "immersive", "scrollytelling", or any scroll-driven visual effect. Covers 45+ techniques across 8 categories. Always inspects, judges, and plans assets before coding. Use aggressively for ANY web design task.

NVlabs/Skill2Env

Read-only queue dashboard for workspace-aware ship. (gstack)

NVlabs/Skill2Env

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

NVlabs/Skill2Env

Audits any landing or service page across 48 checks in 10 categories for LLM/AI discoverability, GEO readiness, content clarity, schema markup, internal linking, freshness signals, and technical crawlability. Produces an overall score out of 100, a per-category score out of 100, pass/warn/fail/ manual counts, and a prioritised fix list — all rendered as a standalone HTML report saved to disk. Use when a user provides a URL and asks to audit it, score it, check its GEO readiness, test its AI discoverability, run a landing page audit, or evaluate it for LLM citation potential. Also trigger on phrases like "audit this page", "score this URL", "check GEO for", "is this page AI-ready", "run a GEO audit", "LLM page check", "how would AI read this page", or "landing page score".

NVlabs/Skill2Env

Use when a user asks to build, optimize, backtest, rebalance, or analyze a stock portfolio with Mean-CVaR, efficient frontiers, scenario generation, or NVIDIA cuOpt.

NVlabs/Skill2Env

Transform resume bullets into detailed portfolio case studies

NVlabs/Skill2Env

Generates high-converting landing pages as complete Next.js/React (TSX) components with Tailwind CSS. Creates hero sections, feature grids, pricing tables, FAQ accordions, testimonial blocks, and CTA sections using proven copy frameworks (PAS, AIDA, BAB). Outputs SEO meta tags, structured data, and performance-optimised code targeting Core Web Vitals (LCP < 1s, CLS < 0.1). Use when the user asks to create a landing page, marketing page, homepage, single-page site, lead capture page, campaign page, promo page, or conversion-optimised web page — or when they want to A/B test landing page variants or replace a static page with one designed to convert.

NVlabs/Skill2Env

> Visual design direction framework organized by emotional intent (Warm/Cold x Active/Calm). The first design reference system that categorizes sites by what they make you FEEL, not how they look. Includes 48 annotated public website references.

NVlabs/Skill2Env

Run a structured 5-pass finishing audit on any website before launch — scoring visual polish, technical foundation, UX completeness, content quality, and cross-device readiness on 100 points. Use when: **Pre-launch** - Final validation before going live; **Post-redesign** - Verify nothing broke during the overhaul; **Client handoff** - Structured proof that the site is ready; **Quarterly review** - Catch accumulated debt; **Single-pass focus** - Run just Pass 2 after a perf sprint

相关技能