/spree-commerce:spree-setupfrom spree-commerce
Bootstraps a new Spree e-commerce project using create-spree-app CLI, spree-starter Rails backend, or manual installation into an existing Rails app. Handles Docker Compose setup for PostgreSQL, Redis, and Sidekiq.
Ships in spree-commerce. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Fetch live docs:
create-spree-app flags and Node/Ruby version requirements.spree-starter / storefront branch.A modern Spree project typically combines:
spree-starter (Rails 7+) — the backend application running the spree umbrella gem, admin, APIs, webhooksstorefront (Next.js 16+) — the headless storefront talking to the Rails backend over API v3The create-spree-app CLI scaffolds both. Older projects often have only the Rails app — the headless storefront is opt-in.
spree:install DoesThe Spree installer initializes:
/admin, /api/v3/, /api/v2/ (legacy via gem)Store, Country, Zone, ShippingMethod, PaymentMethod, TaxRateconfig/initializers/spree.rb)spree_sample:load)Path A — create-spree-app (recommended in v5.2+):
npx create-spree-app@latest my-store
cd my-store
# Follow prompts: backend? storefront? Docker? sample data?
Path B — Clone spree-starter directly:
git clone https://github.com/spree/spree-starter my-store
cd my-store
docker compose up -d # PostgreSQL + Redis + MeiliSearch
bin/setup # bundle install, db:create, db:migrate, spree:install
Path C — Add Spree to an existing Rails app:
bundle add spree
bundle add spree_admin # optional: admin dashboard
bundle add spree_emails # optional: transactional emails
bin/rails g spree:install
bin/rails db:migrate
git clone https://github.com/spree/storefront my-storefront
cd my-storefront
cp .env.example .env.local
# Set SPREE_API_URL and NEXT_PUBLIC_SPREE_PUBLISHABLE_KEY
npm install
npm run dev # http://localhost:3000
The publishable key (pk_…) comes from your Spree admin → Settings → API Keys.
bin/rails spree_sample:load
Loads ~25 demo products, taxonomies, payment methods, shipping methods. Idempotent unless --force. Useful for dev, never run in production.
The starter ships a docker-compose.yml with:
db — PostgreSQL 16redis — Redis 7meilisearch — MeiliSearch v1 (v5.4+)web — Puma serving the Rails appsidekiq — background job worker| Var | Purpose |
|---|---|
DATABASE_URL | Postgres connection string |
REDIS_URL | Redis connection (used by Sidekiq, cache, Action Cable) |
SECRET_KEY_BASE | Rails session/cookie signing key |
RAILS_MASTER_KEY | For config/credentials.yml.enc |
MEILISEARCH_HOST, MEILISEARCH_API_KEY | v5.4+ search backend |
SPREE_API_URL | Storefront's URL to hit the Rails backend |
NEXT_PUBLIC_SPREE_PUBLISHABLE_KEY | Public publishable key (pk_…) for the storefront |
@spree/sdk.spree-rails-storefront), or headless-only (API-only deployment)?spree_stripe), Adyen (spree_adyen), PayPal (spree_paypal_checkout)?spree_auth_devise)? OAuth providers?bin/setup fails on spree:install: missing imagemagick / libvips. Install OS dependency.pg gem fails to build: install libpq-dev (Debian) or postgresql@16 headers (macOS).SPREE_API_URL.http://meilisearch:7700 in Docker; on bare-metal, set MEILISEARCH_HOST=http://localhost:7700.RAILS_MASTER_KEY — set the env var or recreate credentials.Always re-verify against the live spree-starter README — bootstrap commands and Docker compose versions move quickly.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin spree-commerce22 skills in this plugin
/spree-admin-customizationCustomize the Spree v5 Admin Dashboard — Tailwind 4 + Hotwire/Turbo/Stimulus stack, the `Spree.admin.navigation` declarative API (v5.2+) for menu items, partial injection slots (`store_nav_partials`, `store_products_nav_partials`, `store_orders_nav_partials`, `settings_nav_partials`), the Admin SDK components + form builder, custom dashboard reports, the Page Builder for storefront editing, and theme management. Use when adding admin pages, injecting UI into existing screens, or building admin extensions./spree-api-v3Build with Spree's v3 APIs (v5.4+) — Store API at `/api/v3/store/*` (publishable key + per-user JWT, customer-facing) and Admin API at `/api/v3/admin/*` (per-user API keys + OAuth2 Doorkeeper, admin/operations). Covers the flat-JSON Stripe-like envelope, `?expand=` / `?include=` parameters, prefixed IDs (`prod_…`, `ord_…`), OpenAPI 3.0 spec, rate limiting, idempotency, and migration from v2 JSON:API. Use when building API clients, SDKs, or extending API endpoints in a Spree v5.4+ deployment./spree-catalogBuild and customize Spree's catalog — Products with Variants and OptionTypes/OptionValues, Taxonomies and Taxons (nested set), Properties, Images via ActiveStorage, multi-currency Prices, the v5.3+ PriceList feature for customer/segment overrides, MeiliSearch faceted search (v5.4+), product archiving/activation, CSV import/export, and SEO. Use when modeling products, customizing the catalog UI, indexing search, or importing inventory.Other plugins' skills for the same job