Sandbox
@Weaverse/shopify-hydrogen-skills

Shopify Hydrogen skills for Weaverse and coding agents

This repo packages agent skills that teach your coding assistant how to work with Shopify Hydrogen and Weaverse. The skills cover new-project setup, storefront APIs, feature recipes, upgrades, localization, analytics, and live content updates. It also ships live doc search scripts so the agent can pull current Shopify and Weaverse references while working.

87 stars26 forksTypeScriptUpdated 7d ago
Who it's for

Builders who want their agent to handle Shopify Hydrogen storefront work with Weaverse.

What it delivers

You can have your agent scaffold, update, and maintain Hydrogen storefronts with less re-explaining and fewer workflow mistakes.

What it does

New project setup

`skills/setup-weaverse-project/SKILL.md` guides first-time storefront setup, including scaffold, demo store boot, session secret generation, and preview connection.

Core Hydrogen guidance

`skills/shopify-hydrogen/SKILL.md` covers Hydrogen APIs like context setup, cart handling, caching, pagination, SEO, and CSP.

Weaverse integration

`skills/weaverse-hydrogen/SKILL.md` and `skills/weaverse-integration/SKILL.md` cover Weaverse components, schemas, loaders, theming, deployment, and adding Weaverse to an existing Hydrogen project.

Feature cookbooks

`skills/hydrogen-cookbooks/SKILL.md` provides step-by-step patterns for bundles, combined listings, 3D models, customer accounts, and performance.

Upgrade and theme workflows

`skills/hydrogen-upgrades/SKILL.md` and `skills/theme-update/SKILL.md` help with Hydrogen migrations and safe Pilot theme updates.

Live doc search

`scripts/search_shopify_docs.mjs`, `scripts/search_weaverse_docs.mjs`, and `scripts/get_weaverse_page.mjs` fetch current documentation at runtime.

Content and localization workflows

`skills/weaverse-content-api/SKILL.md` and `skills/hydrogen-markets-localization/SKILL.md` support content updates, resource uploads, markets, locales, translations, and SEO.

How to get it

  1. 1Run
    npx skills add Weaverse/shopify-hydrogen-skills

README

Shopify Hydrogen Skills

Agent skills for building, maintaining, and upgrading Shopify Hydrogen storefronts with Weaverse. Works with Claude Code, Cursor, GitHub Copilot, Windsurf, OpenCode, OpenClaw, Gemini CLI, and any agent that supports markdown skill files.

Why skills, not docs? Skills are concise, agent-optimized knowledge that your coding agent loads before working on a task — structured for LLMs, not humans. Pair them with live doc search for the best results.

Quick Install

npx skills add Weaverse/shopify-hydrogen-skills

Auto-detects your coding agents and installs to all of them. Powered by skills.sh.

For manual per-agent setup, see INSTALL.md.


Skills

SkillWhat the agent learnsWhen to load
setup-weaverse-projectFast new-project onboarding — CLI-first scaffold, demo-store boot before credentials, generated SESSION_SECRET, GitHub repo, Builder preview connectionStarting a brand-new Weaverse Hydrogen storefront or running a theme locally for the first time
shopify-hydrogenCore Hydrogen APIs — createHydrogenContext, cart handler, caching, pagination, SEO, CSPWorking with @shopify/hydrogen APIs
weaverse-hydrogenWeaverse components, schemas, loaders, theming, deploymentAny Hydrogen + Weaverse project
hydrogen-cookbooksStep-by-step guides — bundles, combined listings, 3D models, customer accounts, performanceBuilding specific features
hydrogen-upgradesBreaking changes and migration steps for Hydrogen framework versionsUpgrading Hydrogen framework
theme-updateSafe Pilot theme updates — detect version, plan changes, preserve customizations, verify buildUpdating a customer's Pilot theme
weaverse-integrationIntegrate Weaverse into an existing Hydrogen project — analyze codebase, convert components, set up SDK, configure routesAdding Weaverse to a project that doesn't use it yet
cloning-websites-to-weaverseRecreate reference websites as Hydrogen + Weaverse pages with preview checkpoints and section mappingCloning a site or brand hub into Weaverse
figma-to-weaverseTurn a Figma design into Weaverse sections via Figma MCP — token mapping, content manifest, preview checkpointBuilding a storefront from a Figma file
generating-weaverse-project-jsonGenerate import-ready Weaverse project export JSON from section plans, specs, or existing exportsBuilding Weaverse import files
weaverse-content-apiRead/update live Weaverse content over the REST Content API — bulk edits, AI content pipelines, Shopify resource uploadUpdating a project after it exists
hydrogen-analytics-trackingEnd-to-end tracking on Hydrogen — GTM, GA4 (browser + Measurement Protocol), Meta Pixel + CAPI, Google Ads, Consent Mode v2, CSP, Oxygen FPC, Weaverse webhook forwardingImplementing analytics/conversion tracking on a Hydrogen storefront
hydrogen-markets-localizationEnd-to-end Shopify Markets localization — canonical market config, locale routing, Weaverse translations, RTL, cart/account/checkout continuity, SEO, and production readbackAdding or reviewing markets, locales, translations, hreflang, or localized commerce flows

Weaverse build pipeline

The site-building skills chain from a source (website or Figma) to a live, maintainable Weaverse project:

INPUT ADAPTERS                          GENERATE                       DELIVER
cloning-websites-to-weaverse  ┐
                              ├─→  generating-weaverse-project-json ─→  import once into Studio (creates structure)
figma-to-weaverse             ┘                                    └─→  weaverse-content-api (updates content after,
                                                                         bulk edits, Shopify resource upload)

Initial structure is created by importing the generated JSON (or page-by-page via POST /projects/:projectId/pages). Everything after — copy, images, localization, bulk edits — goes through the Content API, which updates existing items, adds new typed items, relinks children, and creates/deletes pages.


Live Docs

Instead of baking static API docs into skill files (which go stale), this repo ships live doc fetching scripts that query official sources at runtime:

# Search Shopify Hydrogen docs (shopify.dev)
node scripts/search_shopify_docs.mjs "createHydrogenContext"
node scripts/search_shopify_docs.mjs "CartForm actions"

# Search Weaverse docs (docs.weaverse.io)
node scripts/search_weaverse_docs.mjs "component schema"

# Fetch a specific Weaverse doc page
node scripts/get_weaverse_page.mjs "development-guide/component-schema"

# Check for Pilot theme updates
node skills/theme-update/scripts/check_pilot_updates.mjs

The references/ folders in each skill serve as offline fallback — cached snapshots for when live search is unavailable.

ScriptSourceEndpoint
search_shopify_docs.mjsshopify.devHydrogen API search
search_weaverse_docs.mjsdocs.weaverse.ioWeaverse docs search (Mintlify MCP)
get_weaverse_page.mjsdocs.weaverse.ioFull page fetch by path
check_pilot_updates.mjsgithub.comPilot release version check

All scripts are zero-dependency — Node.js 18+ built-ins only.


Repo Structure

├── skills/
│   ├── setup-weaverse-project/    # New project setup from zero to local preview
│   │   └── SKILL.md
│   │
│   ├── shopify-hydrogen/          # Core Hydrogen APIs
│   │   ├── SKILL.md
│   │   └── references/            # Setup, caching, cart patterns
│   │
│   ├── weaverse-hydrogen/         # Weaverse CMS integration
│   │   ├── SKILL.md
│   │   ├── references/            # 13 deep-dive guides
│   │   └── examples/              # Production-ready component code
│   │
│   ├── hydrogen-cookbooks/        # Feature recipes
│   │   ├── SKILL.md
│   │   └── references/            # Bundles, combined listings, 3D, etc.
│   │
│   ├── hydrogen-upgrades/         # Framework version migrations
│   │   ├── SKILL.md
│   │   └── references/            # 2024.4.7 → … → 2026.1.0
│   │
│   ├── theme-update/              # Pilot theme updater
│       ├── SKILL.md
│       └── scripts/
│           └── check_pilot_updates.mjs
│
│   ├── weaverse-integration/      # Integrate into existing Hydrogen
│       └── SKILL.md
│
│   ├── cloning-websites-to-weaverse/      # Clone sites into Weaverse
│   │   └── SKILL.md
│
│   ├── figma-to-weaverse/            # Figma design → Weaverse sections
│   │   ├── SKILL.md
│   │   └── references/              # Figma MCP extraction + token mapping
│
│   ├── generating-weaverse-project-json/  # Weaverse import JSON generator
│   │   ├── SKILL.md
│   │   ├── references/
│   │   └── scripts/
│
│   ├── weaverse-content-api/         # Live content read/update over REST
│   │   ├── SKILL.md
│   │   ├── references/              # Endpoints + Portable Text
│   │   └── scripts/
│   │       └── weaverse_content_api.mjs
│   │
│   └── hydrogen-markets-localization/ # Markets and localization workflow
│       ├── SKILL.md
│       └── references/              # Verification checklist
│
├── scripts/                       # Live doc fetching (shared)
│   ├── search_shopify_docs.mjs
│   ├── search_weaverse_docs.mjs
│   └── get_weaverse_page.mjs
│
├── .cursorrules                   # Cursor agent rules
├── AGENTS.md                      # Repo guidance for AI agents
├── INSTALL.md                     # Manual per-agent install guide
└── package.json

Contributing

PRs welcome — especially for:

  • New cookbooks (feature implementation guides)
  • Upgrade guides for newer Hydrogen versions
  • Improved offline references
  • New live doc scripts for other sources

License

MIT — Weaverse

Files in the repo

Repository payload7 top-level entries
  • scripts
  • skills
  • .cursorrules
  • AGENTS.md
  • INSTALL.md
  • package.json
  • README.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More skills

obra/
superpowers

An agentic skills framework & software development methodology that works.

285k
1 add

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

117k
1 add
Vincentwei1021/
anything2explainer

Topic in, narrated explainer video out. A Claude Code / Codex skill that turns any topic into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar. Chinese or English; every frame drawn in code with Remotion.

666

Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

71k