/shopify-hydrogen:hydrogen-smoke-testfrom shopify-hydrogen
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.
Ships in shopify-hydrogen. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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 mode
Run the app's available scripts:
lint, typecheck, or check.hydrogen gql check) when gql() documents changed.build.test.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/cart
Expected: cart handler JSON, not 404. With no cart cookie, the body should be {cart: null}.
curl -i http://localhost:<port>/admin
Expected: redirect to /admin on the configured shop/admin domain.
curl -i http://localhost:<port>/this-does-not-exist
Expected: framework 404 unless Shopify has a matching URL redirect.
curl -i http://localhost:<port>/robots.txt
Run 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.
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.
curl -i http://localhost:<port>/account/login
Expected: a redirect whose location header points at Shopify's hosted login, not a framework 404 or 500.
/account renders the signed-out panel when no session exists, without touching access tokens.<form method="post" action="/account/logout">; the handler enforces same-origin POST and returns a raw redirect only a native browser submit can follow.hydrogen-local-https skill. On Vite-based frameworks, ask the user to run the dev:https script in a real terminal outside CI, where the localHttps Vite 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 with CI set and no TTY, so don't assume the agent shell can complete local HTTPS or URL registration itself. npx hydrogen certs install only 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.selectOption.canAddToCart(product, options) is true./cart works without JavaScript and is reachable via a real /cart link in the footer./cart anchor that opens the drawer via showModal() after hydration.window.Shopify.actions.openCart() opens the drawer after Standard Actions loads.Set-Cookie and propagates the
action's response headers.handleShopifyRoutes can intercept /api/cart and predictive-search requests, so the absence of a matching route
file does not mean the handler is missing.set, scoped lineId, and editable quantity.pending.attributes is true. Submitting no attribute fields clears the list.q.trackCartAnalytics(cartStore) (React/Vue: useCartAnalytics()), and cart delta events fire on confirmed cart data changes.$country, $language, and @inContext.formatMoney().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.
What SKILL.md sets; muted values are Claude Code's defaults
11 skills in this plugin
/hydrogen-cart-drawerGuide for building an accessible cart drawer using @shopify/hydrogen. Use when creating or reviewing a cart drawer, mini cart, or slide-out cart, including native dialog element (showModal), closedby light dismiss, body scroll lock, exit animations, and wiring window.Shopify.actions.openCart()./hydrogen-cart-uiBehavioral guide for building cart UI with @shopify/hydrogen: line items, quantity and remove controls, optimistic updates, discount, note, and cart attribute inputs, and the full-page /cart fallback. Use when writing, modifying, or reviewing cart line-item UI, quantity/remove controls, cart mutation forms, or code that changes the cart without a form. Framework agnostic./hydrogen-Other plugins' skills for the same job
npx claudepluginhub fcakiroglu16/marketplace --plugin shopify-hydrogen