saleor-storefront — Claude Code skill: what it does, how to install
Provides guidelines and GraphQL patterns for building Saleor storefronts. Helps handle checkout flows, multi-channel setups, and variant selection in AI coding agents.
npx skills add saleor/agent-skills --skill saleor-storefront -a claude-codeWhat saleor-storefront does
This skill guides coding agents through the architecture of Saleor's GraphQL API. It covers nullable schema fields, token types, two-tier permission patterns, and codegen practices. The rules remain framework-agnostic. They apply whether the storefront runs on Next.js or Remix.
The instructions divide into four core priorities: api-, products-, checkout-, and channels-. The guide explains how selection attributes differ from simple product specifications, walks through checkout session lifecycles, and flags frequent payment pitfalls. For Saleor 3.23 and later, it details stock availability handling under useLegacyShippingZoneStockAvailability.
Missing channel scope in queries leads to empty payload fields and silent authorization failures. The skill lays out purchasability versus shippability checks for regional fulfillment. The full rule reference lives in AGENTS.md.
What it helps with
- query Saleor GraphQL endpoints with proper channel scoping and permissions
- build product detail interfaces with variant selection and pricing rules
- implement checkout lifecycles while debugging payment gateway errors
- manage multi-channel and multi-currency catalog availability
- configure stock availability logic for Saleor 3.23+ stock modes
Example prompts for the agent
- Write a GraphQL query for product details with variant selection scoped to 'default-channel'.
- Debug why this item fails purchasability validation during checkout creation.
- Update our inventory lookup to support useLegacyShippingZoneStockAvailability in Saleor 3.23.
How to install saleor-storefront
1Skills CLI (Vercel)
npx skills add saleor/agent-skills --skill saleor-storefront -a claude-code2Manually: put the files in place
~/.claude/skills/saleor-storefront/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/saleor-storefront/
1Skills CLI (Vercel)
npx skills add saleor/agent-skills --skill saleor-storefront -a codex2Manually: put the files in place
.agents/skills/saleor-storefront/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add saleor/agent-skills --skill saleor-storefront -a cursor2Manually: put the files in place
.cursor/skills/saleor-storefront/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install saleor/agent-skills saleor-storefront2Manually: put the files in place
.github/skills/saleor-storefront/SKILL.md1Skills CLI (Vercel)
npx skills add saleor/agent-skills --skill saleor-storefront -a gemini-cli2Platform CLI
gemini skills install https://github.com/saleor/agent-skills --path skills/saleor-storefrontManually: put the files in place
.devin/skills/saleor-storefront/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add saleor/agent-skills --skill saleor-storefront -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about saleor-storefront
How to install saleor-storefront in Claude Code?
Run npx skills add saleor/agent-skills --skill saleor-storefront -a claude-code. Alternatively, save the rule file at ~/.claude/skills/saleor-storefront/SKILL.md.
What does saleor-storefront do?
It provides structured rules and patterns for integrating with Saleor's GraphQL API. It guides AI assistants through product variants, cart lifecycles, and channel-scoped storefront queries.
Is this skill tied to a specific JavaScript framework?
No, it is framework-agnostic. You can apply the patterns to Next.js, Remix, Nuxt, or any custom frontend stack.
Source text
SKILL.md · MIT
--- name: saleor-storefront description: > Saleor e-commerce API patterns for building storefronts. Use when working with Saleor's GraphQL API, products, variants, checkout, channels, permissions, or debugging API behavior. Framework-agnostic — applies to any Saleor storefront. license: MIT metadata: author: saleor version: "1.0.0" --- # Saleor Storefront Universal guide for building storefronts on the Saleor e-commerce platform. Covers the Saleor GraphQL API data model, permission system, checkout lifecycle, channel architecture, and product/variant patterns. Framework-agnostic — these rules apply whether you're using Next.js, Remix, Nuxt, or a custom setup. ## When to Apply Reference these guidelines when: - Querying Saleor's GraphQL API for products, categories, or collections - Building product detail pages with variant selection - Implementing checkout and payment flows - Working with multi-channel and multi-currency setups - Debugging "product not purchasable" or permission errors - Working with Saleor 3.23+ stock availability modes (`useLegacyShippingZoneStockAvailability`) - Investigating Saleor API behavior via source code ## Rule Categories | Priority | Category | Impact | Prefix | | -------- | --------- | -------- | ------------ | | 1 | API | CRITICAL | `api-` | | 2 | Products | HIGH | `products-` | | 3 | Checkout | HIGH | `checkout-` | | 4 | Channels | MEDIUM | `channels-` | ## Quick Reference ### 1. API (CRITICAL) - `api-data-model` — Nullable fields, pricing structure, automatic storefront filtering - `api-permissions` — Token types, permission errors, two-tier query pattern - `api-graphql-patterns` — Channel-scoped queries, variant attributes, filtering, codegen - `api-investigation` — How to investigate Saleor API behavior via types and source ### 2. Products (HIGH) - `products-variants` — Variant model, selection vs non-selection attributes, pricing, UX patterns ### 3. Checkout (HIGH) - `checkout-lifecycle` — Session lifecycle, common errors, debugging payment issues ### 4. Channels (MEDIUM) - `channels-purchasability` — Stock availability modes (legacy vs direct, 3.23+), purchasability vs shippability, fulfillment triangle, mode-aware checklists, channel-scoped queries, stock webhooks ## How to Use Read individual rule files for detailed explanations and code examples: ``` rules/api-data-model.md rules/products-variants.md ``` Each rule file contains: - Brief explanation of why it matters - Code examples (correct and incorrect patterns) - Anti-patterns to avoid ## Full Compiled Document For the complete guide with all rules expanded: `AGENTS.md`
© saleor · MIT · saleor/agent-skills