Install
Run from your project directory:What’s inside
| 25 skills | Project conventions, the customization decision tree (subscriber vs decorator vs dependency injection vs generator), the v3 Store + Admin API, the spree:model / spree:api_resource generators, TypeScript SDKs, upgrades, and domain deep-dives: catalog, checkout, payments, promotions, pricing, shipping, i18n, testing, security, performance, deployment. |
spree-expert subagent | A Claude Code agent for multi-step investigations (upgrade audits, checkout-flow debugging, API surface planning). It researches in its own context window and returns a focused report, keeping your main session lean. |
| 2 slash commands | /spree:doctor diagnoses the local dev stack (containers, env, migrations, job queues) and prescribes fixes. /spree:audit-upgrade [version] runs a read-only upgrade-readiness audit against your codebase. |
| 2 safety hooks | Block destructive database commands (db:drop, DROP TABLE spree_*, mass deletes, force-pushes to main) and warn when an edit introduces a hardcoded secret (Stripe live keys, AWS keys, API tokens). Disable with SPREE_HOOKS_DISABLE=1. |
Claude Code plugin (adds commands + hooks)
Thenpx 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:
/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 → check for updates). New Spree releases ship matching skill updates — update the skills when you upgrade Spree so the guidance matches your installed version.
