okx-outcomes
Use this skill for OKX Outcomes markets (YES/NO event contracts, formerly OKX Predictions) via the okx-outcomes binary. Triggers: 'list prediction events', '预测市场', 'event detail', 'place prediction order', '预测下单', 'buy YES', 'buy NO', '撤单 预测', 'split xp', '拆分 xp', 'merge YES NO', '赎回 预测', 'prediction positions', '预测持仓', 'live prediction price', '预测行情', 'OHLCV candles', 'K线', 'CTF', 'polymarket'. Auth: OAuth sign-in via 'okx outcomes auth login'; writes need a signing key configured by 'okx outco
Security Assessment
Detected risks:
About okx-outcomes
This skill drives the OKX Outcomes CLI (formerly OKX Predictions), a command-line tool for trading binary YES/NO event contracts, wrapped as okx outcomes <command>. It covers the full lifecycle: browsing and searching events, viewing event and market detail, reading live prices, order books, spreads, midpoints, and OHLCV candles, placing and cancelling orders, viewing account balance, positions, and trades, and CTF token operations (split, merge, redeem winnings). It organizes commands into namespaces (account, clob, data, ctf, wallet, auth, setup) and provides reference docs and workflow recipes for common tasks like pre-trade balance checks and finding redeemable markets after settlement.
Authentication uses OKX OAuth sign-in for authenticated reads and a separate EIP-712 signing key for on-chain writes, kept independent from the main OKX CLI's credentials. Configuration lives in a config file plus the OS keyring for secrets, with PREDICTIONS_* environment variables available only as overrides. The skill carries strong, explicit security guidance: it repeatedly instructs never to accept, print, or share the signing private key, to refuse and advise rotation if a user pastes one, and it notes there is no .env auto-loading.
Target users are traders and agents interacting with OKX Outcomes prediction markets. The score is held slightly below the benign threshold because the skill executes real financial, on-chain write operations with a signing key and its prerequisites include a curl-piped-to-shell install of the outcomes binary from a remote URL — standard vendor tooling, but higher-consequence than a read-only helper.
FAQ
What can this skill do?
It lists prediction events and markets, reads live prices, order books, and candles, places and cancels YES/NO orders, views account balance, positions, and trade history, and performs CTF split/merge/redeem operations, all through the okx outcomes CLI.
How does authentication work?
Authenticated reads use OKX OAuth sign-in (okx outcomes auth login), while on-chain writes use a separate EIP-712 secp256k1 signing key. These are independent from the main okx CLI's OAuth/API key, and secrets are stored in the OS keyring rather than a .env file.
How is the signing key handled?
The wallet key is generated by okx outcomes setup and stored in the keyring. The skill states you must never accept the private key in chat, never print or share it, and should refuse and advise revocation/rotation if a user pastes one. The PREDICTIONS_AGENT_PRIVATE_KEY env var only overrides the stored key.
What do I need to install first?
The main OKX CLI (npm install -g @okx_ai/okx-trade-cli) provides the okx outcomes wrapper, plus the separate okx-outcomes binary, which on macOS/Linux is installed via a remote install script and on Windows via a downloaded executable. Run okx outcomes status to verify.
What is it not for?
It is only for OKX Outcomes prediction markets. It should not be used for OKX CEX event contracts, spot/swap/futures trading, general crypto market data, or CEX portfolio views, which have their own separate skills.
Install okx-outcomes
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
okx/agent-skills