Why Spree works well with AI agents
- Strong conventions — everything is namespaced under
Spree, models follow predictable patterns (prefixed IDs,Spree.base_class, service objects, events), and the v3 REST API uses simple response/request shapes. Conventions are what agents are best at following. - Fully Typed APIs — both Store API and Admin API have OpenAPI specs and official TypeScript SDKs, so agents can generate code with confidence instead of guessing from training data.
- Docs designed for machine consumption — the full documentation is available as llms.txt, per-page Markdown, and a local npm package, so agents read authoritative content instead of guessing from training data.
- A guided project workflow — create-spree-app scaffolds projects with a generated
AGENTS.mdandCLAUDE.md, local docs, and the Spree CLI, so an agent can boot, migrate, generate code, and run tests without bespoke setup.
The toolbox
Agent Skills
25 skills teaching agents Spree’s conventions, customization patterns, and upgrade flows — installable into 60+ agent tools, plus a Claude Code plugin with slash commands and safety hooks.
Docs MCP Server
Connect your agent to the Spree documentation MCP server to search and read the latest docs while building.
LLM-Ready Docs
llms.txt, per-page Markdown, and the
@spree/docs npm package for fast local reads.Spree CLI
A predictable command surface (
spree dev, spree generate, spree migrate, spree upgrade) that agents can drive end-to-end.A typical agentic workflow
- Scaffold a project with
npx create-spree-app@latest my-store— it generates aCLAUDE.md, installs@spree/docsfor local reference, and wires up the CLI. - Install the agent skills with
npx skills add spree/agent-skillsso your agent knows the decision tree for customizations (subscriber vs decorator vs dependency injection vs generator) before it writes a line of code. - Connect the docs MCP server so questions the skills don’t cover get answered from the live documentation.
- Let the agent work — generate an API resource (
spree generate api_resource Brand name:string), customize checkout, integrate a payment provider, or run an upgrade withspree upgrade.

