polymarket
Skill214 starsChanged 3 months agoMITView on GitHub
Use when the user wants to trade, research, or backtest Polymarket prediction markets through Superior Trade — finding markets by slug or event URL, placing a single immediate market order, writing NautilusTrader strategies, running filled-data backtests, funding pUSD, or deploying and monitoring a live Polymarket strategy.
- Reads credentials
23 other projects use a version of this.
Adopted by
Most recently taken up by
- delorenj/skillstheir own version, first seen Oct 2, 2026
- machina-sports/sports-skillstheir own version, first seen Oct 2, 2026
- VisionaireLabs/Visionairetheir own version, first seen Sep 30, 2026
- suitedaces/dorabottheir own version, first seen Sep 22, 2026
- ChainGPT-org/chaingpt-claude-skilltheir own version, first seen Sep 9, 2026
- Stuko0/alice-agenttheir own version, first seen Aug 30, 2026
Used with
Projects with it also use heartmula, find-nearby and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
braxtonROSE4Skillheartmula
Set up and run HeartMuLa, the open-source music generation model family (Suno-like). Generates full songs from lyrics + tags with multilingual support.
Also in 7 projects that use this
braxtonROSE4Skillfind-nearby
Find nearby places (restaurants, cafes, bars, pharmacies, etc.) using OpenStreetMap. Works with coordinates, addresses, cities, zip codes, or Telegram location pins. No API keys needed.
Also in 3 projects that use this
AlexAI-MCPSkilljupyter-live-kernel
Jupyter notebook and kernel operations — start kernels, execute cells programmatically, export, and data analysis patterns.
Also in 6 projects that use this
AlexAI-MCPSkillyoutube-content
YouTube research and content operations — search, download, transcript extraction, and audio processing via yt-dlp.
Also in 10 projects that use this
- +6 more from braxtonROSE4
- +1 more from AlexAI-MCP
Other versions23 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 23
- suitedaces/dorabot★ 245same name
- machina-sports/sports-skills★ 242same name
- graniet/kheish★ 221same name
- AlexAI-MCP/hermes-CCC★ 135same name
- Starchild-ai-agent/official-skills★ 27same name
- delorenj/skills★ 15same name
- kevinnft/ai-agent-skills★ 13same name
- Skate-Org/skills★ 13same name
- braxtonROSE4/zorro-agent★ 9same name
- Samin12/skills★ 9same name
13 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository30 other files it gives its agents.
- superior-trade-authSkill
- aerodromeSkill
- backtestingSkill
- basis-arbSkill
- bollinger-reverter-4hSkill
- breakoutSkill
- catalyst-confirmationSkill
- dca-weeklySkill
- deadline-driftSkill
- deposit-qrSkill
- donchian-strong-regimeSkill
- dsl-exit-engineSkill
- external-depositSkill
- fees-optimizationsSkill
- funding-rate-arbitrageSkill
- funding-squeezeSkill
- grid-tradingSkill
- hyperliquidSkill
- intelligenceSkill
- large-fill-pressureSkill
- lighter-robinhoodSkill
- lighterSkill
- mean-reversionSkill
- probability-mean-reversionSkill
- probability-momentumSkill
- regime-overlaySkill
- related-market-spreadSkill
- scalpingSkill
- superior-tradeSkill
- trade-thesisSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
28 rules. 0 are common, 18 are distinctive, and 10 are very specific to this project.
0
Common
Most of the 22 edited versions we read keep these.
18
Distinctive
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 34
Auth: Prefer x-api-key: <api_key> for Superior Trade product API keys.
- Very specific: line 53
Wallet reads are not bootstrap or funding mutations: Use GET /wallet only for the managed wallet data it returns.
- Very specific: line 57
Credential storage is contract-defined: Use only the form published for PUT /runtime/deployments/{id}/credentials.
- Very specific: line 69
If SUPERIOR_TRADE_API_KEY is not set, use the registration and verification flow in the superior-trade-auth skill.
- Very specific: line 78
Read the managed wallet with GET /wallet.
- Very specific: line 79
Check Polymarket and Nautilus support with GET /context/venues and GET /runtime/frameworks.
- Very specific: line 81
If a required onboarding or pUSD funding action is absent from GET /openapi.json, stop and report it.
- Distinctive: line 82
Create a Unified deployment with strategy code and config.
- Distinctive: line 84
Start the deployment only after the user explicitly confirms.
- Distinctive: line 86
Use only the credential schema published by Unified API.
- Very specific: line 109
If selecting a non-default managed account, set top-level account_address only to an address verified by GET /wallet.
- Very specific: line 110
Check GET /context/venues and the wallet balance.
- Distinctive: line 111
If the user already provided the complete order payload and explicit affirmative confirmation for that exact payload in the current …
- Distinctive: line 159
NEVER: ask users for private keys, seed phrases, or wallet credentials
- Distinctive: line 162
NEVER: start a live deployment without explicit user confirmation
- Distinctive: line 184
Before any live deployment start, the agent MUST present this summary and wait for an explicit affirmative response:
- Distinctive: line 198
Do NOT start a live deployment without an explicit affirmative response.
- Distinctive: line 202
Verification-first: Every factual claim about balance, market price, position, or deployment status MUST be backed by an API call in the …
- Distinctive: line 203
Anti-hallucination: If you can't call the API, say "I haven't checked yet." Every number must come from a real response.
- Distinctive: line 205
Backtest before deploy: Always run a backtest and review results with the user before the first live deployment of any strategy.
- Distinctive: line 207
Proactive: Ask for missing info conversationally, one concern at a time.
- Distinctive: line 211
If the same task fails 3+ times (e.g.
- Distinctive: line 215
If the issue appears to be model capability (complex multi-instrument logic), suggest switching to a more capable model for strategy …
- Distinctive: line 239
When a user asks for a Polymarket strategy, pick an archetype first and then generate strategy code from it.
- Distinctive: line 251
Treat these as starting points, not validated strategies.
- Distinctive: line 253
Before any backtest request, confirm exact market identifiers from search candidates.
- Very specific: line 254
Use filled-data assumptions (TradeTick) in backtests.
- Distinctive: line 270
Do NOT skip any step or assume it passed without the API call.
“Common” is measured: kept by at least 6 in 10 of the 22 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Polymarket Prediction Market Trading
Trade prediction markets on Polymarket through Superior Trade. Discover markets, place single immediate market orders, write NautilusTrader strategies, backtest against historical trade data, and deploy live — all through one API.
Read ../../references/unified-runtime.md
before any Superior Trade request. Use only methods, fields, and capabilities
published by Unified OpenAPI.
Base URL: https://api.superior.trade. If the environment configures a different base URL, use that instead.
Auth: Prefer x-api-key: <api_key> for Superior Trade product API keys. Browser/session callers may use Authorization: Bearer <token>.
Docs: GET /openapi.json (Unified OpenAPI contract)
Reference files
Load these on demand — each is the full detail behind a summary below.
| Read | When |
references/api.md | You need Unified route selection for account, wallet, market discovery, typed execution, backtest, or deployment. |
references/strategy-authoring.md | You are writing NautilusTrader strategy code — structure, order submission, dollars-to-shares conversion, multi-instrument setups, available data. |
references/example-strategies.md | You want a worked starting point: carry/yield harvesting, momentum/news fade, or spread capture. |
references/strategies.md | You are choosing an archetype for the user's thesis and need the fit/anti-fit table. |
references/troubleshooting.md | A strategy source, backtest, or deployment is failing, or a deployment trades zero times. |
Gotchas
Environment-specific facts that defy reasonable assumptions. Read these before acting.
- Wallet reads are not bootstrap or funding mutations. Use
GET /walletonly for the managed wallet data it returns. If a required Polymarket funding action is absent from the Unified contract, report it as unavailable. - Backtests are built from filled
TradeTickdata, not a full order book. They cannot model queue position or liquidity, so a strategy that depends on resting-order fills will look better in backtest than it trades. Say this when presenting results. - An exact market slug is required before writing a strategy. Get it from
GET /context/markets; if the user pastes a Polymarket event URL, pass the whole URL as the query so child markets expand. - Prices are probabilities between 0 and 1. Sizing is in shares, not dollars — convert with
shares = dollars / price(seereferences/strategy-authoring.md). - Credential storage is contract-defined. Use only the form published for
PUT /runtime/deployments/{id}/credentials; never infer or send undisclosed key material.
Setup
API Key
This skill uses the same Superior Trade API key as every other venue — there is no separate prediction-market key:
x-api-key: $SUPERIOR_TRADE_API_KEYIf SUPERIOR_TRADE_API_KEY is not set, use the registration and verification flow in the superior-trade-auth skill.
Wallet and Funding
The managed wallet is read through /wallet. Polymarket support is discovered
through /context/venues; exact capabilities come from /openapi.json.
Before live trading:
- Read the managed wallet with
GET /wallet. - Check Polymarket and Nautilus support with
GET /context/venuesandGET /runtime/frameworks. - Confirm the wallet has the required balance and readiness exposed by Unified API.
- If a required onboarding or pUSD funding action is absent from
GET /openapi.json, stop and report it. - Create a Unified deployment with strategy code and config.
- Store credentials with
PUT /runtime/deployments/{id}/credentialsonly when the current contract requires it. - Start the deployment only after the user explicitly confirms.
Use only the credential schema published by Unified API. Never infer a secret or wallet field from an older payload.
Account Endpoints
Current account/funding endpoints:
GET /accountGET /walletGET /wallet/depositsGET /wallet/withdrawalsPOST /wallet/withdrawGET /context/venuesPOST /runtime/executions
Single Immediate Market Orders
Use POST /runtime/executions when the user asks to place one immediate Polymarket bet/order. This is a fast path for a whitelisted placeMarketOrder action, not a strategy deployment. Do not create a deployment plan or run a backtest for a one-off order unless the user asks for a strategy or bot.
Required sequence:
- Confirm auth with
SUPERIOR_TRADE_API_KEY. - Fetch
GET /wallet. - If selecting a non-default managed account, set top-level
account_addressonly to an address verified byGET /wallet. - Check
GET /context/venuesand the wallet balance. If the required capability or collateral is unavailable, stop and report the blocker. - If the user already provided the complete order payload and explicit affirmative confirmation for that exact payload in the current conversation, submit it without asking unrelated follow-up questions. If not, show the exact payload and ask for confirmation before submitting.
- Send exactly one request to
POST /runtime/executionsand report the real API result. Never fabricate fills, order IDs, balances, or status.
Supported action:
{
"venue": "polymarket",
"account_address": "0x1234567890123456789012345678901234567890",
"action": {
"type": "placeMarketOrder",
"tokenID": "1234567890",
"side": "BUY",
"amount": "10",
"price": 0.55,
"orderType": "FOK"
}
}Fast confirmation format:
Order Summary:
• Venue: Polymarket
• Wallet address: [wallet address from GET /wallet] — capability: [Polymarket support from GET /context/venues]
• Token ID: [tokenID]
• Side: [BUY/SELL]
• Amount: [amount] pUSD
• Limit price: [price]
• Order type: [orderType]
This will submit one REAL Polymarket market order immediately. Proceed? (yes/no)Inspect the durable execution with GET /runtime/executions/{id}. If the
Unified contract does not expose the current position or open-order read the
user needs, say that it is unavailable instead of querying with undisclosed
venue credentials.
Safety
Security & Permissions
This skill requires exactly one credential: a Superior Trade API key. The only secret the agent uses is SUPERIOR_TRADE_API_KEY.
Security rules (non-negotiable):
- NEVER ask users for private keys, seed phrases, or wallet credentials
- NEVER log, store, or display private keys or seed phrases
- NEVER fabricate wallet balances, API responses, market prices, or trade results
- NEVER start a live deployment without explicit user confirmation
- NEVER promise a venue withdrawal or portfolio exit unless the exact operation is present in Unified OpenAPI
- Prefer user-friendly language over internal technical names when speaking conversationally. Say "strategy" or "the bot" instead of internal class names or infrastructure details. If the user asks about the underlying technology, answer honestly (the platform uses NautilusTrader for strategy execution against Polymarket's CLOB).
| Can do | Cannot do |
| Read Unified account, wallet, venue, and market context | Access other users' data |
| Run supported filled-data backtests | Export, accept, or view private keys |
| Create and manage Unified deployments | Guess holdings from deployment state |
| Place or cancel a typed Polymarket order after confirmation | Invent balances or trade results |
| Inspect durable execution records | Transfer or bridge arbitrary funds |
Polymarket-Specific Risks (tell the user when relevant)
- Prices are probabilities — every outcome trades between 0.001 and 0.999 pUSD. A "cheap" 0.03 outcome is not a bargain; it is a ~3% market-implied probability.
- Resolution risk — positions held to resolution settle at exactly 0 or 1. A strategy can be up and still settle at zero if the outcome resolves against it.
- Liquidity risk — many markets have thin order books. Market orders can fill far from the displayed price. Prefer markets with meaningful
volume_24handliquidity. - Market end dates — markets stop trading at
end_date. Never deploy a strategy on a market that resolves before the strategy has time to work. - Rate limits — Polymarket enforces ~30 order submissions/minute and ~100 data requests/minute per user. Strategies that cancel/replace on every tick can hit these fast.
Live Deployment Confirmation
Before any live deployment start, the agent MUST present this summary and wait for an explicit affirmative response:
Deployment Summary:
• Deployment: [deployment_id]
• Venue: Polymarket
• Market(s): [market question(s)]
• Wallet address: [0x...] — readiness: [ready/blockers from status endpoint]
• Trade size/risk settings: [from deployment.config]
• Backtest reviewed: [backtest_id / result summary]
⚠️ This will trade with REAL funds. Proceed? (yes/no)Do NOT start a live deployment without an explicit affirmative response.
Agent Operating Rules
- Verification-first: Every factual claim about balance, market price, position, or deployment status MUST be backed by an API call in the current turn. NEVER assume → report → verify later.
- Anti-hallucination: If you can't call the API, say "I haven't checked yet." Every number must come from a real response.
- Position/order state: When the user asks what they hold, whether orders are open, whether a bot traded, or whether it is safe to stop/exit, first check Unified OpenAPI for a supported live position/order read. If none exists, say exposure verification is unavailable; do not infer it from deployment status or proceed with an exit, replacement, restart, or exposure-based sizing decision whose safety depends on that state.
- Backtest before deploy: Always run a backtest and review results with the user before the first live deployment of any strategy.
- Conversational: Make API calls directly and present results conversationally. Show raw payloads only on request.
- Proactive: Ask for missing info conversationally, one concern at a time.
Repeated Failures
If the same task fails 3+ times (e.g. strategy source/config keeps failing, backtest keeps erroring), stop and:
- Summarize what was tried and what failed
- Suggest a simpler approach or different parameters
- If the issue appears to be model capability (complex multi-instrument logic), suggest switching to a more capable model for strategy generation
Workflow
1. Confirm auth → Use existing `SUPERIOR_TRADE_API_KEY`
2. Managed wallet → GET /wallet
3. Check readiness → GET /context/venues and GET /runtime/frameworks
4. Read live state → Use contract-supported Unified reads; if exposure state is unavailable, report the limitation and block actions whose safety depends on it
5. Funding check → Use the deposit details and balances from GET /wallet
6. Discover markets → GET /context/markets?venue=polymarket
7. Write strategy → Author NautilusTrader Python strategy code from the closest archetype
8. Backtest → POST /runtime/backtests with `strategyId`, `strategySource`, and `strategyConfig`
9. Review results → Poll/read backtest status/result/logs; analyze performance; iterate or proceed
10. Plan deployment → POST /runtime/deployments with top-level framework, venue, mode, name, code, and config
11. Store credentials → PUT /runtime/deployments/{id}/credentials with the contract-defined form
12. Start → Confirm with user → PUT /runtime/deployments/{id}/status `{ "action": "start" }`
13. Monitor/stop → Use status/logs and any contract-supported exposure reads; never claim the wallet is flat when exposure reads are unavailable; stop with PUT `/runtime/deployments/{id}/status` `{ "action": "stop" }`Deployment start requires both credential metadata and explicit user confirmation.
Strategy Archetypes
When a user asks for a Polymarket strategy, pick an archetype first and then generate strategy code from it. This keeps backtest assumptions explicit and reduces silent drift.
- Probability Momentum (
probability-momentumskill) — momentum, breakout, fast reaction in active markets - Probability Mean Reversion (
probability-mean-reversionskill) — overreaction fade and range-like behavior - Deadline Drift (
deadline-driftskill) — time-to-resolution behavior, especially before-date markets - Related-Market Spread (
related-market-spreadskill) — relative-value checks across linked markets - Large-Fill Pressure (
large-fill-pressureskill) — repeated oversized fills with directional follow-through - Catalyst Confirmation (
catalyst-confirmationskill) — event thesis with market confirmation first
Operational rules:
- Pick the closest archetype before coding.
- Treat these as starting points, not validated strategies.
- Generate a custom NautilusTrader strategy from the selected archetype and pass it directly to
POST /runtime/backtestsviastrategySourcewith matchingstrategyConfig. - Before any backtest request, confirm exact market identifiers from search candidates.
- Use filled-data assumptions (
TradeTick) in backtests; do not promise queue/maker behavior without matching evidence.
Filled-data rule: Polymarket strategy logic should be driven by historical TradeTick replay in backtesting. If logic is quote-only, flag it as likely non-tradable in current backtest mode.
Pre-Deployment Checklist (MANDATORY)
Before PUT /runtime/deployments/{id}/status → {"action":"start"}:
- Backtest reviewed — at least one completed backtest for this strategy code/config or materially similar logic, results shown to the user.
- Wallet readiness checked —
GET /walletandGET /context/venuesshow the required support and balance. If not ready, report the returned blocker. - Credentials stored when required — use
PUT /runtime/deployments/{id}/credentialswith the Unified contract's form; do not improvise secret fields. - Market selected —
GET /context/markets?venue=polymarket→ confirm the canonical symbol and framework identifier. If several candidates match, show them and ask the user to choose. Requirebacktest_ready: trueand verify the requested range againstGET /context/datasets. - Deployment config valid — Polymarket live deployment config must include
instrument_idformatted as<clobTokenId>.POLYMARKET. - Current exposure checked when relevant — if replacing, restarting, stopping, exiting, or sizing around existing exposure, use a position/open-order read published by Unified OpenAPI. If the contract exposes none, report that verification is unavailable and do not proceed with an action whose safety depends on knowing that exposure.
- User confirmation — show the deployment summary and get an explicit "yes".
Do NOT skip any step or assume it passed without the API call.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

