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.
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-routingRun 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-routing ~/.gemini/antigravity-cli/skills/hydrogen-routingAntigravity 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 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
ANo 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 →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.
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.
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.
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.
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.
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.
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.
