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

Skill by Shopify

Guides developers through Hydrogen route templates for Shopify storefront URL routing. It covers createShopifyRouteTemplates and how one shared manifest feeds routes, redirects, ShopifyScripts, and predictive search. Built for Shopify Hydrogen apps that use custom product, collection, or utility-page paths.

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

Install hydrogen-routing

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-routing ~/.claude/skills/hydrogen-routing

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

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

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides work on Hydrogen route templates, the shared configuration that describes an app's URL shape for Shopify standard storefront routes. It covers adding, modifying, and reviewing createShopifyRouteTemplates and the routeTemplates object. The skill says the manifest should be created during app setup, even when empty, and passed to every Hydrogen primitive that builds, redirects, or exposes storefront URLs.

It explains how each template key maps to a Shopify standard path, such as /products/:productHandle, and when a custom path is needed. It also covers the consumers that share the object: handleShopifyRoutes, handleShopifyRedirects, ShopifyScripts, and getPredictiveSearchItemUrl. The source is aimed at developers building or reviewing Shopify Hydrogen storefronts that use custom product, collection, or utility-page paths.

Written from the project's SKILL.md and checked against it.

What it can do

  • Create route template manifestSets up one routeTemplates object with createShopifyRouteTemplates, even when it is empty.
  • Map standard routes to custom pathsDefines custom pathname templates for product, collection, page, policy, blog, article, cart, and search keys.
  • Configure shared Hydrogen consumersPasses the same routeTemplates object to handleShopifyRoutes, redirects, ShopifyScripts, and predictive search.
  • Review routing setupChecks that template keys are added only for routes the app renders at non-standard paths.
  • Handle markets and locale prefixesKeeps templates resource-relative and explains where Hydrogen applies i18n.pathPrefix.

What you need

  • Shopify Hydrogen app

Try asking

  • Set up a route template manifest that moves product pages to /p/:productHandle
  • Review my Hydrogen routeTemplates and check which keys I actually need
  • Make predictive search links use my custom collection path

Good to know

  • Supported placeholders are limited to productHandle, collectionHandle, pageHandle, policyHandle, blogHandle, and articleHandle.
  • Route templates must be serializable strings, not callback functions.
  • Templates must not include query strings, hashes, or locale prefixes.
  • Redirects should only run after framework routing has produced a 404.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: packages/hydrogen/skills/hydrogen-routing/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to hydrogen-routing

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

hydrogen-routing: common questions

Do I need a route template if my Hydrogen app uses default Shopify paths?

The source says the manifest can be empty when the app uses Shopify's default storefront paths. It still recommends creating it so routing changes later have one app-owned place to update.

Can I put a locale or market prefix in a route template?

No. The source says templates should be resource-relative, and Hydrogen applies i18n.pathPrefix separately.

Should I query Shopify to confirm a resource exists before redirecting?

No. The source says to redirect the standard route to the app route and let that route handle missing resources.

How do I install hydrogen-routing?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is hydrogen-routing free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is hydrogen-routing safe to use?

It scores 78 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-routing?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

hydrogen-routing Install

Add to stack

Loading.