saleor-paper-storefront
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.
- License 许可
- MIT
- 最近更新
- 2026-03-30
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- saleor-paper-storefront
- license
- MIT
- metadata
- { "author": "saleor-paper", "version": "1.1.0" }
- description
- 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.
- dependencies
- [ "saleor/agent-skills#saleor-storefront" ]
02 资源文件 16
- 参考文档AGENTS.md87.3 KB
- 参考文档README.md3.1 KB
- 参考文档references/saleor-key-directories.md3.4 KB
- 参考文档references/variant-state-machine.md3.2 KB
- 参考文档references/variant-utils-reference.md3.3 KB
- 参考文档rules/checkout-components.md4.3 KB
- 参考文档rules/checkout-management.md5.9 KB
- 参考文档rules/data-caching.md22.0 KB
- 参考文档rules/data-graphql.md3.8 KB
- 参考文档rules/dev-investigation.md3.5 KB
- 参考文档rules/product-filtering.md4.0 KB
- 参考文档rules/product-pdp.md14.9 KB
- 参考文档rules/product-variants.md6.3 KB
- 参考文档rules/seo-metadata.md3.2 KB
- 参考文档rules/ui-channels.md5.4 KB
- 参考文档rules/ui-components.md2.6 KB
03 SKILL.md 正文
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 11 rules across 6 categories covering caching, PDP architecture, checkout components, UI patterns, and SEO.
Prerequisite: This skill depends on
saleor-storefrontfor universal Saleor API knowledge (data model, permissions, checkout lifecycle, channels). Install it alongside this skill.
AI-Ready Structure
Built for front-end developers and AI agents. This skill package includes:
AGENTS.mdfor architecture overview and quick referencerules/with 11 task-specific rules (GraphQL, caching, variants, checkout, and more).agents/skills/compatibility for installed community skills- Consistent patterns that make AI-assisted edits predictable
Whether you are pair-programming with Cursor, Claude, or Copilot, the structure is designed to help agents navigate and modify the codebase confidently.
When to Apply
Reference these guidelines when:
- Working on product detail pages (PDP), variant selection, or filtering
- Modifying checkout flow or payment integration
- Editing GraphQL queries or regenerating types
- Debugging caching, stale content, or revalidation
- Creating UI components with design tokens
- Adding SEO metadata, JSON-LD, or OG images
- Writing tests or investigating Saleor API behavior
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Data Layer | CRITICAL | data- |
| 2 | Product Pages | HIGH | product- |
| 3 | Checkout Flow | HIGH | checkout- |
| 4 | UI & Channels | MEDIUM | ui- |
| 5 | SEO | MEDIUM | seo- |
| 6 | Development | MEDIUM | dev- |
Quick Reference
1. Data Layer (CRITICAL)
data-caching- Cache Components (PPR), cache tags, revalidation, price flowdata-graphql- Two codegen setups, permission patterns, nullable fields
2. Product Pages (HIGH)
product-pdp- PDP architecture, gallery, data flow, add-to-cart, ErrorBoundaryproduct-variants- Variant selection state machine, option states, discount badgesproduct-filtering- Server vs client filtering, category slug resolution
3. Checkout Flow (HIGH)
checkout-management- Checkout lifecycle, cookie storage, payment debuggingcheckout-components- Reusable checkout UI (SignInForm, AddressSelector, PaymentMethodSelector)
4. UI & Channels (MEDIUM)
ui-components- Design tokens, shadcn/ui primitives, component locationsui-channels- Multi-channel URLs, fulfillment model, purchasability debugging, channel selector
5. SEO (MEDIUM)
seo-metadata- JSON-LD structured data, metadata helpers, OG image generation
6. Development (MEDIUM)
dev-investigation- Saleor API source code investigation methodology
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
Full Compiled Document
For the complete guide with all rules expanded: AGENTS.md
04 同仓库更多 Skills
workflow
Vercel Workflow DevKit (WDK) expert guidance. Use when building durable workflows, long-running tasks, API routes or agents that need pause/resume, retries, step-based execution, or crash-safe orchestration with Vercel Workflow.
verification
Full-story verification — infers what the user is building, then verifies the complete flow end-to-end: browser → API → data → response. Triggers on dev server start and 'why isn't this working' signals.
vercel-storage
Vercel storage expert guidance — Blob, Edge Config, and Marketplace storage (Neon Postgres, Upstash Redis). Use when choosing, configuring, or using data storage with Vercel applications.
vercel-services
Vercel Services — deploy multiple services within a single Vercel project. Use for monorepo layouts or when combining a backend (Python, Go) with a frontend (Next.js, Vite) in one deployment.
vercel-sandbox
Vercel Sandbox guidance — ephemeral Firecracker microVMs for running untrusted code safely. Supports AI agents, code generation, and experimentation. Use when executing user-generated or AI-generated code in isolation.
vercel-queues
Vercel Queues guidance (public beta) — durable event streaming with topics, consumer groups, retries, and delayed delivery. $0.60/1M ops. Powers Workflow DevKit. Use when building async processing, fan-out patterns, or event-driven architectures.