[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M730GCNG02V2NA84MCM6MWH6":3,"skill-same:01M730GCNG02V2NA84MCM6MWH6":59},{"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":14,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":6,"ownerDescription":43,"updatedAt":44,"install":45,"resources":58},"01M730GCNG02V2NA84MCM6MWH6","okx-cex-portfolio",null,"This skill should be used when the user asks about 'account balance', 'how much USDT do I have', 'my funding account', 'show my positions', 'open positions', 'position P&L', 'unrealized PnL', 'closed positions', 'position history', 'realized PnL', 'account bills', 'transaction history', 'trading fees', 'fee tier', 'account config', 'max order size', 'how much can I buy', 'withdrawable amount', 'transfer funds', 'move USDT to trading account', or 'switch position mode'. Requires API credentials. Do NOT use for market prices (use okx-cex-market), placing\u002Fcancelling orders (use okx-cex-trade), or grid\u002FDCA bots (use okx-cex-bot).","JOHNadonis\u002Fclaude-code-skills","JOHNadonis","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F31716775?v=4","01M72YRBKCVM4ZYJFF7Z71KVQQ","Hongcai Wang","01M72YRBMFSBZNVRJ4D48MWMZ3",0,"MIT","https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fokx-cex-portfolio\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: okx-cex-portfolio\ndescription: \"This skill should be used when the user asks about 'account balance', 'how much USDT do I have', 'my funding account', 'show my positions', 'open positions', 'position P&L', 'unrealized PnL', 'closed positions', 'position history', 'realized PnL', 'account bills', 'transaction history', 'trading fees', 'fee tier', 'account config', 'max order size', 'how much can I buy', 'withdrawable amount', 'transfer funds', 'move USDT to trading account', or 'switch position mode'. Requires API credentials. Do NOT use for market prices (use okx-cex-market), placing\u002Fcancelling orders (use okx-cex-trade), or grid\u002FDCA bots (use okx-cex-bot).\"\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 Portfolio & Account CLI\n\nAccount balance, positions, P&L, bills, fees, and fund transfers on OKX exchange. **Requires API credentials.**\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 init\n   ```\n   Or set environment variables:\n   ```bash\n   export OKX_API_KEY=your_key\n   export OKX_SECRET_KEY=your_secret\n   export OKX_PASSPHRASE=your_passphrase\n   ```\n3. Test with demo mode:\n   ```bash\n   okx --profile demo account balance\n   ```\n\n## Credential & Profile Check\n\n**Run this check before any authenticated command.**\n\n### Step A — Verify credentials\n\n```bash\nokx config show       # verify configuration status (output is masked)\n```\n\n- If the command returns an error or shows no configuration: **stop all operations**, guide the user to run `okx config init`, and wait for setup to complete before retrying.\n- If credentials are configured: proceed to Step B.\n\n### Step B — Confirm profile (required)\n\n`--profile` is **required** for all authenticated commands. Never add a profile implicitly.\n\n| Value | Mode | Funds |\n|---|---|---|\n| `live` | 实盘 | Real funds |\n| `demo` | 模拟盘 | Simulated funds |\n\n**Resolution rules:**\n1. Current message intent is clear (e.g. \"real\" \u002F \"实盘\" \u002F \"live\" → `live`; \"test\" \u002F \"模拟\" \u002F \"demo\" → `demo`) → use it and inform the user: `\"Using --profile live (实盘)\"` or `\"Using --profile demo (模拟盘)\"`\n2. Current message has no explicit declaration → check conversation context for a previous profile:\n   - Found → use it, inform user: `\"Continuing with --profile live (实盘) from earlier\"`\n   - Not found → ask: `\"Live (实盘) or Demo (模拟盘)?\"` — wait for answer before proceeding\n\n### Handling 401 Authentication Errors\n\nIf any command returns a 401 \u002F authentication error:\n1. **Stop immediately** — do not retry the same command\n2. Inform the user: \"Authentication failed (401). Your API credentials may be invalid or expired.\"\n3. Guide the user to update credentials by editing the file directly with their local editor:\n   ```\n   ~\u002F.okx\u002Fconfig.toml\n   ```\n   Update the fields `api_key`, `secret_key`, `passphrase` under the relevant profile.\n   Do NOT paste the new credentials into chat.\n4. After the user confirms the file is updated, run `okx config show` to verify (output is masked)\n5. Only then retry the original operation\n\n## Demo vs Live Mode\n\nProfile is the single control for 实盘\u002F模拟盘 switching — exactly two options:\n\n| `--profile` | Mode | Funds |\n|---|---|---|\n| `live` | 实盘 | Real funds |\n| `demo` | 模拟盘 | Simulated funds |\n\n```bash\nokx --profile live  account balance     # 实盘\nokx --profile demo  account balance     # 模拟盘 (simulated balance)\n```\n\n**Rules:**\n- **Read commands** (balance, positions, bills, etc.): always state which profile was used\n- **Write commands** (`transfer`, `set-position-mode`): **profile must be confirmed before execution** (see \"Credential & Profile Check\" Step B); transfer especially — wrong profile means wrong account\n- Every response after a command must append: `[profile: live]` or `[profile: demo]`\n- Do **not** use the `--demo` flag — use `--profile` instead\n\n## Skill Routing\n\n- For market data (prices, charts, depth, funding rates) → use `okx-cex-market`\n- For account balance, P&L, positions, fees, transfers → use `okx-cex-portfolio` (this skill)\n- For regular spot\u002Fswap\u002Ffutures\u002Falgo orders → use `okx-cex-trade`\n- For grid and DCA trading bots → use `okx-cex-bot`\n\n## Quickstart\n\n```bash\n# Trading account balance (all currencies with balance > 0)\nokx account balance\n\n# Check USDT balance only\nokx account balance USDT\n\n# Funding account balance\nokx account asset-balance\n\n# All open positions\nokx account positions\n\n# Closed position history with realized PnL\nokx account positions-history\n\n# Recent account bills (last 100)\nokx account bills\n\n# My trading fee tier\nokx account fees --instType SPOT\n\n# Transfer 100 USDT from funding (6) to trading (18)\nokx account transfer --ccy USDT --amt 100 --from 6 --to 18\n```\n\n## Command Index\n\n### Read Commands\n\n| # | Command | Type | Description |\n|---|---|---|---|\n| 1 | `okx account balance [ccy]` | READ | Trading account equity, available, frozen |\n| 2 | `okx account asset-balance [ccy] [--valuation]` | READ | Funding account balance; `--valuation` adds earn\u002Ftrading\u002Ffunding valuation summary |\n| 3 | `okx account positions` | READ | Open contract\u002Fswap positions |\n| 4 | `okx account positions-history` | READ | Closed positions + realized PnL |\n| 5 | `okx account bills` | READ | Account ledger (deposits, withdrawals, trades) |\n| 6 | `okx account fees --instType \u003Ctype>` | READ | My trading fee tier (maker\u002Ftaker) |\n| 7 | `okx account config` | READ | Account level, position mode, UID |\n| 8 | `okx account max-size --instId \u003Cid> --tdMode \u003Cmode>` | READ | Max buy\u002Fsell size at current price |\n| 9 | `okx account max-avail-size --instId \u003Cid> --tdMode \u003Cmode>` | READ | Available size for next order |\n| 10 | `okx account max-withdrawal [ccy]` | READ | Max withdrawable per currency |\n\n### Write Commands\n\n| # | Command | Type | Description |\n|---|---|---|---|\n| 11 | `okx account set-position-mode \u003Cmode>` | WRITE | Switch net\u002Fhedge position mode |\n| 12 | `okx account transfer` | WRITE | Transfer funds between accounts |\n\n## Cross-Skill Workflows\n\n### Pre-trade balance check\n> User: \"I want to buy 0.1 BTC — do I have enough USDT?\"\n\n```\n1. okx-cex-portfolio okx account balance USDT               → check available equity\n2. okx-cex-market    okx market ticker BTC-USDT              → check current price\n        ↓ user approves\n3. okx-cex-trade     okx spot place --instId BTC-USDT --side buy --ordType market --sz 0.1\n```\n\n### Pre-bot balance check\n> User: \"I want to start a BTC grid bot with 1000 USDT\"\n\n```\n1. okx-cex-portfolio okx account balance USDT               → confirm available funds ≥ 1000\n2. okx-cex-market    okx market candles BTC-USDT --bar 4H --limit 50  → determine price range\n        ↓ user approves\n3. okx-cex-bot       okx bot grid create --instId BTC-USDT --algoOrdType grid \\\n                       --minPx 90000 --maxPx 100000 --gridNum 10 --quoteSz 1000\n```\n\n### Review open positions and P&L\n> User: \"Show me my current positions and how they're performing\"\n\n```\n1. okx-cex-portfolio okx account positions                  → open positions with UPL\n2. okx-cex-portfolio okx account positions-history          → recently closed positions\n3. okx-cex-market    okx market ticker BTC-USDT-SWAP        → check current price vs entry\n```\n\n### Transfer and trade\n> User: \"Move 500 USDT from my funding account to trade BTC\"\n\n```\n1. okx-cex-portfolio okx account asset-balance USDT         → confirm funding balance ≥ 500\n        ↓ user approves\n2. okx-cex-portfolio okx account transfer --ccy USDT --amt 500 --from 6 --to 18\n3. okx-cex-portfolio okx account balance USDT               → confirm trading balance updated\n        ↓ ready to trade\n4. okx-cex-trade     okx spot place ...\n```\n\n### Check max position size before entering\n> User: \"How much BTC can I buy with cross margin?\"\n\n```\n1. okx-cex-portfolio okx account balance                    → total equity\n2. okx-cex-portfolio okx account max-size --instId BTC-USDT-SWAP --tdMode cross  → max buy\u002Fsell size\n3. okx-cex-market    okx market ticker BTC-USDT-SWAP        → current price reference\n```\n\n## Operation Flow\n\n### Step 0 — Credential & Profile Check\n\nBefore any authenticated command:\n\n**Determine profile (required):**\n- Options: `live` (实盘) or `demo` (模拟盘) — exactly these two values\n1. Current message intent clear (e.g. \"real\"\u002F\"实盘\"\u002F\"live\" → live; \"test\"\u002F\"模拟\"\u002F\"demo\" → demo) → use it, inform user: `\"Using --profile live (实盘)\"`\n2. Current message has no explicit declaration → check conversation context for previous profile:\n   - Found → use it, inform user: `\"Continuing with --profile live (实盘) from earlier\"`\n   - Not found → ask: `\"Live (实盘) or Demo (模拟盘)?\"` — wait for answer\n\n**If no credentials configured:** guide user to run `okx config init`, stop all trading actions\n\n**After every command result:** append `[profile: live]` or `[profile: demo]` to the response\n\n### Step 1: Identify account action\n\n- Check balance → `okx account balance` (trading) or `okx account asset-balance` (funding)\n- View open positions → `okx account positions`\n- View closed positions + PnL → `okx account positions-history`\n- View transaction history → `okx account bills`\n- Check fee tier → `okx account fees`\n- Check account settings → `okx account config`\n- Calculate order size → `okx account max-size` or `okx account max-avail-size`\n- Check withdrawal limit → `okx account max-withdrawal`\n- Transfer funds → `okx account transfer`\n- Change position mode → `okx account set-position-mode`\n\n### Step 2: Run read commands immediately — confirm profile (Step 0) then writes\n\n**Read commands** (1–10): run immediately, no confirmation needed.\n\n- `ccy` filter: use currency symbol like `USDT`, `BTC`, `ETH`\n- `--instType` for fees\u002Fpositions: `SPOT`, `SWAP`, `FUTURES`, `OPTION`\n- `--archive` for bills: access older records beyond the default window\n- `--tdMode` for max-size: `cash` (spot), `cross`, or `isolated`\n\n**Write commands** (11–12): confirm once before executing.\n\n- `set-position-mode`: confirm mode (`net` = one-directional, `long_short_mode` = hedge mode); switching may affect open positions\n- `transfer`: confirm `--ccy`, `--amt`, `--from`, `--to` (account types: `6`=funding, `18`=trading); verify source balance first\n\n### Step 3: Verify after writes\n\n- After `set-position-mode`: run `okx account config` to confirm `posMode` updated\n- After `transfer`: run `okx account balance` and `okx account asset-balance` to confirm balances updated\n\n## CLI Command Reference\n\n### Account Balance — Trading Account\n\n```bash\nokx account balance [ccy] [--json]\n```\n\n| Param | Required | Default | Description |\n|---|---|---|---|\n| `ccy` | No | - | Filter to a single currency (e.g., `USDT`) |\n\nReturns table: `currency`, `equity`, `available`, `frozen`. Only shows currencies with balance > 0.\n\n---\n\n### Asset Balance — Funding Account\n\n```bash\nokx account asset-balance [ccy] [--valuation] [--json]\n```\n\n| Param | Required | Default | Description |\n|---|---|---|---|\n| `ccy` | No | - | Filter to a single currency |\n| `--valuation` | No | false | Also show total asset valuation across all account types (trading\u002Ffunding\u002Fearn) |\n\nReturns: `ccy`, `bal`, `availBal`, `frozenBal`. Only shows currencies with balance > 0.\n\nWith `--valuation`: additionally prints a valuation summary table with `totalBal` and per-account-type breakdown (classic\u002Fearn\u002Ffunding).\n\n---\n\n### Positions — Open Positions\n\n```bash\nokx account positions [--instType \u003Ctype>] [--instId \u003Cid>] [--json]\n```\n\n| Param | Required | Default | Description |\n|---|---|---|---|\n| `--instType` | No | - | Filter: `SWAP`, `FUTURES`, `OPTION` |\n| `--instId` | No | - | Filter to specific instrument |\n\nReturns: `instId`, `instType`, `side` (posSide), `pos`, `avgPx`, `upl` (unrealized PnL), `lever`. Only shows positions with size ≠ 0.\n\n---\n\n### Positions History — Closed Positions\n\n```bash\nokx account positions-history [--instType \u003Ctype>] [--instId \u003Cid>] [--limit \u003Cn>] [--json]\n```\n\nReturns: `instId`, `direction`, `openAvgPx`, `closeAvgPx`, `realizedPnl`, `uTime`.\n\n---\n\n### Bills — Account Ledger\n\n```bash\nokx account bills [--archive] [--instType \u003Ctype>] [--ccy \u003Cccy>] [--limit \u003Cn>] [--json]\n```\n\n| Param | Required | Default | Description |\n|---|---|---|---|\n| `--archive` | No | false | Access older records (archive endpoint) |\n| `--instType` | No | - | Filter by instrument type |\n| `--ccy` | No | - | Filter by currency |\n| `--limit` | No | 100 | Number of records |\n\nReturns: `billId`, `instId`, `type`, `ccy`, `balChg`, `bal`, `ts`.\n\n---\n\n### Fees — Trading Fee Tier\n\n```bash\nokx account fees --instType \u003Ctype> [--instId \u003Cid>] [--json]\n```\n\n| Param | Required | Default | Description |\n|---|---|---|---|\n| `--instType` | Yes | - | `SPOT`, `SWAP`, `FUTURES`, `OPTION` |\n| `--instId` | No | - | Specific instrument (optional) |\n\nReturns: `level`, `maker`, `taker`, `makerU`, `takerU`, `ts`.\n\n---\n\n### Config — Account Configuration\n\n```bash\nokx account config [--json]\n```\n\nReturns: `uid`, `acctLv` (account level), `posMode` (net\u002Flong_short_mode), `autoLoan`, `greeksType`, `level`, `levelTmp`.\n\n---\n\n### Max Size — Maximum Order Size\n\n```bash\nokx account max-size --instId \u003Cid> --tdMode \u003Cmode> [--px \u003Cprice>] [--json]\n```\n\n| Param | Required | Default | Description |\n|---|---|---|---|\n| `--instId` | Yes | - | Instrument ID |\n| `--tdMode` | Yes | - | `cash` (spot), `cross`, or `isolated` |\n| `--px` | No | - | Reference price (uses mark price if omitted) |\n\nReturns: `instId`, `maxBuy`, `maxSell`.\n\n---\n\n### Max Available Size\n\n```bash\nokx account max-avail-size --instId \u003Cid> --tdMode \u003Cmode> [--json]\n```\n\nReturns: `instId`, `availBuy`, `availSell` — the immediately available size for the next order.\n\n---\n\n### Max Withdrawal\n\n```bash\nokx account max-withdrawal [ccy] [--json]\n```\n\nReturns table: `ccy`, `maxWd`, `maxWdEx` (with borrowing). Shows all currencies if no filter.\n\n---\n\n### Set Position Mode\n\n```bash\nokx account set-position-mode \u003Cnet|long_short_mode> [--json]\n```\n\n| Value | Behavior |\n|---|---|\n| `net` | One-directional (default) — long and short net out |\n| `long_short_mode` | Hedge mode — long and short can coexist |\n\n> **Warning**: Switching modes when positions are open may cause unexpected behavior. Check `okx account positions` first.\n\n---\n\n### Transfer Funds\n\n```bash\nokx account transfer --ccy \u003Cccy> --amt \u003Cn> --from \u003CacctType> --to \u003CacctType> \\\n  [--transferType \u003Ctype>] [--subAcct \u003Cname>] [--json]\n```\n\n| Param | Required | Default | Description |\n|---|---|---|---|\n| `--ccy` | Yes | - | Currency to transfer (e.g., `USDT`) |\n| `--amt` | Yes | - | Amount to transfer |\n| `--from` | Yes | - | Source account type: `6`=funding, `18`=trading |\n| `--to` | Yes | - | Destination account type: `6`=funding, `18`=trading |\n| `--transferType` | No | `0` | `0`=within account, `1`=to sub-account, `2`=from sub-account |\n| `--subAcct` | No | - | Sub-account name (required for sub-account transfers) |\n\nReturns: `transId`, `ccy`, `amt`.\n\n---\n\n## MCP Tool Reference\n\n| Tool | Description |\n|---|---|\n| `account_get_balance` | Trading account balance |\n| `account_get_asset_balance` | Funding account balance. Use `showValuation=true` to include total asset valuation across trading\u002Ffunding\u002Fearn accounts. |\n| `account_get_positions` | Open positions |\n| `account_get_positions_history` | Closed position history |\n| `account_get_bills` | Account bills (recent) |\n| `account_get_bills_archive` | Account bills (archive) |\n| `account_get_trade_fee` | Trading fee tier |\n| `account_get_config` | Account configuration |\n| `account_get_max_size` | Max order size |\n| `account_get_max_avail_size` | Max available size |\n| `account_get_max_withdrawal` | Max withdrawable |\n| `account_set_position_mode` | Set position mode |\n| `account_transfer` | Transfer between accounts |\n\n---\n\n## Input \u002F Output Examples\n\n**\"How much USDT do I have?\"**\n```bash\nokx account balance USDT\n# → currency: USDT | equity: 5000.00 | available: 4500.00 | frozen: 500.00\n```\n\n**\"Show all my open positions\"**\n```bash\nokx account positions\n# → table: instId, instType, side, pos, avgPx, upl, lever\n```\n\n**\"What's my trading history and realized PnL?\"**\n```bash\nokx account positions-history\n# → table: instId, direction, openAvgPx, closeAvgPx, realizedPnl, uTime\n```\n\n**\"Show my recent account activity\"**\n```bash\nokx account bills --limit 20\n# → table: billId, instId, type, ccy, balChg, bal, ts\n```\n\n**\"What are my trading fees for SWAP?\"**\n```bash\nokx account fees --instType SWAP\n# → level: VIP1 | maker: -0.0001 | taker: 0.0005\n```\n\n**\"How much BTC can I buy in cross margin?\"**\n```bash\nokx account max-size --instId BTC-USDT-SWAP --tdMode cross\n# → instId: BTC-USDT-SWAP | maxBuy: 12.5 | maxSell: 12.5\n```\n\n**\"Transfer 200 USDT from funding to trading\"**\n```bash\nokx account transfer --ccy USDT --amt 200 --from 6 --to 18\n# → Transfer: TXN123456 (USDT 200)\n```\n\n**\"Check my account config\"**\n```bash\nokx account config\n# → uid: 123456789 | acctLv: 2 | posMode: net | autoLoan: false\n```\n\n## Edge Cases\n\n- **No balance shown**: balance is filtered to > 0 — if nothing shows, all currencies have zero balance\n- **Positions command returns empty**: no open contracts; spot holdings are not shown here (use `account balance`)\n- **bills --archive**: required for transactions older than 7 days (default window); may be slower\n- **set-position-mode**: cannot switch to `net` if you have both long and short positions on the same instrument\n- **transfer --from\u002F--to codes**: `6`=funding account, `18`=trading account; other values exist for sub-account flows\n- **max-size vs max-avail-size**: `max-size` is the theoretical maximum; `max-avail-size` accounts for existing orders and reserved margin\n- **Demo mode**: `okx --profile demo account balance` shows simulated balances, not real funds\n\n## Global Notes\n\n- All write commands require valid credentials in `~\u002F.okx\u002Fconfig.toml` or env vars\n- `--profile \u003Cname>` is required for all authenticated commands; see \"Credential & Profile Check\" section\n- Every command result includes a `[profile: \u003Cname>]` tag for audit reference\n- `--json` returns the raw OKX API v5 response by default. Add `--env` to wrap the output as `{\"env\": \"\u003Clive|demo>\", \"profile\": \"\u003Cname>\", \"data\": \u003Cresponse>}`\n- Rate limit: 10 requests per 2 seconds for account endpoints\n- Positions shown are for the unified trading account; funding account assets are separate\n- Account types: `6`=Funding Account (deposits\u002Fwithdrawals), `18`=Unified Trading Account (spot + derivatives)\n","# OKX CEX Portfolio & Account CLI\n\nAccount balance, positions, P&L, bills, fees, and fund transfers on OKX exchange. **Requires API credentials.**\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 init\n   ```\n   Or set environment variables:\n   ```bash\n   export OKX_API_KEY=your_key\n   export OKX_SECRET_KEY=your_secret\n   export OKX_PASSPHRASE=your_passphrase\n   ```\n3. Test with demo mode:\n   ```bash\n   okx --profile demo account balance\n   ```\n\n## Credential & Profile Check\n\n**Run this check before any authenticated command.**\n\n### Step A — Verify credentials\n\n```bash\nokx config show       # verify configuration status (output is masked)\n```\n\n- If the command returns an error or shows no configuration: **stop all operations**, guide the user to run `okx config init`, and wait for setup to complete before retrying.\n- If credentials are configured: proceed to Step B.\n\n### Step B — Confirm profile (required)\n\n`--profile` is **required** for all authenticated commands. Never add a profile implicitly.\n\n| Value | Mode | Funds |\n|---|---|---|\n| `live` | 实盘 | Real funds |\n| `demo` | 模拟盘 | Simulated funds |\n\n**Resolution rules:**\n1. Current message intent is clear (e.g. \"real\" \u002F \"实盘\" \u002F \"live\" → `live`; \"test\" \u002F \"模拟\" \u002F \"demo\" → `demo`) → use it and inform the user: `\"Using --profile live (实盘)\"` or `\"Using --profile demo (模拟盘)\"`\n2. Current message has no explicit declaration → check conversation context for a previous profile:\n   - Found → use it, inform user: `\"Continuing with --profile live (实盘) from earlier\"`\n   - Not found → ask: `\"Live (实盘) or Demo (模拟盘)?\"` — wait for answer before proceeding\n\n### Handling 401 Authentication Errors\n\nIf any command returns a 401 \u002F authentication error:\n1. **Stop immediately** — do not retry the same command\n2. Inform the user: \"Authentication failed (401). Your API credentials may be invalid or expired.\"\n3. Guide the user to update credentials by editing the file directly with their local editor:\n   ```\n   ~\u002F.okx\u002Fconfig.toml\n   ```\n   Update the fields `api_key`, `secret_key`, `passphrase` under the relevant profile.\n   Do NOT paste the new credentials into chat.\n4. After the user confirms the file is updated, run `okx config show` to verify (output is masked)\n5. Only then retry the original operation\n\n## Demo vs Live Mode\n\nProfile is the single control for 实盘\u002F模拟盘 switching — exactly two options:\n\n| `--profile` | Mode | Funds |\n|---|---|---|\n| `live` | 实盘 | Real funds |\n| `demo` | 模拟盘 | Simulated funds |\n\n```bash\nokx --profile live  account balance     # 实盘\nokx --profile demo  account balance     # 模拟盘 (simulated balance)\n```\n\n**Rules:**\n- **Read commands** (balance, positions, bills, etc.): always state which profile was used\n- **Write commands** (`transfer`, `set-position-mode`): **profile must be confirmed before execution** (see \"Credential & Profile Check\" Step B); transfer especially — wrong profile means wrong account\n- Every response after a command must append: `[profile: live]` or `[profile: demo]`\n- Do **not** use the `--demo` flag — use `--profile` instead\n\n## Skill Routing\n\n- For market data (prices, charts, depth, funding rates) → use `okx-cex-market`\n- For account balance, P&L, positions, fees, transfers → use `okx-cex-portfolio` (this skill)\n- For regular spot\u002Fswap\u002Ffutures\u002Falgo orders → use `okx-cex-trade`\n- For grid and DCA trading bots → use `okx-cex-bot`\n\n## Quickstart\n\n```bash\n# Trading account balance (all currencies with balance > 0)\nokx account balance\n\n# Check USDT balance only\nokx account balance USDT\n\n# Funding account balance\nokx account asset-balance\n\n# All open positions\nokx account positions\n\n# Closed position history with realized PnL\nokx account positions-history\n\n# Recent account bills (last 100)\nokx account bills\n\n# My trading fee tier\nokx account fees --instType SPOT\n\n# Transfer 100 USDT from funding (6) to trading (18)\nokx account transfer --ccy USDT --amt 100 --from 6 --to 18\n```\n\n## Command Index\n\n### Read Commands\n\n| # | Command | Type | Description |\n|---|---|---|---|\n| 1 | `okx account balance [ccy]` | READ | Trading account equity, available, frozen |\n| 2 | `okx account asset-balance [ccy] [--valuation]` | READ | Funding account balance; `--valuation` adds earn\u002Ftrading\u002Ffunding valuation summary |\n| 3 | `okx account positions` | READ | Open contract\u002Fswap positions |\n| 4 | `okx account positions-history` | READ | Closed positions + realized PnL |\n| 5 | `okx account bills` | READ | Account ledger (deposits, withdrawals, trades) |\n| 6 | `okx account fees --instType \u003Ctype>` | READ | My trading fee tier (maker\u002Ftaker) |\n| 7 | `okx account config` | READ | Account level, position mode, UID |\n| 8 | `okx account max-size --instId \u003Cid> --tdMode \u003Cmode>` | READ | Max buy\u002Fsell size at current price |\n| 9 | `okx account max-avail-size --instId \u003Cid> --tdMode \u003Cmode>` | READ | Available size for next order |\n| 10 | `okx account max-withdrawal [ccy]` | READ | Max withdrawable per currency |\n\n### Write Commands\n\n| # | Command | Type | Description |\n|---|---|---|---|\n| 11 | `okx account set-position-mode \u003Cmode>` | WRITE | Switch net\u002Fhedge position mode |\n| 12 | `okx account transfer` | WRITE | Transfer funds between accounts |\n\n## Cross-Skill Workflows\n\n### Pre-trade balance check\n> User: \"I want to buy 0.1 BTC — do I have enough USDT?\"\n\n```\n1. okx-cex-portfolio okx account balance USDT               → check available equity\n2. okx-cex-market    okx market ticker BTC-USDT              → check current price\n        ↓ user approves\n3. okx-cex-trade     okx spot place --instId BTC-USDT --side buy --ordType market --sz 0.1\n```\n\n### Pre-bot balance check\n> User: \"I want to start a BTC grid bot with 1000 USDT\"\n\n```\n1. okx-cex-portfolio okx account balance USDT               → confirm available funds ≥ 1000\n2. okx-cex-market    okx market candles BTC-USDT --bar 4H --limit 50  → determine price range\n        ↓ user approves\n3. okx-cex-bot       okx bot grid create --instId BTC-USDT --algoOrdType grid \\\n                       --minPx 90000 --maxPx 100000 --gridNum 10 --quoteSz 1000\n```\n\n### Review open positions and P&L\n> User: \"Show me my current positions and how they're performing\"\n\n```\n1. okx-cex-portfolio okx account positions                  → open positions with UPL\n2. okx-cex-portfolio okx account positions-history          → recently closed positions\n3. okx-cex-market    okx market ticker BTC-USDT-SWAP        → check current price vs entry\n```\n\n### Transfer and trade\n> User: \"Move 500 USDT from my funding account to trade BTC\"\n\n```\n1. okx-cex-portfolio okx account asset-balance USDT         → confirm funding balance ≥ 500\n        ↓ user approves\n2. okx-cex-portfolio okx account transfer --ccy USDT --amt 500 --from 6 --to 18\n3. okx-cex-portfolio okx account balance USDT               → confirm trading balance updated\n        ↓ ready to trade\n4. okx-cex-trade     okx spot place ...\n```\n\n### Check max position size before entering\n> User: \"How much BTC can I buy with cross margin?\"\n\n```\n1. okx-cex-portfolio okx account balance                    → total equity\n2. okx-cex-portfolio okx account max-size --instId BTC-USDT-SWAP --tdMode cross  → max buy\u002Fsell size\n3. okx-cex-market    okx market ticker BTC-USDT-SWAP        → current price reference\n```\n\n## Operation Flow\n\n### Step 0 — Credential & Profile Check\n\nBefore any authenticated command:\n\n**Determine profile (required):**\n- Options: `live` (实盘) or `demo` (模拟盘) — exactly these two values\n1. Current message intent clear (e.g. \"real\"\u002F\"实盘\"\u002F\"live\" → live; \"test\"\u002F\"模拟\"\u002F\"demo\" → demo) → use it, inform user: `\"Using --profile live (实盘)\"`\n2. Current message has no explicit declaration → check conversation context for previous profile:\n   - Found → use it, inform user: `\"Continuing with --profile live (实盘) from earlier\"`\n   - Not found → ask: `\"Live (实盘) or Demo (模拟盘)?\"` — wait for answer\n\n**If no credentials configured:** guide user to run `okx config init`, stop all trading actions\n\n**After every command result:** append `[profile: live]` or `[profile: demo]` to the response\n\n### Step 1: Identify account action\n\n- Check balance → `okx account balance` (trading) or `okx account asset-balance` (funding)\n- View open positions → `okx account positions`\n- View closed positions + PnL → `okx account positions-history`\n- View transaction history → `okx account bills`\n- Check fee tier → `okx account fees`\n- Check account settings → `okx account config`\n- Calculate order size → `okx account max-size` or `okx account max-avail-size`\n- Check withdrawal limit → `okx account max-withdrawal`\n- Transfer funds → `okx account transfer`\n- Change position mode → `okx account set-position-mode`\n\n### Step 2: Run read commands immediately — confirm profile (Step 0) then writes\n\n**Read commands** (1–10): run immediately, no confirmation needed.\n\n- `ccy` filter: use currency symbol like `USDT`, `BTC`, `ETH`\n- `--instType` for fees\u002Fpositions: `SPOT`, `SWAP`, `FUTURES`, `OPTION`\n- `--archive` for bills: access older records beyond the default window\n- `--tdMode` for max-size: `cash` (spot), `cross`, or `isolated`\n\n**Write commands** (11–12): confirm once before executing.\n\n- `set-position-mode`: confirm mode (`net` = one-directional, `long_short_mode` = hedge mode); switching may affect open positions\n- `transfer`: confirm `--ccy`, `--amt`, `--from`, `--to` (account types: `6`=funding, `18`=trading); verify source balance first\n\n### Step 3: Verify after writes\n\n- After `set-position-mode`: run `okx account config` to confirm `posMode` updated\n- After `transfer`: run `okx account balance` and `okx account asset-balance` to confirm balances updated\n\n## CLI Command Reference\n\n### Account Balance — Trading Account\n\n```bash\nokx account balance [ccy] [--json]\n```\n\n| Param | Required | Default | Description |\n|---|---|---|---|\n| `ccy` | No | - | Filter to a single currency (e.g., `USDT`) |\n\nReturns table: `currency`, `equity`, `available`, `frozen`. Only shows currencies with balance > 0.\n\n---\n\n### Asset Balance — Funding Account\n\n```bash\nokx account asset-balance [ccy] [--valuation] [--json]\n```\n\n| Param | Required | Default | Description |\n|---|---|---|---|\n| `ccy` | No | - | Filter to a single currency |\n| `--valuation` | No | false | Also show total asset valuation across all account types (trading\u002Ffunding\u002Fearn) |\n\nReturns: `ccy`, `bal`, `availBal`, `frozenBal`. Only shows currencies with balance > 0.\n\nWith `--valuation`: additionally prints a valuation summary table with `totalBal` and per-account-type breakdown (classic\u002Fearn\u002Ffunding).\n\n---\n\n### Positions — Open Positions\n\n```bash\nokx account positions [--instType \u003Ctype>] [--instId \u003Cid>] [--json]\n```\n\n| Param | Required | Default | Description |\n|---|---|---|---|\n| `--instType` | No | - | Filter: `SWAP`, `FUTURES`, `OPTION` |\n| `--instId` | No | - | Filter to specific instrument |\n\nReturns: `instId`, `instType`, `side` (posSide), `pos`, `avgPx`, `upl` (unrealized PnL), `lever`. Only shows positions with size ≠ 0.\n\n---\n\n### Positions History — Closed Positions\n\n```bash\nokx account positions-history [--instType \u003Ctype>] [--instId \u003Cid>] [--limit \u003Cn>] [--json]\n```\n\nReturns: `instId`, `direction`, `openAvgPx`, `closeAvgPx`, `realizedPnl`, `uTime`.\n\n---\n\n### Bills — Account Ledger\n\n```bash\nokx account bills [--archive] [--instType \u003Ctype>] [--ccy \u003Cccy>] [--limit \u003Cn>] [--json]\n```\n\n| Param | Required | Default | Description |\n|---|---|---|---|\n| `--archive` | No | false | Access older records (archive endpoint) |\n| `--instType` | No | - | Filter by instrument type |\n| `--ccy` | No | - | Filter by currency |\n| `--limit` | No | 100 | Number of records |\n\nReturns: `billId`, `instId`, `type`, `ccy`, `balChg`, `bal`, `ts`.\n\n---\n\n### Fees — Trading Fee Tier\n\n```bash\nokx account fees --instType \u003Ctype> [--instId \u003Cid>] [--json]\n```\n\n| Param | Required | Default | Description |\n|---|---|---|---|\n| `--instType` | Yes | - | `SPOT`, `SWAP`, `FUTURES`, `OPTION` |\n| `--instId` | No | - | Specific instrument (optional) |\n\nReturns: `level`, `maker`, `taker`, `makerU`, `takerU`, `ts`.\n\n---\n\n### Config — Account Configuration\n\n```bash\nokx account config [--json]\n```\n\nReturns: `uid`, `acctLv` (account level), `posMode` (net\u002Flong_short_mode), `autoLoan`, `greeksType`, `level`, `levelTmp`.\n\n---\n\n### Max Size — Maximum Order Size\n\n```bash\nokx account max-size --instId \u003Cid> --tdMode \u003Cmode> [--px \u003Cprice>] [--json]\n```\n\n| Param | Required | Default | Description |\n|---|---|---|---|\n| `--instId` | Yes | - | Instrument ID |\n| `--tdMode` | Yes | - | `cash` (spot), `cross`, or `isolated` |\n| `--px` | No | - | Reference price (uses mark price if omitted) |\n\nReturns: `instId`, `maxBuy`, `maxSell`.\n\n---\n\n### Max Available Size\n\n```bash\nokx account max-avail-size --instId \u003Cid> --tdMode \u003Cmode> [--json]\n```\n\nReturns: `instId`, `availBuy`, `availSell` — the immediately available size for the next order.\n\n---\n\n### Max Withdrawal\n\n```bash\nokx account max-withdrawal [ccy] [--json]\n```\n\nReturns table: `ccy`, `maxWd`, `maxWdEx` (with borrowing). Shows all currencies if no filter.\n\n---\n\n### Set Position Mode\n\n```bash\nokx account set-position-mode \u003Cnet|long_short_mode> [--json]\n```\n\n| Value | Behavior |\n|---|---|\n| `net` | One-directional (default) — long and short net out |\n| `long_short_mode` | Hedge mode — long and short can coexist |\n\n> **Warning**: Switching modes when positions are open may cause unexpected behavior. Check `okx account positions` first.\n\n---\n\n### Transfer Funds\n\n```bash\nokx account transfer --ccy \u003Cccy> --amt \u003Cn> --from \u003CacctType> --to \u003CacctType> \\\n  [--transferType \u003Ctype>] [--subAcct \u003Cname>] [--json]\n```\n\n| Param | Required | Default | Description |\n|---|---|---|---|\n| `--ccy` | Yes | - | Currency to transfer (e.g., `USDT`) |\n| `--amt` | Yes | - | Amount to transfer |\n| `--from` | Yes | - | Source account type: `6`=funding, `18`=trading |\n| `--to` | Yes | - | Destination account type: `6`=funding, `18`=trading |\n| `--transferType` | No | `0` | `0`=within account, `1`=to sub-account, `2`=from sub-account |\n| `--subAcct` | No | - | Sub-account name (required for sub-account transfers) |\n\nReturns: `transId`, `ccy`, `amt`.\n\n---\n\n## MCP Tool Reference\n\n| Tool | Description |\n|---|---|\n| `account_get_balance` | Trading account balance |\n| `account_get_asset_balance` | Funding account balance. Use `showValuation=true` to include total asset valuation across trading\u002Ffunding\u002Fearn accounts. |\n| `account_get_positions` | Open positions |\n| `account_get_positions_history` | Closed position history |\n| `account_get_bills` | Account bills (recent) |\n| `account_get_bills_archive` | Account bills (archive) |\n| `account_get_trade_fee` | Trading fee tier |\n| `account_get_config` | Account configuration |\n| `account_get_max_size` | Max order size |\n| `account_get_max_avail_size` | Max available size |\n| `account_get_max_withdrawal` | Max withdrawable |\n| `account_set_position_mode` | Set position mode |\n| `account_transfer` | Transfer between accounts |\n\n---\n\n## Input \u002F Output Examples\n\n**\"How much USDT do I have?\"**\n```bash\nokx account balance USDT\n# → currency: USDT | equity: 5000.00 | available: 4500.00 | frozen: 500.00\n```\n\n**\"Show all my open positions\"**\n```bash\nokx account positions\n# → table: instId, instType, side, pos, avgPx, upl, lever\n```\n\n**\"What's my trading history and realized PnL?\"**\n```bash\nokx account positions-history\n# → table: instId, direction, openAvgPx, closeAvgPx, realizedPnl, uTime\n```\n\n**\"Show my recent account activity\"**\n```bash\nokx account bills --limit 20\n# → table: billId, instId, type, ccy, balChg, bal, ts\n```\n\n**\"What are my trading fees for SWAP?\"**\n```bash\nokx account fees --instType SWAP\n# → level: VIP1 | maker: -0.0001 | taker: 0.0005\n```\n\n**\"How much BTC can I buy in cross margin?\"**\n```bash\nokx account max-size --instId BTC-USDT-SWAP --tdMode cross\n# → instId: BTC-USDT-SWAP | maxBuy: 12.5 | maxSell: 12.5\n```\n\n**\"Transfer 200 USDT from funding to trading\"**\n```bash\nokx account transfer --ccy USDT --amt 200 --from 6 --to 18\n# → Transfer: TXN123456 (USDT 200)\n```\n\n**\"Check my account config\"**\n```bash\nokx account config\n# → uid: 123456789 | acctLv: 2 | posMode: net | autoLoan: false\n```\n\n## Edge Cases\n\n- **No balance shown**: balance is filtered to > 0 — if nothing shows, all currencies have zero balance\n- **Positions command returns empty**: no open contracts; spot holdings are not shown here (use `account balance`)\n- **bills --archive**: required for transactions older than 7 days (default window); may be slower\n- **set-position-mode**: cannot switch to `net` if you have both long and short positions on the same instrument\n- **transfer --from\u002F--to codes**: `6`=funding account, `18`=trading account; other values exist for sub-account flows\n- **max-size vs max-avail-size**: `max-size` is the theoretical maximum; `max-avail-size` accounts for existing orders and reserved margin\n- **Demo mode**: `okx --profile demo account balance` shows simulated balances, not real funds\n\n## Global Notes\n\n- All write commands require valid credentials in `~\u002F.okx\u002Fconfig.toml` or env vars\n- `--profile \u003Cname>` is required for all authenticated commands; see \"Credential & Profile Check\" section\n- Every command result includes a `[profile: \u003Cname>]` tag for audit reference\n- `--json` returns the raw OKX API v5 response by default. Add `--env` to wrap the output as `{\"env\": \"\u003Clive|demo>\", \"profile\": \"\u003Cname>\", \"data\": \u003Cresponse>}`\n- Rate limit: 10 requests per 2 seconds for account endpoints\n- Positions shown are for the unified trading account; funding account assets are separate\n- Account types: `6`=Funding Account (deposits\u002Fwithdrawals), `18`=Unified Trading Account (spot + derivatives)\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","4ac29a24db9fc8bba16c61b1cdaa3f5058934247","skills\u002Fokx-cex-portfolio","https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills","https:\u002F\u002Fgithub.com\u002FJOHNadonis","Java\u002FGo\u002FC++，student majoring in computer.","2026-10-26 22:44:45",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add JOHNadonis\u002Fclaude-code-skills --skill okx-cex-portfolio",{"tool":51,"command":52},"bunx","bunx skills add JOHNadonis\u002Fclaude-code-skills --skill okx-cex-portfolio",{"tool":54,"command":55},"pnpm","pnpm dlx skills add JOHNadonis\u002Fclaude-code-skills --skill okx-cex-portfolio","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fokx-cex-portfolio\u002FSKILL.md",true,[],[60,68,76,85,92,100],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":64,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7317QQ43D8KSNYCMQ9YSVV4","youtube-clipper","YouTube 视频智能剪辑工具。下载视频和字幕，AI 分析生成精细章节（几分钟级别）， 用户选择片段后自动剪辑、翻译字幕为中英双语、烧录字幕到视频，并生成总结文案。 使用场景：当用户需要剪辑 YouTube 视频、生成短视频片段、制作双语字幕版本时。 关键词：视频剪辑、YouTube、字幕翻译、双语字幕、视频下载、clip video","https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-clipper\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-clipper\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":72,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7316R2JBWWT24DEVFGVZ1WW","yao-meta-skill","Create, refactor, evaluate, and package agent skills from workflows, prompts, transcripts, docs, or notes. Use when asked to create a skill, turn a repeated process into a reusable skill, improve an existing skill, add evals, or package a skill for team reuse.","https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyao-meta-skill\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyao-meta-skill\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":81,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7314XDMF1VN8H6GE0RXWX3V","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M73142X503419G1YEBQZVRWJ","vercel-react-best-practices","React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React\u002FNext.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.","https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-react-best-practices\u002FSKILL.md",[],[],{"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},"01M7313E33KEXPQSJ6JBSW7CT5","ui-test","AI-powered adversarial UI testing via the browse CLI. Analyzes git diffs to test only what changed, or explores the full app to find bugs. Tests functional correctness, accessibility, responsive layout, and UX heuristics. Use when the user asks to test UI changes, QA a pull request, audit accessibility, or run exploratory testing. Supports local browser (localhost) and remote Browserbase (deployed sites).","https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fui-test\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fui-test\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":80,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M73123QNJHSG1XT7XJPQD0HK","technical-seo-checker","Use when the user asks to \"technical SEO audit\", \"check page speed\", \"crawl issues\", \"Core Web Vitals\", \"site indexing problems\", \"my site is slow\", \"Google cannot crawl my site\", \"mobile issues\", or \"indexing problems\". Performs technical SEO audits covering site speed, crawlability, indexability, mobile-friendliness, security, and structured data. Identifies technical issues preventing optimal search performance. For content and heading element issues, see on-page-seo-auditor. For link architecture, see internal-linking-optimizer.","https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftechnical-seo-checker\u002FSKILL.md",[],[]]