Communitygithub.com

JantonioFC/skillsbank

生成一个带有3D CSS动画、GSAP滚动效果和鼠标视差深度的优质单个HTML着陆页面。

skillsbank 是什么?

该技能专为需要快速创建高品质、视觉惊艳着陆页面的开发者或市场营销人员设计。它通过一个简单的文本提示或简报,生成一个完全自包含的HTML文件,其中所有CSS和JS都内联在文件中,仅依赖Google Fonts和GSAP CDN。该技能支持多种调用方式,如“创建着陆页面”或“为X制作着陆页面”,并强制通过一系列引导性问题(产品/服务、受众、品牌颜色、语气)来确保输出符合用户意图。生成的内容包含英雄区、功能卡片和结尾行动召唤区,并集成了GSAP入场动画、鼠标视差、滚动触发动画和CSS浮动装饰。该技能可在Claude Code CLI中直接将文件写入磁盘,或在Claude.ai网页中生成HTML工件,并附带验证脚本确保输出结构完整。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/JantonioFC/skillsbank/tree/HEAD/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 网页中,创建一个包含相同内容的HTML工件。

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

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

Q1(根问题)— 产品/服务

产品/服务是什么?请提供名称和1-2句电梯游说——它做什么,目标用户是谁?

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

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

Q2(依赖Q1)— 受众类型

受众是谁?请选择一项:

  1. 技术买家(工程师、运维、安全人员)
  2. 商业买家(PM、高管、运营领导者)
  3. 消费者(普通大众、爱好者)
  4. 内部用户(员工、合作伙伴——不对外销售)

为什么我问这个: 受众决定文案风格、专业术语程度、社会证明选择和CTA框架。技术买家需要具体细节;消费者需要利益;内部页面可以省略说服性内容。

强制选择。

Q3(始终提问)— 品牌覆盖

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

为什么我问这个: 默认设置已经很有美感,但匹配您的品牌会让页面感觉与现有网站更协调。即使只覆盖主色也能产生很大效果。

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

Q4(依赖Q1)— 语气

语气——请选择一项:

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

为什么我问这个: 语气影响每一句话——标题、微文案、按钮文字、结尾文案。提前选择可以避免各部分的语气冲突。

强制选择。推荐默认: 如果Q2=技术/商业,选择专业;如果Q2=消费者,选择有趣;如果产品是设计主导,选择极简。

停止条件: Q4之后,提交并生成。生成期间不再追问。

内容提取(带后备策略)

从Q1的电梯游说中推导:

  • 英雄区标题 — 精炼版的“它能做什么”(8-12个词)
  • 英雄区副文本 — “目标用户+价值”的版本(1-2句)
  • 3-6个功能点 — 从游说+受众(Q2)+语气(Q4)中提取
  • CTA文本 — 行动导向,与语气匹配
  • 结尾文案 — 简短、情感化、与语气匹配

当输入信息不足时的后备方案: 从产品名称语义+受众类型中创造引人入胜的内容。在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 / CTA / 高亮
- 背景色:#011627    →  --navy-mid / 区域背景
- 文字色:#FDFFFC    →  --off-white

如果只提供主色,则通过算法推导强调色(主色变亮15%作为强调色;变暗8%作为navy-mid;以0.12 alpha转换为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(大写、字母间距)
    • CTA按钮:18px(500字重)

组件(必须指定CSS)

  • .btn-primary — 带有悬停状态(上移+变亮)的CTA按钮
  • .feature-card — 带有悬停上移(translateY(-6px) + 边框变亮)的卡片
  • .eyebrow — 字母间距(0.2em)的大写类别标签

区域1:英雄区

  • min-height: 100vh,flex居中对齐内容
  • 可选的在H1上方的眉标标签
  • H1(68-82px,800字重)
  • 副标题(17-19px,1-2句)
  • CTA按钮(.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句)
  • CTA按钮,背后带有环境径向渐变辉光:
    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-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 返回失败仅在一次针对性的传递中重新生成失败的区域;不要放弃整个文件

可移植性

  • Claude Code CLI: 原生支持——直接将HTML文件写入文件系统。
  • Claude.ai 网页: 原生支持——以工件形式生成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.

JantonioFC/skillsbank

AI-powered image editing with style transfer and object removal

JantonioFC/skillsbank

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

JantonioFC/skillsbank

Analise e auditoria de editais de leilao judicial e extrajudicial. Riscos ocultos, clausulas perigosas, debitos, ocupante e classificacao da oportunidade.

JantonioFC/skillsbank

Embed Photopea in web apps using photopea.js. Covers embedding, file I/O, scripting, exporting, layers, text, filters, and the full Photoshop-compatible API.

JantonioFC/skillsbank

Best practices for Remotion - Video creation in React

JantonioFC/skillsbank

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

JantonioFC/skillsbank

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

JantonioFC/skillsbank

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.

JantonioFC/skillsbank

Video and audio perception, indexing, and editing. Ingest files/URLs/live streams, build visual/spoken indexes, search with timestamps, edit timelines, add overlays/subtitles, generate media, and create real-time alerts.

JantonioFC/skillsbank

Upload, stream, search, edit, transcribe, and generate AI video and audio using the VideoDB SDK.

JantonioFC/skillsbank

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

JantonioFC/skillsbank

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.

JantonioFC/skillsbank

Tool lifecycle UI components for React/Next.js from ui.inference.sh. Display tool calls: pending, progress, approval required, results. Capabilities: tool status, progress indicators, approval flows, results display. Use for: showing agent tool calls, human-in-the-loop approvals, tool output. Triggers: tool ui, tool calls, tool status, tool approval, tool results, agent tools, mcp tools ui, function calling ui, tool lifecycle, tool pending

JantonioFC/skillsbank

Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project.

JantonioFC/skillsbank

When the user wants help with paid advertising campaigns on Google Ads, Meta (Facebook/Instagram), LinkedIn, Twitter/X, or other ad platforms. Also use when the user mentions 'PPC,' 'paid media,' 'ROAS,' 'CPA,' 'ad campaign,' 'retargeting,' 'audience targeting,' 'Google Ads,' 'Facebook ads,'...

JantonioFC/skillsbank

Create AI avatar and talking head videos with OmniHuman, Fabric, PixVerse via inference.sh CLI. Models: OmniHuman 1.5, OmniHuman 1.0, Fabric 1.0, PixVerse Lipsync. Capabilities: audio-driven avatars, lipsync videos, talking head generation, virtual presenters. Use for: AI presenters, expla...

JantonioFC/skillsbank

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 awarene...

JantonioFC/skillsbank

Generate AI videos with Google Veo, Seedance, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 1.5 Pro, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, lipsync, avatar animation, video upscaling, fole...

JantonioFC/skillsbank

Production-ready CI/CD configurations for Playwright — GitHub Actions, GitLab CI, CircleCI, Azure DevOps, Jenkins, Docker, parallel sharding, reporting, code coverage, and global setup/teardown.

JantonioFC/skillsbank

You are an expert copy editor specializing in marketing and conversion copy. Your goal is to systematically improve existing copy through focused editing passes while preserving the core message.

相关技能