Communitygithub.com

ASoudy/AGS

生成一个精美的单页 HTML 着陆页,包含 3D CSS 动画、GSAP 滚动效果和鼠标视差深度。

AGS 是什么?

该技能通过强制性的四步信息收集(产品/服务、受众、品牌、语气)确保着陆页内容与真实产品紧密贴合,避免通用模板。它输出一个完全自包含的 HTML 文件,所有 CSS 和 JS 都内联在文件中,仅依赖 Google Fonts 和 GSAP CDN。页面包含英雄区、功能卡片、行动号召区等标准模块,并集成了 GSAP 入场动画、鼠标视差、滚动触发动画、浮动装饰形状和滚动指示器。支持通过 CSS 自定义属性覆盖品牌颜色,并提供验证脚本确保输出质量。该技能适用于 Claude Code CLI(写入文件)和 Claude.ai Web(生成 HTML 制品)。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ASoudy/AGS/tree/HEAD/claude_skills_libraries/nginity-skills-library/marketing/landing/skills/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 Web 中,创建一个包含相同内容的 HTML 制品。

阶段 0:信息收集(4 个强制性问题,一次一个)

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

Q1(根)— 产品/服务

产品或服务是什么?提供名称 + 1-2 句电梯演讲——它做什么?目标用户是谁?

我为什么问这个: 标题、副文本和功能文案都由此派生。“生产力应用”会产生通用模板;“面向讨厌 Zoom 的远程工程团队的异步站会工具”会产生能够转化的着陆页。

拒绝含糊其辞。 如果用户只提供一个名称而没有说明,再次追问:“它做什么?目标用户是谁?”如果追问后仍没有说明,则在明确标注“通用定位”的前提下交付。

Q2(依赖于 Q1)— 受众登记

目标受众是谁?选择一个:

  1. 技术买家(工程师、运维、安全)
  2. 商业买家(产品经理、高管、运营领导者)
  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 源代码中用注释标记推断内容 (<!-- 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);
}

覆盖模式

当 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,弹性居中内容
  • 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 了解仅内联的 rationale。

布局规则

  • 容器最大宽度: 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-case,源自产品名称(“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 源代码中标记为 <!-- inferred -->
输入文件很大或是 PDF在生成前完整读取;不截断
品牌颜色不足(只提供了 1 个 HEX)将其用作主色;通过算法派生次要/强调色(通过 brand_palette_validator.py 变亮/变暗)
未指定功能数量默认为 4
输出目录不存在创建它
输出路径存在现有文件追加时间戳后缀或询问用户(kebab_slug_generator.py 标记重复项)
html_validator 返回 FAIL仅在一次针对性传递中重新生成失败的部分;不放弃文件

可移植性

  • Claude Code CLI: 原生——直接将 HTML 文件写入文件系统。
  • Claude.ai Web: 原生——生成 HTML 制品而非文件。

工具

脚本作用
scripts/brand_palette_validator.py验证 HEX 格式,检查 WCAG AA 对比度,从主色生成派生调色板(算法变亮/变暗)。
scripts/kebab_slug_generator.py产品名称 → kebab-case 文件名 + 输出目录中的重复检测。
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 20 individual skills — each has its own dedicated page.

ASoudy/AGS

Advanced JavaScript animation library skill for creating complex, high-performance web animations.

ASoudy/AGS

Astropy is the core Python package for astronomy, providing essential functionality for astronomical research and data analysis.

ASoudy/AGS

Build content-focused websites with Astro — zero JS by default, islands architecture, multi-framework components, and Markdown/MDX support.

ASoudy/AGS

One sentence - what this skill does and when to invoke it

ASoudy/AGS

Audit and fix animation performance issues including layout thrashing, compositor properties, scroll-linked motion, and blur effects. Use when animations stutter, transitions jank, or reviewing CSS/JS animation performance.

ASoudy/AGS

Internationalization and localization patterns. Detecting hardcoded strings, managing translations, locale files, RTL support.

ASoudy/AGS

Pull a YouTube video transcript into a queryable markdown vault with yt-dlp subtitle discovery, VTT cleanup, metadata frontmatter, and capture-seed stubs.

ASoudy/AGS

Expert in building portfolios that actually land jobs and clients - not just showing work, but creating memorable experiences. Covers developer portfolios, designer portfolios, creative portfolios, and portfolios that convert visitors into opportunities.

ASoudy/AGS

Generates high-converting Next.js/React landing pages with Tailwind CSS. Uses PAS, AIDA, and BAB frameworks for optimized copy/components (Heroes, Features, Pricing). Focuses on Core Web Vitals/SEO.

ASoudy/AGS

AI-powered animation tool for creating motion in logos, UI, icons, and social media assets.

ASoudy/AGS

CRITICAL: Use for Makepad animation system. Triggers on: makepad animation, makepad animator, makepad hover, makepad state, makepad transition, "from: { all: Forward", makepad pressed, makepad 动画, makepad 状态, makepad 过渡, makepad 悬停效果

ASoudy/AGS

Comprehensive patterns for Next.js 14+ App Router architecture, Server Components, and modern full-stack React development.

ASoudy/AGS

Next.js App Router principles. Server Components, data fetching, routing patterns.

ASoudy/AGS

Expert integration of Supabase Auth with Next.js App Router

ASoudy/AGS

React and Next.js 14+ application development with App Router, Server Components, TypeScript, Tailwind CSS, and modern frontend patterns.

ASoudy/AGS

Best practices for Remotion - Video creation in React

ASoudy/AGS

Generate walkthrough videos from Stitch projects using Remotion with smooth transitions, zooming, and text overlays

ASoudy/AGS

Seek and analyze video content using Memories.ai Large Visual Memory Model for persistent video intelligence

ASoudy/AGS

Writes complete, structured landing pages optimized for SEO ranking, AEO citation, and visitor conversion. Activate when the user wants to write or generate a landing page for a product, service, or offer.

ASoudy/AGS

Skill for discovering and researching autonomous AI agents, tools, and ecosystems using the AgentFolio directory.

相关技能