Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 88
  • 2.2k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-oxygen

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install hydrogen-oxygen in Claude Code

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

A

No 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 →

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.

hydrogen-oxygen Install

Add to stack

Loading.