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-request-handlers

Skill by Shopify

Guides developers wiring Shopify Hydrogen request handlers into server frameworks. Covers Shopify route and redirect handlers, cart, predictive search, Customer Account routes, and the UCP business profile.

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

Install hydrogen-request-handlers

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

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

Step-by-step: install hydrogen-request-handlers in Claude Code

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

About

This skill guides developers who wire Hydrogen request handlers into server frameworks. It covers handleShopifyRoutes, which runs before framework routing, and handleShopifyRedirects, which runs only after a 404. It also covers SFAPI proxy routes, cart and predictive search handlers, Customer Account server handlers, and the UCP business profile at /.well-known/ucp.

The skill explains the order of the request gate, how to pass a request-scoped requestContext and Storefront client into handlers, and how to propagate response headers and session cookies. It includes verification steps for dev and production builds. It is aimed at developers building or reviewing Hydrogen storefronts on Shopify.

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

What it can do

  • handleShopifyRoutesOwns Hydrogen routes such as SFAPI proxy URLs, cart permalinks, and /api/mcp before framework routing.
  • handleShopifyRedirectsRuns after a 404 to handle /admin, standard route redirects, and Storefront URL redirects.
  • UCP business profileServes Shopify's managed UCP business profile at /.well-known/ucp with defined caching rules.
  • Variant id redirectsRecognizes Liquid-style ?variant= product links when routeTemplates is passed to handleShopifyRoutes.
  • Request context setupShows how to create requestContext with createShopifyRequestContext and propagate response headers.
  • Customer Account routingHandles /account/login, /account/authorize, /account/refresh, and /account/logout before the app router.
  • Cart and predictive searchCovers cart and predictive search handler wiring under /api routes.
  • Framework referencesPoints to framework-specific reference files and a generic adaptation guide.

What you need

  • Shopify Hydrogen app
  • HTTPS for the storefront origin

Try asking

  • Wire handleShopifyRoutes before my framework router in this Hydrogen app
  • Add routeTemplates so ?variant= product links redirect to option params
  • Review my Customer Account login and logout links for client navigation

Good to know

  • Customer Account login and logout handlers return raw redirects, so links must be plain HTML.
  • Handlers that read the session require a sessionManager on every request.
  • GraphiQL is dev-only; the other wiring must live in production runtime code.
  • Non-GET and non-HEAD methods on /.well-known/ucp continue to framework routing.

Security check

A

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

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

Alternatives to hydrogen-request-handlers

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-request-handlers: common questions

When should handleShopifyRedirects run?

Only after the app router returns a 404. The skill says not to run it on every request.

Does the UCP profile need shopper cookies?

No. Hydrogen does not forward shopper cookies or authorization to the UCP profile request.

Is a Storefront token required?

The skill says publicStorefrontToken may be undefined for tokenless access, but recommends a token-backed client for real stores.

How do I install hydrogen-request-handlers?

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

Is hydrogen-request-handlers free?

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

Is hydrogen-request-handlers 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-request-handlers?

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

hydrogen-request-handlers Install

Add to stack

Loading.