{
  "schemaVersion": "1.0",
  "item": {
    "slug": "clawdex-trading",
    "name": "ClawDex Trading",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/JoelCCodes/clawdex-trading",
    "canonicalUrl": "https://clawhub.ai/JoelCCodes/clawdex-trading",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/clawdex-trading",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=clawdex-trading",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/clawdex-trading"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/clawdex-trading",
    "agentPageUrl": "https://openagent3.xyz/skills/clawdex-trading/agent",
    "manifestUrl": "https://openagent3.xyz/skills/clawdex-trading/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/clawdex-trading/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "ClawDex — Solana DEX Trading Skill",
        "body": "Trade any Solana token through Jupiter aggregator with simulation, safety guardrails, and full JSON output."
      },
      {
        "title": "Prerequisites",
        "body": "Before using this skill, ensure ClawDex is installed and configured:\n\nwhich clawdex || npm install -g clawdex@latest\n\nIf not configured yet, run onboarding:\n\nclawdex status --json\n\nIf status fails, set up with:\n\nclawdex onboarding \\\n  --jupiter-api-key \"$JUPITER_API_KEY\" \\\n  --rpc \"${SOLANA_RPC_URL:-https://api.mainnet-beta.solana.com}\" \\\n  --wallet ~/.config/solana/id.json \\\n  --json"
      },
      {
        "title": "Check wallet balances",
        "body": "clawdex balances --json\n\nReturns an array of { token, symbol, mint, balance, decimals } objects. Zero-balance accounts are included in JSON output."
      },
      {
        "title": "Get a quote (no execution)",
        "body": "clawdex quote --in SOL --out USDC --amount 0.01 --json\n\nLightweight price check — no simulation, no wallet needed."
      },
      {
        "title": "Simulate a swap (dry run)",
        "body": "clawdex swap --in SOL --out USDC --amount 0.01 --simulate-only --json\n\nRuns full simulation on-chain without broadcasting. Does not require --yes. Use this to preview the output amount and route before committing."
      },
      {
        "title": "Execute a swap",
        "body": "clawdex swap --in SOL --out USDC --amount 0.01 --yes --json\n\n--yes is required for non-interactive execution. Without it, ClawDex exits with code 1."
      },
      {
        "title": "Health check",
        "body": "clawdex status --json\n\nVerify RPC connectivity, wallet validity, and config state."
      },
      {
        "title": "Trading Workflow",
        "body": "Always follow this sequence:\n\nHealth check — clawdex status --json — abort if rpc.healthy is false\nCheck balances — clawdex balances --json — verify sufficient funds\nSimulate — clawdex swap --simulate-only --json — preview the trade\nExecute — clawdex swap --yes --json — only if simulation looks good\nVerify — clawdex balances --json — confirm balances updated (may need 5s delay on public RPC)"
      },
      {
        "title": "Token Specification",
        "body": "Tokens can be passed by symbol or mint address:\n\nBy symbol: SOL, USDC, USDT\nBy mint: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
      },
      {
        "title": "Exit Codes",
        "body": "CodeMeaningAgent action0SuccessContinue1General errorCheck message2Config errorRun onboarding3Safety violationReduce amount or adjust limits4Simulation failedTry different pair/amount5Send failedRetry with backoff"
      },
      {
        "title": "Safety",
        "body": "Set guardrails to prevent runaway trades:\n\nclawdex safety set max_slippage_bps=300 max_trade_sol=1 max_price_impact_bps=100\n\nWhen a guardrail triggers, the JSON response includes a violations array describing what failed."
      },
      {
        "title": "Important Rules",
        "body": "Always use --json for machine-parseable output\nAlways use --yes for real swaps (not needed for --simulate-only)\nNever skip simulation unless you have a good reason — use --simulate-only first\nParse balance as a string, not a number — it preserves full decimal precision\nCheck exit codes — non-zero means the trade did not succeed\nWait before verifying — RPC balance reads can lag a few seconds after a swap"
      }
    ],
    "body": "ClawDex — Solana DEX Trading Skill\n\nTrade any Solana token through Jupiter aggregator with simulation, safety guardrails, and full JSON output.\n\nPrerequisites\n\nBefore using this skill, ensure ClawDex is installed and configured:\n\nwhich clawdex || npm install -g clawdex@latest\n\n\nIf not configured yet, run onboarding:\n\nclawdex status --json\n\n\nIf status fails, set up with:\n\nclawdex onboarding \\\n  --jupiter-api-key \"$JUPITER_API_KEY\" \\\n  --rpc \"${SOLANA_RPC_URL:-https://api.mainnet-beta.solana.com}\" \\\n  --wallet ~/.config/solana/id.json \\\n  --json\n\nCommands\nCheck wallet balances\nclawdex balances --json\n\n\nReturns an array of { token, symbol, mint, balance, decimals } objects. Zero-balance accounts are included in JSON output.\n\nGet a quote (no execution)\nclawdex quote --in SOL --out USDC --amount 0.01 --json\n\n\nLightweight price check — no simulation, no wallet needed.\n\nSimulate a swap (dry run)\nclawdex swap --in SOL --out USDC --amount 0.01 --simulate-only --json\n\n\nRuns full simulation on-chain without broadcasting. Does not require --yes. Use this to preview the output amount and route before committing.\n\nExecute a swap\nclawdex swap --in SOL --out USDC --amount 0.01 --yes --json\n\n\n--yes is required for non-interactive execution. Without it, ClawDex exits with code 1.\n\nHealth check\nclawdex status --json\n\n\nVerify RPC connectivity, wallet validity, and config state.\n\nTrading Workflow\n\nAlways follow this sequence:\n\nHealth check — clawdex status --json — abort if rpc.healthy is false\nCheck balances — clawdex balances --json — verify sufficient funds\nSimulate — clawdex swap --simulate-only --json — preview the trade\nExecute — clawdex swap --yes --json — only if simulation looks good\nVerify — clawdex balances --json — confirm balances updated (may need 5s delay on public RPC)\nToken Specification\n\nTokens can be passed by symbol or mint address:\n\nBy symbol: SOL, USDC, USDT\nBy mint: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v\nExit Codes\nCode\tMeaning\tAgent action\n0\tSuccess\tContinue\n1\tGeneral error\tCheck message\n2\tConfig error\tRun onboarding\n3\tSafety violation\tReduce amount or adjust limits\n4\tSimulation failed\tTry different pair/amount\n5\tSend failed\tRetry with backoff\nSafety\n\nSet guardrails to prevent runaway trades:\n\nclawdex safety set max_slippage_bps=300 max_trade_sol=1 max_price_impact_bps=100\n\n\nWhen a guardrail triggers, the JSON response includes a violations array describing what failed.\n\nImportant Rules\nAlways use --json for machine-parseable output\nAlways use --yes for real swaps (not needed for --simulate-only)\nNever skip simulation unless you have a good reason — use --simulate-only first\nParse balance as a string, not a number — it preserves full decimal precision\nCheck exit codes — non-zero means the trade did not succeed\nWait before verifying — RPC balance reads can lag a few seconds after a swap"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/JoelCCodes/clawdex-trading",
    "publisherUrl": "https://clawhub.ai/JoelCCodes/clawdex-trading",
    "owner": "JoelCCodes",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/clawdex-trading",
    "downloadUrl": "https://openagent3.xyz/downloads/clawdex-trading",
    "agentUrl": "https://openagent3.xyz/skills/clawdex-trading/agent",
    "manifestUrl": "https://openagent3.xyz/skills/clawdex-trading/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/clawdex-trading/agent.md"
  }
}