saleor/storefront/saleor-paper-storefront

Claude Code and agent skill by saleor/storefront

Trust tier 2
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Project-specific patterns for the Saleor Paper storefront built with Next.js 16, TypeScript, and Tailwind CSS. Use when working with product pages, checkout flow, caching, variant selection, filtering, SEO, or UI components. For universal Saleor API patterns, see the saleor-storefront dependency.

Install

npx vskill@latest install saleor/storefront/saleor-paper-storefront

SKILL.md

The same SKILL.md was published earlier as saleor/storefront/saleor-paper-storefront.

Saleor Paper Storefront

Project-specific guide for the Saleor Paper storefront — a Next.js 16 e-commerce application with TypeScript, Tailwind CSS, and the Saleor GraphQL API. Contains 37 rules across 8 categories covering architecture, Vercel cost discipline, caching, analytics & attribution, storefront content, PDP architecture, checkout v2, design & composition (token system, design quality, section catalog, page composition, design-from-image, verification), components, UI patterns, locale routing, i18n, and SEO.

Prerequisite: This skill depends on `saleor-storefront`
for universal Saleor API knowledge (data model, permissions, checkout lifecycle,
channels). Install it alongside this skill. Paper targets Saleor 3.23+ — do not
add fallbacks for older APIs.

When to Apply

Unfamiliar with the codebase? Read `paper-architecture` first.

Reference these guidelines when:

  • Working on product detail pages (PDP), variant selection, high-cardinality catalogs, or filtering
  • Adding analytics, custom events, consent, or order-attribution metadata
  • Modifying checkout flow or payment integration
  • Editing GraphQL queries or regenerating types
  • Debugging caching, stale content, or revalidation
  • Optimizing Vercel cost, invalidation scope, or scaling traffic
  • Editing merchandising copy, homepage content, or CONTENT_PROVIDER=saleor
  • Seeding or extending Saleor Models for storefront content (Configurator)
  • Migrating authenticated routes (account, session cookies) under Cache Components / PPR
  • Upgrading a forked shop — see Migrations below
  • Molding PDP or homepage layout/design, or designing from a prompt or reference image
  • Creating UI components with design tokens
  • Adding locale/channel routing, market picker, next-intl messages, or i18n URL structure
  • Adding SEO metadata, JSON-LD, or OG images
  • Writing tests or investigating Saleor API behavior
  • Testing on a real phone via ngrok or LAN while pnpm dev is running

Rule Categories by Priority

PriorityCategoryImpactPrefix
0ArchitectureCRITICALpaper-
1Data LayerCRITICALdata-
2Product PagesHIGHproduct-
3Checkout FlowHIGHcheckout-
4Design & CompositionHIGHui- / design- / page-
5UI & ChannelsMEDIUMui-
6SEOMEDIUMseo-
7DevelopmentMEDIUMdev-

Quick Reference

0. Architecture (CRITICAL)
  • paper-architecture - Start here — canonical Next.js stance, pillars, non-goals, where to read next
  • paper-vercel-cost - Vercel billing model, why edge requests outnumber page views, cost invariants (no global invalidation for private state, sharded listing tags, sampling, image guards), scaling playbook, high-churn / subpath / Cloudflare forks
1. Data Layer (CRITICAL)
  • data-caching - Cache Components (PPR), three-layer page model, cache manifest, webhooks
  • data-auth-routes - BFF auth, resolveSessionUser, account PPR, header chrome refresh
  • data-redirect-security - Redirect URL allowlists for auth emails, checkout/account flows, and Host/Origin spoofing prevention
  • data-access - Start here for Saleor calls — cachedQuery / liveQuery / sessionQuery / mutate
  • data-graphql - Two codegen setups (checkout types via server actions, not urql runtime)
  • data-storefront-content - Provider-agnostic copy layer, merge semantics, cache tags, wiring
  • data-storefront-content-saleor - Saleor Models, slug stack, channel overrides, Configurator
  • data-storefront-content-attributes - Attribute inputTypes, catalog references, scalar roadmap
  • data-analytics - Web Analytics, consent, first-touch UTM, optional merchant tag, event bus, Commerce Context on checkout
2. Product Pages (HIGH)
  • product-pdp - ProductShell + dynamic islands, gallery, LCP preload, add-to-cart
  • product-variants - Variant selection state machine, control ladder, selection-index, partial selection
  • product-high-cardinality - Caps, buy-box strategies, ?variant=/?sku=, PLP facets alias OR
  • references/variant-selector-ui.md - Border states, pill/circle sizing, renderer routing (read before editing renderers)
  • product-filtering - Server-side categories/price/sort + PLP_FACETS / ProductWhereInput
  • plp-listing - ListingQuery / ListingResult, one provider per surface, PLP templates
3. Checkout Flow (HIGH)
  • paper-surfaces - Two surfaces, routes, v2 data flow, session handoff (read paper-architecture first)
  • checkout-design-principles - Evidence-based UX principles (guest-first, mobile, pricing, express pay)
  • checkout-management - Lifecycle, RSC sync, shallow steps, payment transition UX (+ cheat sheet)
  • checkout-payment-gateways - Payment app registry, submit modes, Stripe Express Checkout wallets, adding a new gateway
  • checkout-components - Reusable checkout UI (SignInForm, AddressSelector, billing, integrated payment UI)
  • checkout-guest-order - Guest /order/{key}: HMAC, redacted email landing, live Saleor refetch, Customer Emails /order/{{id}}
4. Design & Composition (HIGH)
  • ui-design-system - Start here for design — token vocabulary (color, fluid type, width, rhythm, radius, elevation, motion) + cva variant matrix
  • design-quality-rubric - World-class bar: hierarchy, whitespace, full-width-allowed clause, mobile non-negotiables, self-check
  • ui-sections - Marketing-block catalog (HeroBanner, FeaturedCollection, ImageWithText, …), selection guide, section authoring pattern
  • page-composition - Mold homepage within the PPR rails; PDP layout goes through ui-templates
  • ui-templates - PDP templates: ProductView + slots, selected in src/config/template-selection.ts
  • design-from-image - Prompt/image → brief → tokens → blocks → compose → verify
  • design-verification - Gates: hard-fail token lint, advisory PPR/LCP/client-JS, a11y pass
5. UI & Channels (MEDIUM)
  • references/code-conventions.md - kebab-case files, PascalCase exports, @/ imports
  • ui-components - Design tokens, shadcn/ui primitives, component locations
  • ui-images - Saleor thumbnails vs Vercel's optimizer, sizes discipline, image cost budget
  • ui-channels - Channel allowlist, fulfillment triangle, multi-currency, channel selector
  • ui-locale-routing - /{locale}/{channel}/ routing, middleware redirects, path helpers
  • ui-i18n - next-intl namespaces, server/client patterns, ADR 0002 boundary
6. SEO (MEDIUM)
  • seo-metadata - JSON-LD structured data, metadata helpers, OG image generation
7. Development (MEDIUM)
  • dev-local - ngrok/LAN mobile testing, allowedDevOrigins, dev vs production QA, test orders for the account pages
  • dev-investigation - Saleor API source code investigation methodology
  • third-party-embeds - External widget scripts (reviews, Yotpo) via next/script, env keys, client leaf components

How to Use

Read individual rule files for detailed explanations and code examples:

rules/data-caching.md
rules/product-variants.md

Each rule file contains:

  • Brief explanation of why it matters
  • File locations and architecture diagrams
  • Code examples (correct and incorrect patterns)
  • Anti-patterns to avoid

Migrations (fork upgrades)

Chronological upgrade prompts for forks behind upstream Paper. Not for greenfield work — use rules/ for current patterns.

TaskLocation
Apply pending upgradesmigrations/SKILL.md
Migration registrymigrations/manifest.json
Fork baselinepaper-version.json (repo root)

Trigger phrases: "upgrade Paper", "apply Paper migrations", "catch up with upstream caching", "checkout v2", "paper-version".

Notable migration: 2026-06-checkout-v2 — subsystem replacement (adopt-then-replay, not incremental port); RSC + server actions; requires 2026-06-account-ppr-auth. See migrations/references/checkout-v2-overview.md.

Full Compiled Document (humans / offline only)

AGENTS.md concatenates every rule into one ~75k-token file for humans reading offline and for single-file skill export. Agents must not load it — read the one rules/<task>.md whose frontmatter description matches your task instead. Regenerate the compiled doc from rules/ with node scripts/compile-agents.mjs.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1,595
Repository forks
884
7-day trend score
37

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 23 Mar 2026, 8 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/saleor/storefront/saleor-paper-storefront/badge)](https://verified-skill.com/skills/saleor/storefront/saleor-paper-storefront)

Something wrong with this skill or its page? Tell us.