AGENT SKILL

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

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-storefront for 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.md for architecture overview and quick reference
  • rules/ 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 flow
  • data-graphql - Two codegen setups, permission patterns, nullable fields

2. Product Pages (HIGH)

  • product-pdp - PDP architecture, gallery, data flow, add-to-cart, ErrorBoundary
  • product-variants - Variant selection state machine, option states, discount badges
  • product-filtering - Server vs client filtering, category slug resolution

3. Checkout Flow (HIGH)

  • checkout-management - Checkout lifecycle, cookie storage, payment debugging
  • checkout-components - Reusable checkout UI (SignInForm, AddressSelector, PaymentMethodSelector)

4. UI & Channels (MEDIUM)

  • ui-components - Design tokens, shadcn/ui primitives, component locations
  • ui-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

NagyVikt
NagyVikt/codex-plugins

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.

开发工程师人力资源后端与接口Skill与智能体开发
★ 2
NagyVikt
NagyVikt/codex-plugins

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.

产品经理数据分析师测试与质量后端与接口
★ 2
NagyVikt
NagyVikt/codex-plugins

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.

后端与接口
★ 2
NagyVikt
NagyVikt/codex-plugins

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.

前端开发后端与接口
★ 2
NagyVikt
NagyVikt/codex-plugins

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.

★ 2
NagyVikt
NagyVikt/codex-plugins

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.

Skill与智能体开发
★ 2