{
  "markdown": "# agent-skills\n\nA collection of AI agent skills for OKX exchange operations. Each skill is a self-contained Markdown file with YAML frontmatter that tells an AI agent when to activate and how to execute tasks via the [`okx`](https://www.npmjs.com/package/@okx_ai/okx-trade-cli) CLI.\n\n## Skills\n\n| Skill | Description | Auth Required |\n|-------|-------------|:-------------:|\n| [`okx-cex-auth`](skills/okx-cex-auth/SKILL.md) | OAuth login / API-key setup, plus install/update/remove of the `okx-auth` helper binary. Activated on first run or whenever a command returns 401 / session expired. | Setup |\n| [`okx-cex-market`](skills/okx-cex-market/SKILL.md) | Public market data: prices, tickers, order books, candles, funding rates, open interest, instruments, stock tokens, metals/forex, and 70+ technical indicators (RSI, MACD, EMA, Bollinger, KDJ, SuperTrend, AHR999, BTC rainbow…). | No |\n| [`okx-cex-trade`](skills/okx-cex-trade/SKILL.md) | Order management: spot, perpetual swap, dated futures, options, event contracts. TP/SL, trailing stop, iceberg, TWAP, conditional/OCO algo orders. | Yes |\n| [`okx-cex-portfolio`](skills/okx-cex-portfolio/SKILL.md) | Account operations: balances, positions, P&L, trading fees, account config, fund transfers, position-mode switching. | Yes |\n| [`okx-cex-bot`](skills/okx-cex-bot/SKILL.md) | Grid bots (spot / USDT-margined / coin-margined contract) and DCA Martingale bots (Spot DCA / Contract DCA). Create, amend, stop, monitor, AI-recommended parameters. | Yes |\n| [`okx-cex-earn`](skills/okx-cex-earn/SKILL.md) | Simple Earn (flexible / fixed-term / lending), Flash Earn, On-chain Earn (staking / DeFi), Dual Investment (DCD / 双币赢), AutoEarn (自动赚币). | Yes |\n| [`okx-cex-smartmoney`](skills/okx-cex-smartmoney/SKILL.md) | Smart-money analytics: leaderboard traders, position tracking, trade records, consensus signals, signal history. | Yes |\n| [`okx-sentiment-tracker`](skills/okx-sentiment-tracker/SKILL.md) | Crypto news, coin-level sentiment analysis, trending coins, social buzz, market mood. | Yes |\n| [`okx-cex-skill-mp`](skills/okx-cex-skill-mp/SKILL.md) | OKX Skills Marketplace: search, browse, install, update, remove skill packs. | Yes |\n\n## Requirements\n\n- [`okx` CLI](https://www.npmjs.com/package/@okx_ai/okx-trade-cli) installed:\n  ```bash\n  npm install -g @okx_ai/okx-trade-cli\n  ```\n- For authenticated skills, configure credentials by either:\n  - **OAuth** — run the `okx-cex-auth` skill (recommended for end users)\n  - **API key** — write `~/.okx/config.toml` directly:\n    ```bash\n    okx config init\n    ```\n\n## Skill Format\n\nEach skill is a Markdown file with a YAML frontmatter header:\n\n```yaml\n---\nname: skill-name\ndescription: \"Trigger description for the AI agent routing system.\"\nlicense: MIT\nmetadata:\n  author: okx\n  version: \"1.3.3\"\n  homepage: \"https://www.okx.com\"\n  agent:\n    requires:\n      bins: [\"okx\"]\n    install:\n      - id: npm\n        kind: node\n        package: \"@okx_ai/okx-trade-cli@1.3.3\"\n        bins: [\"okx\"]\n        label: \"Install okx CLI (npm)\"\n---\n```\n\nThe `description` field drives agent routing — it enumerates natural-language phrases and scenarios that should trigger the skill. Skills with a `references/` subdirectory use `{baseDir}` as a runtime-resolved path pointing to the skill's own directory.\n\n> **Description length limit**: Codex CLI enforces a **1024-character maximum** on this field. Target ≤ 900 characters to leave headroom for future trigger additions.\n\nSkills may share helpers via the top-level [`skills/_shared/`](skills/_shared/) directory (e.g. `preflight.md` for credential / profile checks).\n\n## Usage\n\nSkills are loaded by AI coding agents — Claude Code, Cursor, Windsurf, Codex CLI, and any Skills-Plugin-compatible client — to provide contextual instructions for CLI-based OKX operations. The agent reads the skill document at activation time and follows the command examples and operation flows described within.\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for how to add or improve skills, and [REVIEWING.md](REVIEWING.md) for review criteria.\n\n## Security\n\nReport security issues per [SECURITY.md](SECURITY.md).\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n",
  "bytes": 4200,
  "sha": "1f03d72e063055d3d0707d36fbccb08959235e17996bf473f8b9969ff1f6c452",
  "repo_slug": "okx/agent-skills",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/skl_okx_agent_skills_okx_cex_trade_9e63f75e/readme"
}