Borrowing it
Nothing to install: this file belongs to spree/agent-skills. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/spree/agent-skills/main/AGENTS.mdgit clone --depth 1 https://github.com/spree/agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/spree/agent-skills/agents-md)<a href="https://agentmods.dev/instructions/spree/agent-skills/agents-md"><img src="https://agentmods.dev/badge/instructions/spree/agent-skills/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/spree/agent-skills/agents-md"><img src="https://agentmods.dev/badge/instructions/spree/agent-skills/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.03554 | $0.03554 |
| Opus 5.5 | $0.01422 | $0.01422 |
| Sonnet 5.5 | $0.00711 | $0.00711 |
| Haiku 4.5 | $0.00355 | $0.00355 |
Grade A, and why
agent-skills AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 20d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 172 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Spree Commerce — Agent Guidance
This file follows the agents.md cross-tool standard. It's a portable summary of how to be effective on a Spree Commerce codebase, written for any agentic CLI (Codex, Cursor, Copilot, Aider, Windsurf, Zed, Amp, etc.) that reads AGENTS.md.
Targets Spree 6.x (Rails 8.1). For Spree 5.x projects, use the v0.3.0 tag of this repository.
If you're running in Claude Code, install this package as a plugin and you'll get the 38 SKILL.md files under skills/ as on-demand context, the spree-expert subagent, two slash commands, and two safety hooks. See README.md for install instructions.
If you're running in any other tool: read this file, then dive into the relevant skills/<name>/SKILL.md when the task matches its domain.
What Spree is
Spree Commerce is an open-source, self-hosted, API-first commerce platform built on Ruby on Rails. The thing people choose it for is the ability to customize and extend it without forking. Architecture:
- Backend (Ruby gems) —
spree_core(models, services, workflows),spree_api(Store, Admin and Seller REST APIs under/api/v3/),spree_dashboard(serves the admin dashboard at/dashboard),spree_emails(transactional email), plus provider gems (spree_stripe,spree_meilisearch,spree_easypost, …). - TypeScript SDKs —
@spree/sdk(Store API),@spree/admin-sdk(Admin API),@spree/seller-sdk(Seller API). - Admin UI —
@spree/dashboard, a React app you own and extend with plugins (apps/dashboard/). An optional seller dashboard exists for marketplaces. - Storefront — the reference Next.js storefront (
apps/storefront/), or anything you build on the Store API.
Users run Spree in their own infrastructure. Everything is opt-in customization.
Core conventions (don't violate these without a reason)
Ruby / Rails
- All Spree code is namespaced under
Spree::; models inherit fromSpree.base_class, notApplicationRecorddirectly. - Use
Spree.customer_class(defaultSpree::Customer) andSpree.admin_user_class(defaultSpree::AdminUser) — never hardcode the class.Spree.user_classis deprecated. - Always scope queries through the current store (
current_store.products, notSpree::Product.all). Multi-store apps share a database; un-scoped queries leak data across stores.Spree::Store.defaultcan returnnil— setSpree::Current.storein jobs, rake tasks and tests. - Cart and Order are separate models.
Spree::Cart(cart_…) is the shopping/checkout phase; completing it creates an immutableSpree::Order(or_…). Records owned by either side (line items, payments, fulfillments, tax lines, discounts, fees) use#owner. - No state machines. Status fields are plain string
statuscolumns declared withhas_status; transitions happen inSpree::Workflowclasses. Don't add state machines and don't convert statuses to Rails enums. - Side effects go in workflow hooks or event subscribers, not
after_*callbacks or decorators on business methods.Spree.hooks.register('carts.complete.before_finalize', …)for in-flow logic;publish_event+ subscribers for reactions. - Money adjustments are typed rows:
Spree::TaxLine,Spree::Discount,Spree::Fee. Prices are per currency:variant.price_in(currency)/variant.set_price(currency, amount). - IDs are strings at the API surface (Stripe-style prefixed IDs); never
.to_ian ID. belongs_tois required by default — declareoptional: truewhere blank is legitimate.- Uniqueness validations use
scope: spree_base_uniqueness_scopeplus a DB index. Always passclass_nameanddependenton associations. - Permit extra attributes on the model:
Spree::Product.additional_permitted_attributes += [:brand_id](never<<). - Merchant-managed data belongs in custom fields; schemaless private data in
metadata.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 20d ago Changed · +2 lines · +428 tokens per session 21dbaf9f4f58
- 1mo ago First seen · 170 lines · 3,126 tokens per session scan A e4444c7f1eb4
agent-skills AGENTS.md is an instructions file published in the GitHub repository spree/agent-skills (10 stars, last pushed 21d ago), licensed MIT. It adds 3,554 tokens to every session, about $0.0142 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
deno copilot-instructions.md
Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.