strategy-spec

strategy-spec is a skill for Claude Code from romudille-bit/agentpay. It costs 177 tokens per session (2,821 once invoked), scanned A, original, MIT.

A specification for a rule-based cryptocurrency trading strategy that can be tested against historical data. It focuses on mean reversion, where prices are expected to move back toward a typical level, for tokens traded on BSC and PancakeSwap.

In plain words
What is it for?
Use it to define strategy rules and parameters, choose data sources, run a 180-day backtest, and compare the result with simply buying and holding the token.
Why use it?
It turns trading ideas into explicit rules and first checks whether free data is enough before paying for CoinMarketCap x402 DEX data.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: positional $N argument.

Good fit Use it to define strategy rules and parameters, choose data sources, run a 180-day backtest, and compare the result with simply buying and holding the token.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/romudille-bit/agentpay/strategy-spec
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 romudille-bit/agentpay --skill strategy-spec
Clone the repo
git clone --depth 1 https://github.com/romudille-bit/agentpay

Made for: Claude Code.

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 strategy-spec

README.md
[![agentmods](https://agentmods.dev/badge/skills/romudille-bit/agentpay/strategy-spec/github.svg)](https://agentmods.dev/skills/romudille-bit/agentpay/strategy-spec)
Your own site
<a href="https://agentmods.dev/skills/romudille-bit/agentpay/strategy-spec"><img src="https://agentmods.dev/badge/skills/romudille-bit/agentpay/strategy-spec/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 strategy-spec

Your own site · 80×15
<a href="https://agentmods.dev/skills/romudille-bit/agentpay/strategy-spec"><img src="https://agentmods.dev/badge/skills/romudille-bit/agentpay/strategy-spec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 177 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,821 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.00177 $0.02821
Opus 5.5 $0.00071 $0.01128
Sonnet 5.5 $0.00035 $0.00564
Haiku 4.5 $0.00018 $0.00282

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

Security

Grade A, and why

strategy-spec 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 3mo 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.

cmc-skill/skills/strategy-spec/SKILL.md · 157 lines

How it starts

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

Strategy Spec Skill — honest-routing, backtested

Generate a backtestable trading-strategy spec for a BSC / PancakeSwap token from CoinMarketCap data. The output is a self-contained spec (rules + parameters + data provenance + a 180-day backtest with a buy-and-hold benchmark) — quant research a human or backtester can run, not a live-trading agent.

This skill's distinctive principle is honest routing: before fetching anything, decide whether each data need is free or genuinely worth paying for. Prices and market regime are free everywhere — never pay for them. CoinMarketCap's normalized DEX pair data has no free equivalent — that is the one justified paid call. The decision is surfaced in the spec so the cost reasoning is legible.

Prerequisites

The single paid step uses CoinMarketCap's x402 pay-per-request DEX endpoint (no API key required), settled through the AgentPay SDK — which is what makes this an economic-intelligence skill, not just a payment: AgentPay enforces a hard budget cap, returns a verifiable on-chain receipt, applies the honest-routing decision, and can vet the provider with verified_route before paying.

pip install "agentpay-x402[base]"
  1. A Base wallet with ~$0.01 USDC per run (one DEX call) + a little ETH for gas
  2. Set BASE_AGENT_KEY (your funded Base private key) in the environment

Everything else (prices, Fear & Greed, funding, OHLCV history) is fetched from free sources — by design.

Vendor-neutral fallback: any x402 client works against CMC's endpoint (e.g. Coinbase's @x402/axios @x402/evm viem), but you lose the cap, receipt, and routing layer AgentPay adds.

Core principle — honest routing

For every data need, ask: is this free somewhere, or do I have to pay? Pay only when there is no free equivalent. This is what turns a pile of API calls into cost-aware quant research.

Data need Decision Source Why
spot price free CoinGecko / any price feed prices are free everywhere — never pay
market regime free Fear & Greed + perp funding covered by free indicators
DEX token + pool liquidity paid ($0.01) CMC x402 dex/search no free equivalent for normalized BSC/PancakeSwap DEX data

Read the full file on GitHub · 157 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. 3mo ago First seen · 157 lines · 177 tokens per session scan A c58ad486e5fb

Subscribe to this mod's changes

strategy-spec is a skill published in the GitHub repository romudille-bit/agentpay (4 stars, last pushed 3d ago), licensed MIT. It adds 177 tokens to every session and 2,821 once invoked, about $0.0007 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

strategy-spec compared with skills from other repositories

strategy-spec next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
strategy-specromudille-bit/agentpaySkill43d agoMITA177Claude Code
stipendstipend-sh/stipendSkill15d agoApache-2.0A76Claude Code, Codex
token-reportaaronjmars/aeon-agentSkill121mo agoMITA19Claude Code, Codex
CTRLaaronjmars/aeon-agentSkill121mo agoMITA46Claude Code, Codex
holdingsaaronjmars/aeon-agentSkill121mo agoMITA39Claude Code, Codex
defi-overviewaaronjmars/aeon-agentSkill121mo agoMITA46Claude Code, Codex
distribute-tokensaaronjmars/aeon-agentSkill121mo agoMITA46Claude Code, Codex