agent-skills: Instructions file for Claude Code

AGENTS.md

agent-skills AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from spree/agent-skills. It costs 4,447 tokens per session, scanned A, original, MIT.

A set of instructions for coding agents working on Spree Commerce, an open-source online-store platform built with Ruby on Rails. It explains Spree's backend, administration interface, and REST APIs—the web endpoints used to manage store data.

In plain words
What is it for?
Use it when building or changing Spree stores, including business logic, store or admin APIs, the admin interface, and payment or integration components.
Why use it?
It gives an agent the project's conventions and structure before it changes code. This reduces mistakes caused by treating a customizable commerce system like an ordinary Rails app.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: Claude Code plugin machinery, but also the file is AGENTS.md. Also seen: mentions subagents; mentions Claude Code; mentions AGENTS.md.

This is spree/agent-skills's own configuration. It tells Claude Code, Codex and OpenCode how to work on agent-skills itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agent-skills configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/spree/agent-skills/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/spree/agent-skills

Made for: Claude Code, Codex, OpenCode.

Wrote 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.

agentmods badge for agent-skills AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/spree/agent-skills/agents-md/github.svg)](https://agentmods.dev/instructions/spree/agent-skills/agents-md)
Your own site
<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.

agentmods 80×15 button for agent-skills AGENTS.md

Your own site · 80×15
<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>
Per session 4,447 This file is loaded in full into every session.
When invoked 4,447 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.04447 $0.04447
Opus 5.5 $0.01779 $0.01779
Sonnet 5.5 $0.00889 $0.00889
Haiku 4.5 $0.00445 $0.00445

Measured 4d ago against content hash 3f21593c675d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 4d 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.

AGENTS.md · 195 lines

How it starts

The opening of the file, as written. The whole thing — 195 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. 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 39 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 6 is an open-source, self-hosted, headless commerce platform. People choose it because they can customize and extend it without forking.

  • Fully headless. Every feature is reached through three REST APIs under /api/v3/ (Store, Admin, Seller), each with an OpenAPI spec and a TypeScript SDK. The backend renders no pages.
  • The backend runs in Docker. A project starts from the prebuilt image ghcr.io/spree/spree: pull it and run it, there is no backend to build first. spree eject switches to building from server/ when backend code has to change.
  • TypeScript and Ruby. The backend is Ruby; the dashboard, storefront, SDKs and CLI are TypeScript. A TypeScript developer can customize the React dashboard, handle typed webhook events and build on the SDKs without writing Ruby.
  • Built for AI agents. Every new store hosts an Admin MCP server (/api/v3/admin/mcp; an older one adds it with spree add mcp), spree api calls the Admin API from the terminal, and these skills, the offline @spree/docs package and the docs MCP server keep an agent on current APIs.
  • One CLI. @spree/cli (spree) creates, runs, extends and upgrades a project.
  • Marketplace and B2B are built in, in the open-source core.

Read the full file on GitHub · 195 lines

Changes

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.

  1. 4d ago Changed · +13 lines · +467 tokens per session 3f21593c675d
  2. 19d ago Changed · +1 lines · +96 tokens per session 65d31a734140
  3. 21d ago Changed · +24 tokens per session a0fd74694b04
  4. 1mo ago Changed · +9 lines · +317 tokens per session cb989dae7243
  5. 1mo ago Changed · -11 tokens per session c7fba4206eff
  6. 2mo ago Changed · +2 lines · +428 tokens per session 21dbaf9f4f58
  7. 3mo ago First seen · 170 lines · 3,126 tokens per session scan A e4444c7f1eb4

Subscribe to this mod's changes

agent-skills AGENTS.md is an instructions file published in the GitHub repository spree/agent-skills (10 stars, last pushed 5d ago), licensed MIT. It adds 4,447 tokens to every session, about $0.0178 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.

Related

agent-skills AGENTS.md compared with instructions from other repositories

agent-skills AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-skills AGENTS.mdspree/agent-skillsInstructions file105d agoMITA4,447Claude Code, Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150kyesterdayMITA4,951Codex, OpenCode
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file291kyesterdayMITA4,396Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,303GitHub Copilot