Skip to main content
spree/agent-skills is a collection of agent skills for Spree Commerce. Skills are markdown instructions your coding agent loads on demand — they encode Spree’s conventions, customization decision trees, API patterns, and upgrade flows, so the agent does things the Spree way instead of improvising from training data. The skills work with Claude Code, Codex, Cursor, GitHub Copilot, Cline, Aider, Zed, Windsurf, OpenCode, and 60+ other agentic tools.

Install

Run from your project directory:
The skills CLI auto-detects which agent tools you have configured and copies the skill files into each tool’s native location. Useful variants:

What’s inside

Skills activate automatically based on what you’re working on — asking your agent to “add a Brand model with an API” pulls in the resource-generator skill; “why is this promotion not applying” pulls in the promotions skill. There’s nothing to invoke manually.

Claude Code plugin (adds commands + hooks)

The npx skills add path installs the skills and the subagent. The slash commands and safety hooks need the Claude Code plugin install — run inside a Claude Code session:
The plugin delivers everything the skills CLI does plus /spree:doctor, /spree:audit-upgrade, and the two safety hooks. Use one install path or the other — installing both makes the skills collide.

Works in any Spree project

The skills detect your project flavor before running commands:
  • create-spree-app projects (Docker, Rails app in backend/) — commands route through the Spree CLI (spree migrate, spree console, …).
  • Classic Rails apps (Spree gems in a plain Rails app, no Docker — typical for apps created before Spree 5.4) — the skills fall back to native commands (bin/rails, bundle exec rake) from the app root.

Updating

Plugin installs update through Claude Code’s plugin system (/plugin → check for updates). New Spree releases ship matching skill updates — update the skills when you upgrade Spree so the guidance matches your installed version.