/weaverse:theme-updatefrom weaverse
Safely updates a Weaverse Pilot theme to the latest version with detection, planning, execution, and verification steps.
Ships in weaverse. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Safely upgrade a Weaverse Pilot theme from its current version to a newer release. This skill walks through detection, planning, execution, and verification — never overwriting user customizations without explicit approval.
@weaverse/pilotYYYY.M.D (e.g., 2026.11.7). Older: semver (v8.1.0)v2026.11.7 is the first Pilot release on Hydrogen 2026.10 and @weaverse/hydrogen 6. v2026.10.4 is the last release on classic Hydrogen (2026.4) and @weaverse/hydrogen 5. See Crossing the Hydrogen 2026.10 boundary.node skills/theme-update/scripts/check_pilot_updates.mjs
node skills/theme-update/scripts/check_pilot_updates.mjs --target v2026.11.7
Follow these phases in order. Do NOT skip steps.
package.json → get version fieldname is not @weaverse/pilot, ask the user to confirm this is a Pilot-based projectcurl -s "https://api.github.com/repos/Weaverse/pilot/releases?per_page=50"
If already on latest → stop here and tell the user.
If the range crosses v2026.11.7 (current ≤ v2026.10.4) → read Crossing the Hydrogen 2026.10 boundary before planning. A file-by-file merge across that release is not practical.
git checkout -b update/v{CURRENT}-to-v{TARGET}
git push -u origin update/v{CURRENT}-to-v{TARGET}
Always work on a branch. Never update on main directly.
For each release in the update range (oldest to newest):
# Full comparison URL
https://api.github.com/repos/Weaverse/pilot/compare/v{OLD}...v{NEW}
# Raw diff
https://github.com/Weaverse/pilot/compare/v{OLD}...v{NEW}.diff
curl -sL "https://api.github.com/repos/Weaverse/pilot/tarball/v{TARGET}" | tar xz
package.json version bump, dependenciespackage-lock.json, bun.lockb, pnpm-lock.yaml)tsconfig.json, vite.config.ts, tailwind.config.ts — ONLY if user hasn't customized them.github/, CHANGELOG.md, LICENSE.agents/skills/, .claude/skills/ — Hydrogen's packaged skills; regenerate them with npx @shopify/hydrogen skills sync after the dependency update instead of merging them by handapp/components/ — UI components user may have customizedapp/routes/ — route files user may have modifiedapp/utils/, app/lib/ — utility modulesserver.ts, app/.server/ — request lifecycle and request context (createAppContext(), cart, customer account, storefront client)app/weaverse/ — component registry, theme schema, CSPapp/root.tsx, app/entry.client.tsx, app/entry.server.tsxapp/styles/ — CSS/Tailwind changesgit diff shows modifications from Pilot base).env, .env.example — never overwrite environment files## Update Plan: v2026.3.23 → v2026.4.7
### Auto-merge (3 files)
✅ package.json — version + dependency bumps
✅ bun.lockb — lock file update
✅ app/lib/utils.ts — new helper function added
### Needs Review (5 files)
⚠️ app/components/Header.tsx — Pilot added shopify-account web component
Your version: custom mega menu logic
Pilot change: replaced AccountButton with <shopify-account>
→ Recommend: keep your mega menu, add shopify-account separately
⚠️ app/routes/_index.tsx — performance improvements
Your version: added custom hero section
Pilot change: caching + skeleton loading
→ Recommend: apply caching, keep your hero
### New Files (2 files)
➕ app/components/ScrollReveal.tsx — new scroll animation component
➕ app/lib/reviews.ts — extracted reviews API
### Skipped (1 file)
⏭️ app/components/CombinedListings.tsx — you deleted this file
Wait for user confirmation before proceeding. Ask:
"Review the plan above. Approve to continue, or tell me which files to handle differently."
Apply changes in order, one release at a time if multi-version jump:
# Copy new file from Pilot source
cp /tmp/pilot-reference/{FILE_PATH} {FILE_PATH}
# Or apply targeted patch
git apply --3way <patch-file>
After each auto-merge, verify with git diff --stat.
For each file:
Show a three-way comparison:
Identify what the user changed vs what Pilot changed:
For conflicts, present options:
Wait for user decision on each conflict before proceeding.
git add -A
git commit -m "chore: update Pilot v{OLD} → v{NEW}
- [list key changes applied]
- [list files with manual merge decisions]
"
If doing multi-version jump, repeat for each intermediate release.
After all changes applied:
# 1. Install dependencies
bun install # or npm install / pnpm install based on lockfile
# 2. TypeScript check
bun run typecheck
# 3. Build check
bun run build
# 4. Hydrogen 2026.10 themes: refresh Hydrogen's packaged skills for the new version
npx @shopify/hydrogen skills sync
If build fails:
If build succeeds:
bun run dev briefly to check no runtime errors## Update Complete: v2026.3.23 → v2026.4.7
✅ 12 files auto-merged
✅ 5 files reviewed and merged
✅ 2 new files added
✅ Build passes
✅ TypeCheck passes
### New features available
- Shopify Account Web Component (<shopify-account>)
- Vite chunk splitting for better caching
- ScrollReveal component for animations
### Manual follow-up (optional)
- Configure shopify-account in your Header if you want native sign-in
- Review ScrollReveal component for use in custom sections
### Rollback
git checkout main
git branch -D update/v2026.3.23-to-v2026.4.7
# If approved
git checkout main
git merge update/v{CURRENT}-to-v{TARGET}
git push origin main
typecheck + build both passv prefix (2026.4.7), GitHub tags have v prefix (v2026.4.7). Always normalize.package.json, MUST run the correct package manager (check which lockfile exists)Pilot v2026.11.7 (Weaverse/pilot#209) moved from classic Hydrogen 2026.4 + @weaverse/hydrogen 5 to Hydrogen 2026.10 + @weaverse/hydrogen 6. It rewrote the request wiring (server.ts, app/.server/context.ts), the data layer (storefront.graphql(gql(...)) with explicit caches, no codegen), the cart, the product form, customer accounts and analytics. A v2026.10.4 → v2026.11.7 diff touches almost every file, so the per-file buckets above stop being useful.
For a fork on v2026.10.4 or older:
Update to v2026.10.4 first with the normal procedure, so only the platform jump remains.
Pick a path with the user:
v2026.11.7 (or later) as the new base and re-apply the customizations on top. List them with git diff v{CURRENT} against the Pilot tag the fork started from.upgrade-2026.4.7-to-2026.10.2.md step by step.Either way, run the Weaverse codemod on the custom sections and components. It moves imports to @weaverse/hydrogen/react-router and renames the Hydrogen* types to Weaverse*:
npx @weaverse/cli@latest migrate v6 --dry-run # list the files it would change
npx @weaverse/cli@latest migrate v6
It does not port queries: custom section loaders and routes still need storefront.graphql(gql(...), { variables, cache }) by hand.
Verify with the target's own scripts: npm run typecheck (also runs hydrogen gql check --fail-on-warn) and npm run build. Test Customer Account login with npm run dev:https.
Weaverse content (pages, theme settings, translations) is not affected by the upgrade.
Pilot v2026.11.13 (Weaverse/pilot#228) then moved to @shopify/hydrogen 2026.10.3: app/utils/csp.ts and useNonce are gone (the CSP comes from Hydrogen's createContentSecurityPolicy plus getWeaverseStudioCspDirectives), and markets use defineShopifyI18n with storefront.locale. A fork with custom CSP sources or storefront.i18n reads needs those moved by hand; upgrade-2026.10.2-to-2026.10.3.md lists the steps. Stores also register <origin>/account/signed-out as a Customer Account logout URI.
@weaverse/hydrogen)Sometimes the ask is only "update the Weaverse SDK", not a full theme update.
@weaverse/hydrogen 6 has a peer dependency on @shopify/hydrogen >=2026.10.0, so it requires the Hydrogen 2026.10 upgrade above. Themes that stay on Hydrogen 2026.4 or earlier stay on @weaverse/hydrogen 5.x.Procedure:
npm run typecheck on the CURRENT version and record every error (client forks usually have pre-existing failures). After the bump, diff against this baseline — you only own the delta. Without the baseline you'll chase errors that were always there.npm view @weaverse/hydrogen@<target> peerDependencies. react-error-boundary and @weaverse/schema arrive transitively — their absence in the theme's package.json is fine.@weaverse/hydrogen 6 pins an exact @weaverse/react version. If the theme's package.json also lists it, align it; two copies of @weaverse/react have separate React contexts and components stop finding their data. @weaverse/next is deprecated in favour of @weaverse/hydrogen/next (6.2.0+): remove it from package.json and run npx @weaverse/cli@latest migrate v6 to rewrite its imports.WeaverseClient locale option, for markets whose Shopify language differs from the locale Weaverse keys translations by (Pilot passes resolveRequestLocale(request) in app/.server/context.ts).errorComponent is typed FC<{ error: unknown }> (was an Error-like object). Port upstream Pilot's GenericError, which narrows at runtime (error && typeof error === "object" && "message" in error).npm run build — typecheck alone misses bundler-level issues.npm i --package-lock-only --workspaces=false; plain npm i fails on the monorepo's catalog: protocol.pilot.weaverse.dev: merge to Weaverse/pilot main, then gh repo sync Weaverse/pilot-demo --source Weaverse/pilot — the fork carries the Oxygen deploy action and ships on sync (~1 min).What SKILL.md sets; muted values are Claude Code's defaults
14 skills in this plugin
/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-cookbooksStep-by-step implementation guides for building features in a Shopify Hydrogen 2026.10 + Weaverse storefront (Pilot) — bundles, combined listings, customer accounts, 3D models, performance, variant media, and Weaverse integration./hydrogen-markets-localizationImplement or review Shopify Hydrogen market localization — use when adding markets, locale routes, translations, hreflang, RTL, or localized cart, account, and checkout behavior in Hydrogen + Weaverse.npx claudepluginhub weaverse/shopify-hydrogen-skills --plugin weaverseOther plugins' skills for the same job