prediction-alpha

prediction-alpha is a skill for Claude Code from mturac/hermes-supercode-skills. It costs 129 tokens per session (1,195 once invoked), scanned A, original, MIT.

A set of procedures for analyzing prediction markets such as Polymarket, Manifold Markets, and Kalshi. It converts market odds into probabilities and calculates measures such as expected value and possible arbitrage.

In plain words
What is it for?
Use it to analyze market probabilities, compare prices across platforms, find possible arbitrage, and calculate expected value or Kelly fractions.
Why use it?
It helps compare markets and interpret odds mathematically, while keeping the results informational rather than presenting them as financial advice.

Skill for Claude Code

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

Part of the api-sculptor plugin — 13 skills shipped together , and of auth-architect, db-whisperer, deploy-ninja, ghost-scraper, infra-automation, mcp-conductor, obs-guardian, pipeline-architect, prediction-alpha, prompt-forge, quantum-debugger, security-sentinel

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.

agentmods
npx agentmods add skills/mturac/hermes-supercode-skills/prediction-alpha
Any agent
npx skills add mturac/hermes-supercode-skills --skill prediction-alpha
Clone the repo
git clone --depth 1 https://github.com/mturac/hermes-supercode-skills

Made for: Claude Code.

Or install api-sculptor, the plugin that ships this one along with the rest of its 13 skills.

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 prediction-alpha

README.md
[![agentmods](https://agentmods.dev/badge/skills/mturac/hermes-supercode-skills/prediction-alpha.svg)](https://agentmods.dev/skills/mturac/hermes-supercode-skills/prediction-alpha)
Your own site
<a href="https://agentmods.dev/skills/mturac/hermes-supercode-skills/prediction-alpha"><img src="https://agentmods.dev/badge/skills/mturac/hermes-supercode-skills/prediction-alpha.svg" alt="Measured on agentmods" height="20"></a>
Per session 129 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,195 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00129 $0.01195
Opus 5 $0.00064 $0.00598
Sonnet 5 $0.00026 $0.00239
Haiku 4.5 $0.00013 $0.00120

Measured 5d ago against content hash 66d044af9367, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

prediction-alpha 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 5d 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/prediction-alpha/SKILL.md · 166 lines

How it starts

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

Prediction Alpha

You are a prediction market analyst. You work with mathematical precision on odds, probabilities, and expected value calculations. You never give financial advice — every output is informational analysis with a mandatory disclaimer.

Ethical Stance — Read This First

  • Never frame output as financial advice or trading recommendations
  • Always include a disclaimer at the end of every analysis
  • Always note the snapshot timestamp — odds change by the second
  • Present analysis as "the data suggests" not "you should"

Core Mathematics

These formulas are your foundation. Apply them correctly every time.

Implied probability from decimal odds:

P_implied = 1 / decimal_odds

Vig-free (fair) probability:

P_fair_i = P_implied_i / sum(all P_implied)

Expected value per unit staked:

EV = (P_win × net_payout) - (P_loss × stake)

Kelly criterion (fraction of bankroll):

f* = (b × p - q) / b
where b = net odds, p = estimated true probability, q = 1 - p

Arbitrage condition:

If sum(1 / best_odds_i for each outcome) < 1, arbitrage exists
Profit margin = 1 - sum(1 / best_odds_i)

Workflow

1. Market Discovery

Identify the market(s) the user is asking about. If they give a slug or URL, fetch directly. If they describe an event, search for matching markets.

Polymarket API:

GET https://clob.polymarket.com/markets
GET https://gamma-api.polymarket.com/markets?slug={slug}

Manifold API:

GET https://api.manifold.markets/v0/markets?term={search}
GET https://api.manifold.markets/v0/market/{slug}

2. Data Extraction

For each market, extract:

  • Current prices (YES/NO or multi-outcome)
  • 24h and 7d volume
  • Liquidity depth
  • Number of unique traders
  • Resolution date and criteria
  • Market creator reputation (if available)

3. Analysis

Run through these checks in order:

Market efficiency: Bid-ask spread < 2% and volume > $100k suggests efficient pricing — edge is unlikely. Thin markets with < $10k volume are more likely mispriced but harder to trade.

Read the full file on GitHub · 166 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. 5d ago First seen · 166 lines · 129 tokens per session scan A 66d044af9367

Subscribe to this mod's changes

prediction-alpha is a skill published in the GitHub repository mturac/hermes-supercode-skills (2 stars, last pushed 3mo ago), licensed MIT. It adds 129 tokens to every session and 1,195 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

igce-builder-ffp

Trigger for: FFP IGCE, firm-fixed-price estimate, FFP cost model, proposed FFP rate validation, wrap-rate analysis, Agency BPA rate comparison, price-reasonableness memo, or fair-and-reasonable analysis. Build auditable Firm-Fixed-Price federal estimates using BLS OEWS wages, layered fringe/overhead/G&A/profit, GSA…

aiskillstore/marketplace · 188 tokens

igce-builder-cr

Trigger for: cost-reimbursement IGCE, CR cost estimate, CPFF, CPAF, CPIF, cost-plus estimate, BAA estimate, fixed-fee analysis, award-fee analysis, incentive-fee analysis, proposed CR rate validation, cost-pool buildup, share-ratio scenario, price-reasonableness memo, or fair-and-reasonable analysis. Build auditable…

aiskillstore/marketplace · 161 tokens

igce-builder-lh-tm

Trigger for: Labor-Hour IGCE, LH estimate, Time-and-Materials IGCE, T&M estimate, burdened hourly rate, burden multiplier, labor-category ceiling hours, materials estimate, proposed LH/T&M rate validation, price-reasonableness memo, or fair-and-reasonable analysis. Build auditable LH/T&M estimates using BLS OEWS…

aiskillstore/marketplace · 147 tokens

ot-cost-analysis

Trigger for: Other Transaction or OT should-cost, cost estimate, cost-share analysis, milestone pricing, funding profile, proposed-price comparison, prototype price analysis, research OT budget, production follow-on OT estimate, or OT price-reasonableness support under 10 U.S.C. 4021 or 4022. Build auditable…

aiskillstore/marketplace · 165 tokens

ccxt

CCXT cryptocurrency trading library. Use for cryptocurrency exchange APIs, trading, market data, order management, and crypto trading automation across 150+ exchanges. Supports JavaScript/Python/PHP.

aiskillstore/marketplace · 41 tokens

cryptofeed

Cryptofeed - Real-time cryptocurrency market data feeds from 40+ exchanges. WebSocket streaming, normalized data, order books, trades, tickers. Python library for algorithmic trading and market data analysis.

aiskillstore/marketplace · 46 tokens