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.
Security Assessment
Detected risks:
About grimoire-polymarket
The Grimoire Polymarket skill provides a streamlined interface for interacting with the Polymarket prediction markets and its central limit order book (CLOB). It allows users to query market data, track CLOB state, and manage orders through a unified CLI wrapper built on top of the official Polymarket CLI. By abstracting the complexities of the underlying platform, this skill simplifies market discovery, data retrieval, and order operations for traders, developers, and automated agents, ensuring a consistent and reliable workflow without requiring deep knowledge of the Polymarket CLI internals.
Key features of this skill include canonical commands for market information and search, access to CLOB market data, and order management via custom spell actions. It supports passthrough commands for official Polymarket CLI operations in the markets and data groups while blocking certain sensitive or agent-unsafe commands. Legacy compatibility aliases are maintained, although their use is discouraged for new agent flows. Runtime configuration supports required wallet keys, optional API credentials, signature routing options, and seamless integration with key-based spell execution flows. The skill also provides preflight checks for adapter health and market info to ensure readiness before operations.
This skill is particularly useful for traders, quantitative analysts, and automated agents that require programmatic access to Polymarket market data and trading functionalities. Use cases include discovering new markets, monitoring market conditions, tracking positions and trades, managing orders, and integrating Polymarket data into analytics pipelines or automated trading strategies. Target users include those familiar with CLI environments and seeking a controlled and robust interface for interacting with Polymarket without exposing restricted operations or managing low-level CLI intricacies.
FAQ
How do I invoke the Grimoire Polymarket skill?
You can invoke it using `grimoire venue polymarket ...`, `npx -y @grimoirelabs/cli venue polymarket ...`, `bun run packages/cli/src/index.ts venue polymarket ...`, or directly with `grimoire-polymarket ...`.
What environment variables are required to use this skill?
By default, `POLYMARKET_PRIVATE_KEY` is required. Optional variables include `POLYMARKET_API_KEY`, `POLYMARKET_API_SECRET`, `POLYMARKET_API_PASSPHRASE`, `POLYMARKET_DERIVE_API_KEY`, and signature routing variables like `POLYMARKET_SIGNATURE_TYPE` and `POLYMARKET_FUNDER`.
Which commands are blocked by this wrapper?
The skill intentionally blocks `wallet`, `bridge`, `approve`, `ctf`, `setup`, `upgrade`, and `shell` command groups to maintain agent safety and security.
Do I need to install the official Polymarket CLI?
Yes, the skill relies on the official `polymarket` binary. You can install it via Homebrew with `brew tap Polymarket/polymarket-cli && brew install polymarket`. A custom path can also be set with `POLYMARKET_OFFICIAL_CLI`.
Can I use legacy aliases with this skill?
Legacy aliases like `market`, `book`, `price`, `order`, and others are still supported for backward compatibility, but their use is discouraged for new agent flows.
Install grimoire-polymarket
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
franalgaba/grimoire