firecrawl-website-design-clone

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Firecrawl Website Design Clone

Firecrawl 网站设计复刻

Use this when the user wants one URL turned into a practical design system file agents can use immediately.
Default outcome: extract any website's design system in one line and format it as
DESIGN.md
.
The skill should feel like a thin workflow around Firecrawl scrape: gather the page's visible content, structure, metadata, links, and available visual signals, then synthesize those findings into a clean design-system markdown file.
当用户希望将单个URL转换为可供Agent立即使用的实用设计系统文件时,可使用本工具。
默认输出结果:一键提取任意网站的设计系统,并格式化为
DESIGN.md
文件。
本工具应作为Firecrawl抓取功能的轻量化工作流:收集页面的可见内容、结构、元数据、链接及可用视觉信号,随后将这些信息整合为一份简洁的设计系统Markdown文件。

Onboarding Interview

入门交互

Infer the source URL, target stack, and whether implementation is requested from context. If the user gives a URL and asks for a design system, proceed immediately.
Ask at most 1-3 concise questions only if blocked, such as the website URL, whether to output only
DESIGN.md
or also implement, or a required target stack.
Use the host agent's normal prompt or modal UI. Do not name a harness-specific question function.
从上下文推断源URL、目标技术栈,以及是否需要进行实现。若用户提供URL并要求生成设计系统,可直接执行流程。
仅在受阻时提出最多1-3个简洁问题,例如网站URL、是否仅输出
DESIGN.md
还是同时进行实现,或是指定所需的目标技术栈。
使用宿主Agent的常规提示或模态UI,无需提及特定的问题函数。

Firecrawl Collection Plan

Firecrawl 采集方案

Use Firecrawl through the CLI or equivalent tool surface. Always start with two parallel scrapes of the supplied URL:
  1. The
    branding
    and
    images
    formats together for structured design tokens and the full set of page images.
  2. A full-page screenshot for visual context.
Example:
bash
firecrawl scrape "https://example.com" --format branding,images -o ".firecrawl/example-branding.json" --pretty &
firecrawl scrape "https://example.com" --full-page-screenshot -o ".firecrawl/example-screenshot.png" &
wait
Combining
branding
and
images
in one call still costs a single credit and is required: the
branding
block only surfaces curated brand assets (
logo
,
favicon
,
ogImage
,
logoHref
), so without
images
the agent will miss the page's actual content imagery (heroes, product shots, carousel slides, feature visuals, illustrations, accessory photos, end-of-page artwork, and similar). On a product page like
tesla.com/cybertruck
the
branding
block has no hero — only
images
returns the main Cybertruck hero (e.g.
Cybertruck-Hero-Desktop-NA-SA-APAC.png
) and the rest of the page's photography.
If the screenshot scrape returns a remote image URL (e.g. signed storage link) instead of a local file, download it to the same
.firecrawl/
path so
DESIGN.md
can reference a stable local asset.
Use the structured
branding
output as the primary source for colors, typography, components, brand assets (logo, favicon, ogImage), personality, and confidence notes. Use the
images
list as the source of truth for the page's content imagery — hero photography, product shots, carousels, feature visuals, illustrations, and decorative graphics. Use the screenshot as the primary visual reference for layout, hierarchy, and overall feel. Add supplemental formats only when these are insufficient for the final artifact.
Collect:
  • branding data for colors, typography, spacing, buttons, logos, brand imagery, personality, and confidence
  • the full
    images
    list for hero, product, feature, and section imagery beyond the curated brand assets
  • a full-page screenshot saved locally in
    .firecrawl/
    so it can be embedded in
    DESIGN.md
  • page markdown for headings, copy hierarchy, CTAs, navigation, and section order when needed
  • metadata and links for brand, product, and page-purpose clues when needed
  • HTML only when the branding output, images list, and screenshot are insufficient to infer classes, font names, CSS variables, or component structure
  • related pages only when the user asks for a broader site system
Do not over-crawl by default. The first version should be useful from a single representative page.
通过CLI或等效工具调用Firecrawl。始终对提供的URL启动两个并行抓取任务:
  1. 同时使用
    branding
    images
    格式,获取结构化设计令牌及页面完整图片集。
  2. 抓取全页截图以提供视觉参考。
示例:
bash
firecrawl scrape "https://example.com" --format branding,images -o ".firecrawl/example-branding.json" --pretty &
firecrawl scrape "https://example.com" --full-page-screenshot -o ".firecrawl/example-screenshot.png" &
wait
在单次调用中结合
branding
images
格式仅消耗1个积分,且为必填操作:
branding
模块仅提供经过筛选的品牌资产(
logo
favicon
ogImage
logoHref
),若不使用
images
格式,Agent将无法获取页面的实际内容图片(如首屏图、产品图、轮播图、功能视觉图、插画、装饰照片、页尾图形等)。以
tesla.com/cybertruck
这类产品页面为例,
branding
模块不包含首屏图——只有
images
格式会返回Cybertruck的主首屏图(例如
Cybertruck-Hero-Desktop-NA-SA-APAC.png
)及页面其余摄影内容。
若截图抓取返回的是远程图片URL(如签名存储链接)而非本地文件,请将其下载至同一
.firecrawl/
路径下,以便
DESIGN.md
可引用稳定的本地资源。
以结构化的
branding
输出作为颜色、排版、组件、品牌资产(logo、favicon、ogImage)、风格调性及可信度说明的主要来源。以
images
列表作为页面内容图片的权威来源——包括首屏摄影、产品图、功能图及板块图片,而非依赖仅包含
logo
favicon
ogImage
logoHref
branding.images
。以截图作为布局、层级结构及整体风格的主要视觉参考。仅当上述信息不足以生成最终产物时,才补充其他格式的采集内容。
采集内容包括:
  • 品牌数据:颜色、排版、间距、按钮、logo、品牌图片、风格调性、可信度说明
  • 完整
    images
    列表:除筛选后的品牌资产外,还包括首屏、产品、功能及板块图片
  • 保存至本地
    .firecrawl/
    目录的全页截图,以便嵌入
    DESIGN.md
  • 页面Markdown:必要时获取标题、文案层级、CTA、导航及板块顺序
  • 元数据与链接:必要时获取品牌、产品及页面用途相关线索
  • HTML:仅当品牌输出、图片列表及截图不足以推断样式类、字体名称、CSS变量或组件结构时才采集
  • 关联页面:仅当用户要求获取更全面的站点系统时才采集
默认避免过度抓取。首个版本应仅基于单个代表性页面即可提供有效内容。

What To Extract

提取内容

Infer and document the site's design language:
  • colors: primary, secondary, accents, backgrounds, borders, text, states
  • typography: font families if detectable, type scale, weights, line heights, heading/body treatment
  • spacing: container widths, section rhythm, grid gaps, padding scale, density
  • layout: page structure, hero patterns, cards, grids, nav, footer, responsive assumptions
  • components: buttons, inputs, cards, badges, nav items, pricing blocks, testimonials, feature rows, forms
  • imagery and icons: style, shape language, illustration/photo treatment, logo constraints; pull representative hero, product, feature, and section images from the full
    images
    list rather than relying on
    branding.images
    , which only carries
    logo
    ,
    favicon
    ,
    ogImage
    , and
    logoHref
  • motion and interaction: hover states, transitions, animation style when observable or inferable
  • voice and content patterns: CTA wording, heading style, product copy rhythm
When a value cannot be measured exactly from scrape output, label it as inferred and give a practical approximation.
推断并记录网站的设计语言:
  • 颜色:主色、辅助色、强调色、背景色、边框色、文本色、状态色
  • 排版:可检测到的字体家族、字号层级、字重、行高、标题/正文处理方式
  • 间距:容器宽度、板块节奏、网格间距、内边距层级、密度
  • 布局:页面结构、首屏模式、卡片、网格、导航、页脚、响应式假设
  • 组件:按钮、输入框、卡片、徽章、导航项、定价模块、 testimonials、功能行、表单
  • 图片与图标:风格、造型语言、插画/照片处理方式、logo约束;从完整
    images
    列表中提取具有代表性的首屏、产品、功能及板块图片,而非依赖仅包含
    logo
    favicon
    ogImage
    logoHref
    branding.images
  • 动效与交互:可观察或推断的悬停状态、过渡效果、动画风格
  • 语气与内容模式:CTA措辞、标题风格、产品文案节奏
若无法从抓取输出中精确获取某一数值,需标记为推断值并给出实用近似值。

Parallel Work

并行工作

If appropriate, use sub-agents or equivalent parallel task runners. Natural splits include one page per researcher for multi-page sites, or one reviewer each for colors, typography, spacing, and components.
Each parallel researcher should return source URLs, extracted evidence, inferred design tokens, and confidence notes.
若合适,可使用子Agent或等效并行任务运行器。常见的任务拆分方式包括:多页面站点分配每个页面一名研究员,或为颜色、排版、间距、组件分别分配一名审核员。
每位并行研究员需返回源URL、提取的证据、推断的设计令牌及可信度说明。

Final Deliverable

最终交付物

Create or return a
DESIGN.md
with this structure. Embed the full-page screenshot near the top so a coding agent gets visual context alongside the tokens.
markdown
undefined
创建或返回具有以下结构的
DESIGN.md
文件。将全页截图嵌入文件顶部,以便编码Agent在查看设计令牌的同时获取视觉参考。
markdown
undefined

DESIGN.md: [Source Site]

DESIGN.md: [源网站名称]

Source

来源

  • URL: [source URL]
  • Capture date: [date]
  • Evidence: [scrape/screenshot/html/links used]
  • URL: [源URL]
  • 采集日期: [日期]
  • 证据: [使用的抓取/截图/HTML/链接]

Reference Screenshot

参考截图

Full-page screenshot of [Source Site]
Use this screenshot as the visual source of truth for layout, hierarchy, density, and feel. Tokens below describe the same page in machine-readable form.
[源网站名称]全页截图
请将此截图作为布局、层级、密度及风格的视觉权威参考。下方的设计令牌以机器可读形式描述同一页面。

Design Summary

设计摘要

[Short description of the visual language and what an agent should recreate]
[视觉语言的简短描述,以及Agent需要复刻的内容]

Design Tokens

设计令牌

Colors

颜色

[Named color roles with hex values when known; mark inferred values clearly]
[已知的带十六进制值的命名色角色;明确标记推断值]

Typography

排版

[Fonts, fallback recommendations, scale, weights, heading/body rules]
[字体、备选字体建议、字号层级、字重、标题/正文规则]

Spacing And Layout

间距与布局

[Spacing scale, containers, grids, radius, shadows, borders]
[间距层级、容器、网格、圆角、阴影、边框]

Components

组件

[Buttons, cards, nav, forms, hero, feature sections, pricing, footer, etc.]
[按钮、卡片、导航、表单、首屏、功能板块、定价、页脚等]

Page Patterns

页面模式

[Section order, common layouts, responsive behavior]
[板块顺序、通用布局、响应式行为]

Content Style

内容风格

[Voice, CTA style, heading patterns, copy density]
[语气、CTA风格、标题模式、文案密度]

Agent Build Instructions

Agent 构建说明

[Concrete instructions an AI coding agent can follow to create a new site in this style]
[AI编码Agent可遵循的具体指令,用于创建该风格的新网站]

Rerun Inputs

重运行参数

workflow: firecrawl-website-design-clone source_url: [url] target_stack: [stack] output: DESIGN.md

If the user asks to implement, first produce or update `DESIGN.md`, then use it as the source of truth for the build.
workflow: firecrawl-website-design-clone source_url: [url] target_stack: [stack] output: DESIGN.md

若用户要求进行实现,需先生成或更新`DESIGN.md`,再以此为权威来源开展构建工作。

Quality Bar

质量标准

  • Do not imply the user has rights to third-party logos, images, trademarks, or copy.
  • Prefer reusable design tokens over one-off observations.
  • Distinguish observed facts from inferred approximations.
  • Keep the output compact enough that another agent can paste it into context and build from it.
  • Preserve source URLs and scrape artifacts for review.
  • 不得暗示用户拥有第三方logo、图片、商标或文案的使用权。
  • 优先采用可复用的设计令牌,而非一次性观察结果。
  • 区分已观测事实与推断近似值。
  • 输出内容需足够简洁,以便其他Agent可将其纳入上下文并开展构建工作。
  • 保留源URL及抓取产物以供审核。