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-paymentsgit 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-payments)<a href="https://agentmods.dev/skills/spree/agent-skills/spree-payments"><img src="https://agentmods.dev/badge/skills/spree/agent-skills/spree-payments/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-payments"><img src="https://agentmods.dev/badge/skills/spree/agent-skills/spree-payments.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.00106 | $0.02540 |
| Opus 5 | $0.00053 | $0.01270 |
| Sonnet 5 | $0.00021 | $0.00508 |
| Haiku 4.5 | $0.00011 | $0.00254 |
Grade A, and why
spree-payments 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 9d 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 — 201 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Spree Payments
Commands below use the Spree CLI form (
spree …, Docker). On a classic Rails app without the CLI (typical pre-5.4), use the native mapping in thespree-projectskill —bin/rails/bundle exec rakefrom the app root, paths without thebackend/prefix.
Payments in Spree are layered:
PaymentMethod — the configured way to pay (Stripe, Adyen, PayPal, store credit, …)
↓
Payment — the actual charge against an Order via a PaymentMethod
↓
source — the Payment's polymorphic source: a CreditCard, StoreCredit, or Spree::PaymentSource (wallets/accounts)
(A PaymentSession is not a payment source — it links to the Payment via the gateway transaction id, response_code/external_id.)
A single Order can have multiple Payments (e.g. store credit or a gift card combined with a card payment), each with its own state. Creating a new non-store-credit payment auto-invalidates any other payment still in the checkout state (store credit payments are spared), so splitting an order across multiple cards at checkout isn't supported.
Payment state machine
checkout → processing → pending → completed
↘ ↘ ↘
invalid failed void
| State | What it means |
|---|---|
checkout |
Payment created during cart phase; no money moved yet |
processing |
Gateway call in flight |
pending |
Authorized but not captured (auth/capture flow, e.g. credit card pre-auth) |
completed |
Captured — money has actually moved |
failed |
Gateway returned an error during processing |
void |
Cancelled — usually before capture, but completed payments can also be voided (gateway permitting) |
invalid |
Superseded — a newer payment was added to the order (old checkout payments are auto-invalidated), or the source is unsupported by the gateway |
Transitions are events: started_processing, pend, complete, failure, void, invalidate. After-callbacks fire payment.completed / payment.voided events. See the spree-events-webhooks skill.
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.
- 9d ago First seen · 201 lines · 106 tokens per session scan A bc3b56e3286d
spree-payments is a skill published in the GitHub repository spree/agent-skills (4 stars, last pushed 2mo ago), licensed MIT. It adds 106 tokens to every session and 2,540 once invoked, about $0.0005 per session on Opus 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
asc-ppp-pricing
Set territory-specific pricing for subscriptions and in-app purchases using current asc setup, pricing summary, price import, and price schedule commands. Use when adjusting prices by country or implementing localized PPP strategies.
stripe
Stripe API integration with managed OAuth. Manage customers, subscriptions, invoices, products, prices, and payments. Use this skill when users want to process payments, manage billing, or handle subscriptions with Stripe. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway).…
etsy-pricing-strategy
Etsy pricing — cost calculation, competitor pricing, perceived value, shipping cost integration, sales and coupons.
amazon-wholesale-sourcing
Wholesale product sourcing — supplier discovery, negotiation, MOQ optimization, margin analysis.
ai-slop
Operational rubric that turns "don't make AI slop" into observable properties, severity levels, evidence requirements, and repair actions for interface design. Use as the reference rubric when building or reviewing marketing sites, product interfaces, dashboards, portfolios, or e-commerce pages, especially alongside…
payment-processor
Skill "payment-processor" from Signal-Execution-Labs/forex-trading-ai-agent, covering payment processor skill, supported services, capabilities, view balances and get all balances.