hydrogen-cookbooks

$npx mdskill add Weaverse/shopify-hydrogen-skills/hydrogen-cookbooks

Provides step-by-step implementation guides for building Shopify Hydrogen storefront features.

  • Solves the need for concrete, actionable recipes to implement specific Hydrogen features.
  • Depends on Shopify Hydrogen, Weaverse, and local development tools like tunnels.
  • Selects the appropriate cookbook based on the requested feature topic.
  • Delivers code snippets, file changes, and implementation notes for each recipe.

SKILL.md

.github/skills/hydrogen-cookbooksView on GitHub ↗
---
name: hydrogen-cookbooks
description: "Step-by-step implementation guides for building features in a Shopify Hydrogen storefront — bundles, combined listings, customer accounts, 3D models, performance, variant media, and Weaverse integration."
---

# Hydrogen Cookbooks

Concrete, step-by-step guides for building specific features in a Shopify Hydrogen storefront. Each cookbook is a self-contained recipe with code, file changes, and implementation notes.

## Live Documentation

For the latest Hydrogen cookbook recipes from Shopify:

```bash
node scripts/search_shopify_docs.mjs "hydrogen cookbook <topic>"
```

For Weaverse-specific patterns:

```bash
node scripts/search_weaverse_docs.mjs "<topic>"
```

The references below are curated guides that may include Weaverse-specific patterns not available in the live docs.

## Available Cookbooks

| Cookbook | Description |
|----------|-------------|
| [bundles.md](./references/bundles.md) | Display product bundles with badges and bundled variant line items in the cart |
| [combined-listings.md](./references/combined-listings.md) | Handle combined listings — utilities, filters, media grouping, price range display |
| [customer-account-api.md](./references/customer-account-api.md) | Set up the Customer Account API with tunnel for local dev |
| [hydrogen-react-router.md](./references/hydrogen-react-router.md) | Import replacement guide: Remix v2 → React Router v7 |
| [model-viewer.md](./references/model-viewer.md) | 3D model support (.glb/.usdz) with ModelViewer component and AR |
| [performance-best-practices.md](./references/performance-best-practices.md) | Caching strategies, streaming, deferred data, third-party scripts, query optimization |
| [variant-media-grouping.md](./references/variant-media-grouping.md) | Group product media by variant option (e.g. Color) |
| [weaverse-hydrogen-integration.md](./references/weaverse-hydrogen-integration.md) | Complete Weaverse integration: component registration, theme schema, data fetching |

## How to Use

Each cookbook describes:
- **What** the feature does
- **Prerequisites** to check first
- **Step-by-step implementation** — file changes, code snippets, diffs
- **Troubleshooting** — common issues and fixes

> Recipe file names reference the Hydrogen skeleton template. Adapt file paths to match your project's structure.

More from Weaverse/shopify-hydrogen-skills

SkillDescription
cloning-websites-to-weaverseUse when recreating a reference website or brand hub in this Hydrogen plus Weaverse repo, especially when deciding whether to reuse sections, add global styles, update theme schema, or resolve conflicts between the live site and project brand guidelines.
figma-to-weaverseUse when recreating a Figma design as Hydrogen + Weaverse pages in this repo — turning a Figma file, frame, or flow into reusable Weaverse sections. Triggers on a figma.com URL, "build this design", "implement this Figma", or "create the storefront from the design". The Figma counterpart of cloning-websites-to-weaverse.
generating-weaverse-project-jsonUse when generating Weaverse project export JSON for import into the Weaverse editor. Triggers on requests to create, build, or produce a Weaverse project JSON file from a site migration, design spec, page layout description, or existing export. Also use when converting section plans into importable project and pages data.
hydrogen-analytics-trackingEnd-to-end analytics & conversion tracking on Shopify Hydrogen — GTM, GA4 (browser + Measurement Protocol), Meta Pixel + CAPI, Google Ads, consent mode, CSP, Oxygen full-page cache. Real-world patterns from production deployments.
hydrogen-upgradesStep-by-step guides for upgrading Shopify Hydrogen between versions — breaking changes, code diffs, and migration steps for each release.
setup-weaverse-projectSet up, create, scaffold, or clone a new Weaverse Hydrogen storefront locally from a Weaverse theme. Use CLI-first setup, boot a live demo-store preview before asking for Shopify credentials, then make it the merchant's own with env, GitHub, and Builder preview connection.
shopify-hydrogenCore Shopify Hydrogen APIs — createHydrogenContext, cart handler, CartForm, caching strategies, pagination, SEO, variant selection, analytics, and CSP.
theme-updateSafely update a Weaverse Pilot theme to the latest version — detects current version, fetches release diffs, plans changes category-by-category, preserves customizations, verifies build.
weaverse-content-apiUse when reading or updating live Weaverse content programmatically — pulling projects/pages/theme settings, bulk-editing page content, pushing AI-generated copy, deleting pages, or uploading media to Shopify for use in Weaverse. Triggers on requests to update a Weaverse project via API, push content to a live project, run bulk content edits, or upload images/assets to Shopify from automation.
weaverse-hydrogenBuild Shopify Hydrogen storefronts with Weaverse — components, schemas, loaders, theming, data fetching, React Router v7, deployment, and advanced features.