Communitygithub.com

jhy0285/monofield

极简的产品发布前着陆页,支持邮箱捕获、品牌Logo和可选装饰层。根据DESIGN.md读取颜色、排版和布局规则。适用场景:产品发布、Beta注册、早期访问计划、独立项目。

monofield 是什么?

该技能用于构建一个最小可行、移动优先的产品发布前着陆页,专注于品牌真实表达和用户情感连接。它读取开发者提供的DESIGN.md文件来获取完整的色彩系统、字体配对和空间规则,确保页面与品牌一致。核心工作流基于一个经过硬化处理的HTML模板,通过安全的令牌替换机制(包括文本转义、SVG白名单过滤、颜色表达式严格语法验证以及字体URL编码)来生成最终输出。技能内置了严格的质量检查清单,分为P0(必须通过)和P1(推荐通过)两档,涵盖无伪造社交证明、单一CTA、无障碍标准(WCAG AA对比度、aria属性)和响应式布局(375px到1440px+)。支持的平台包括所有能运行标准HTML/CSS/JS的静态站点或Web应用,特别适合需要快速搭建真实、无营销套路的等待列表场景。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/jhy0285/monofield/tree/HEAD/design-templates/waitlist-page

在你喜欢的 AI 中提问

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

文档

预发布页面技能

预发布页面是你与未来用户的第一次握手。本技能构建一个专注、真诚的入口:你的品牌标识、你在做什么,以及一条清晰加入早期名单的路径。没有人为制造的稀缺感,没有虚假倒计时,没有膨胀策略——只是一个干净、移动优先的容器,承载真正的兴趣。

工作流程

前置检查:加载强化模板和品牌基础

  1. 加载品牌标识—— 读取 DESIGN.md 以获取颜色系统、字体搭配和空间规则。这是你的基础。预发布页面的生死取决于其代表品牌的一致性。如果 DESIGN.md 缺失,请要求用户提供后再继续。
  2. 读取并复制可复用模板—— 读取 assets/template.html。此模板是所有输出的强化种子。将其复制到 index.html 作为你的基础。不要从头编写 HTML 或偏离此结构。模板已内置所有必需的布局、表单结构、装饰、焦点样式和可访问性框架。

步骤:带验证和转义的令牌替换

  1. 从输入映射令牌—— 对于模板中的每个占位符(例如 {{PRODUCT_NAME}}、{{BG_EXPRESSION}}、{{BORDER_EXPRESSION}}、{{LOGO_MARK}}),遵循下面的替换规则:
    • 文本令牌({{PRODUCT_NAME}}、{{TAGLINE}}):在插入到 HTML 文本节点或属性值之前,对 <、>、&、"、' 进行 HTML 转义。
    • HTML 令牌({{LOGO_MARK}}):如果使用文本首字母,默认进行 HTML 转义。如果使用内联 SVG,必须严格使用允许列表进行清理:在插入前去除 <script> 标签、事件处理程序(on*)、<foreignObject>、外部引用(href、xlink:href、url())以及任何不允许的属性/元素。如果 SVG 无法被安全清理,则回退到转义的文本首字母。切勿输出原始、未清理的任意 HTML。确保任何 SVG 在其容器内干净缩放。
    • 颜色表达式令牌({{BG_EXPRESSION}}、{{FG_EXPRESSION}}、{{ACCENT_EXPRESSION}}、{{DECO_EXPRESSION}}、{{STRIPE_EXPRESSION}}、{{SUCCESS_EXPRESSION}}、{{BORDER_EXPRESSION}}、{{BTN_LABEL_EXPRESSION}}、{{TICKER_BG_EXPRESSION}}、{{TICKER_FG_EXPRESSION}}、{{DECO_STROKE_EXPRESSION}}、{{LOGO_SHADOW_EXPRESSION}}、{{LOGO_FG_EXPRESSION}}):必须严格遵守明确的颜色语法(#hex、rgb/rgba、hsl/hsla、oklch 或仅使用局部变量的 color-mix())。硬性拒绝任何包含 ;、{}、<、>、注释(/*)、@、url( 或外部引用的输入,以防止 CSS 注入。不要包裹在 # 中或添加额外的引号。示例:rgba(196, 169, 154, 0.38)、color-mix(in srgb, var(--fg) 38%, transparent)、#FDE8DF。按原样插入 :root CSS 变量。如果 DESIGN.md 中存在,则从中派生 --success;否则仅使用允许的后备值 #2D6A4F。
    • 字体名称令牌({{DISPLAY_FONT_CSS}}、{{BODY_FONT_CSS}}):这些是 CSS font-family 值,如果包含空格则已加引号(例如 'DM Sans'、Syne)。按原样插入 --font-display 和 --font-body 声明中;不要添加额外的引号。
    • 字体 URL 令牌({{DISPLAY_FONT_URL}}、{{BODY_FONT_URL}}):对于 Google Fonts URL,空格必须编码为 +(例如 DM+Sans、IBM+Plex+Serif)。在插入前验证 URL 格式正确。
  2. 验证令牌映射规则—— 所有颜色令牌现在都在 CSS 变量中:
    • --bg = {{BG_EXPRESSION}}(例如 #FDE8DF)
    • --fg = {{FG_EXPRESSION}}(例如 #1A1410)
    • --accent = {{ACCENT_EXPRESSION}}(品牌徽章)
    • --deco = {{DECO_EXPRESSION}}(装饰主要)
    • --deco-stripe = {{STRIPE_EXPRESSION}}(强调条纹)
    • --input-border = {{BORDER_EXPRESSION}}(带有透明度的完整 CSS 表达式)
    • --success = {{SUCCESS_EXPRESSION}} 或 #2D6A4F 后备值
    • --btn-label = {{BTN_LABEL_EXPRESSION}}(按钮文本颜色,用于对比)
    • --ticker-bg = {{TICKER_BG_EXPRESSION}}(动画跑马灯背景)
    • --ticker-fg = {{TICKER_FG_EXPRESSION}}(动画跑马灯文本)
    • --deco-stroke = {{DECO_STROKE_EXPRESSION}}(SVG 描边,通常以 12-15% 不透明度柔和呈现)
    • --logo-shadow = {{LOGO_SHADOW_EXPRESSION}}(Logo 容器阴影,柔和的前景色调)
    • --logo-fg = {{LOGO_FG_EXPRESSION}}(Logo 首字母的对比文本颜色)
  3. 响应式布局—— 模板包含移动优先缩放:
    • 375px:表单堆叠为单列,Logo 缩小至 40px,装饰压缩,无水平滚动。
    • 768px:舒适的两列呼吸空间。
    • 1440px+:居中布局,有充足的空白。
    • 验证所有文本保持可读,并且在 375×667 和 390×844 视口下电子邮件输入框和按钮完全可见(无裁剪)。

验证:在输出前运行强化质量门

  1. 运行质量检查清单—— 读取 references/checklist.md。在输出前验证每个 P0 门:
    • 恰好一个 CTA(电子邮件表单)
    • 无倒计时器、无虚假社交证明、无表情符号
    • 在 375px 下无水平滚动
    • 电子邮件输入框具有 type="email" 和 required;名字没有 required
    • 表单不使用 novalidate;JS 使用 checkValidity() 保护
    • 成功消息具有 role="status" 或 aria-live="polite"
    • 所有颜色来自 DESIGN.md 或允许的后备值;没有发明的十六进制值
    • 所有用户文本已 HTML 转义;颜色令牌遵守严格语法;字体已 URL 编码
    • 通过 P0,否则不输出。 如果任何 P0 门失败,询问用户或修复令牌映射然后重试。
  2. 验证 P1 门以保证质量提交(推荐):
    • 提交按钮的悬停和激活状态
    • 带有清晰反馈的表单验证
    • 跑马灯动画尊重 prefers-reduced-motion: reduce
    • 所有交互元素具有可见的焦点样式(input:focus 包含 outline)
    • Tab/Enter 键盘支持
    • 正文文本(≥4.5:1)和按钮标签(≥4.5:1)的 WCAG AA 对比度
    • 存在 Logo alt/aria-label;跑马灯具有 aria-hidden="true"
    • 已设置 <html lang="">

输出

  1. 输出干净的 HTML—— 单文件,CSS 内联,SVG 用于图形。用 data-od-id 标记交互元素(标题、表单、Logo、跑马灯、网格等),以便代理无需解析即可自定义。

质量门

本技能强制执行一个强化、基于模板的工作流程,以确保合规性。你必须遵循此执行路径;偏离模板将使输出不合格。

强制性基于模板的执行:

  • 读取 assets/template.html 作为你的基础;不要从头编写 HTML。
  • 将其复制到 index.html,仅用经过验证/转义的值替换 {{PLACEHOLDER}} 令牌。
  • 在输出前运行 references/checklist.md 中的每个 P0 门;如果任何失败,修复并重新验证。

P0 门(必须通过):

  • 单一 CTA:电子邮件表单是唯一的交互元素。无导航、无辅助按钮、无社交链接。
  • Logo 位置:固定左上角,匹配 DESIGN.md 强调色,在移动设备上缩放(50px → 40px)。
  • 颜色一致性:每种颜色来自 DESIGN.md 调色板。唯一允许硬编码的例外:--success 的 #2D6A4F。
  • 无反模式:无倒计时器、无虚假社交证明、无表情符号图标、无 Lorem ipsum。
  • 内容完整性:标题和文案直接与 product_name 和 tagline 输入相关——无填充文案。
  • 移动适配:在 375px 下无水平滚动。电子邮件输入框和提交按钮在 375×667 和 390×844 下完全可见(无裁剪)。垂直溢出可滚动,不隐藏。
  • 排版规范:仅使用展示+正文字体(2 字体规则)。跨区域字体大小一致。
  • 表单结构:两个字段(名字可选,电子邮件必填),checkValidity() 保护,带有 role="status" 的成功消息。
  • 令牌转义:所有用户提供的文本已 HTML 转义;颜色令牌遵守严格语法且不包含不安全字符(;、{}、<、>、/*、@、url();字体名称已 URL 编码;{{LOGO_MARK}} 是转义的文本首字母或严格清理的内联 SVG(无脚本、无事件处理程序、无 foreignObject、无外部 href)。

P1 门(应通过以保证质量提交):

  • 英雄区域视觉上独特且在首屏上方。
  • 电子邮件提交按钮具有悬停和激活状态。
  • 表单验证提供清晰反馈。
  • 页面在所有移动视口下可滚动(不被裁剪);CTA 无需滚动即可见。
  • 在 prefers-reduced-motion: reduce 下暂停/移除跑马灯动画。
  • 所有交互元素具有可见的焦点样式(轮廓,不仅仅是 outline:none)。
  • 键盘:Tab 键可到达每个表单字段;Enter 键提交。
  • WCAG AA 对比度:正文文本 ≥4.5:1,按钮标签 ≥4.5:1。
  • 存在 Logo alt/aria-label;跑马灯具有 aria-hidden="true"。
  • <html lang=""> 设置为正确的语言代码。

装饰限制:

  • 下方区域在不分散注意力的情况下增强效果。使用透明度、细微描边、柔和动画。
  • 无渐变色跨越超过视口高度的 20%。
  • 螺旋、条纹、网格或跑马灯仅使用 DESIGN.md 中的颜色。

输出

仅在 references/checklist.md 中的所有 P0 门通过后输出。

在标签之间输出产物:

<artifact identifier="waitlist-id" type="text/html" title="即将推出 — {{PRODUCT_NAME}}">
<!doctype html>
<html lang="en">
...
</html>
</artifact>

产物上方有一行描述;下方无内容。

输出后: 如果用户要求更改,就地更新 index.html 并在输出下一个版本前重新运行 P0 检查清单门。不要在迭代中跳过验证。

Individual skills in this repo

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

jhy0285/monofield

Produce a print-grade single-page kami (紙 / 纸) document — warm parchment canvas, ink-blue accent, serif at one weight, no italic, no cool grays. The output reads like a professional white paper or studio one-pager, not an app UI. Multilingual by design (EN · zh-CN · ja). One self-contained HTML file, zero dependencies.

jhy0285/monofield

Produce a single-file slide deck in the Atelier Zero visual language (warm-paper background, italic-serif emphasis spans, coral terminating dots, surreal collage plates) — Open Design's brand deck recipe. The deck uses **horizontal magazine-style swipe pagination** (←/→, wheel, swipe), a per-slide chrome strip with brand mark and slide counter, an ESC overview grid, a coral progress bar, and inherits the canonical stylesheet + 16-slot image library from the sister `open-design-landing` skill.

jhy0285/monofield

Produce a world-class single-page editorial landing site in the Atelier Zero visual language (Monocle / Apartamento / Études editorial collage) — the same aesthetic Open Design uses for its own marketing surface. The agent fills a typed `inputs.json` from a brand brief, optionally generates 16 collage assets via gpt-image-2, then runs a pure-function composer that emits a self-contained HTML file; a separate path can mirror the Astro marketing site in `apps/landing-page/`. Drop-in scroll-reveal motion and a Headroom-style sticky nav are wired automatically.

jhy0285/monofield

A standalone pricing page — header, plan tiers, feature comparison table, and an FAQ. Use when the brief asks for "pricing", "plans", "subscription tiers", or a "compare plans" page.

jhy0285/monofield

Single-page SaaS landing with hero, features, social proof, pricing, and CTA. Respects the active DESIGN.md color/typography/layout tokens. Trigger keywords: "saas landing", "marketing page", "product landing".

jhy0285/monofield

Single-page SaaS landing with hero, features, social proof, pricing, and CTA. Respects the active DESIGN.md color/typography/layout tokens. Trigger keywords: "saas landing", "marketing page", "product landing".

jhy0285/monofield

Use this plugin when the user wants a premium, GSAP-driven cinematic B2B landing page: a scroll-driven full-screen video slider hero with clip-path ellipse transitions, SplitText char-reveal headlines, a masonry product gallery, scroll-reveal about text, a partner marquee, Lottie-style feature cards, and a multi-office footer. Invoke for 'cinematic landing page', 'video hero landing', 'bakery / food-service landing', 'GSAP scroll site', or when the user references the Cinematic Landing Page template.

jhy0285/monofield

Use this plugin when the user wants a single-page immersive parallax landing page with a scroll-driven portal/curtain entrance and a curved arc card slider — a 'dreamcore' / 'reverie' hero that scales a portal image toward the viewer as the user scrolls into a second dream-world scene. Invoke for 'parallax landing', 'scroll cinematic hero', 'portal zoom landing', 'arc card slider', or when the user references the Dreamcore Landing template.

jhy0285/monofield

Use this plugin when the user wants a dark, pure-monochrome newsletter / content-platform landing page (Mindloop): fullscreen video hero, Instrument-Serif italic accent words, liquid-glass controls, scroll-driven word-by-word mission reveal, and an HLS-video CTA. Invoke for 'Mindloop landing', 'black monochrome newsletter landing page', 'video hero content platform', or when the user references the Mindloop template.

jhy0285/monofield

Programmatic video creation with React. Useful for branded explainers, social cuts, dashboards-to-video, and reproducible motion graphics.

相关技能