Generating Weaverse Project Jsonのロゴ

Generating Weaverse Project Json

組織
Weaverse
generating-weaverse-project-json

WeaverseエディターにインポートするためのWeaverseプロジェクトのエクスポートJSONを生成するときに使用します。サイト移行、デザイン仕様、ページレイアウトの説明、既存のエクスポートをもとにWeaverseプロジェクトのJSONファイルを作成する依頼をきっかけに使用します。セクションの計画を、インポート可能なプロジェクトデータやページデータに変換する場合にも使用します。

Add to TypingMind

概要

公開者Weaverse
リポジトリshopify-hydrogen-skills
スキル名generating-weaverse-project-json
スター
87
フォーク
26
同梱ファイル
3
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 3個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    WeaverseがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Generating Weaverse Project Json」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Weaverse/shopify-hydrogen-skills/tree/main/skills/generating-weaverse-project-json
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Weaverse/shopify-hydrogen-skills.git /tmp/shopify-hydrogen-skills
mkdir -p .claude/skills
cp -r /tmp/shopify-hydrogen-skills/skills/generating-weaverse-project-json .claude/skills/generating-weaverse-project-json
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでGenerating Weaverse Project Jsonを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にGenerating Weaverse Project Jsonを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Generating Weaverse Project Jsonは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Generating Weaverse Project JSON

Generate valid, import-ready Weaverse project export JSON files.

Overview

This skill produces JSON files that conform to the Weaverse import contract. It works independently — you can use it from a site migration, a design spec, a verbal description, or any other input that describes what pages and sections should exist.

The output is a single JSON file matching the schema in references/project-json-schema.md, with a real-world example in references/demo.json.

Inputs

This skill accepts any of these as input:

  • Section mapping from cloning-websites-to-weaverse (website migration flow)
  • Section mapping + token table from figma-to-weaverse (Figma design flow)
  • Design spec describing pages, sections, and content
  • Verbal description of what the storefront should look like
  • Existing export to modify or extend

The only hard requirement: you need to know which section types to use. Read app/weaverse/components.ts to get the list of registered sections and blocks.

Delivery

This skill produces an import JSON that establishes the project structure — pages, sections, and initial content. That JSON is imported once into the Weaverse Studio editor to create the project.

After the structure exists, ongoing content edits (copy, images, localization, bulk updates) should go through the weaverse-content-api skill, not by re-importing. The Content API can only update items that already exist, so the import-then-update split matters: use this skill to create structure, weaverse-content-api to maintain it. Keep the item ids stable between the two.

Generation Steps

  1. Read references — load references/project-json-schema.md for the contract and references/demo.json for a complete real-world example
  2. Identify registered types — read app/weaverse/components.ts to know which section and block types are available
  3. Read section source code — for each section type you plan to use, read its source in app/sections/ or app/components/ to learn valid schema fields, enum values, and defaults
  4. Build the JSON following the structure below
  5. Run the validator — execute python scripts/validate.py <output-file> to catch structural errors
  6. Fix any issues the validator reports, then re-run until clean

JSON Structure

Top-level

json
{
  "version": "1.0.0",
  "exportedAt": "<ISO timestamp>",
  "project": { "name": "<name>", "config": {} },
  "pages": [],
  "pageAssignments": []
}

project.config

Contains theme settings, locale, and colors. Accepted keys:

KeyTypePurpose
previewHoststringDev server URL, usually http://localhost:3456
themeobjectStorefront-wide design tokens (colors, typography, layout)
defaultLocaleobject{ label, language, country, currency, pathPrefix }
recentColorsstring[]Editor color picker recent colors

For theme, refer to references/demo.json → project.config.theme for the full set of valid keys. Key categories:

  • Colors: colorPrimary, colorText, colorBackground, colorLine, colorTextSubtle, colorLineSubtle, colorTextInverse, colorForeground
  • Typography: bodyBaseSize, bodyBaseLineHeight, bodyBaseSpacing, h1BaseSize, headingBaseLineHeight, headingBaseSpacing
  • Layout: pageWidth, footerWidth, headerWidth, navHeightDesktop, navHeightTablet, navHeightMobile
  • Header/Footer: headerBgColor, headerText, footerBgColor, footerText, topbarBgColor, topbarTextColor, topbarHeight
  • Buttons: buttonPrimaryBg, buttonPrimaryColor, buttonSecondaryBg, buttonSecondaryColor, btnCornerRadius
  • Product cards: pcardAlignment, pcardImageRatio, pcardBorderRadius, pcardShowVendor, pcardShowReviews, pcardShowSalePrice, etc.
  • Badges: newBadgeText, newBadgeColor, saleBadgeText, saleBadgeColor, soldOutBadgeText, soldOutBadgeColor, bestSellerBadgeText, bestSellerBadgeColor
  • Social: socialFacebook, socialInstagram, socialLinkedIn, socialX
  • Newsletter: newsletterTitle, newsletterDescription, newsletterButtonText, newsletterPlaceholder, newsletterPopupEnabled, etc.

Only include theme keys you understand and intend to set. Do not copy the entire demo theme blindly.

Pages

Each page has id, name, rootId, and a flat items array:

json
{
  "id": "b98mnnqmv3tmce7wmw3l7vw4",
  "name": "Homepage",
  "rootId": "019b917a-f48f-72d4-aee7-3b1eae6b7dca",
  "items": [
    { "id": "019b917a-f48f-72d4-aee7-3b1eae6b7dca", "type": "main", "data": {}, "children": [{ "id": "019b917a-f48f-72d4-aee7-3b1f5ca586c1" }] },
    { "id": "019b917a-f48f-72d4-aee7-3b1f5ca586c1", "type": "hero-image", "data": { "height": "small" }, "children": [{ "id": "019b917a-f48f-72d4-aee7-3b22cd55e21b" }] },
    { "id": "019b917a-f48f-72d4-aee7-3b22cd55e21b", "type": "heading", "data": { "content": "Welcome" }, "children": [] }
  ]
}

Key rules:

  • Flat items — all items live in the items array, hierarchy is expressed through children id-references
  • One root main item per page — its id must match rootId
  • children is REQUIRED on every item — use [] for leaf items, [{ "id": "<item-id>" }] for parents
  • data is REQUIRED on every item — use {} when no non-default values are needed
  • type must be a registered section or block type from app/weaverse/components.ts

CRITICAL: The Weaverse importer expects both data and children to be present on EVERY item. Omitting them causes silent import failures (empty page renders). Always include "data": {} and "children": [] even when empty.

Page Assignments

Maps pages to routes:

json
{ "pageId": "b98mnnqmv3tmce7wmw3l7vw4", "type": "INDEX", "handle": "", "locale": "en-us" }

Common types: INDEX, PRODUCT, COLLECTION, ALL_PRODUCTS, COLLECTION_LIST, PAGE, BLOG, ARTICLE, CUSTOM.

For CUSTOM pages, set handle to the route slug (e.g., "reseller"). For standard template pages, handle is usually empty "".

Template page stubs

Standard pages (product, collection, blog, article) that aren't being customized should be empty stubs:

json
{
  "id": "qa8xa47ou35atbo1ik4w7v6y",
  "name": "Default product",
  "rootId": "019b917a-f490-794d-95d0-82a578d7cdfc",
  "items": [{ "id": "019b917a-f490-794d-95d0-82a578d7cdfc", "type": "main", "data": {}, "children": [] }]
}

Data Value Rules

Only use verified enum values

Before writing any select, toggle-group, or position value, read the section source code. Common mistakes:

WrongCorrectField
"custom""small", "medium", "large", "full"height
"stretch""full", "fixed"width
"right" / "left""start", "end"desktopMediaPosition
"white" / "black""light", "dark"arrowsColor

Only include non-default values

If a field matches the schema default, omit it. The Weaverse editor strips defaults on save. Including them creates noise.

Shopify entity references

Collections and products use object format, not bare strings:

json
// Collections
"collections": [{ "id": 456905851102, "handle": "covers" }]

// Products
"product": { "id": 123456789, "handle": "my-product" }

If real Shopify IDs are unknown, omit the field or use []. Do not invent fake IDs.

Image fields

External images use a bare URL string. Shopify-hosted images use the media object:

json
// External
"backgroundImage": "https://example.com/image.jpg"

// Shopify media
"backgroundImage": {
  "id": "gid://shopify/MediaImage/12345",
  "url": "https://cdn.shopify.com/...",
  "width": 1920, "height": 1080, "altText": "Description"
}

ID Format Rules

Page IDs and item IDs use different formats:

EntityFormatExample
Page idCUID (25-char alphanumeric)b98mnnqmv3tmce7wmw3l7vw4
Item id (and rootId)UUID v7 (hyphenated)019b917a-f48f-72d4-aee7-3b1eae6b7dca

Integrity rules:

  • Every page id must be unique across the export
  • Every item id must be unique across the export
  • rootId must match the root main item's id exactly
  • Every child reference must point to an existing item in the same page
  • Page IDs are CUIDs — use a CUID generator or produce 25-char lowercase alphanumeric strings
  • Item IDs are UUIDs — use UUID v7 format (timestamp-sortable, hyphenated)

Validation

After generating the JSON, run the bundled validator:

bash
python scripts/validate.py <path-to-output.json>

The validator checks:

  • Valid JSON structure
  • Required top-level fields present
  • Every page has id, name, rootId, items
  • Every rootId resolves to an item with type: "main"
  • Every item has data and children fields (both required)
  • No duplicate item IDs
  • All child references resolve to existing items within the same page
  • All pageAssignment.pageId values resolve to existing pages

Fix any reported errors and re-run until clean. Do not deliver JSON that fails validation.

Common Mistakes

MistakeFix
Missing data or children on itemsBoth are REQUIRED on every item — use "data": {} and "children": [] even when empty
Nesting full items inside childrenUse { "id": "..." } references only
rootId doesn't match any itemEnsure root main item's id equals rootId
Using unregistered section typesRead app/weaverse/components.ts first
Duplicate IDsPage IDs = CUIDs, item IDs = UUIDs — every id must be unique
Including default values in dataOmit fields that match schema defaults
Guessing enum valuesRead the section source for valid options
Copying entire demo theme blindlyOnly include keys you understand and intend
Missing pageAssignmentsEvery page needs a route assignment
Fake Shopify IDsOmit unknown IDs, let user select in editor

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Generating Weaverse Project Json」では何ができますか?

WeaverseエディターにインポートするためのWeaverseプロジェクトのエクスポートJSONを生成するときに使用します。サイト移行、デザイン仕様、ページレイアウトの説明、既存のエクスポートをもとにWeaverseプロジェクトのJSONファイルを作成する依頼をきっかけに使用します。セクションの計画を、インポート可能なプロジェクトデータやページデータに変換する場合にも使用します。

TypingMindでGenerating Weaverse Project Jsonを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Generating Weaverse Project Jsonはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにGenerating Weaverse Project Jsonをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Weaverse/shopify-hydrogen-skills/tree/main/skills/generating-weaverse-project-jsonを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Generating Weaverse Project Jsonを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Generating Weaverse Project Jsonで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもGenerating Weaverse Project Jsonを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Generating Weaverse Project Json」は無料ですか?

WeaverseがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇