polymarket · starchild-ai-agent — Claude Code skill: trading and installation
This skill searches Polymarket markets, checks positions, and helps place or cancel CLOB V2 orders from a Privy EOA wallet.
no license 237 installs ★ 33 updated 2026-10-22
npx skills add Starchild-ai-agent/official-skills --skill polymarket -a claude-codeWhat polymarket does
The skill works with Polymarket prediction markets through CLOB V2. It can find events, return YES and NO token IDs with current prices, and show balances, positions, open orders, and recent trades. An order is prepared as an EIP-712 payload, signed through wallet_sign_typed_data, then submitted by a script.
The package includes search.py, status.py, prepare_order.py, post_order.py, cancel.py, close_positions.py, setup.py, and auth.py. Before the first order, the wallet needs USDC.e on Polygon; setup.py wraps it into pUSD and sets the required approvals. Without USDC.e on Polygon and the pUSD setup, the first order will fail. Authentication uses POLY_API_KEY, POLY_SECRET, POLY_PASSPHRASE, and POLY_WALLET.
What it helps with
- find a market from a short keyword
- inspect balances, positions, and open orders
- prepare and submit a BUY or SELL order
- cancel one order or cancel every order
- build SELL orders for current positions
Example prompts for the agent
- Search for markets using the short keyword
ceasefireand show the YES and NO tokens. - Prepare a purchase of token
7892825...50228at price0.65with size10, then ask me to sign it. - Show my positions and open orders, then close the position for the selected token.
How to install polymarket
1Skills CLI (Vercel)
npx skills add Starchild-ai-agent/official-skills --skill polymarket -a claude-code2Manually: put the files in place
~/.claude/skills/polymarket/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/polymarket/
1Skills CLI (Vercel)
npx skills add Starchild-ai-agent/official-skills --skill polymarket -a codex2Manually: put the files in place
.agents/skills/polymarket/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add Starchild-ai-agent/official-skills --skill polymarket -a cursor2Manually: put the files in place
.cursor/skills/polymarket/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install Starchild-ai-agent/official-skills polymarket2Manually: put the files in place
.github/skills/polymarket/SKILL.md1Skills CLI (Vercel)
npx skills add Starchild-ai-agent/official-skills --skill polymarket -a gemini-cli2Platform CLI
gemini skills install https://github.com/Starchild-ai-agent/official-skills --path polymarketManually: put the files in place
.devin/skills/polymarket/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add Starchild-ai-agent/official-skills --skill polymarket -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 polymarket
How do I install polymarket in Claude Code?
Run npx skills add Starchild-ai-agent/official-skills --skill polymarket -a claude-code, then check ~/.claude/skills/polymarket/SKILL.md.
What does the polymarket skill do?
It searches Polymarket markets, reports positions and open orders, and prepares or submits CLOB V2 trades. EIP-712 signing is handled through wallet_sign_typed_data.
What is needed before the first trade?
The wallet needs USDC.e on Polygon, plus POLY_API_KEY, POLY_SECRET, POLY_PASSPHRASE, and POLY_WALLET. The setup.py script converts USDC.e to pUSD and configures the CLOB V2 approvals.
Similar skills
All skills for Finance and business →polymarket by other authors comes first.