hydrogen-smoke-test
Skill218 starsChanged 4 days agoMITView on GitHub
Smoke-test checklist for Hydrogen storefronts built by agents. Use after creating or modifying a Hydrogen storefront, setup flow, cart, product page, collection/search browsing, analytics, request handlers, Shopify redirects, robots.txt, Shop Pay, or framework middleware integration.
- Sends data out
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- Shopify/hydrogenedited, first seen Oct 13, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- Shopify/hydrogen★ 2.2k100% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- hydrogen-analyticsSkill
- hydrogen-cart-drawerSkill
- hydrogen-cart-metafieldsSkill
- hydrogen-cart-uiSkill
- hydrogen-collection-browserSkill
- hydrogen-customer-accountSkill
- hydrogen-imageSkill
- hydrogen-local-httpsSkill
- hydrogen-marketsSkill
- hydrogen-moneySkill
- hydrogen-oxygenSkill
- hydrogen-predictive-searchSkill
- hydrogen-request-handlersSkill
- hydrogen-robots-txtSkill
- hydrogen-routingSkill
- hydrogen-setupSkill
- hydrogen-shop-paySkill
- hydrogen-storefront-clientSkill
- hydrogen-variant-formSkill
- migrate-to-hydrogen-2026-10Skill
- remix-storeSkill
- testing-practicesSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Run the app in the framework's dev server and, when practical, in a production build.
- Distinctive: line 18
If any check below fails, fix the app and re-run the failing check before treating verification as complete.
- Distinctive: line 91
Run the app's available scripts:
- Very specific: line 137
Run this check when the app serves /robots.txt.
- Very specific: line 169
Add-to-cart is enabled only when canAddToCart(product, options) is true.
- Distinctive: line 182
Add-to-cart can open the drawer after a successful submit when the product UX chooses that behavior.
- Very specific: line 196
Search filters preserve q.
- Distinctive: line 205
No browser module reads private env variables.
- Distinctive: line 212
No client-side subtotal/total arithmetic exists.
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Hydrogen Storefront Smoke Tests
Run the app in the framework's dev server and, when practical, in a production build. Type checks are not enough for Hydrogen wiring.
If any check below fails, fix the app and re-run the failing check before treating verification as complete.
Copyable checklist (details for each check are in the sections below):
Static checks:
- [ ] Formatting fixer, if present
- [ ] lint, typecheck, or check
- [ ] GraphQL validation (`hydrogen gql check`) when `gql()` documents changed
- [ ] build
- [ ] test
- [ ] Formatting check, if distinct from the fixer
Request handlers:
- [ ] POST /api/{api-version}/graphql.json returns Storefront API JSON, not the framework 404
- [ ] GET /api/cart returns cart handler JSON (no cart cookie -> {cart: null})
- [ ] GET /admin redirects to the configured shop/admin domain
- [ ] Unknown path returns framework 404 unless a Shopify URL redirect matches
- [ ] When the app serves /robots.txt: 200 text/plain, publicly cacheable, no Set-Cookie
Navigation:
- [ ] Every navbar and footer link href returns 200 when curled directly (no invented routes)
Product page:
- [ ] Server-renders title, gallery, price, variant options, add-to-cart form, and related products when available
- [ ] URL option params select the expected variant on reload
- [ ] Selecting same-product options updates the URL without scroll reset
- [ ] Combined-listing values navigate to the target product handle instead of calling selectOption
- [ ] Sold-out values remain selectable and show sold-out text
- [ ] Non-existent combinations are disabled
- [ ] Add-to-cart is enabled only when canAddToCart(product, options) is true
- [ ] Shop Pay renders only when a selected variant exists and is disabled when add-to-cart is disabled or pending
Cart:
- [ ] /cart works without JavaScript and is reachable via a real /cart link in the footer
- [ ] Header cart trigger is a `/cart` anchor that opens the drawer via `showModal()` after hydration
- [ ] window.Shopify.actions.openCart() opens the drawer after Standard Actions loads
- [ ] A mutation driven through the real Add to cart UI or framework cart action issues `Set-Cookie` and propagates expected response headers
- [ ] Add-to-cart can open the drawer after a successful submit when the product UX chooses that behavior
- [ ] Each line item form includes hidden set, scoped lineId, and editable quantity
- [ ] Quantity Enter key submits a set action
- [ ] Rapid quantity clicks settle to the final expected quantity
- [ ] Line, discount, note, attribute, network, and cart-level errors appear in the right scope
- [ ] Attribute editing submits the complete list, preserves unrelated attributes, and shows scoped pending UI
- [ ] Totals are server-provided and visually pending during cart mutations
Collection and search:
- [ ] Collection filters and sort update the URL and product grid
- [ ] Checkbox filters and price min/max controls both render, apply, and persist after reload
- [ ] Reloading a filtered URL server-renders the same filter/sort state
- [ ] Active filter chips remove one filter and preserve unrelated params
- [ ] Search filters preserve q
- [ ] JavaScript-disabled filter forms still submit with GET
- [ ] Back/forward navigation does not leave browse state stuck in loading
Analytics:
- [ ] Page view fires on initial load and client navigations
- [ ] Product/collection/search/cart view events fire once per route data change
- [ ] Cart tracking is wired once via trackCartAnalytics(cartStore) (React/Vue: useCartAnalytics()), and delta events fire on confirmed cart data changes
- [ ] No browser module reads private env variables
- [ ] Production does not bypass Customer Privacy consent gating (no forced-always-true consent checks)
Markets and money:
- [ ] Market-aware Storefront API queries declare $country, $language, and @inContext
- [ ] Money renders from Storefront API money fields via formatMoney()
- [ ] No client-side subtotal/total arithmetic exists
Production pass:
- [ ] Build and run the production bundle and repeat the request-handler checks against production modeStatic Checks
Run the app's available scripts:
- Formatting fixer, if present.
lint,typecheck, orcheck.- GraphQL validation (
hydrogen gql check) whengql()documents changed. build.test.- Formatting check, if distinct from the fixer.
Request Handlers
Replace <port> with the running app port, and {api-version} with the Storefront API version configured by the app:
curl -i -X POST http://localhost:<port>/api/{api-version}/graphql.json \
-H "content-type: application/json" \
-H "X-Shopify-Storefront-Access-Token: <public-token>" \
-d '{"query":"{ shop { name } }"}'Expected: Storefront API JSON, not the framework 404.
The SFAPI proxy forwards the incoming public token header; it does not inject a token from server config.
curl -i http://localhost:<port>/api/cartExpected: cart handler JSON, not 404. With no cart cookie, the body should be {cart: null}.
curl -i http://localhost:<port>/adminExpected: redirect to /admin on the configured shop/admin domain.
curl -i http://localhost:<port>/this-does-not-existExpected: framework 404 unless Shopify has a matching URL redirect.
curl -i http://localhost:<port>/robots.txtRun this check when the app serves /robots.txt. Expected: 200 with Content-Type: text/plain, a public Cache-Control, and no Set-Cookie header. The rules themselves are the app's policy; see the hydrogen-robots-txt skill.
Navigation
Extract every href from the rendered navbar and footer and request each one directly:
curl -s -o /dev/null -w "%{http_code} <href>\n" http://localhost:<port><href>Expected: 200 for every link. A 404 means the link points to a route the app never created or a handle the shop does not have. /collections/all is the classic failure: the Liquid "all" collection does not exist in the Storefront API, so only link to it when the shop really has a collection with that handle.
Account
curl -i http://localhost:<port>/account/loginExpected: a redirect whose location header points at Shopify's hosted login, not a framework 404 or 500.
/accountrenders the signed-out panel when no session exists, without touching access tokens.- The logout control is a native
<form method="post" action="/account/logout">; the handler enforces same-origin POST and returns a raw redirect only a native browser submit can follow. - Completing a real login requires a public HTTPS origin registered for the OAuth callback. To get one locally, follow the
hydrogen-local-httpsskill. On Vite-based frameworks, ask the user to run thedev:httpsscript in a real terminal outside CI, where thelocalHttpsVite plugin serves trusted HTTPS and registers the Customer Account URLs through Shopify CLI. Next.js needs its HTTPS command and manual URL configuration; see that skill. Agent shells usually run withCIset and no TTY, so don't assume the agent shell can complete local HTTPS or URL registration itself.npx hydrogen certs installonly provisions certificate files; it registers no URLs. If the user can't provide a registered HTTPS local origin, verify the signed-out checks and say so instead of faking signed-in ones.
Product Page
- Product page server-renders title, gallery, price, variant options, add-to-cart form, and related products when available.
- URL option params select the expected variant on reload.
- Selecting same-product options updates the URL without scroll reset.
- Combined-listing values navigate to the target product handle instead of calling
selectOption. - Sold-out values remain selectable and show sold-out text.
- Non-existent combinations are disabled.
- Add-to-cart is enabled only when
canAddToCart(product, options)is true. - Shop Pay renders only when a selected variant exists and is disabled when add-to-cart is disabled or pending.
Cart
/cartworks without JavaScript and is reachable via a real/cartlink in the footer.- The header cart trigger is a
/cartanchor that opens the drawer viashowModal()after hydration. window.Shopify.actions.openCart()opens the drawer after Standard Actions loads.- Exercise a mutation through the real Add to cart UI or the framework's cart action. Do not hand-craft an internal
Hydrogen cart payload. Confirm the response issues the expected cart or session
Set-Cookieand propagates the action's response headers. handleShopifyRoutescan intercept/api/cartand predictive-search requests, so the absence of a matching route file does not mean the handler is missing.- Add-to-cart can open the drawer after a successful submit when the product UX chooses that behavior.
- Each line item form includes hidden
set, scopedlineId, and editablequantity. - Quantity Enter key submits a set action.
- Rapid quantity clicks settle to the final expected quantity.
- Line, discount, note, attribute, network, and cart-level errors appear in the right scope.
- Saving one cart attribute submits the complete next list, preserves unrelated attributes, and shows a saving state while
pending.attributesis true. Submitting no attribute fields clears the list. - Totals are server-provided and visually pending during cart mutations.
Collection And Search
- Collection filters and sort update the URL and product grid.
- Checkbox filters and price min/max controls both render, apply, and persist after reload.
- Reloading a filtered URL server-renders the same filter/sort state.
- Active filter chips remove one filter and preserve unrelated params.
- Search filters preserve
q. - JavaScript-disabled filter forms still submit with GET.
- Back/forward navigation does not leave browse state stuck in loading.
Analytics
- Page view fires on initial load and client navigations.
- Product/collection/search/cart view events fire once per route data change.
- Cart tracking is wired once per cart store lifecycle via
trackCartAnalytics(cartStore)(React/Vue:useCartAnalytics()), and cart delta events fire on confirmed cart data changes. - No browser module reads private env variables.
- Analytics destinations only receive events after Shopify Customer Privacy allows analytics processing.
Markets And Money
- Storefront API queries that should be market-aware declare
$country,$language, and@inContext. - Money renders from Storefront API money fields via
formatMoney(). - No client-side subtotal/total arithmetic exists.
Production Pass
Build and run the production bundle. Repeat request-handler checks against production mode because dev-only middleware or development export conditions can hide broken production wiring.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

