hydrogen-oxygen
Skill by Shopify
Audits and adapts an existing Hydrogen storefront so it runs on Shopify Oxygen and local MiniOxygen. It is for developers who need a server-capable Hydrogen app to work as a Web Worker.
Install hydrogen-oxygen
Built from the published package, never by AI.
git clone --depth 1 https://github.com/Shopify/hydrogen /tmp/hydrogen && mkdir -p ~/.claude/skills && cp -r /tmp/hydrogen/packages/hydrogen/skills/hydrogen-oxygen ~/.claude/skills/hydrogen-oxygenRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/Shopify/hydrogen /tmp/hydrogen && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/hydrogen/packages/hydrogen/skills/hydrogen-oxygen ~/.gemini/antigravity-cli/skills/hydrogen-oxygenAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill makes an existing Hydrogen storefront compatible with Shopify Oxygen, which it treats as a Web Worker runtime rather than a Node server. It guides the assistant to inspect the app's framework, server entrypoint and build target, then add or repair a module Worker entry at server.ts. It also covers configuring MiniOxygen for local development and preview, wiring env, cache and waitUntil through each request, and removing Node-only runtime assumptions.
The skill is written for developers working on an existing Hydrogen project with a package.json. It asks the assistant to keep existing routes, middleware, cart and customer account behavior intact. It ends with a verification pass covering dev and preview modes, dynamic routes such as product, collection, search, cart and account, and the build output needed for deployment.
Written from the project's SKILL.md and checked against it.
What it can do
- Audit the app runtimeInspects the framework, server entrypoint, build target, SSR setup and deployment scripts before changes.
- Create a Worker entrypointProduces a module Worker at server.ts or a configured custom path that returns a standard Response.
- Configure MiniOxygenAdds the MiniOxygen Vite plugin so development and built preview run the Worker entrypoint.
- Wire request statePasses env, waitUntil and the Workers cache through the request and into Hydrogen client config.
- Remove Node assumptionsFinds process, Buffer, node:* imports, Node streams and in-memory caches and replaces them with Web APIs.
- Produce deployable outputBuilds one bundled Worker module and a public client assets directory without server code splitting.
- Verify dynamic routesChecks /, a product, a collection, /search, /cart and /account under MiniOxygen in dev and preview.
What you need
- An existing Hydrogen app with a package.json at the app root
- MiniOxygen 4.2.0 or newer
- Shopify CLI for the hydrogen deploy script
- Production secrets for live route verification
Try asking
- Make my Hydrogen storefront Oxygen-compatible and add a server.ts Worker entry
- Configure MiniOxygen for my Vite Hydrogen app and check dev and preview
- Find Node-only APIs in my Hydrogen server code and replace them with Web APIs
Good to know
- Static-only apps are not covered because there is no server request lifecycle to deploy.
- Other frameworks need a Worker adapter, and the skill does not copy React Router conventions into them.
- Live runtime checks are reported as blocked when production secrets are unavailable.
- Requires MiniOxygen 4.2.0 or newer for the described behavior.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: packages/hydrogen/skills/hydrogen-oxygen/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md12 KB -
references/react-router.md7 KB
Alternatives to hydrogen-oxygen
All alternatives →Shopify skill that lets an AI assistant set up and run a Shopify store through Shopify's official MCP server. It is for people who want to sell online, start a store, or manage an existing Shopify store.
Guides an AI assistant through building Shopify apps, extensions and themes. It covers the GraphQL Admin API, Shopify CLI, Polaris UI and Liquid. Intended for Shopify developers.
Searches Ticketmaster events and seat listings with pricing for people looking for event tickets. It returns Ticketmaster checkout links but cannot complete a purchase itself.
Analyzes ecommerce SEO for product pages, product schema, Google Shopping visibility, Amazon marketplace signals and keyword gaps. Built for stores, catalogs and product listings. Live Shopping and Amazon data needs the optional DataForSEO Merchant API.
Drafts replies to customer emails and tickets using order, refund, CRM and support desk data, in the owner's writing voice. Refunds and sends need the owner's approval, and with Shopify it also flags orders needing attention.
Reviews generated or changed WooCommerce code before it ships. It is for developers building extensions, payment and shipping integrations, checkout customizations, and order or product logic.
Compare with shopify, shopify-development or ticketmaster
hydrogen-oxygen: common questions
Does this skill work with Hydrogen apps that are not built on React Router?
The source says non-React Router apps should use the generic Oxygen contract through their own Worker adapter and conventions. If no Worker adapter or build target exists, the skill asks the user to identify that gap first.
Where does the Oxygen Worker entrypoint need to be?
The default path is <root>/server.ts, which Oxygen and MiniOxygen discover without extra configuration. A custom path must be passed to MiniOxygen and to Shopify Hydrogen CLI commands.
Does the skill rewrite my storefront routes or replace my app?
No. The source says it keeps existing routes, middleware, cart, customer accounts and other behavior unless the user asks otherwise, and does not replace the app with a starter.
How do I install hydrogen-oxygen?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is hydrogen-oxygen free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is hydrogen-oxygen safe to use?
It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to hydrogen-oxygen?
Similar skills: shopify, shopify-development, ticketmaster, seo-ecommerce.
