trading-strategies — Claude Code skill: what it does, how to install
A development framework for prediction market trading strategies. Helps design, backtest, and run arbitrage, momentum, or mean-reversion logic in Python.
npx skills add agentmc15/polymarket-trader --skill trading-strategies -a claude-codeWhat trading-strategies does
The skill provides a Python framework for prediction market trading algorithms. It defines BaseStrategy, an abstract class handling MarketState inputs, position sizing, and confidence-based execution filters.
Ready-made templates cover three approaches: spread arbitrage when binary outcome prices exceed 1.0, momentum scoring based on orderbook imbalance, and mean reversion using rolling z-scores. All signal generation logic relies on Python dataclasses and asynchronous methods.
Because the base classes rely on structured fields like orderbook depth and 24-hour volume, your project needs a reliable data feed to populate MarketState.
What it helps with
- detect overpriced prediction markets where outcome prices sum over one
- calculate orderbook imbalance from bid and ask depth
- generate mean-reversion signals based on price z-scores
- filter execution signals by minimum confidence thresholds
Example prompts for the agent
- Build an arbitrage strategy subclass checking for yes and no prices above one.
- Implement a mean reversion strategy using a 24-hour lookback window and z-score.
- Calculate trading signals using orderbook imbalance and price change metrics.
How to install trading-strategies
1Skills CLI (Vercel)
npx skills add agentmc15/polymarket-trader --skill trading-strategies -a claude-code2Manually: put the files in place
~/.claude/skills/trading-strategies/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/trading-strategies/
1Skills CLI (Vercel)
npx skills add agentmc15/polymarket-trader --skill trading-strategies -a codex2Manually: put the files in place
.agents/skills/trading-strategies/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add agentmc15/polymarket-trader --skill trading-strategies -a cursor2Manually: put the files in place
.cursor/skills/trading-strategies/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install agentmc15/polymarket-trader trading-strategies2Manually: put the files in place
.github/skills/trading-strategies/SKILL.md1Skills CLI (Vercel)
npx skills add agentmc15/polymarket-trader --skill trading-strategies -a gemini-cli2Platform CLI
gemini skills install https://github.com/agentmc15/polymarket-trader --path .claude/skills/trading-strategiesManually: put the files in place
.devin/skills/trading-strategies/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add agentmc15/polymarket-trader --skill trading-strategies -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about trading-strategies
How to install trading-strategies in Claude Code?
Run npx skills add agentmc15/polymarket-trader --skill trading-strategies -a claude-code in your terminal.
What does the trading-strategies skill do?
It provides a Python architecture for building trading strategies on prediction markets, including base classes, signal models, and example strategy implementations.
What strategy patterns are included?
The code includes patterns for binary contract arbitrage, orderbook imbalance momentum, and statistical mean reversion using z-scores.