Communitygithub.com

網站拆解

將一個實際網站解析為逐區的建置摘要,讓其他人或 AI 可以根據此摘要重建,並將品牌名稱、色彩、字型與圖片皆替換為佔位符。

網站拆解 是什麼?

此技能(「網站拆解」)可將開發者或設計師欣賞的網站頁面轉化為精確的建置摘要,使其能夠在不複製原始品牌、文案或多媒體素材的前提下重建網站。它適用於 Claude Code、Cursor、Codex 等 AI 代理平台,特別當使用者提供 URL 並要求「分析這個網站」、「做一個類似的」、「給我一個用來建置的提示」、「複製這個效果」、「用我的品牌複製版面」時,非常有用。其工作流程包括:擷取頁面的文字內容與標記來源(若可使用瀏覽器工具,也觀察動畫),盤點區段、版面、內容位置與重複模式,識別全局模式(如標籤格式與按鈕樣式),並從來源中偵測程式庫(如 GSAP、ScrollTrigger、Swiper)。所有品牌特定元素(名稱、色彩、字型、圖片)都會被替換為佔位符,確保摘要可重複使用且可合法建置。最終輸出採結構化模板,包含品牌資訊、全局模式、逐區規格與品質檢查,並清楚標示哪些部分是觀察所得、哪些是推測所得。

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

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

網站拆解 是做什麼的?

將使用者欣賞的頁面轉化為足夠精確的建置摘要,無需複製原始的品牌、文案或多媒體素材。

為什麼輸出是摘要,而非複製品

版面模式、區段順序與動畫技術屬於常見的工藝,可以自由學習。原始網站的用詞、標誌、照片、插圖與程式碼屬於其所有者。因此,此摘要僅描述結構與行為,並將所有品牌特定內容替換為佔位符。這也使得摘要可重複使用:一次拆解可衍生出許多不同品牌的網站。

工作流程

  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.

相關技能