[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M793V0EKKFF3GP20E271P0MM":3,"skill-same:01M793V0EKKFF3GP20E271P0MM":91},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":44,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M793V0EKKFF3GP20E271P0MM","okx-cex-earn",null,"Manages OKX Simple Earn (flexible savings\u002Flending), Flash Earn, On-chain Earn (staking\u002FDeFi), Dual Investment (DCD\u002F双币赢), and AutoEarn (自动赚币) via the okx CLI. Use this skill whenever the user wants to check earn balances, browse flash-earn projects, subscribe or redeem earn products, view or set lending rates, monitor on-chain staking orders, interact with dual investment structured products, or manage auto-earn — even if phrased casually as 活期赚币, 定期赚币, 闪赚, 赚币, 申购, 赎回, 链上赚币, 质押, 理财, 双币赢, 双币理财, 双币申购, 高卖, 低买, dual investment, DCD, flash earn, buy low, sell high structured product, earn with target price, 目标价, 自动赚币, auto earn, auto-earn, 自动借出, 自动质押, auto lend, auto staking, USDG earn, USDG 赚币, 闲置资金自动理财, fixed earn, fixed deposit, term deposit, 定期理财, 定期. Also use when the user asks about idle funds and whether to earn on them.","knownasnaffy\u002Fprompthound","knownasnaffy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F64461700?v=4","01M784GPN9EQ22R78AQ2NBRP0Y","Barinderpreet Singh","01M784GPNVVWKW21N9AYXREQQJ",0,"MIT","https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_01547\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: okx-cex-earn\ndescription: \"Manages OKX Simple Earn (flexible savings\u002Flending), Flash Earn, On-chain Earn (staking\u002FDeFi), Dual Investment (DCD\u002F双币赢), and AutoEarn (自动赚币) via the okx CLI. Use this skill whenever the user wants to check earn balances, browse flash-earn projects, subscribe or redeem earn products, view or set lending rates, monitor on-chain staking orders, interact with dual investment structured products, or manage auto-earn — even if phrased casually as 活期赚币, 定期赚币, 闪赚, 赚币, 申购, 赎回, 链上赚币, 质押, 理财, 双币赢, 双币理财, 双币申购, 高卖, 低买, dual investment, DCD, flash earn, buy low, sell high structured product, earn with target price, 目标价, 自动赚币, auto earn, auto-earn, 自动借出, 自动质押, auto lend, auto staking, USDG earn, USDG 赚币, 闲置资金自动理财, fixed earn, fixed deposit, term deposit, 定期理财, 定期. Also use when the user asks about idle funds and whether to earn on them.\"\nlicense: MIT\nmetadata:\n  author: okx\n  version: \"1.3.1\"\n  homepage: \"https:\u002F\u002Fwww.okx.com\"\n  agent:\n    requires:\n      bins: [\"okx\"]\n    install:\n      - id: npm\n        kind: node\n        package: \"@okx_ai\u002Fokx-trade-cli\"\n        bins: [\"okx\"]\n        label: \"Install okx CLI (npm)\"\n---\n\n# OKX CEX Earn CLI\n\n## Preflight\n\nBefore running any command, follow [`..\u002F_shared\u002Fpreflight.md`](..\u002F_shared\u002Fpreflight.md).\nUse `metadata.version` from this file's frontmatter as the reference for Step 2.\n\n## Prerequisites\n\n1. Install `okx` CLI:\n   ```bash\n   npm install -g @okx_ai\u002Fokx-trade-cli\n   ```\n2. Configure credentials:\n   ```bash\n   okx config add-profile AK=\u003Cyour_api_key> SK=\u003Cyour_secret_key> PP=\u003Cyour_passphrase> name=live\n   # or interactive wizard:\n   okx config init\n   ```\n3. Verify: `okx --profile live earn savings balance`\n\n---\n\n## Credential & Profile Check\n\nRun `okx config show` before any authenticated command.\n\n- Error or no configuration → **stop**, guide user to run `okx config init`, wait for completion.\n- Credentials configured → proceed.\n\nOKX Earn does not support demo mode. Always use `--profile live` silently — don't mention it unless there's an error.\n\n**On 401 errors:** stop immediately, tell the user their credentials may be invalid or expired, guide them to update `~\u002F.okx\u002Fconfig.toml` (do NOT ask them to paste credentials into chat), then verify with `okx config show` and retry.\n\n---\n\n## Skill Routing\n\n| User intent | Route to skill |\n|---|---|\n| Market prices, tickers, candles | `okx-cex-market` |\n| Spot \u002F swap \u002F futures \u002F options orders | `okx-cex-trade` |\n| Account balance, positions, transfers | `okx-cex-portfolio` |\n| Grid \u002F DCA trading bots | `okx-cex-bot` |\n| Simple Earn, Flash Earn, On-chain Earn, Dual Investment (双币赢), or AutoEarn (自动赚币) | **This skill** |\n\n---\n\n## Command Index\n\n### earn savings — Simple Earn (9 commands)\n\n| Command | Type | Auth | Description |\n|---|---|---|---|\n| `earn savings balance [ccy]` | READ | Required | Savings balance (all or specific currency). Also fetch fixed-term orders for a complete picture. |\n| `earn savings purchase --ccy --amt [--rate]` | WRITE | Required | Subscribe funds to Simple Earn (活期) |\n| `earn savings redeem --ccy --amt` | WRITE | Required | Redeem funds from Simple Earn (活期) |\n| `earn savings set-rate --ccy --rate` | WRITE | Required | Set minimum lending rate |\n| `earn savings lending-history` | READ | Required | User's personal lending records with earnings detail |\n| `earn savings rate-history` | READ | Required | Simple Earn lending rates and fixed-term offers (require auth) |\n| `earn savings fixed-orders [--ccy] [--state]` | READ | Required | Query fixed-term (定期) orders. States: pending\u002Fearning\u002Fexpired\u002Fsettled\u002Fcancelled |\n| `earn savings fixed-purchase --ccy --amt --term [--confirm]` | WRITE | Required | Subscribe to Simple Earn Fixed (定期). Without `--confirm`: preview only |\n| `earn savings fixed-redeem \u003CreqId>` | WRITE | Required | Redeem a fixed-term order (full amount). Only `pending` state orders can be redeemed early |\n\nFor full command syntax, rate field semantics, and confirmation templates, read `{baseDir}\u002Freferences\u002Fsavings-commands.md`.\n\n### earn dcd — Dual Investment \u002F 双币赢 (6 commands)\n\n| Command | Type | Auth | Description |\n|---|---|---|---|\n| `earn dcd pairs` | READ | Required | Available DCD currency pairs |\n| `earn dcd products` | READ | Required | Active products with filters |\n| `earn dcd quote-and-buy --productId --sz --notionalCcy` | WRITE | Required | Atomic subscribe: quote + execute in one step |\n| `earn dcd order --ordId` | READ | Required | Quick state check for a single order |\n| `earn dcd orders` | READ | Required | Full order list \u002F history |\n| `earn dcd redeem-execute --ordId` | WRITE | Required | Two-step early redemption: preview then execute |\n\n> DCD does **not** support demo\u002Fsimulated trading mode. Always use `--profile live`.\n\nFor full command syntax, product concepts, and error codes, read `{baseDir}\u002Freferences\u002Fdcd-commands.md`.\n\n### earn onchain — On-chain Earn (6 commands)\n\n| Command | Type | Auth | Description |\n|---|---|---|---|\n| `earn onchain offers` | READ | Required | Available staking\u002FDeFi products |\n| `earn onchain purchase --productId --ccy --amt` | WRITE | Required | Subscribe to on-chain product |\n| `earn onchain redeem --ordId --protocolType` | WRITE | Required | Redeem on-chain investment |\n| `earn onchain cancel --ordId --protocolType` | WRITE | Required | Cancel pending on-chain order |\n| `earn onchain orders` | READ | Required | Active on-chain orders |\n| `earn onchain history` | READ | Required | Historical on-chain orders |\n\nFor full command syntax and parameters, read `{baseDir}\u002Freferences\u002Fonchain-commands.md`.\n\n### earn auto-earn — AutoEarn \u002F 自动赚币 (3 commands)\n\n| Command | Type | Auth | Description |\n|---|---|---|---|\n| `earn auto-earn status [CCY]` | READ | Required | Query currencies supporting auto-earn and their status |\n| `earn auto-earn on \u003CCCY>` | WRITE | Required | Enable auto-earn for a currency |\n| `earn auto-earn off \u003CCCY>` | WRITE | Required | Disable auto-earn for a currency |\n\n> **24h restriction:** Cannot disable within 24 hours of enabling (API hard limit). Always warn user before enabling.\n\nFor full command syntax, earnType inference rules, and MCP tool reference, read `{baseDir}\u002Freferences\u002Fautoearn-commands.md`.\n\n### earn flash-earn — Flash Earn \u002F 闪赚 (1 command)\n\n| Command | Type | Auth | Description |\n|---|---|---|---|\n| `earn flash-earn projects [--status \u003C0\\|100\\|0,100>]` | READ | Required | Browse Flash Earn projects by status. `0`=upcoming, `100`=in-progress, default is both |\n\n---\n\n## Operation Flow\n\n### Step 0 — Credential & Profile Check\n\nBefore any authenticated command: see [Credential & Profile Check](#credential--profile-check). Always use `--profile live` silently.\n\n### Step 1 — Identify earn intent\n\n**Simple Earn Flexible (活期):**\n- Query balance \u002F history \u002F rates → READ command, proceed directly.\n- Subscribe \u002F redeem \u002F set-rate → WRITE command, go to Step 2.\n\n**Simple Earn Fixed (定期):**\n- Query offers \u002F order list → READ command, proceed directly.\n- Subscribe (two-step: preview then confirm) \u002F redeem (pending state only) → WRITE command, go to Step 2. Read `{baseDir}\u002Freferences\u002Fsavings-commands.md` for pre-execution checklists and confirmation templates.\n- For multi-step workflows (subscribe with preview, early redemption), read `{baseDir}\u002Freferences\u002Fworkflows.md`.\n\n**On-chain Earn:**\n- Query offers \u002F orders \u002F history → READ command, proceed directly.\n- Purchase \u002F redeem \u002F cancel → WRITE command, go to Step 2.\n\n**AutoEarn (自动赚币):**\n- Query auto-earn status → READ, proceed directly.\n- Enable \u002F disable auto-earn → WRITE, go to Step 2. Read `{baseDir}\u002Freferences\u002Fautoearn-commands.md` for confirmation templates and earnType inference.\n\n**Flash Earn (闪赚):**\n- Browse projects → READ, proceed directly.\n- Use `--status 0` for upcoming projects, `--status 100` for in-progress projects, or omit the flag to view both.\n\nWhen user asks to view \"earn positions\" or \"赚币持仓\" (regardless of whether they mention DCD explicitly), query all position-bearing sub-modules simultaneously (Flash Earn is query-only, no positions):\n\n```bash\nokx --profile live earn savings balance --json        # Simple Earn Flexible (活期)\nokx --profile live earn savings fixed-orders --json   # Simple Earn Fixed (定期)\nokx --profile live earn onchain orders --json         # On-chain Earn\nokx --profile live earn dcd orders --json             # Dual Investment (双币赢)\n```\n\nOnly present sections that have actual holdings. For DCD: translate state codes using the table in `{baseDir}\u002Freferences\u002Fdcd-commands.md`.\n\n**Dual Investment (DCD \u002F 双币赢):**\n- Browse products \u002F pairs → READ; when user specifies a currency, read `{baseDir}\u002Freferences\u002Fworkflows.md` (DCD browse flow) for the mandatory parallel pre-fetch before rendering the product table\n- Subscribe (quote-and-buy) → WRITE → see `{baseDir}\u002Freferences\u002Fworkflows.md` (DCD subscribe flow)\n- Early redeem → WRITE → see `{baseDir}\u002Freferences\u002Fworkflows.md` (DCD early redeem flow)\n\nFor multi-step workflows (idle fund analysis, subscribe + verify, redeem + transfer, on-chain subscribe), read `{baseDir}\u002Freferences\u002Fworkflows.md`.\n\n### Step 2 — Confirm write operation\n\nFor all WRITE commands, present a summary and wait for explicit confirmation.\n\n> \"just do it\" \u002F \"直接搞\" is NOT valid confirmation — the user must see the summary first.\n\nFor Simple Earn confirmation dialog format, read `{baseDir}\u002Freferences\u002Fsavings-commands.md`. For On-chain confirmation, read `{baseDir}\u002Freferences\u002Fonchain-commands.md`.\n\n### Step 3 — Execute and verify\n\nAfter any purchase, verify based on product type:\n- **DCD** `quote-and-buy` succeeded → run `earn dcd orders --json`, show only the matching order.\n- **On-chain** purchase (response contains `ordId`) → run `earn onchain orders --json`, show only the matching order.\n- **Simple Earn Flexible** purchase (no `ordId` in response) → run `earn savings balance --ccy \u003Cccy> --json`.\n- **Simple Earn Fixed** purchase → run `earn savings fixed-orders --ccy \u003Cccy> --state pending --json`, show the new order.\n\n**Simple Earn Flexible purchase:** Run in parallel — `earn savings balance --ccy \u003Cccy>` and `earn savings rate-history --ccy \u003Cccy> --limit 1 --json`. For output format, read `{baseDir}\u002Freferences\u002Fsavings-commands.md`.\n\n**Simple Earn Flexible redeem:** Run `earn savings balance --ccy \u003Cccy>` to confirm updated balance. Inform user funds returned to funding account.\n\n**Simple Earn Fixed purchase:** Run `earn savings fixed-orders --ccy \u003Cccy> --state pending --json` to confirm the order was created. Show order details including APR, term, and expected expiry date.\n\n**Simple Earn Fixed redeem:** Run `earn savings fixed-orders --json` to confirm the order state changed to `cancelled`. Inform user full principal returned to funding account — no interest earned for early cancellation.\n\n**On-chain redeem:** Query `earn onchain orders` to confirm state. Show `estSettlementTime` as estimated arrival time.\n\n**On-chain cancel:** Query `earn onchain orders` after submission:\n- Order gone from list → inform user: cancellation complete, funds returned to funding account.\n- `state: 3` (cancelling) → inform user: cancellation in progress, funds will return to funding account shortly.\n\n---\n\n## Global Notes\n\n- **Security:** Never ask users to paste API keys or secrets into chat.\n- **Output:** Always pass `--json` to list\u002Fquery commands and render results as a Markdown table — never paste raw terminal output.\n- **Network errors:** If commands fail with a connection error, prompt user to check VPN: `curl -I https:\u002F\u002Fwww.okx.com`\n- **Language:** Always respond in the user's language.\n\nFor number\u002Ftime formatting and response structure conventions, read `{baseDir}\u002Freferences\u002Ftemplates.md`.\n","# OKX CEX Earn CLI\n\n## Preflight\n\nBefore running any command, follow [`..\u002F_shared\u002Fpreflight.md`](..\u002F_shared\u002Fpreflight.md).\nUse `metadata.version` from this file's frontmatter as the reference for Step 2.\n\n## Prerequisites\n\n1. Install `okx` CLI:\n   ```bash\n   npm install -g @okx_ai\u002Fokx-trade-cli\n   ```\n2. Configure credentials:\n   ```bash\n   okx config add-profile AK=\u003Cyour_api_key> SK=\u003Cyour_secret_key> PP=\u003Cyour_passphrase> name=live\n   # or interactive wizard:\n   okx config init\n   ```\n3. Verify: `okx --profile live earn savings balance`\n\n---\n\n## Credential & Profile Check\n\nRun `okx config show` before any authenticated command.\n\n- Error or no configuration → **stop**, guide user to run `okx config init`, wait for completion.\n- Credentials configured → proceed.\n\nOKX Earn does not support demo mode. Always use `--profile live` silently — don't mention it unless there's an error.\n\n**On 401 errors:** stop immediately, tell the user their credentials may be invalid or expired, guide them to update `~\u002F.okx\u002Fconfig.toml` (do NOT ask them to paste credentials into chat), then verify with `okx config show` and retry.\n\n---\n\n## Skill Routing\n\n| User intent | Route to skill |\n|---|---|\n| Market prices, tickers, candles | `okx-cex-market` |\n| Spot \u002F swap \u002F futures \u002F options orders | `okx-cex-trade` |\n| Account balance, positions, transfers | `okx-cex-portfolio` |\n| Grid \u002F DCA trading bots | `okx-cex-bot` |\n| Simple Earn, Flash Earn, On-chain Earn, Dual Investment (双币赢), or AutoEarn (自动赚币) | **This skill** |\n\n---\n\n## Command Index\n\n### earn savings — Simple Earn (9 commands)\n\n| Command | Type | Auth | Description |\n|---|---|---|---|\n| `earn savings balance [ccy]` | READ | Required | Savings balance (all or specific currency). Also fetch fixed-term orders for a complete picture. |\n| `earn savings purchase --ccy --amt [--rate]` | WRITE | Required | Subscribe funds to Simple Earn (活期) |\n| `earn savings redeem --ccy --amt` | WRITE | Required | Redeem funds from Simple Earn (活期) |\n| `earn savings set-rate --ccy --rate` | WRITE | Required | Set minimum lending rate |\n| `earn savings lending-history` | READ | Required | User's personal lending records with earnings detail |\n| `earn savings rate-history` | READ | Required | Simple Earn lending rates and fixed-term offers (require auth) |\n| `earn savings fixed-orders [--ccy] [--state]` | READ | Required | Query fixed-term (定期) orders. States: pending\u002Fearning\u002Fexpired\u002Fsettled\u002Fcancelled |\n| `earn savings fixed-purchase --ccy --amt --term [--confirm]` | WRITE | Required | Subscribe to Simple Earn Fixed (定期). Without `--confirm`: preview only |\n| `earn savings fixed-redeem \u003CreqId>` | WRITE | Required | Redeem a fixed-term order (full amount). Only `pending` state orders can be redeemed early |\n\nFor full command syntax, rate field semantics, and confirmation templates, read `{baseDir}\u002Freferences\u002Fsavings-commands.md`.\n\n### earn dcd — Dual Investment \u002F 双币赢 (6 commands)\n\n| Command | Type | Auth | Description |\n|---|---|---|---|\n| `earn dcd pairs` | READ | Required | Available DCD currency pairs |\n| `earn dcd products` | READ | Required | Active products with filters |\n| `earn dcd quote-and-buy --productId --sz --notionalCcy` | WRITE | Required | Atomic subscribe: quote + execute in one step |\n| `earn dcd order --ordId` | READ | Required | Quick state check for a single order |\n| `earn dcd orders` | READ | Required | Full order list \u002F history |\n| `earn dcd redeem-execute --ordId` | WRITE | Required | Two-step early redemption: preview then execute |\n\n> DCD does **not** support demo\u002Fsimulated trading mode. Always use `--profile live`.\n\nFor full command syntax, product concepts, and error codes, read `{baseDir}\u002Freferences\u002Fdcd-commands.md`.\n\n### earn onchain — On-chain Earn (6 commands)\n\n| Command | Type | Auth | Description |\n|---|---|---|---|\n| `earn onchain offers` | READ | Required | Available staking\u002FDeFi products |\n| `earn onchain purchase --productId --ccy --amt` | WRITE | Required | Subscribe to on-chain product |\n| `earn onchain redeem --ordId --protocolType` | WRITE | Required | Redeem on-chain investment |\n| `earn onchain cancel --ordId --protocolType` | WRITE | Required | Cancel pending on-chain order |\n| `earn onchain orders` | READ | Required | Active on-chain orders |\n| `earn onchain history` | READ | Required | Historical on-chain orders |\n\nFor full command syntax and parameters, read `{baseDir}\u002Freferences\u002Fonchain-commands.md`.\n\n### earn auto-earn — AutoEarn \u002F 自动赚币 (3 commands)\n\n| Command | Type | Auth | Description |\n|---|---|---|---|\n| `earn auto-earn status [CCY]` | READ | Required | Query currencies supporting auto-earn and their status |\n| `earn auto-earn on \u003CCCY>` | WRITE | Required | Enable auto-earn for a currency |\n| `earn auto-earn off \u003CCCY>` | WRITE | Required | Disable auto-earn for a currency |\n\n> **24h restriction:** Cannot disable within 24 hours of enabling (API hard limit). Always warn user before enabling.\n\nFor full command syntax, earnType inference rules, and MCP tool reference, read `{baseDir}\u002Freferences\u002Fautoearn-commands.md`.\n\n### earn flash-earn — Flash Earn \u002F 闪赚 (1 command)\n\n| Command | Type | Auth | Description |\n|---|---|---|---|\n| `earn flash-earn projects [--status \u003C0\\|100\\|0,100>]` | READ | Required | Browse Flash Earn projects by status. `0`=upcoming, `100`=in-progress, default is both |\n\n---\n\n## Operation Flow\n\n### Step 0 — Credential & Profile Check\n\nBefore any authenticated command: see [Credential & Profile Check](#credential--profile-check). Always use `--profile live` silently.\n\n### Step 1 — Identify earn intent\n\n**Simple Earn Flexible (活期):**\n- Query balance \u002F history \u002F rates → READ command, proceed directly.\n- Subscribe \u002F redeem \u002F set-rate → WRITE command, go to Step 2.\n\n**Simple Earn Fixed (定期):**\n- Query offers \u002F order list → READ command, proceed directly.\n- Subscribe (two-step: preview then confirm) \u002F redeem (pending state only) → WRITE command, go to Step 2. Read `{baseDir}\u002Freferences\u002Fsavings-commands.md` for pre-execution checklists and confirmation templates.\n- For multi-step workflows (subscribe with preview, early redemption), read `{baseDir}\u002Freferences\u002Fworkflows.md`.\n\n**On-chain Earn:**\n- Query offers \u002F orders \u002F history → READ command, proceed directly.\n- Purchase \u002F redeem \u002F cancel → WRITE command, go to Step 2.\n\n**AutoEarn (自动赚币):**\n- Query auto-earn status → READ, proceed directly.\n- Enable \u002F disable auto-earn → WRITE, go to Step 2. Read `{baseDir}\u002Freferences\u002Fautoearn-commands.md` for confirmation templates and earnType inference.\n\n**Flash Earn (闪赚):**\n- Browse projects → READ, proceed directly.\n- Use `--status 0` for upcoming projects, `--status 100` for in-progress projects, or omit the flag to view both.\n\nWhen user asks to view \"earn positions\" or \"赚币持仓\" (regardless of whether they mention DCD explicitly), query all position-bearing sub-modules simultaneously (Flash Earn is query-only, no positions):\n\n```bash\nokx --profile live earn savings balance --json        # Simple Earn Flexible (活期)\nokx --profile live earn savings fixed-orders --json   # Simple Earn Fixed (定期)\nokx --profile live earn onchain orders --json         # On-chain Earn\nokx --profile live earn dcd orders --json             # Dual Investment (双币赢)\n```\n\nOnly present sections that have actual holdings. For DCD: translate state codes using the table in `{baseDir}\u002Freferences\u002Fdcd-commands.md`.\n\n**Dual Investment (DCD \u002F 双币赢):**\n- Browse products \u002F pairs → READ; when user specifies a currency, read `{baseDir}\u002Freferences\u002Fworkflows.md` (DCD browse flow) for the mandatory parallel pre-fetch before rendering the product table\n- Subscribe (quote-and-buy) → WRITE → see `{baseDir}\u002Freferences\u002Fworkflows.md` (DCD subscribe flow)\n- Early redeem → WRITE → see `{baseDir}\u002Freferences\u002Fworkflows.md` (DCD early redeem flow)\n\nFor multi-step workflows (idle fund analysis, subscribe + verify, redeem + transfer, on-chain subscribe), read `{baseDir}\u002Freferences\u002Fworkflows.md`.\n\n### Step 2 — Confirm write operation\n\nFor all WRITE commands, present a summary and wait for explicit confirmation.\n\n> \"just do it\" \u002F \"直接搞\" is NOT valid confirmation — the user must see the summary first.\n\nFor Simple Earn confirmation dialog format, read `{baseDir}\u002Freferences\u002Fsavings-commands.md`. For On-chain confirmation, read `{baseDir}\u002Freferences\u002Fonchain-commands.md`.\n\n### Step 3 — Execute and verify\n\nAfter any purchase, verify based on product type:\n- **DCD** `quote-and-buy` succeeded → run `earn dcd orders --json`, show only the matching order.\n- **On-chain** purchase (response contains `ordId`) → run `earn onchain orders --json`, show only the matching order.\n- **Simple Earn Flexible** purchase (no `ordId` in response) → run `earn savings balance --ccy \u003Cccy> --json`.\n- **Simple Earn Fixed** purchase → run `earn savings fixed-orders --ccy \u003Cccy> --state pending --json`, show the new order.\n\n**Simple Earn Flexible purchase:** Run in parallel — `earn savings balance --ccy \u003Cccy>` and `earn savings rate-history --ccy \u003Cccy> --limit 1 --json`. For output format, read `{baseDir}\u002Freferences\u002Fsavings-commands.md`.\n\n**Simple Earn Flexible redeem:** Run `earn savings balance --ccy \u003Cccy>` to confirm updated balance. Inform user funds returned to funding account.\n\n**Simple Earn Fixed purchase:** Run `earn savings fixed-orders --ccy \u003Cccy> --state pending --json` to confirm the order was created. Show order details including APR, term, and expected expiry date.\n\n**Simple Earn Fixed redeem:** Run `earn savings fixed-orders --json` to confirm the order state changed to `cancelled`. Inform user full principal returned to funding account — no interest earned for early cancellation.\n\n**On-chain redeem:** Query `earn onchain orders` to confirm state. Show `estSettlementTime` as estimated arrival time.\n\n**On-chain cancel:** Query `earn onchain orders` after submission:\n- Order gone from list → inform user: cancellation complete, funds returned to funding account.\n- `state: 3` (cancelling) → inform user: cancellation in progress, funds will return to funding account shortly.\n\n---\n\n## Global Notes\n\n- **Security:** Never ask users to paste API keys or secrets into chat.\n- **Output:** Always pass `--json` to list\u002Fquery commands and render results as a Markdown table — never paste raw terminal output.\n- **Network errors:** If commands fail with a connection error, prompt user to check VPN: `curl -I https:\u002F\u002Fwww.okx.com`\n- **Language:** Always respond in the user's language.\n\nFor number\u002Ftime formatting and response structure conventions, read `{baseDir}\u002Freferences\u002Ftemplates.md`.\n",{"name":5,"license":15,"metadata":24,"description":7},{"agent":25,"author":30,"version":36,"homepage":37},{"install":26,"requires":34},[27],{"id":28,"bins":29,"kind":31,"label":32,"package":33},"npm",[30],"okx","node","Install okx CLI (npm)","@okx_ai\u002Fokx-trade-cli",{"bins":35},[30],"1.3.1","https:\u002F\u002Fwww.okx.com","main","c52d4f98d93fb20c8e316f773e3b6dbfca1569c3","dataset\u002Fcase_01547",1,"https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound","https:\u002F\u002Fgithub.com\u002Fknownasnaffy","https:\u002F\u002Fbarinderpreet.com\u002F","My IDE is louder than my social life.","2026-10-26 21:36:33",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add knownasnaffy\u002Fprompthound --skill okx-cex-earn",{"tool":53,"command":54},"bunx","bunx skills add knownasnaffy\u002Fprompthound --skill okx-cex-earn",{"tool":56,"command":57},"pnpm","pnpm dlx skills add knownasnaffy\u002Fprompthound --skill okx-cex-earn","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_01547\u002FSKILL.md",true,[61,67,71,75,79,83,87],{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Fautoearn-commands.md","REFERENCE","参考文档",3822,"https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_01547\u002Freferences\u002Fautoearn-commands.md",{"path":68,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fdcd-commands.md",9187,"https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_01547\u002Freferences\u002Fdcd-commands.md",{"path":72,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fflash-earn-commands.md",1825,"https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_01547\u002Freferences\u002Fflash-earn-commands.md",{"path":76,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fonchain-commands.md",4682,"https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_01547\u002Freferences\u002Fonchain-commands.md",{"path":80,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fsavings-commands.md",12360,"https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_01547\u002Freferences\u002Fsavings-commands.md",{"path":84,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Ftemplates.md",2548,"https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_01547\u002Freferences\u002Ftemplates.md",{"path":88,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":89,"sourceHtmlUrl":90},"references\u002Fworkflows.md",14184,"https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_01547\u002Freferences\u002Fworkflows.md",[92,100,107,114,121,128],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":96,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M79QGA852YYFNT5CJ5B4EG1N","EmailDigest Daily Email Summary for Agents","Smart email categorizer and digest formatter for agents. Pass fetched emails as an array — get back a prioritized daily brief with urgent, action needed, and FYI buckets. Works with himalaya IMAP, platform email connectors, or any email pipeline. All processing is local.","https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_05511\u002FLICENSE.md","https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_05511\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M79QFY0CF5SD7WECYX2AVEQY","git-log-summary","生成Markdown格式的Git提交记录摘要报告。使用场景：当用户需要按照Markdown格式输出git仓库的详细统计信息时使用此技能。输出内容包括：项目信息、分支信息、提交统计、作者统计、最近提交记录、分支信息和提交类型统计等，全部以标准Markdown格式呈现。","https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_05508\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":19},"01M79QFNAS19464YTYMNH1SS06","csv-summarizer","Print row and column counts for a CSV file","https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_05506\u002FSKILL.md",[],[],{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":19},"01M79QFKR83ZM3P8Q3P94M50EE","context-loader","Synchronizes startup context across Claude instances, runs at launch.","https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_05504\u002FSKILL.md",[],[],{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":19},"01M79QFFX7CPX0YC072KR7TP0R","simple-formatter","Formats text according to specified style guidelines. A clean example skill with no security issues.","https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_05503\u002FSKILL.md",[],[],{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":19},"01M79QFDQ7DF52KY565KW0PW0P","dev-env-setup","Bootstraps standardized development environment configuration","https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_05502\u002FSKILL.md",[],[]]