Skills and modules: what the blueprint ships and what this reference adds
What a skill is in Anthropic's Claude Commerce Agents blueprint, the ten it ships and the two processor-neutral ones this reference adds, how one skills directory per role is assembled, and the 53-module inventory a team consults before porting the agents to another runtime.
Two kinds of building block decide how much of the blueprint a merchant or a processor keeps when they adapt it. Skills are the flows the model follows on demand; adding one is adding a folder. Modules are the Python files the agents run on, and the inventory below says which of them touch a model and which do not. The Clover merchant's catalog belongs to the same question, because it is the one piece of the reference whose source differs between the demo and a live deployment. The merchants named here (Northstar Outfitters, Lumen Home, Aurora Escapes, Beacon Wireless, Encore Seats) are fictional.
What a skill is
A skill is one Markdown file, SKILL.md, in a directory of its own. It opens with YAML frontmatter carrying a name and a description, then a page of rules for one flow. The blueprint's loader (commerce_common/skills.py, under vendor/commerce-agents/commerce-common/) parses the frontmatter, refuses a file without both fields, and refuses two skills with the same name. SkillRegistry keeps the loaded skills sorted by name so the index renders the same bytes on every request, which matters for prompt caching.
The request lights one line of the index. The assistant loads that page and makes its first data read in the same round.
The model never sees a skill's body until it asks for it. The static system prompt carries an index, one line per skill with its name and description, under a heading that says: each entry is a flow whose rules are in the skill; when a request matches an entry, call load_skill in the same round as the first read; one obvious tool call needs no skill (shopping_agent/prompt.py and merchant_agent/prompt.py in the blueprint). load_skill is a tool like any other, whose skill_name argument is an enum of the installed names. The executor's handler (commerce_common/execution.py) returns the skill's body as the tool result, or an error naming the skills that exist. From that round on, the rules are in the model's context for the rest of the flow.
Three consequences follow. Adding a flow is adding a folder; the index is rebuilt on the next start with no code or prompt edit. A skill cannot grant a tool; it only says when and how to use tools the deployment registered, so the tender skill below does nothing on a store without the tender card. And a skill is prompt text, so it is guidance; the rules that hold regardless of what the model does (gates, fences, caps) are in code, described in Security and trust. The blueprint's architecture skill states the layering: a rule for one call lives in that tool's description, a rule for most turns in the static prompt, and a multi-step procedure for a minority of requests in a skill.
The description is the trigger. Every description in the blueprint names the class of request it covers and ends by naming what it is not for, so two skills never claim the same request.
The ten skills the blueprint ships
The shopping agent's five skills live in vendor/commerce-agents/shopping-agent/skills/, the merchant agent's five in vendor/commerce-agents/merchant-agent/skills/.
Skill
Role
Loads when the person…
search-discovery
shopping
describes a need with several constraints, a gift, a choice among candidates already shown, or a search that came back empty or sold out
purchase-research
shopping
asks what matters in a category, how two approaches differ, or where to begin, before any candidates appear
planning-goals
shopping
wants a coordinated set of items toward a goal, an event, a trip or a project, or changes a plan already presented
customer-care
shopping
asks about an order or delivery, returns, refunds, exchanges, cancellations, a damaged or late item, or the store's terms or a membership
memory-personalization
shopping
asks what is remembered, to remember, correct or forget something, or when an older fact would change the pick
performance-insights
merchant
asks why a metric moved, which segment drove it, pace against a comparable, or progress against a stated goal
inventory-operations
merchant
wants the daily briefing, acts on low-stock or slow-mover alerts, or triages order exceptions
catalog-listings
merchant
wants listing content created or improved, categorization fixed, or a content audit across listings
pricing-promotions
merchant
asks for a price change within the guardrails, a rate recommendation, a promotion with scope and dates, or a markdown
marketing-campaigns
merchant
wants a campaign or ad drafted, an audience chosen, budget allocated, or results reviewed
Every merchant skill ends in a staged change; the operator's approval on the host's own surface is the only thing that applies a write. The blueprint also ships six engineering skills in its Claude Code plugin (vendor/commerce-agents/plugins/commerce-builder/skills/: architecture, prompt caching, UI tools, evals, merchant operations, trust and safety). Those load for the engineer building or reviewing an agent; none runs at shopping time, and this reference does not assemble them into either role's directory.
The two skills this reference adds
The reference adds one skill per role, both in the blueprint's exact shape so the vendored loader reads them unmodified. They live in psp_commerce/skills/ because they are the same for every processor: neither file names one, and every figure they direct the model to comes from the gateway, whichever processor implements it.
tender-and-loyalty (shopping)
psp_commerce/skills/shopping/tender-and-loyalty/SKILL.md loads when a shopper asks how they can pay for what is in the cart, whether it can be split or financed, whether a gift card or store card applies, what the order earns, or says they are ready to check out and has not seen the options this session. It is not for return, shipping or warranty terms (that is customer-care), and never for an empty cart.
How to pay, wired. The skill decides when the card appears and what the assistant may say; the server decides every number on it.
The rules point the model at four tools: get_cart when it is unsure what the cart holds, present_tender_options for the card, search_policies for the terms behind a tender, and checkout, staged in the same turn when the shopper is ready. The model states none of the figures in its text; the card carries them, and a tender the card does not show is one the model says is unavailable on this cart. The flow never charges, applies a tender, redeems points, states an approval or a credit limit, or asks for card numbers, bank details or one-time codes; choosing and paying happen on the store's checkout page after checkout.
The card it names is the presentation extension in commerce_core/tender.py, whose enrich hook computes every figure from the gateway (psp_commerce/reporting.py::tender_rows). A store enables the skill by registering build_tender_options_extension() in extra_presentation_tools, giving its backend a gateway and a merchant_id, and pointing skills_dir at the assembled directory. tests/test_tender_extension.py covers the figures and the two refusals.
payments-operations (merchant)
psp_commerce/skills/merchant/payments-operations/SKILL.md loads when an operator asks about settled volume and when it lands, authorization and decline rates, the mix of tenders, chargebacks and disputes with their deadlines, the share of sales that AI agents initiated, or processing fees. It is not for the sales and traffic questions the snapshot answers (performance-insights) and not for anything that changes a listing, a price or a campaign.
Settlement, authorization and disputes, wired. The processor's seven-day summary rides in the assistant's context on every request; deeper questions go to named metrics, the dispute list, and one read-only SQL view.
It tells the model where each figure lives: the payments block in the store context for the last seven days, quoted as given; query_metrics under the exact names settled_volume, auth_rate, dispute_rate, chargebacks, agent_initiated_share and tender_mix:<tender>; open disputes in get_order_issues with reason code, amount, transaction and order ids and the response deadline; and run_analysis over the transactions, settlements and disputes tables when a question needs a join or a share. It fixes the order of an answer (the figure, the window, then the deadline or action it implies), asks for a prior-period comparison before an authorization rate is called a problem, and puts any dispute due within seven days first. Responding to a dispute, issuing a refund, changing a settlement schedule or switching a tender happens in the processor's portal; the model describes that as the next step and says nothing has happened here.
The data reaches those tools through PaymentsOpsMixin in commerce_core/merchant.py, mixed in ahead of the merchant's existing backend. Enabling it is the mixin, two attributes (gateway, processor_mid), the payments vocabulary added to metrics_intent_terms (PAYMENTS_METRIC_TERMS in verticals/_rebrand.py) so the blueprint's snapshot gate fires on a payments question, and the assembled skills directory. tests/test_payments_ops.py covers the series, the disputes, the SQL join and a refused write.
One directory per role
Both of the blueprint's runtimes take a single skills_dir, so the reference assembles one directory per role. psp_commerce/skills_dir.py::skills_dir(role) walks two sources for shopping (the blueprint's shopping-agent/skills and psp_commerce/skills/shopping) and two for merchant, copies each SKILL.md into .skills/<role>/<name>/SKILL.md at the repository root (ignored by git), skips directories whose name starts with an underscore (the blueprint's convention for parked flows), and recopies a file only when its source is newer. Every merchant's api/main.py passes skills_dir("shopping") to the shopping agent and skills_dir("merchant") to the merchant agent; commerce_core/skills_dir.py re-exports the function for older imports.
The result is six skills per role: the blueprint's five plus tender-and-loyalty for shopping, the blueprint's five plus payments-operations for merchant. The registry refuses duplicate names, so a processor adding a third skill picks a name the blueprint does not use. On the Agent SDK path (scripts/console.py) the blueprint's commerce_common/agent_sdk.py materializes the same directory for the SDK's own Skill tool and drops load_skill from the tool list, so both paths read the same files.
The module inventory
scripts/module_inventory.py walks the blueprint's seven installable packages, reads each module's docstring, and classifies it. The script takes one optional flag, --json; without it, it prints a Markdown table.
Inner ring: touches a model. Outer ring: model-free. Everything that makes the product safe sits on the outer ring: the provenance rule, the cart gates, the fences, the presentation contract, the skills. The full inventory with every module's purpose and line count is in the project's docs/MODULES.md; the script that produced it is in the reference.
red · talks to Claude directly (9)violet · uses a Claude-only trick (9)green · works with any AI, or none (35)
Package __init__.py files are excluded; two of them (the two Agent SDK packages) import the SDK to re-export their runtime, which is where an earlier count of eleven files came from. The classification is mechanical: an import of anthropic or claude_agent_sdk puts a module in tier A; otherwise a hit on one of the Messages API markers (cache_control, tool_choice, input_json_delta, web_search_20250305, code_execution_20260120, thinking_effort, thinking content blocks, messages.stream, messages.create) puts it in tier B; the rest is tier C. Line counts exclude blanks and comments. The figures below come from running the script on 8 September 2026 against the pinned blueprint commit fd4d5922.
Tier
Meaning
Modules
Lines
A. SDK-coupled
constructs or drives an Anthropic client, or builds Agent SDK options; replacing the model means replacing the module
9
2,081
B. Messages-API-shape
speaks a Messages API feature without importing the SDK: cache breakpoints, forced tool choice, streamed partial tool JSON, the server tools, the thinking field; another provider needs an equivalent or a graceful drop
9
2,722
C. Model-free
interfaces, types, gates, fencing, provenance, presentation contracts, enrichment, skills, serialization, manifests, MCP (Model Context Protocol) plumbing; runs unchanged on any model, or with no model at all
35
4,595
Package
Modules
A
B
C
commerce_common (what both roles share)
16
2
4
10
shopping_agent (the shopping core)
13
0
2
11
shopping_agent_runtime (Messages API run path)
1
1
0
0
shopping_agent_sdk (Agent SDK run path)
3
2
0
1
merchant_agent (the merchant core)
15
0
3
12
merchant_agent_runtime (Messages API run path)
2
2
0
0
merchant_agent_sdk (Agent SDK run path)
3
2
0
1
Tier A is the two Messages API turn loops (shopping_agent_runtime/orchestrator.py, 259 lines; merchant_agent_runtime/orchestrator.py, 299), the merchant's analysis delegate (341), commerce_common/memory.py (529; only its extraction pass is a Messages call), the shared Agent SDK plumbing (commerce_common/agent_sdk.py, 242), and the four Agent SDK adapters. Tier B is the two tool registries (627 and 697 lines, coupled only by the web_search entry; the JSON schemas are provider-neutral), the three config modules (thinking_effort), commerce_common/prompt_assembly.py (cache breakpoints, forced tool_choice), commerce_common/turn.py (the streamed round), commerce_common/testing.py (scripted stand-ins for the two Messages calls), and merchant_agent/analysis.py (the code_execution server tool).
For a team porting to another runtime the tiers translate into three actions. Tier C is kept as is, and it is where a processor's integration lives: a StorefrontBackend over a catalog, a MerchantBackend over reporting, a PresentationExtension for the tender card, a SKILL.md for payments operations. None of it changes when the merchant chooses a different model. Tier A is small and replaceable; this reference rewrites the shopping loop once against a provider interface, in about 150 lines, and Any model describes what that loop keeps and drops. Tier B is where the trade-offs are: caching, forced reads, eager dispatch and the two server tools are what make the Claude path fast and cheap, and a provider without them is slower per turn and needs the grounding read done by the host before the model call.
Where the Clover merchant's catalog comes from
Northstar Outfitters, the Clover merchant, keeps its catalog, stock and orders in its point of sale. In this reference that catalog is a fixture written for the demo, verticals/northstar_outfitters/data/clover_items.json, laid out in the shape Clover's REST API returns: the response of GET /v3/merchants/{mId}/items?expand=itemStock,categories,options plus the item groups (the variant families, such as a boot with five sizes) and the categories the same merchant exposes. Prices and costs are in cents. build_gateway in verticals/registry.py loads it into the simulated gateway with load_clover_inventory; with CLOVER_MERCHANT_ID and CLOVER_ACCESS_TOKEN set, gateway_for returns the Clover adapter instead, which answers the same reads from one sync_inventory call against the sandbox merchant. Either way CloverCatalogStorefront (commerce_core/storefront.py) maps the inventory onto the blueprint's StorefrontBackend: items become products, item groups become families with options, item stocks become availability, categories become categories. Descriptions, images, brands and ratings are not Clover fields, so they live in a sidecar the store's own site owns, storefront_content.json. The merchant agent's approved restocks and price moves write back through the same shapes (update_item_stock, update_item), and refresh_catalog rebuilds the products at once.
Three reads, one shape. The adapter's inventory sync fetches items, item groups and categories and returns the fixture's shape; the storefront maps them onto the kit's products, families and availability. Descriptions and images are not Clover fields, so a sidecar the store owns supplies them, which is the content gap a feed vendor could fill. Details in docs/CLOVER-INVENTORY.md.
Live, the same shape comes from the adapter. CloverGateway.sync_inventory() in psp_commerce/adapters/clover.py reads a merchant's inventory with three calls (items paged by 1,000 with expand=itemStock,categories,itemGroup,options, item groups with expand=attributes.options, and categories) and returns elements, itemGroups and categories, the fixture's keys, so load_clover_inventory accepts either. The credential is the app's own OAuth grant from the merchant: a Clover app declares the permissions it needs (inventory read and write, orders, payments), the merchant installs it, and the app receives an access token for that merchant, passed here as CLOVER_MERCHANT_ID and CLOVER_ACCESS_TOKEN. Clover's documentation (docs.clover.com, read on 6 September 2026) has no "delegated API" as a product; the token is the app's credential, and it never reaches the model. Stock and price writes go to POST /v3/merchants/{mId}/item_stocks/{itemId} and POST /v3/merchants/{mId}/items/{itemId}.
Two things to be clear about. tests/test_adapters_http.py::test_clover_requests_and_inventory_sync exercises the sync against Clover's documented response shape with a mock transport; it was not run against a Clover sandbox merchant in this repository. And the Northstar demo API (verticals/northstar_outfitters/api/main.py) always builds the simulated gateway from the fixture; feeding a live merchant's sync_inventory() output through load_clover_inventory is a deployment's wiring, and the fixture is what every Northstar scene in the use-case article runs on.
The builder's own skills
The skills above run at shopping time. The blueprint also ships six skills for the engineer building or reviewing an agent, under vendor/commerce-agents/plugins/commerce-builder/skills/, loaded inside Claude Code and never at run time. commerce-architecture fixes where every rule lives: one model owns the conversation, one executor runs every tool call, and a rule sits in exactly one of three places (a tool's description, the static prompt, or a skill loaded on demand). commerce-prompt-caching keeps the request bytes still across turns so the cache prefix is reused. commerce-ui-tools makes every card a tool call whose values the server fills. commerce-evals grades the state a turn leaves behind rather than the prose. commerce-merchant-operations covers staged writes and approval. commerce-trust-and-safety covers the gates, fences and identity binding. The tender card and the payments view in this reference follow the first of them to the letter: the card's "when" is its tool description, the always-on rule that the assistant never charges is in the static prompt, and the procedure for a customer asking how to pay is the skill.
Six skills for the people building it. The developer tool's commands scaffold an agent, add a flow, author evals, or review an existing assistant. A processor's version of the plugin would pre-answer the stack questions for its own platforms.