Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add spree/agent-skills --skill spree-testinggit 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/skills/spree/agent-skills/spree-testing)<a href="https://agentmods.dev/skills/spree/agent-skills/spree-testing"><img src="https://agentmods.dev/badge/skills/spree/agent-skills/spree-testing/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/skills/spree/agent-skills/spree-testing"><img src="https://agentmods.dev/badge/skills/spree/agent-skills/spree-testing.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.00195 | $0.03605 |
| Opus 5.5 | $0.00078 | $0.01442 |
| Sonnet 5.5 | $0.00039 | $0.00721 |
| Haiku 4.5 | $0.00019 | $0.00361 |
Grade A, and why
spree-testing 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 1mo 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 — 261 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Spree Testing
| Layer | Tooling |
|---|---|
Rails app (server/) |
RSpec + Factory Bot + spree_dev_tools — not Minitest, not fixtures |
Dashboard (apps/dashboard) |
Vitest (unit) + Playwright (e2e), preconfigured |
Storefront (apps/storefront) |
whatever the Next.js app ships with |
Spree has no server-rendered admin or storefront, so there are no Capybara feature specs to write for Spree screens. Browser coverage belongs to Playwright against the dashboard/storefront.
Setup
Projects from create-spree-app arrive with RSpec configured. For a classic app:
# Gemfile
group :development, :test do
gem 'spree_dev_tools'
end
bin/rails g spree_dev_tools:install
The generator runs rspec:install if needed and writes spec/support/{spree,factory_bot,database_cleaner,active_job}.rb. spec/support/spree.rb loads:
- Spree's factories (
spree/testing_support/factories) + FactoryBot syntax spree/testing_support/store— a default USD store (@default_store) created before each group and cleaned after each exampleSpree::TestingSupport::Preferences(reset_spree_preferencesbefore each example)spree/api/testing_support/v3/base— the API v3 shared contexts and JWT helperjson_responsefortype: :requestandtype: :controllerActiveJob::TestHelper, DatabaseCleaner (transaction strategy)
Factory decorators in spec/factories/spree/**/*_decorator.rb are loaded automatically.
Running
spree rspec # whole suite, in the web container, RAILS_ENV=test
spree rspec spec/models/spree/brand_spec.rb:15 # file / line; any rspec flags pass through
bundle exec rspec … # classic app, from the app root
spree rspec works from a cold stack (it falls back to a one-off container). After adding migrations in a classic app: bin/rails db:test:prepare.
Factories you'll use
Read the source when in doubt: $(bundle show spree_core)/lib/spree/testing_support/factories/.
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.
- 1mo ago Changed · -139 lines · +37 tokens per session f0974aacc680
- 2mo ago First seen · 400 lines · 158 tokens per session scan A 2113e27f9d4a
spree-testing is a skill published in the GitHub repository spree/agent-skills (10 stars, last pushed 1mo ago), licensed MIT. It adds 195 tokens to every session and 3,605 once invoked, about $0.0008 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 skills, from other repositories
sf-testing
Test Salesforce Commerce code — B2C (Node.js unit testing, sfcc-ci CI/CD, sandbox management, linting) and B2B (Apex test classes with 75% coverage minimum, Jest for LWC, sf CLI deployment and validation). Use when writing tests or setting up CI/CD.
test-master
Generates test files, creates mocking strategies, analyzes code coverage, designs test architectures, and produces test plans and defect reports across functional, performance, and security testing disciplines. Use when writing unit tests, integration tests, or E2E tests; creating test strategies or automation…
axiom-testing
Use when writing ANY test, debugging flaky tests, making tests faster, or choosing Swift Testing vs XCTest. Covers unit tests, UI tests, async testing, test architecture.
testing-blocks
Use this when you have made AEM Edge Delivery Services code changes to blocks, scripts, or styles and need to validate them before opening a pull request. Covers unit testing for utilities and logic, browser testing with Playwright, linting, and guidance on what to test and how.
designing-tests
Designs and implements testing strategies for any codebase. Use when adding tests, improving coverage, setting up testing infrastructure, debugging test failures, or when asked about unit tests, integration tests, or E2E testing.
test-automation-expert
Comprehensive test automation specialist covering unit, integration, and E2E testing strategies. Expert in Jest, Vitest, Playwright, Cypress, pytest, and modern testing frameworks. Guides test pyramid design, coverage optimization, flaky test detection, and CI/CD integration. Activate on 'test strategy', 'unit tests'…