What problem does it solve? Building a custom headless Shopify frontend requires correctly wiring up the Storefront API: token management, GraphQL queries for products and collections, cart mutations, and checkout redirects. This Skill provides production-tested patterns so you avoid common mistakes like exposing private tokens, losing cart state, or breaking checkout on mobile Safari. ## Core Features & Use Cases - Storefront Client Setup: Configure public and private Storefront Access Tokens with the official @shopify/storefront-api-client package for browser and server contexts. - Product & Collection Queries: Fetch paginated product data with cursor-based pagination, localized pricing via the @inContext directive, and availability checks at both product and variant level. - Cart & Checkout Flow: Create carts, add line items, persist cart IDs in localStorage, handle userErrors, and redirect to Shopify's hosted checkout. - Use Case: A DTC brand moving to a Next.js 14 headless storefront can use this Skill to implement the entire data layer — product listing pages with ISR, variant pickers, predictive search, and a persistent shopping cart. ## Quick Start Ask the AI to set up a Shopify Storefront API client in TypeScript with product fetching and a persistent cart hook for a Next.js headless storefront.