askill
saleor-domain

saleor-domainSafety 95Repository

Provides comprehensive Saleor e-commerce domain knowledge including entity types, relationships, identifier rules, and GraphQL patterns. This skill should be invoked when the user needs to understand Saleor concepts, entity relationships, the difference between product-level and variant-level attributes, or how channels, warehouses, and shipping zones interact. Essential for understanding how Configurator maps to Saleor's data model.

25 stars
1.2k downloads
Updated 2/20/2026

Package Files

Loading files...
SKILL.md

Saleor Domain Knowledge

Saleor is a headless e-commerce platform built with Python/Django and GraphQL. This skill provides essential domain knowledge for configuring Saleor stores.

Core Entities

Channel

Channels represent sales channels (storefronts, marketplaces, regions). Each channel has its own:

  • Currency
  • Default country
  • Product visibility and pricing
  • Checkout and order settings
channels:
  - name: "US Store"
    slug: "us-store"
    currencyCode: USD
    defaultCountry: US

Product Type

Defines the structure of a product category with:

  • Product-level attributes (shared across variants)
  • Variant-level attributes (differ per variant)
  • Shipping requirements
  • Tax class
productTypes:
  - name: "T-Shirt"
    isShippingRequired: true
    productAttributes:
      - name: "Brand"
    variantAttributes:
      - name: "Size"
      - name: "Color"

Product & Variant

Products are the items you sell. Each product:

  • Belongs to one product type
  • Can be in multiple categories
  • Has one or more variants (SKUs)

Variants represent purchasable items with:

  • Unique SKU
  • Specific attribute values
  • Channel-specific pricing
  • Inventory tracking

Attribute

Attributes define product/variant characteristics:

Attribute LevelDescriptionExample
ProductSame for all variantsBrand, Material
VariantDiffers per variantSize, Color

Category

Hierarchical product organization:

  • Tree structure with parent/child relationships
  • Products belong to leaf categories
  • Used for navigation and filtering

Collection

Curated product groupings:

  • Can span multiple categories
  • Manual or rule-based membership
  • Used for promotions, featured sections

Warehouse

Physical or virtual inventory locations:

  • Stock tracking per warehouse
  • Shipping zone associations
  • Click & collect support

Shipping Zone

Geographic shipping regions:

  • Country-based targeting
  • Multiple shipping methods per zone
  • Rate calculation rules

Entity Relationships

Channel ─────────────────────────────────────────────┐
    │                                                │
    ├── Product Listings (visibility, pricing)       │
    ├── Variant Listings (price, availability)       │
    └── Checkout/Order settings                      │
                                                     │
ProductType ─────────────────────────────────────────┤
    │                                                │
    ├── productAttributes ──► Attribute              │
    ├── variantAttributes ──► Attribute              │
    └── taxClass ──► TaxClass                        │
                                                     │
Product ─────────────────────────────────────────────┤
    │                                                │
    ├── productType ──► ProductType                  │
    ├── category ──► Category                        │
    ├── collections ──► Collection[]                 │
    └── variants ──► ProductVariant[]                │
                     │                               │
                     ├── warehouse ──► Warehouse     │
                     └── channelListings ────────────┘

Category (tree structure)
    └── children ──► Category[]

ShippingZone
    └── warehouses ──► Warehouse[]

Identifier Rules

Understanding which field identifies each entity:

EntityIdentifierMutable?
ChannelslugNo - creates new
CategoryslugNo - creates new
CollectionslugNo - creates new
ProductslugNo - creates new
WarehouseslugNo - creates new
MenuslugNo - creates new
PageslugNo - creates new
ProductTypenameNo - creates new
PageTypenameNo - creates new
AttributenameNo - creates new
TaxClassnameNo - creates new
ShippingZonenameNo - creates new

Important: Changing an identifier creates a new entity and may orphan the old one.

GraphQL API

Saleor uses GraphQL for all operations:

Common Query Patterns

# Fetch products with variants
query {
  products(first: 10, channel: "us-store") {
    edges {
      node {
        name
        slug
        variants {
          sku
          pricing {
            price { gross { amount } }
          }
        }
      }
    }
  }
}

Mutation Patterns

# Create a product
mutation {
  productCreate(input: {
    name: "New Product"
    slug: "new-product"
    productType: "product-type-id"
  }) {
    product { id }
    errors { field message }
  }
}

Configuration vs Runtime

AspectConfigurator HandlesRuntime Only
Product structure
Product pricing
Categories
Attributes
Channels
Warehouses
Orders
Customers
Checkouts
Payments

Saleor MCP Integration

When Saleor MCP is available, you can query live store data:

# Check if Saleor MCP is configured
# Look for SALEOR_API_URL and SALEOR_TOKEN environment variables

Use Saleor MCP for:

  • Validating configuration against live data
  • Discovering existing entity IDs
  • Checking deployment results

Context7 for Documentation

For up-to-date Saleor documentation, use Context7 MCP:

# Fetch latest Saleor docs
# Context7 sources: docs.saleor.io, saleor/saleor repo

See Also

Related Skills

  • configurator-schema - Config.yml structure and validation rules
  • product-modeling - Product type design and attribute selection
  • configurator-cli - CLI commands for deploying configurations

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

82/100Analyzed 4/27/2026

Comprehensive Saleor domain knowledge skill covering entity types, relationships, identifier rules, and GraphQL patterns. Well-structured with tables, code examples, and ASCII diagrams. Includes clear 'when to use' guidance in description. Located in dedicated skills folder with good tags for discoverability. More of a reference skill than actionable guide, but provides high-density technical content.

95
85
80
85
70

Metadata

Licenseunknown
Version1.0.0
Updated2/20/2026
Publishersaleor

Tags

apigraphql