Overview
- Skill Key
- davidpolotm/mi-trading
- Author
- davidpolotm
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/davidpolotm/mi-trading
- Latest Commit SHA
- b1e1dd72caf6c6daa28ebd6575cfe0d015a157ef
Trade tokens on Solana using the ClawDex CLI. Use when the user asks to swap tokens, check balances, get quotes, or manage a Solana trading wallet.
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 clawdex 技能。 若已安装,则直接安装 clawdex 技能。
# ClawDex — Solana DEX Trading Skill
Trade any Solana token through Jupiter aggregator with simulation, safety guardrails, and full JSON output.
## Prerequisites
Before using this skill, ensure ClawDex is installed and configured:
```bash
which clawdex || npm install -g clawdex@latest
```
If not configured yet, run onboarding:
```bash
clawdex status --json
```
If status fails, set up with:
```bash
clawdex onboarding \
--jupiter-api-key "$JUPITER_API_KEY" \
--rpc "${SOLANA_RPC_URL:-https://api.mainnet-beta.solana.com}" \
--wallet ~/.config/solana/id.json \
--json
```
## Commands
### Check wallet balances
```bash
clawdex balances --json
```
Returns an array of `{ token, symbol, mint, balance, decimals }` objects. Zero-balance accounts are included in JSON output.
### Get a quote (no execution)
```bash
clawdex quote --in SOL --out USDC --amount 0.01 --json
```
Lightweight price check — no simulation, no wallet needed.
### Simulate a swap (dry run)
```bash
clawdex swap --in SOL --out USDC --amount 0.01 --simulate-only --json
```
Runs full simulation on-chain without broadcasting. Does not require `--yes`. Use this to preview the output amount and route before committing.
### Execute a swap
```bash
clawdex swap --in SOL --out USDC --amount 0.01 --yes --json
```
**`--yes` is required** for non-interactive execution. Without it, ClawDex exits with code 1.
### Health check
```bash
clawdex status --json
```
Verify RPC connectivity, wallet validity, and config state.
## Trading Workflow
Always follow this sequence:
1. **Health check** — `clawdex status --json` — abort if `rpc.healthy` is false
2. **Check balances** — `clawdex balances --json` — verify sufficient funds
3. **Simulate** — `clawdex swap --simulate-only --json` — preview the trade
4. **Execute** — `clawdex swap --yes --json` — only if simulation looks good
5. **Verify** — `clawdex balances --json` — confirm balances updated (may need 5s delay on public RPC)
## Token Specification...
capt-marbles
Task Router
capncoconut
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.
capevace
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.