Skill 详情
landing-page-studio
Builds high-conversion landing pages in HTML or React with visual polish.
使用前先检查
自动化审核只检查相关性,不代表安全审查或推荐。使用前请阅读来源中的说明。
SKILL.md
这段内容是审核时保存的快照。外部来源才是完整且最新的版本。
--- name: landing-page-studio description: >- This skill MUST be used when creating high-conversion landing pages with modern visual effects, including SVG/WebGL animation, autonomous multi-iteration optimization, and dual output modes (single-file HTML or React project). MUST trigger on requests like landing page, LP, hero section build, animated marketing page, or conversion page redesign. Visual style comes from the design-studio style library; this skill owns conversion structure, autonomous iteration, and delivery contracts. metadata: version: "2.0.2" --- # Landing Page Studio ## Overview 此技能用於快速產出「可直接交付」的 Landing Page,重點是轉換導向、視覺辨識度、動畫品質與實務性能平衡。 能力範圍: 1. 自主多輪產生與優化(最多 3 輪) 2. 現代前端特效(SVG procedural、GSAP、Anime.js、可選 Three.js/WebGL) 3. 雙輸出模式:`single-file-html`、`react-project` 4. Progressive Enhancement:低效能或 reduced motion 自動降級 5. 品質門檻驗收(視覺與性能雙門檻) ## 前置(開工前必讀) 本 skill 是疊在 `design-studio` 上的**轉換層**:視覺與品質底線由 design-studio 供給,本 skill 只管轉換結構、輸入契約、自主迭代與交付格式。 1. 讀 design-studio 的 `shared/anti-slop.md`、`shared/hard-rules.md`、`shared/guardrails.md`——它們對本 skill 的所有產出生效。 2. 遵守 DESIGN.md 公約:專案有 `DESIGN.md` 就先讀並沿用 token;沒有就從 design-studio 的 `shared/DESIGN-template.md` 複製到專案根目錄建立;交付後把本次的色彩/字體/間距 token 寫回去。 3. 風格方向(`style_direction`)從 design-studio 的風格庫取得:`huashu-design/references/design-styles.md`(三軸校準 → 40 風格 → 深度風格包)。使用者沒給方向時,用該庫的三方向推薦流程讓使用者選,不要自己發明色板。 ## Input Contract 輸入物件型別:`LandingPageInput` 必要欄位: - `brand_theme`: `string` - `value_props`: `string[3]` - `primary_cta`: `string` - `style_direction`: `string`(視覺方向,依前置第 3 點從 design-studio 風格庫選定) - `output_mode`: `single-file-html|react-project` 選填欄位: - `variant_mode`: `single|batch`,預設 `single` - `autonomy_mode`: `single-pass|multi-iteration`,預設 `multi-iteration` - `animation_level`: `low|medium|high`,預設 `high` - `motion_preference`: `respect-reduced-motion`(建議預設採用) - `target_audience`: `string` - `industry`: `string` - `react_stack`: `vite-react-tailwind-framer|nextjs-app-router|react-css-modules` ## Data Sufficiency Gate 若下列欄位任一缺失,先回 `MissingDataOutput`,不可生成頁面: - `brand_theme` - `value_props` - `primary_cta` - `style_direction`(例外:缺席時不硬擋,先走前置第 3 點的 design-studio 風格選型取得方向) - `output_mode` `MissingDataOutput` 必須包含: - `missing_fields` - `why_needed` - `questions_to_user` - `next_step_rule` ## Output Contract 生成成功時回 `GenerationOutput`: - `artifact_type`: `single-html|react-tree` - `artifact_payload`: HTML 字串或檔案樹 - `asset_sources`: Unsplash/Pexels 來源與 attribution - `animation_manifest`: 每段動畫的 `library`, `target`, `trigger`, `fallback` - `autonomy_report`: 候選版本評分與最終採用理由 - `qa_report`: 門檻結果與修正記錄 ## Mode Rules ### 1) `single-file-html` - 交付單一 `index.html` - 允許 CDN:Tailwind、GSAP、Iconify、Three.js、Anime.js、Google Fonts - 需包含:Navbar、Hero、Value Props、Social Proof、Final CTA、Footer ### 2) `react-project` - 若未指定 `react_stack`,先提供三種技術棧優缺點,再請使用者選擇 - 預設優先順序:`vite-react-tailwind-framer` - 交付至少包含可啟動專案骨架與核心頁面 ## Autonomous Generation Flow 若 `autonomy_mode=multi-iteration`,使用以下流程: 1. 依輸入產生 2-3 個候選稿(結構一致、視覺與動畫策略不同) 2. 依四維度打分: - conversion clarity - visual coherence - readability - performance risk 3. 選最低分項目做修正,最多 3 輪 4. 產出最佳版,並附 `autonomy_report` 若 `autonomy_mode=single-pass`: - 只產 1 稿,仍需附簡版 `qa_report` ## Style System 風格系統整個交給 design-studio:三軸校準定強度 → 40 風格庫選方向 → 深度風格包拿完整協議 → 色彩推導協議產生本專案專屬色值(不抄庫裡的示例 hex)。本 skill 不維護自己的風格 preset。 ## Animation System 動畫能力與降級矩陣見: - [03-animation-system-and-fallbacks.md](./references/03-animation-system-and-fallbacks.md) 硬性規則: 1. 至少包含 4 類動畫 2. 必須提供每段 fallback 3. `prefers-reduced-motion` 時關閉高刺激動效 4. 無 WebGL 能力時自動使用 SVG/CSS 替代 ## Asset Rules 1. 任務涉及真實品牌時,依 design-studio 的 `shared/brand-asset.md` 優先使用品牌真實資產;其餘圖片只允許 Unsplash/Pexels 2. 不可使用 placeholder 3. Hero 必須加遮罩保證文字可讀 4. 輸出 `asset_sources` 必須含 attribution ## Quality Gates 完整規則見: - [05-quality-gates.md](./references/05-quality-gates.md) 最低通過門檻: 1. Desktop: Performance >= 85, Accessibility >= 90 2. Mobile: Performance >= 75, Accessibility >= 90 3. 主要斷點需完整可讀(mo在 GitHub 阅读完整来源 (打开外部页面)