shopify-storefront-headless
Skill by jeremylongshore
Builds headless Shopify storefronts with the Storefront API and Cart API. It is for developers building custom frontends, Hydrogen sites or customer-facing apps.
Install shopify-storefront-headless
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/shopify-storefront-headless ~/.claude/skills/shopify-storefront-headlessRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install shopify-storefront-headless in Claude Code
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/shopify-storefront-headless ~/.gemini/antigravity-cli/skills/shopify-storefront-headlessAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install shopify-storefront-headless in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides developers through building headless storefronts on Shopify. The Storefront API is Shopify's public GraphQL API for customer experiences. It uses a public access token that the source describes as safe for client-side code, unlike the server-side Admin API. Paired with the Cart API, it supports product queries, cart creation and checkout.
The skill covers a Storefront API client setup, cart creation with line items and buyer identity, and redirecting to the cart's checkout URL to complete a purchase. It also includes product queries against the Storefront schema, a comparison table of the Storefront and Admin APIs, and a Hydrogen framework setup reference. A table of common errors and fixes is included. It is aimed at developers building custom frontends, setting up Hydrogen, or managing cart operations programmatically.
Written from the project's SKILL.md and checked against it.
What it can do
- Storefront API client setupConfigures a client with a store domain, API version and public access token.
- Cart creationCreates a cart with line items and buyer identity, then returns a checkout URL.
- Cart mutationsCovers cartLinesAdd, cartLinesUpdate, cartLinesRemove and cartDiscountCodesUpdate in a reference file.
- Product queriesQueries products, variants, prices and selected options from the Storefront schema.
- Storefront vs Admin guideCompares token type, rate limiting, cart support and data scope of the two APIs.
- Hydrogen setupDescribes Hydrogen framework setup with Remix loaders and server-side product queries.
What you need
- Shopify store with a Storefront API access token (Headless channel or custom app)
- Storefront API scopes: unauthenticated_read_products and unauthenticated_read_collections
- Node.js 18+ and Shopify CLI 3.x+ for Hydrogen
Try asking
- Set up a Shopify Storefront API client with my store domain and public token.
- Create a Shopify cart with two units of a variant and return the checkout URL.
- Write a Storefront API query that lists products with variant prices and options.
Good to know
- The Storefront API uses request-based rate limiting, and THROTTLED errors require retry with backoff.
- Cart IDs expire after 10 days of inactivity, so the source advises against storing them long-term.
- Storefront API field names differ from the Admin API.
Security check
B- Allowed to use Write, Edit without limitsIn
SKILL.md
Checked automatically: skills/.curated/shopify-storefront-headless/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteEditBash(npm:*)Grep
-
SKILL.md5 KB -
references/cart-api.md4 KB -
references/hydrogen-patterns.md4 KB -
references/storefront-vs-admin.md4 KB
Alternatives to shopify-storefront-headless
All alternatives →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser
shopify-storefront-headless: common questions
Is the Shopify Storefront API token safe to use in a browser?
The source says the Storefront API uses a public access token that is safe for client-side code. The Admin API token is private and server-only.
What causes a PRODUCT_NOT_AVAILABLE error?
The source says this happens when a product is not published to the Headless sales channel. The fix is to publish the product to that channel.
Does this skill support Hydrogen?
Yes. The source includes a Hydrogen framework setup reference with Remix loader patterns and Storefront client configuration.
How do I install shopify-storefront-headless?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is shopify-storefront-headless free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is shopify-storefront-headless safe to use?
It scores 80 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.
What are alternatives to shopify-storefront-headless?
Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.
