Communitygithub.com

NVlabs/Skill2Env

根據產品簡介自動生成含 3D CSS 動畫、GSAP 捲動效果和滑鼠視差深度的自包含高階 HTML 登陸頁面。在撰寫任何文案或標記之前,透過強制收集產品資訊、目標受眾、品牌覆寫和語氣來鎖定定位。

Skill2Env 是什麼?

這是一個專為 AI 代理(如 Claude Code、Claude.ai)設計的技能,能從使用者的簡短提示或產品描述中,產生一個極具視覺吸引力的自包含 HTML 登陸頁面。它與其他登陸頁面生成器不同,輸出的是單一 HTML 檔案,所有 CSS 和 JavaScript 均內嵌,僅依賴 Google Fonts 和 GSAP CDN,以提供最佳的視覺體驗和高品質動畫。該技能會強制執行一個四階段的「引導式提問」流程,依序詢問產品/服務、目標受眾、品牌顏色覆寫和語氣,確保生成的頁面緊扣產品定位,而非產生通用模板。頁面包含具有滑鼠視差效果的英雄區、帶有 GSAP 捲動觸發動畫的功能卡片區,以及最終的行動呼籲區。此外,它還支援透過 CSS 自訂屬性進行品牌顏色配置,並提供驗證腳本確保生成品質,非常適合需要快速打造專業、動態線上形象的開發者、行銷人員或產品經理。

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

在你喜歡的 AI 中提問

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

說明文件

Landing——Premium HTML 登陸頁面產生器

與 product-team/skills/landing-page-generator/ 不同。 那個技能輸出的是優化轉換/潛在客戶開發的 Next.js TSX 元件。而這個技能輸出的是單一自包含的 .html 檔案,專注於使用 GSAP 動畫提供優質的視覺體驗。請根據使用場景選擇。

從文字提示或簡報中產生一個精美、自包含的 .html 登陸頁面。輸出結果為一個 HTML 檔案:所有 CSS 內嵌於 <style> 標籤,所有 JS 內嵌於 <script> 標籤,唯一的外部依賴是透過 CDN 載入的 Google Fonts 和 GSAP。頁面視覺上與眾不同、包含動畫,且達到生產品質。

觸發條件

  • "create a landing page"
  • "build a landing page"
  • "make a landing page for X"
  • "I need a web page for Y"
  • "promotional page"
  • "product page"
  • "one-pager"
  • "web presence"
  • "sales page"
  • "landing for X"

傳遞模式

在 Claude Code CLI 中,將檔案寫入指定路徑的磁碟。在 Claude.ai 網頁版 中,建立一個包含相同內容的 HTML 構件。

第零階段:引導式提問(4 個強制性問題,一次一個)

依賴順序。每個問題都附帶「我為什麼要問」的說明。停止條件:最多 4 個問題。

Q1 (根源) — 產品/服務

產品或服務是什麼?請提供名稱 + 1–2 句的電梯簡報——它做什麼?目標使用者是誰?

我為什麼要問: 標題、副標題和功能文案都由此衍生。「生產力應用程式」會產生通用模板;「給厭惡 Zoom 的遠端工程團隊使用的非同步站會工具」則會產生能轉換的登陸頁面。

拒絕模糊回答。 如果使用者只給出名稱而沒有簡報,請退回一次:「它做什麼?目標使用者是誰?」如果退回後仍無簡報,則在提供頁面時附上明確的「通用定位」免責聲明。

Q2 (依賴 Q1) — 目標受眾登記

目標受眾是誰?請選擇一項:

  1. 技術型買家(工程師、營運人員、安全人員)
  2. 商業型買家(PM、高階主管、營運 leader)
  3. 消費者(一般大眾、業餘愛好者)
  4. 內部人員(員工、合作夥伴——非對外銷售)

我為什麼要問: 受眾決定文案語氣、專業術語程度、社會證明選擇和行動呼籲的措辭。技術型買家想要具體細節;消費者想要好處;內部頁面可以省略說服環節。

強制選擇。

Q3 (總是詢問) — 品牌覆寫

用於覆寫預設值(深藍色 + 青色 + Inter 字型)的品牌顏色/字型?請提供:主要色 HEX、強調色 HEX、可選背景色 HEX。如果希望使用精美的預設值,則輸入 "default"。

我為什麼要問: 預設值刻意設計得很美觀,但搭配您的品牌會讓頁面感覺與您現有網站更一致。即使只覆寫主要色,效果也會很顯著。

接受 "default" 或部分覆寫(例如僅主要色)。如果只提供主要色,則透過演算法衍生出強調色(變亮/變暗)。

Q4 (依賴 Q1) — 語氣

語氣——請選擇一項:

  1. 專業——自信、內斂、適合 B2B
  2. 活潑——溫暖、輕快、偶爾帶點幽默
  3. 權威——專家口吻、數據導向、建立信任
  4. 極簡——簡潔、設計主導、文案密度低

我為什麼要問: 語氣影響每個句子——標題、微文案、按鈕文字、結尾文案。事先選擇可防止各區塊之間出現語氣不一致。

強制選擇。建議預設值: 如果 Q2 為技術型/商業型則選專業;如果 Q2 為消費者則選活潑;如果產品是以設計為主導則選極簡。

停止條件: Q4 之後,確認並開始產生。生成過程中不得追問。

內容提取(附備援策略)

從 Q1 的電梯簡報中衍生出:

  • 主標題——「它做什麼」的精簡版本(8–12 個字)
  • 主標題副文字——「目標使用者 + 價值」的版本(1–2 句)
  • 3–6 個功能要點——從簡報 + 受眾 (Q2) + 語氣 (Q4) 中提煉
  • 行動呼籲文字——行動導向,符合語氣
  • 結尾文案——簡短、感性地,符合語氣

當輸入資訊不足時的備援方案: 從產品名稱語義和受眾語氣中自行創造有說服力的內容。在 HTML 原始碼中以註解標記推斷的內容(<!-- 已推斷: ... -->)。不要為了等待更多輸入而停滯。

品牌系統規格

預設色彩調色板(深藍色 + 青色)

: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);
}

覆寫模式

當 Q3 提供自訂品牌值時,技能會將其替換到 :root 區塊中:

品牌覆寫:
- 主要色: #FF6B35    →  --navy / 英雄區背景
- 強調色:  #2EC4B6    →  --teal / 行動呼籲 / 重點標記
- 背景色:  #011627    →  --navy-mid / 區塊背景
- 文字色:  #FDFFFC    →  --off-white

如果只提供主要色,則透過演算法衍生出強調色(變亮 15% 作為強調色;變暗 8% 作為 navy-mid;轉換為 alpha 0.12 的 rgba 作為光暈)。使用 scripts/brand_palette_validator.py 進行確定性衍生。

請參閱 references/brand_system_design.md 了解色彩理論、WCAG 和演算法調色板衍生的權威指南。

字體排印

  • 字體家族: 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,stroke=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
  • Viewport meta: <meta name="viewport" content="width=device-width, initial-scale=1">

輸出規格

  • 路徑: ${OUTPUT_DIR}/<產品名稱-短橫線格式>.html
  • 預設 ${OUTPUT_DIR}: ./landing-pages/
  • 檔案名稱: 從產品名稱轉換為小寫短橫線格式("Quill AI" → quill-ai.html)。使用 scripts/kebab_slug_generator.py 進行確定性的 Slug 生成和重複偵測。
  • 自包含: 所有 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 原始碼中標記為 <!-- 已推斷 -->
輸入檔案很大或是 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產品名稱 → 短橫線格式的檔案名稱 + 在輸出目錄中進行重複偵測。
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

相關技能