agentleFS
AnthropicKnown publisheranthropics/commerce-agents/CLAUDE.md

commerce-agents

CLAUDE.md3.2k starsChanged 3 months agoApache-2.0View on GitHub

For agents working in this repo, commerce-builder plugin users included. The public reference for commerce agents on Claude: a shopping agent and a merchant agent on three paths each, four vertical examples, and a Claude Code plugin. requirements.txt installs the seven packages and their pinned dependencies (requirements-dev.txt adds pytest and ruff); scripts/install.sh runs it. No real company, brand, product, or person appears: the only company is ACME and its lines; every brand, prompt, schema, and figure is invented here. Two…

Trending

Quiet since September.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 29 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the anthropics/commerce-agents repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about anthropics/commerce-agents

The biggest 5 of 29 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 29

Talked about on GitHub, Bluesky and Hacker News (29 times).

On GitHub · 23

18 more on GitHub

On Bluesky · 4

The file

We split this CLAUDE.md into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No real company, brand, product, or person appears: the only company is ACME and its lines.

    line 36

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

commerce-agents

For agents working in this repo, commerce-builder plugin users included. The public reference for commerce agents on Claude: a shopping agent and a merchant agent on three paths each, four vertical examples, and a Claude Code plugin.

Layout

  • commerce-common/commerce_common/: what both roles share; its __init__ lists the modules.
  • shopping-agent/core/shopping_agent/: types, StorefrontBackend, config, prompt, tools/, gates, enrichment, executor.
  • merchant-agent/core/merchant_agent/: the merchant equivalents, plus changes.py and analysis.py.
  • */skills/: five flows per role, one SKILL.md each.
  • */runtime-messages-api/: ShoppingAgent, MerchantAgent, the merchant analysis delegate.
  • */runtime-agent-sdk/: each agent as ClaudeAgentOptions, with a console.
  • */managed-agents/: the manifest directory (with the derived system.md) and the role's MCP server.
  • examples/demo_common/ and examples/web-shared/: what the verticals' APIs and web apps share; examples/ is the npm workspace.
  • examples/<vertical>/: api/, data/, storefront-web/, merchant-web/; ports 8000-8003, 3000-3003, 3100-3103.
  • plugins/commerce-builder/: six skills, four commands; .claude-plugin/marketplace.json points at it.
  • docs/: safety.md, backends.md, deployment.md. scripts/: install, demo, smoke, screenshots, check, deploy, verify.
  • tests/: the suites that span packages (both roles on all three paths); each package keeps its own tests/.

requirements.txt installs the seven packages and their pinned dependencies (requirements-dev.txt adds pytest and ruff); scripts/install.sh runs it.

Design rules

  • One model owns the conversation; a rule goes in a tool description, the prompt, or a skill by how often it applies.
  • The static prompt and tools[] are the same bytes on every turn; per-request data goes in the fenced block after the breakpoint.
  • UI is presentation tool calls, validated and filled in on the server, streamed as ui events.
  • Third-party content is fenced data; writes are provenance-gated and capped in code; checkout charges nothing; merchant writes apply only through host approval.
  • Core is domain-neutral; a vertical adds UI through PresentationExtension and keeps the rest to itself.
  • Each mechanism is defined once, in commerce_common or a role core, and shared by all three paths.

Fictional and original

No real company, brand, product, or person appears: the only company is ACME and its lines; every brand, prompt, schema, and figure is invented here. Two exceptions: deployment and integration targets (the README's "MCP connectors" section; platform and SDK names in docs/deployment.md, the README's deploying section, and the platform tests), and CC0 category photos listed in the IMAGE-CREDITS.md beside them. When in doubt, redesign rather than rename.

Conventions

  • Python 3.11+, ruff (root ruff.toml), pytest (root pytest.ini), type hints, pydantic schemas; web apps are Next.js and TypeScript.
  • Skill descriptions name the request class, without sample utterances; tool descriptions say when the tool applies; examples stay schematic.
  • A change to prompt text, a tool description, a skill, or a fence notice re-derives system.md; scripts/check.py compares them.
  • Prose: plain declarative sentences; one term per thing; each fact once, naming its module; each role in its own terms; a README says what a thing is, how to run it, and where its interfaces are; no history, dates, or process narrative; cut before restyling.
  • A new module updates this file and its README.

Verify

ruff check . && ruff format --check . && pytest && python scripts/check.py
python scripts/verify_all.py          # adds deploy dry runs and web builds

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.