grimoire-polymarket
Queries Polymarket market data and CLOB state, and manages CLOB orders via the Grimoire venue CLI wrapper backed by the official Polymarket CLI.
What this skill does
# Grimoire Polymarket Skill Use this skill for Polymarket market discovery, CLOB market data, and order-management operations through the `polymarket` venue adapter. Preferred invocations: - `grimoire venue polymarket ...` - `npx -y @grimoirelabs/cli venue polymarket ...` (no-install) - `bun run packages/cli/src/index.ts venue polymarket ...` (repo-local) - `grimoire-polymarket ...` (direct binary from `@grimoirelabs/venues`) Recommended preflight: - `grimoire venue doctor --adapter polymarket --json` - `grimoire venue polymarket info --format json` ## Commands Canonical agent commands: - `grimoire venue polymarket info [--format <auto|json|table>]` - `grimoire venue polymarket search-markets [--query <text>] [--slug <slug|url>] [--question <text>] [--event <text>] [--tag <text>] [--category <text>] [--league <text>] [--sport <text>] [--open-only <true|false>] [--active-only <true|false>] [--ignore-end-date <true|false>] [--tradable-only <true|false>] [--all-pages <true|false>] [--max-pages <n>] [--stop-after-empty-pages <n>] [--limit <n>] [--format <auto|json|table>]` Allowed passthrough groups (official CLI surface, restricted by wrapper policy): - `markets` (`list|get|search|tags`) - `events` (`list|get|tags`) - `tags` (`list|get|related|related-tags`) - `series` (`list|get`) - `sports` (`list|market-types|teams`) - `clob` (book/prices/markets/orders/trades/etc.) - `data` (positions/value/leaderboards/etc.) - `status` Blocked groups in this wrapper (intentionally not exposed for agents): - `wallet` - `bridge` - `approve` - `ctf` - `setup` - `upgrade` - `shell` Legacy compatibility aliases are still supported (`market`, `book`, `midpoint`, `spread`, `price`, `last-trade-price`, `tick-size`, `neg-risk`, `fee-rate`, `price-history`, `order`, `trades`, `open-orders`, `balance-allowance`, `closed-only-mode`, `server-time`) but should not be used for new agent flows. ## Examples ```bash # Wrapper/health grimoire venue polymarket info --format json grimoire venue polymarket status --format json # Canonical discovery grimoire venue polymarket search-markets --query bitcoin --active-only true --open-only true --format json grimoire venue polymarket search-markets --category sports --league "la liga" --active-only true --open-only true --format json # Official passthrough discovery/data grimoire venue polymarket markets list --limit 25 --format json grimoire venue polymarket markets search "atleti" --limit 25 --format json grimoire venue polymarket events list --limit 25 --format json grimoire venue polymarket clob book <token_id> --format json grimoire venue polymarket clob midpoint <token_id> --format json grimoire venue polymarket clob price <token_id> --side buy --format json # Authenticated order-management reads grimoire venue polymarket clob order <order_id> --format json grimoire venue polymarket clob trades --market <condition_id> --format json grimoire venue polymarket clob orders --market <condition_id> --format json grimoire venue polymarket clob balance --asset-type conditional --token <token_id> --format json ``` ## Runtime Configuration Adapter/runtime auth (for spell execution and authenticated CLOB operations): - required: `POLYMARKET_PRIVATE_KEY` - optional API creds: `POLYMARKET_API_KEY`, `POLYMARKET_API_SECRET`, `POLYMARKET_API_PASSPHRASE` - optional derive toggle (default true): `POLYMARKET_DERIVE_API_KEY=true|false` - optional signature routing: `POLYMARKET_SIGNATURE_TYPE` (`0` EOA, `1` POLY_PROXY, `2` GNOSIS_SAFE), `POLYMARKET_FUNDER` Venue CLI backend: - Official binary required: `polymarket` - Install: `brew tap Polymarket/polymarket-cli && brew install polymarket` - Optional path override: `POLYMARKET_OFFICIAL_CLI=/custom/path/polymarket` ## Adapter Notes - Adapter name: `polymarket` - Execution type: `offchain` - Supported chain metadata: `137` (Polygon) - Action type: `custom` - Supported custom ops: `order`, `cancel_order`, `cancel_orders`, `cancel_all`, `heartbeat` Order argument aliases accepted: - token: `token_id` or `tokenID` or `tokenId` or `coin` - amount: `size` or `amount` - side: `BUY`/`SELL` - order type: `GTC`/`GTD`/`FOK`/`FAK` - extra compatibility aliases: `arg0..arg5`, `reduce_only` Order type routing: - `GTC`/`GTD` -> limit order path (`createAndPostOrder`) - `FOK`/`FAK` -> market order path (`createAndPostMarketOrder`) ## Notes - Prefer `--format json` for agent and automation workflows. - `search-markets` is the agent-oriented normalized discovery command; passthrough `markets search` is thinner and closer to official behavior. - Keep prompts/tooling on this CLI surface; do not call Polymarket HTTP APIs directly from advisory tools.
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.