Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

saleor-development

БесплатноБез исполняемых скриптовНе проверен

Build and extend Saleor's GraphQL-based headless commerce platform with custom apps, webhook handlers, and dashboard UI customizations

finsilabsот finsilabs★ 69 звёзд на GitHub

Об этом скилле

Saleor Development

Overview

Saleor is a headless, GraphQL-first e-commerce platform built on Django and Python. It exposes a fully typed GraphQL API for storefronts and third-party apps, a React-based dashboard for store management, and an extension system that lets you react to events via webhooks or inject UI into the dashboard. This skill covers querying the Saleor API, building Saleor Apps (plugins hosted outside Saleor), and customizing the dashboard with App Extensions.

When to Use This Skill

  • When building a custom storefront (Next.js, Remix, mobile) against a Saleor backend
  • When creating a Saleor App that reacts to order or product lifecycle webhooks
  • When injecting custom UI panels into the Saleor Dashboard via App Extensions
  • When exploring or extending the Saleor product catalog, checkout, or customer APIs
  • When setting up a local Saleor development environment with Docker

Prerequisites & Platform Notes

This skill is written for custom/headless storefronts (Node.js, Python, or similar backend). The code examples use TypeScript/Node.js and can be adapted to any stack.

Shopify: Shopify Hydrogen is Shopify's headless framework. MACH/composable patterns apply when using Shopify as the commerce backend with a custom frontend, or when mixing Shopify with other best-of-breed services. WooCommerce: WooCommerce can serve as a headless backend via its REST API and WPGraphQL. These patterns apply when decoupling the frontend from WordPress. Magento: Magento's GraphQL API and PWA Studio support headless architectures. These composable patterns apply to Magento as a backend service in a MACH stack.

You'll need:

  • Node.js 18+ (or adapt to your backend language)
  • PostgreSQL (or your preferred relational database)
  • Redis for caching/queues
  • Stripe account and API keys
  • An email sending service (SendGrid, AWS SES, or Postmark)
  • Docker and/or Kubernetes for container orchestration
  • CDN (Cloudflare, CloudFront, or Fastly)

Core Instructions

  1. Run Saleor locally with Docker Compose

    git clone https://github.com/saleor/saleor-platform.git
    cd saleor-platform
    docker compose up --detach
    # API:       http://localhost:8000/graphql/
    # Dashboard: http://localhost:9000
    

    Create the first superuser and populate demo data:

    docker compose run --rm api python manage.py createsuperuser
    docker compose run --rm api python manage.py populatedb --createsuperuser
    
  2. Query the Storefront GraphQL API

    Use the Saleor CLI or any GraphQL client (Apollo, urql, graphql-request).

    Install the CLI for code generation:

    npm install -g @saleor/cli
    saleor configure
    

    Example — fetch the first 12 products from the default channel:

    query ProductList($channel: String!) {
      products(first: 12, channel: $channel) {
        edges {
          node {
            id
            name
            slug
            thumbnail { url alt }
            pricing {
              priceRange {
                start { gross { amount currency } }
              }
            }
          }
        }
        pageInfo { hasNextPage endCursor }
      }
    }
    
    import { createClient } from 'urql';
    
    const client = createClient({
      url: process.env.NEXT_PUBLIC_SALEOR_API_URL,
      fetchOptions: () => ({
        headers: { 'Content-Type': 'application/json' },
      }),
    });
    
    const { data } = await client.query(PRODUCT_LIST_QUERY, { channel: 'default-channel' }).toPromise();
    
  3. Authenticate a customer and start checkout

    mutation CustomerLogin($email: String!, $password: String!) {
      tokenCreate(email: $email, password: $password) {
        token
        refreshToken
        errors { field message }
        user { id email }
      }
    }
    

    Create a checkout and add lines:

    mutation CheckoutCreate($channel: String!, $lines: [CheckoutLineInput!]!) {
      checkoutCreate(input: { channel: $channel, lines: $lines }) {
        checkout {
          id
          token
          totalPrice { gross { amount currency } }
        }
        errors { field message }
      }
    }
    

    Complete checkout with a payment gateway token (e.g., from Stripe Elements):

    mutation CheckoutComplete($checkoutId: ID!, $paymentData: JSONString) {
      checkoutComplete(id: $checkoutId, paymentData: $paymentData) {
        order { id number status }
        errors { field message code }
      }
    }
    
  4. Bootstrap a Saleor App

    A Saleor App is a Node.js service that registers itself with Saleor, receives webhooks, and optionally renders UI in the dashboard via iframes.

    npx @saleor/app-sdk@latest create my-saleor-app
    cd my-saleor-app
    npm install
    npm run dev
    # Expose with: npx ngrok http 3000
    

    Register the app in the dashboard under Apps → Install custom app, entering your ngrok URL. Saleor calls your `/ap

Полный SKILL.md на GitHub

Установить saleor-development в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

claude-code
cursor
gemini-cli
copilot
codex-cli
kiro
opencode

Вложенные файлы

evals/dashboard-extension-with-app-bridge-comm/criteria.jsonevals/dashboard-extension-with-app-bridge-comm/task.mdevals/saleor-app-bootstrap-and-webhook-handlin/criteria.jsonevals/saleor-app-bootstrap-and-webhook-handlin/task.mdevals/storefront-product-catalog-with-paginati/criteria.jsonevals/storefront-product-catalog-with-paginati/task.mdtile.json

FAQ

Что делает скилл saleor-development?

Build and extend Saleor's GraphQL-based headless commerce platform with custom apps, webhook handlers, and dashboard UI customizations

Как установить скилл saleor-development?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл saleor-development запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить saleor-development с