Agent Skills

saleor-core

Saleor backend internals and behavior reference. Covers discount precedence, order-level discount allocation across lines (two-pass calculation, what the API does and doesn't expose, gift-line shape gotchas), stock availability modes (legacy vs direct, 3.23+), Dashboard UI rules, webhook trigger conditions, denormalized field semantics, and migration footguns. Use when working with Saleor discounts or stock availability, building Dashboard UI, building price-explanation tooling, or debugging bac

Install

npx skills add https://github.com/saleor/agent-skills --skill saleor-core
SKILL.md

Saleor Core

Backend behavior reference derived from the Saleor core source code. Covers internal mechanics that aren't fully documented in the public API reference — discount precedence, stock availability modes, denormalized fields, and known Dashboard gotchas.

When to Apply

  • Building or debugging discount/promotion UI in the Dashboard
  • Investigating why a voucher or promotion isn't applying
  • Understanding order-level vs line-level discount precedence
  • Working with OrderDiscount / OrderLineDiscount objects
  • Debugging unit_discount_value on OrderLine
  • Deciding whether discounts stack or suppress each other
  • Building price-explanation / waterfall tooling on confirmed orders
  • Reconstructing how an order-level discount distributed across lines
  • Handling free-gift order lines (OrderLine.isGift = true)
  • Working on stock availability, shipping zones, warehouses, or Shop.useLegacyShippingZoneStockAvailability
  • Debugging why PRODUCT_VARIANT_*_IN_CHANNEL webhooks aren't firing
  • Building diagnostic / "doctor" tooling that explains availability problems
  • Auditing Dashboard copy that uses "available" / "in stock" / "purchasable"

Rule Categories

Priority Category Impact Prefix
1 Discounts CRITICAL discount-
2 Stock CRITICAL stock-

Quick Reference

1. Discounts (CRITICAL)

  • discount-precedence — Full precedence hierarchy, stacking rules, manual vs voucher vs promotion interactions, denormalized field semantics, known Dashboard bug
  • order-discount-allocation — Two-pass calculation of order-level discounts (Pass A collapses records into a single subtotal_discount; Pass B distributes proportionally across lines with last-line absorbing rounding), what the API exposes (per-line totals, per-record-at-order amounts) and what it doesn't (per-record-per-line decomposition), gift-line shape gotcha (ORDER_PROMOTION on OrderLine.discounts[] when isGift = true), reconstruction guidance for consumers

2. Stock (CRITICAL)

  • stock-availability-modes — Shop.useLegacyShippingZoneStockAvailability (3.23+), purchasability vs shippability, server queryset dispatch, mode-conditional webhooks, Dashboard UI / copy / severity rules, migration footguns, test fixtures

How to Use

Read individual rule files for detailed explanations and source-level evidence:

rules/discount-precedence.md
rules/order-discount-allocation.md
rules/stock-availability-modes.md

Each rule file contains:

  • Precedence hierarchy or computation rules
  • Source code references from saleor/ with function names and file paths
  • Anti-patterns and known bugs

Related skills

entra-app-registrationmicrosoft606KGuides Microsoft Entra ID app registration, OAuth 2.0 authentication, and MSAL integration. USE FOR: create app registration, register Azure AD app, configure OAuth, set up authentication, add API permissions, generate service principal, MSAL example, console app auth, Entra ID setup, Azure AD authentication. DO NOT USE FOR: Key Vault secrets (use azure-keyvault-expiration-audit), general Azure resource security guidance.azure-messagingmicrosoft595KTroubleshoot and resolve issues with Azure Messaging SDKs for Event Hubs and Service Bus. Covers connection failures, authentication errors, message processing issues, and SDK configuration problems. WHEN: event hub SDK error, service bus SDK issue, messaging connection failure, AMQP error, event processor host issue, message lock lost, message lock expired, lock renewal, lock renewal batch, send timeout, receiver disconnected, SDK troubleshooting, azure messaging SDK, event hub consumer, servicentra-agent-idmicrosoft328KProvision Microsoft Entra Agent Identity Blueprints, BlueprintPrincipals, and per-instance Agent Identities via Microsoft Graph, and configure OAuth 2.0 token exchange (fmi_path, OBO, cross-tenant) including the Microsoft Entra SDK for AgentID sidecar. USE FOR: Agent Identity Blueprint, BlueprintPrincipal, agent OAuth, fmi_path token exchange, agent OBO, Workload Identity Federation for agents, polyglot agent auth, Microsoft.Identity.Web.AgentIdentities. DO NOT USE FOR: standard Entra app registsupabasesupabase298KUse when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, Queues); client libraries and SSR integrations (supabase-js, @supabase/ssr) in Next.js, React, SvelteKit, Astro, Remix; auth issues (login, logout, sessions, JWT, cookies, getSession, getUser, getClaims, RLS); Supabase CLI or MCP server; schema changes, migrations, declarative schemas, security audits, Postgres extensions (pg_graphql, pg_cron, pg_vector); deb

Search skills and MCP servers

Fuzzy search across 23,137 skills and servers