Communitygithub.com

网站拆解

分析一个真实网站,将其逐部分转化为可供他人或AI重建的构建简报,并将品牌名称、颜色、字体和图片替换为占位符。当有人分享一个URL并说“分析这个网站”、“做类似的东西”、“给我一个构建提示”、“重现这个效果”、“用我的品牌克隆这个布局”或询问页面动画或结构的工作原理时使用此技能,即使他们没有明确说“拆解”。

网站拆解 是什么?

该技能专注于将现有网站转化为结构化的、逐部分的构建简报,用于重建,同时避免版权问题。它通过移除原有内容并用通用占位符替换品牌特定元素(如品牌名称、颜色、字体和图片)来实现这一点,确保输出是合法且可重用的。该过程从抓取和分析目标网站的文本和HTML开始,识别其布局、内容槽(如标题、正文、行动号召、媒体)、重复出现的模式以及技术栈(包括GSAP、ScrollTrigger、Framer Motion等动画库的指纹)。每个动画都必须用精确的数字参数(如触发条件、属性、起始值和结束值、持续时间、缓动函数)进行指定,以确保可构建性。最终输出是一个标准化格式的构建简报,包含品牌指南、全局模式、按顺序排列的每个部分的布局与动作详情,以及质量标准(性能、可访问性、断点)。该技能还适用于网站所有者自己的项目:如果用户声明拥有该网站,可以单独保留真实内容,同时简报仍使用占位符以备重新品牌化。该技能支持多种平台,例如通过`webcraft` CLI工具(含MCP集成)和浏览器工具,帮助自动提取部分信息并识别技术栈。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/imperfec-t/webcraft/tree/HEAD/skills/site-teardown

在你喜欢的 AI 中提问

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

文档

网站拆解 是做什么的?

将他人欣赏的页面转化为足够精确的重建简报,而不抄袭原品牌的文案、内容或媒体。

为什么输出是简报,而不是抄写

布局模式、区块顺序和动效技术是通用的工艺,可以自由学习。原作中的文字、Logo、照片、插图和代码属于其所有者。因此,简报只描述结构和行为,并将所有品牌特有内容替换为占位符。这也使简报可复用:一次拆解可以衍生出许多不同品牌的网站。

工作流程

  1. 抓取页面。 读取渲染后的文本,并在可能的情况下读取 HTML 源码、关联的样式表和脚本。如果有浏览器工具可用,还可以滚动页面并记录哪些内容在移动。如果 webcraft CLI 可用,webcraft teardown URL(MCP:teardown_site)会根据标记生成区块清单、技术栈和占位符简报初稿,而 webcraft detect URL 会列出库及其版本。将初稿作为骨架,并补充其中标注为“推断”的内容。
  2. 说明你看不到的内容。 文本抓取能提供结构和文字,但无法获取 CSS 或 JS。要清楚说明简报的哪些部分是基于观察,哪些是基于推断,以便读者知道在哪里验证。默默猜测会产生一份看起来自信但构建错误的简报。
  3. 按顺序列出区块。 对每个区块:目的、布局(列数、网格、对齐方式)、内容槽(眉标、标题、正文、CTA、媒体)以及重复项的数量。
  4. 识别重复模式。 区块标签格式、按钮样式、卡片样式、显现动画。在“全局模式”下统一描述一次,而不是在每个区块中重复。
  5. 检测技术栈。 在源码中查找库的指纹:gsap、ScrollTrigger、lenis、swiper、splide、three、locomotive、aos、framer-motion、barba。检查 meta generator、主题和插件路径以识别 CMS。
  6. 用数字指定动画。 触发条件、属性、起始值和结束值、持续时间、缓动函数、交错延迟。“平滑淡入”无法构建;“y 40px 到 0,透明度 0 到 1,0.8 秒,power3.out,0.1 秒交错延迟,在进入 80% 视口时触发”可以。
  7. 用占位符替换品牌特有内容,放在方括号中:[品牌名称]、[强调色]、[主视觉图片]、[标题,6 到 8 个词]。保持文案的形态(行数、大致长度),因为这会影响布局。
  8. 使用以下模板编写简报。

简报模板

构建[页面类型]为[技术栈]。[主题:浅色/深色]。完全响应式。
尊重 prefers-reduced-motion。

品牌
- 名称、颜色(背景、文本、强调色、表面、边框)、字体、图片列表

全局模式
- 区块标签格式、标题显现、按钮行为、卡片行为

区块(按页面顺序编号)
N. 名称
   布局:...
   内容槽:...
   动效:...

质量标准
- 性能、无障碍性、断点

交接前检查

  • 页面上的每个区块都按顺序出现在简报中。
  • 没有原始文案的句子、原始图片 URL 或品牌名称遗留下来。
  • 每个动画都有触发条件、值、持续时间和缓动函数。
  • 在简报顶部附近以一行说明“基于观察”与“基于推断”。
  • 简报可直接粘贴:一个代码块,内部无注释。

当用户拥有该网站时

如果用户声明这是他们自己的网站,你可以在一个单独的“当前内容”附录中保留其真实的文案和素材名称。主简报仍需基于占位符,以便服务于他们要求的重新品牌化。

Individual skills in this repo

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

design-tokens

Create a website's visual system as CSS custom properties, covering color palette, typography scale, spacing, radius and shadows, with contrast checked. Use this whenever someone asks for a color scheme, a palette from one brand color, font pairing, a type scale, "make it look consistent", dark mode, a rebrand of an existing site into new colors, or starts a build with no defined styles.

hero-section

Design and build the hero (first screen) of a website, including headline layout, media treatment, CTA, proof badge, marquee and entrance animation. Use this whenever someone asks for a hero section, a landing page header, "the top of my homepage", a cinematic or animated intro, a video background, a text marquee, or says their first screen looks plain or generic.

homepage-blueprint

Plan the section structure and content slots of a homepage for an agency, freelancer, studio or service business before any design or code. Use this whenever someone asks "what sections should my homepage have", "plan my website", "structure a landing page for my business", wants a wireframe or sitemap for a service site, or starts building a homepage without a clear outline.

launch-qa

Run a pre-launch quality check on a website covering performance, accessibility, SEO basics, forms, cross-device behavior and content, and report findings ranked by severity with fixes. Use this whenever someone says a site is "ready to launch", "going live", asks "can you check my site", wants a QA pass, a website audit, a Lighthouse-style review, or wants to know why a page is slow or scoring badly.

responsive-layout

Build page layouts that work from phones to wide desktops using CSS grid, flexbox, container queries and fluid sizing, including card grids, bento grids, split sections, sticky sidebars and navigation that collapses. Use this whenever someone says their site "breaks on mobile", asks for a responsive grid, a bento layout, a mobile menu, fixing horizontal scroll or overflow, or is laying out any multi-column section.

scroll-motion

Add scroll-driven and entrance animation to a website with GSAP, ScrollTrigger and Lenis, including reveals, parallax, pinned sections, horizontal scroll, line drawing, counters and preloaders. Use this whenever someone wants a site to "feel premium", asks for smooth scrolling, scroll animations, parallax, text reveals, a pinned or sticky scroll section, an animated preloader, or names GSAP, ScrollTrigger, Lenis, Locomotive or AOS.

website-workflow

Plan and sequence a whole website build, from structure through design, code, WordPress and launch, by routing each stage to the right webcraft skill. Use this when someone asks to "build me a website", "design my site from scratch", "redo our homepage", wants an end-to-end plan for a marketing, agency, studio or service site, or the request spans more than one of structure, look, layout, motion, CMS and QA.

wordpress-theme-build

Turn a static HTML/CSS/JS design into a custom WordPress theme that the client can edit, covering theme structure, theme.json, enqueueing scripts, block patterns, custom post types and editable content. Use this whenever someone wants to convert a design or static site to WordPress, build a custom or block theme, make sections editable in Gutenberg, add GSAP or other scripts to a theme properly, or asks why their theme edits are lost or their content is hard-coded.

相关技能