Communitygithub.com

サイト分解(サイトティアダウン)

ライブサイトを分析し、ブランド名、色、フォント、画像をプレースホルダーに置き換えた、セクションごとの構築ブリーフに変換します。誰かが「このサイトを分析して」「これみたいなものを作って」「これを構築するプロンプトを教えて」「このエフェクトを再現して」「私のブランドでレイアウトをクローンして」とURLを共有したときや、ページのアニメーションや構造がどう動くか尋ねたとき(たとえ「分解」と言わなくても)に使用します。

サイト分解(サイトティアダウン) とは?

このスキルは、誰かが賞賛するウェブページを、元のブランド、コピー、メディアをコピーせずに、再構築するのに十分な精度のブリーフに変換します。ブリーフは、オリジナルの著作権を尊重しながら、レイアウトパターン、セクション構成、モーションテクニックなどの共通のクラフトを学習し再利用可能にすることを目的としています。ワークフローでは、ページを取得(レンダリングテキスト、HTMLソース、CSS、JSを読み取り、スクロール動作を観察)、セクションインベントリを作成し、スタック(GSAP、ScrollTrigger、Lenis、Swiperなどのライブラリ)を特定し、アニメーションを観測値と推測値に分けて詳細に指定し、ブランド固有のすべての要素をプレースホルダーに置き換えます。出力は、ページタイプ、スタック、ブランド情報、グローバルパターン、番号付きセクション、品質基準を含む構造化されたマークダウンテンプレートです。このスキルは、ユーザーが「このサイトを分析して」または「これみたいなものを作って」と明確に要求したときに、それを「これは自分のサイトだ」と明言していない限り自動的にトリガーされ、元のコピーやアセットは決して保持されません。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/imperfec-t/webcraft/tree/HEAD/skills/site-teardown

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

サイト分解

誰かが賞賛するページを、元のブランド、コピー、メディアをコピーせずに再構築できるほど正確なブリーフに変換します。

出力がコピーではなくブリーフである理由

レイアウトパターン、セクションの順序、モーションテクニックは一般的なクラフトであり、自由に学ぶことができます。オリジナルの文言、ロゴ、写真、イラスト、コードはその所有者に帰属します。そのため、ブリーフは構造と動作を説明し、ブランド固有のものをすべてプレースホルダーに置き換えます。これにより、ブリーフは再利用可能にもなります。1つの分解から、異なるブランドの多くのサイトを生み出すことができます。

ワークフロー

  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。CMSのmeta generator、テーマ、プラグインパスを確認します。
  6. モーションを数値で指定する。 トリガー、プロパティ、開始値と終了値、持続時間、イージング、スタガー。「きれいにフェードイン」では構築できません。「y 40px to 0, opacity 0 to 1, 0.8s, power3.out, 0.1s stagger, on enter at 80% viewport」なら構築できます。
  7. ブランド固有のものを角括弧内のプレースホルダーに置き換える。 [BRAND NAME]、[ACCENT]、[HERO IMAGE]、[Headline, 6 to 8 words]。コピーの形状(行数、おおよその長さ)は、レイアウトを決定するため、維持します。
  8. 以下のテンプレートを使用してブリーフを作成する。

ブリーフテンプレート

[ページタイプ] を [スタック] で構築します。[テーマ: ライト/ダーク]。完全レスポンシブ。
prefers-reduced-motion を尊重します。

ブランド
- 名前、色(背景、テキスト、アクセント、サーフェス、ボーダー)、フォント、画像リスト

グローバルパターン
- セクションラベル形式、ヘッドラインのリビール、ボタンの動作、カードの動作

セクション(番号付き、ページ順)
N. 名前
   レイアウト: ...
   コンテンツスロット: ...
   モーション: ...

品質基準
- パフォーマンス、アクセシビリティ、ブレークポイント

引き渡す前のチェックリスト

  • ページ上のすべてのセクションが、順番通りにブリーフに含まれていること。
  • オリジナルのコピーの一文、オリジナルの画像URL、ブランド名が残っていないこと。
  • 各アニメーションにトリガー、値、持続時間、イージングが含まれていること。
  • 観測と推測の区別が、上部近くの1行で述べられていること。
  • ブリーフが貼り付け可能な状態であること:1つのコードブロックで、内部にコメントがないこと。

ページの所有者が自分のサイトである場合

ユーザーが自分のサイトだと言った場合、実際のコピーとアセット名を別の「現在のコンテンツ」付録に保持できます。それでもメインのブリーフはプレースホルダーベースにしておき、依頼されたリブランドに機能するようにします。

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.

関連スキル