spree-pricing

spree-pricing is a skill for Claude Code from spree/agent-skills. It costs 119 tokens per session (3,069 once invoked), scanned A, original, MIT.

A guide to product pricing in Spree Commerce, an open-source online-store system. It covers prices by product variant and currency, sale prices, price lists, pricing rules, and European price-history requirements.

In plain words
What is it for?
Use it to set prices, sale and compare-at prices, currency-specific amounts, market or customer price lists, pricing rules, and EU Omnibus records.
Why use it?
It helps keep the amount customers pay, comparison prices, customer-specific prices, and required historical records consistent.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the spree plugin — 26 skills, 2 commands, 1 agent, 2 hooks shipped together

Good fit Use it to set prices, sale and compare-at prices, currency-specific amounts, market or customer price lists, pricing rules, and EU Omnibus records.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/spree/agent-skills/spree-pricing
Install

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.

Any agent
npx skills add spree/agent-skills --skill spree-pricing
Clone the repo
git clone --depth 1 https://github.com/spree/agent-skills

Made for: Claude Code.

Or install spree, the plugin that ships this one along with the rest of its 26 skills, 2 commands, 1 agent, 2 hooks.

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 spree-pricing

README.md
[![agentmods](https://agentmods.dev/badge/skills/spree/agent-skills/spree-pricing.svg)](https://agentmods.dev/skills/spree/agent-skills/spree-pricing)
Your own site
<a href="https://agentmods.dev/skills/spree/agent-skills/spree-pricing"><img src="https://agentmods.dev/badge/skills/spree/agent-skills/spree-pricing.svg" alt="Measured on agentmods" height="20"></a>
Per session 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,069 The whole file, excluding the scripts and references it only reads on demand.
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.00119 $0.03069
Opus 5 $0.00060 $0.01535
Sonnet 5 $0.00024 $0.00614
Haiku 4.5 $0.00012 $0.00307

Measured 8d ago against content hash 077cc5df8938, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

spree-pricing 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 8d 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.

skills/spree-pricing/SKILL.md · 227 lines

How it starts

The opening of the file, as written. The whole thing — 227 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Spree Pricing

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 the spree-project skill — bin/rails / bundle exec rake from the app root, paths without the backend/ prefix.

Pricing in Spree is per-variant, per-currency. Optional layers add price lists (per-customer or per-market), historical tracking (for EU Omnibus compliance), and rule-based variations.

The price graph

Variant
  ├── Price (one per currency)
  │     ├── amount             — what the customer pays (gross or net depending on tax config)
  │     ├── compare_at_amount  — was-price / strikethrough price (sale messaging)
  │     ├── currency
  │     └── price_list (5.3)   — nil for the default storefront price
  ├── PriceHistory × n         — historical amount changes (EU Omnibus)
  └── PriceRule × n            — conditional price overrides (5.3)

Each Variant has at least one Price per currency the store sells in. The cart pipeline picks the right Price based on Spree::Current.currency and the customer's PriceList (if any).

Setting a price

variant.prices.create!(
  currency: 'USD',
  amount: 39.99,
  compare_at_amount: 49.99   # strikethrough — shows as "was $49.99 now $39.99"
)

The canonical, idempotent setter is variant.set_price('USD', 39.99, 49.99) — it find-or-initializes the base Price for the currency (unlike prices.create!, which raises if a USD base price already exists, due to a unique DB index on variant + currency). Note the third argument is compare_at_amount and is assigned unconditionally — calling set_price('USD', 39.99) clears any existing compare-at price. Read it back with variant.price_in('USD'), which returns the base Spree::Price for that currency.

For most stores, prices are created via the admin UI (Products → variant edit) or bulk-imported via CSV. Spree::Variant#price is deprecated (removed in 6.0) — it returns the base-price amount in the default store's default currency, not a Spree::Price in the current currency. Use variant.price_in('EUR') (returns the base Spree::Price for a currency), variant.amount_in('EUR') (BigDecimal amount), or variant.price_for(currency: 'EUR', user: user) to get the price resolved through price lists (Spree::Pricing::Resolver).

Read the full file on GitHub · 227 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. 8d ago First seen · 227 lines · 119 tokens per session scan A 077cc5df8938

Subscribe to this mod's changes

spree-pricing is a skill published in the GitHub repository spree/agent-skills (4 stars, last pushed 2mo ago), licensed MIT. It adds 119 tokens to every session and 3,069 once invoked, about $0.0006 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.

Related

Other skills, from other repositories

amazon-reviews-api-skill

This skill helps users automatically extract Amazon product reviews via the Amazon Reviews API. Agent should proactively apply this skill when users express needs like getting reviews for Amazon product with ASIN B07TS6R1SF, analyzing customer feedback for a specific Amazon item, getting ratings and comments for a…

browser-act/skills · 124 tokens

amazon-competitor-analyzer

Scrapes Amazon product data from ASINs using browseract.com automation API and performs surgical competitive analysis. Compares specifications, pricing, review quality, and visual strategies to identify competitor moats and vulnerabilities.

browser-act/skills · 48 tokens

asc-subscription-localization

Bulk-localize subscription, subscription-group, and in-app purchase display names across App Store locales using asc, including API 4.4.1 version-scoped v2 resources. Use when filling or updating subscription/IAP names and descriptions without App Store Connect UI work.

rorkai/app-store-connect-cli-skills · 60 tokens

food-order

Reorder previous Foodora orders, preview cart contents, and track delivery ETA/status with ordercli. Use when the user wants to reorder food, check delivery status, or browse recent Foodora order history. Never confirm an order without explicit user approval.

Bitterbot-AI/bitterbot-desktop · 53 tokens

product-description-generator

E-commerce product description generator for any platform. Generates optimized titles, bullet points, descriptions, and backend keywords using competitor research + keyword scoring + FABE copywriting. Two modes: (A) Create — generate listing from product specs with optional competitor analysis, (B) Optimize — improve…

nexscope-ai/eCommerce-Skills · 126 tokens

amazon-price-tracker

Amazon price monitoring and competitive pricing intelligence. Real-time price tracking, Buy Box analysis, promotion detection, and dynamic pricing strategy optimization. Use when the user asks about price monitoring, competitor pricing, Buy Box tracking, or pricing strategy.

nexscope-ai/Amazon-Skills · 51 tokens