{
  "schemaVersion": "1.0",
  "item": {
    "slug": "cocod",
    "name": "Cocod",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Egge21M/cocod",
    "canonicalUrl": "https://clawhub.ai/Egge21M/cocod",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/cocod",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=cocod",
    "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/cocod"
    },
    "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/cocod",
    "agentPageUrl": "https://openagent3.xyz/skills/cocod/agent",
    "manifestUrl": "https://openagent3.xyz/skills/cocod/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/cocod/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": "Cocod - Cashu Wallet CLI",
        "body": "Cocod is a Cashu wallet for managing ecash tokens and making Bitcoin/Lightning payments. It uses the Cashu protocol for privacy-preserving ecash transactions.\n\nIf a web/API request returns HTTP 402 Payment Required with an X-Cashu header, use this skill to parse and settle the request with cocod."
      },
      {
        "title": "Agent Safety Policy (Required)",
        "body": "When acting as an AGENT with this skill:\n\nAlways ask for explicit user permission before running any command/flow that can spend wallet funds, unless the user has already clearly instructed you to execute that spend action.\nPrefer preview/inspection commands before execution whenever available. For example, run cocod x-cashu parse <request> to inspect costs and requirements before cocod x-cashu handle <request>.\nTreat ~/.cocod as sensitive. Never log, print, or expose its contents (including config, mnemonic material, wallet state, sockets, and pid files) unless the user explicitly requests a specific safe subset."
      },
      {
        "title": "What is Cashu?",
        "body": "Cashu is a Chaumian ecash protocol that lets you hold and transfer Bitcoin-backed tokens privately. It enables unlinkable transactions using blind signatures."
      },
      {
        "title": "Installation",
        "body": "# Install cocod CLI\nbun install -g cocod"
      },
      {
        "title": "Version Compatibility",
        "body": "This skill is version-pinned to an exact cocod CLI release.\n\nskill_version must match the npm package version.\nrequires_cocod_version is pinned to that exact same version.\n\nCheck your installed CLI version:\n\ncocod --version\n\nIf the version does not match the pinned values in this file, update cocod before using this skill."
      },
      {
        "title": "Quick Start",
        "body": "# Initialize your wallet (generates mnemonic automatically)\ncocod init\n\n# Or with a custom mint\ncocod init --mint-url https://mint.example.com\n\n# Check balance\ncocod balance"
      },
      {
        "title": "Core Wallet",
        "body": "# Check daemon and wallet status\ncocod status\n\n# Initialize wallet with optional mnemonic\ncocod init [mnemonic] [--passphrase <passphrase>] [--mint-url <url>]\n\n# Unlock encrypted wallet (only required when initialised with passphrase)\ncocod unlock <passphrase>\n\n# Get wallet balance\ncocod balance\n\n# Test daemon connection\ncocod ping"
      },
      {
        "title": "Receiving Payments",
        "body": "# Receive Cashu token\ncocod receive cashu <token>\n\n# Create Lightning invoice to receive\ncocod receive bolt11 <amount> [--mint-url <url>]"
      },
      {
        "title": "Sending Payments",
        "body": "AGENT rule: commands in this section spend wallet funds. Ask for permission first unless the user already explicitly requested the spend action.\n\n# Create Cashu token to send to someone\ncocod send cashu <amount> [--mint-url <url>]\n\n# Pay a Lightning invoice\ncocod send bolt11 <invoice> [--mint-url <url>]"
      },
      {
        "title": "HTTP 402 Web Payments (NUT-24)",
        "body": "Use these commands when a server responds with HTTP 402 and an X-Cashu payment request.\n\nAGENT rule: cocod x-cashu handle <request> can spend funds. Prefer cocod x-cashu parse <request> first to preview amount/requirements, then ask permission before handling unless already instructed.\n\n# Parse an encoded X-Cashu request from a 402 response header\ncocod x-cashu parse <request>\n\n# Settle the request and get an X-Cashu payment header value\ncocod x-cashu handle <request>\n\nTypical flow:\n\nRead X-Cashu from the 402 response.\nRun cocod x-cashu parse <request> to inspect amount and mint requirements.\nRun cocod x-cashu handle <request> to generate payment token header value.\nRetry the original web request with returned X-Cashu: cashuB... header."
      },
      {
        "title": "Mints",
        "body": "# Add a mint URL\ncocod mints add <url>\n\n# List configured mints\ncocod mints list\n\n# Get mint information\ncocod mints info <url>"
      },
      {
        "title": "Lightning Address (NPC)",
        "body": "Lightning Addresses are email-style identifiers (like name@npubx.cash) that let others pay you over Lightning. If you have not purchased a username, NPC provides a free address from your Nostr npub; purchasing a username gives you a human-readable handle. Buying a username is a two-step flow so you can review the required sats before confirming payment.\n\nAGENT rule: cocod npc username <name> --confirm is a spend action. Ask permission before running --confirm unless already instructed.\n\n# Get your NPC Lightning Address\ncocod npc address\n\n# Reserve/buy an NPC username (two-step)\ncocod npc username <name>\ncocod npc username <name> --confirm"
      },
      {
        "title": "History",
        "body": "# View wallet history\ncocod history\n\n# With pagination\ncocod history --offset 0 --limit 20\n\n# Watch for real-time updates\ncocod history --watch\n\n# Limit with watch\ncocod history --limit 50 --watch"
      },
      {
        "title": "Daemon Control",
        "body": "# Start the background daemon (started automatically when not running when required)\ncocod daemon\n\n# Stop the daemon\ncocod stop"
      },
      {
        "title": "Examples",
        "body": "Initialize with encryption:\n\ncocod init --passphrase \"my-secret\"\n\nReceive via Lightning:\n\ncocod receive bolt11 5000\n# Returns: lnbc50u1... (share this invoice to receive)\n\nPay a Lightning invoice:\n\ncocod send bolt11 lnbc100u1p3w7j3...\n\nSend Cashu to a friend:\n\ncocod send cashu 1000\n# Returns: cashuAeyJ0b2tlbiI6...\n# Friend receives with: cocod receive cashu cashuAeyJ0b2tlbiI6...\n\nCheck status and balance:\n\ncocod status\ncocod balance\n\nView recent history:\n\ncocod history --limit 10"
      },
      {
        "title": "Concepts",
        "body": "Cashu: Privacy-preserving ecash protocol using blind signatures\nMint: Server that issues and redeems Cashu tokens\nToken: Transferable Cashu string representing satoshi value\nBolt11: Lightning Network invoice format\nNPC: Lightning Address service for receiving payments\nMnemonic: Seed phrase for wallet recovery"
      }
    ],
    "body": "Cocod - Cashu Wallet CLI\n\nCocod is a Cashu wallet for managing ecash tokens and making Bitcoin/Lightning payments. It uses the Cashu protocol for privacy-preserving ecash transactions.\n\nIf a web/API request returns HTTP 402 Payment Required with an X-Cashu header, use this skill to parse and settle the request with cocod.\n\nAgent Safety Policy (Required)\n\nWhen acting as an AGENT with this skill:\n\nAlways ask for explicit user permission before running any command/flow that can spend wallet funds, unless the user has already clearly instructed you to execute that spend action.\nPrefer preview/inspection commands before execution whenever available. For example, run cocod x-cashu parse <request> to inspect costs and requirements before cocod x-cashu handle <request>.\nTreat ~/.cocod as sensitive. Never log, print, or expose its contents (including config, mnemonic material, wallet state, sockets, and pid files) unless the user explicitly requests a specific safe subset.\nWhat is Cashu?\n\nCashu is a Chaumian ecash protocol that lets you hold and transfer Bitcoin-backed tokens privately. It enables unlinkable transactions using blind signatures.\n\nInstallation\n# Install cocod CLI\nbun install -g cocod\n\nVersion Compatibility\n\nThis skill is version-pinned to an exact cocod CLI release.\n\nskill_version must match the npm package version.\nrequires_cocod_version is pinned to that exact same version.\n\nCheck your installed CLI version:\n\ncocod --version\n\n\nIf the version does not match the pinned values in this file, update cocod before using this skill.\n\nQuick Start\n# Initialize your wallet (generates mnemonic automatically)\ncocod init\n\n# Or with a custom mint\ncocod init --mint-url https://mint.example.com\n\n# Check balance\ncocod balance\n\nCommands\nCore Wallet\n# Check daemon and wallet status\ncocod status\n\n# Initialize wallet with optional mnemonic\ncocod init [mnemonic] [--passphrase <passphrase>] [--mint-url <url>]\n\n# Unlock encrypted wallet (only required when initialised with passphrase)\ncocod unlock <passphrase>\n\n# Get wallet balance\ncocod balance\n\n# Test daemon connection\ncocod ping\n\nReceiving Payments\n# Receive Cashu token\ncocod receive cashu <token>\n\n# Create Lightning invoice to receive\ncocod receive bolt11 <amount> [--mint-url <url>]\n\nSending Payments\n\nAGENT rule: commands in this section spend wallet funds. Ask for permission first unless the user already explicitly requested the spend action.\n\n# Create Cashu token to send to someone\ncocod send cashu <amount> [--mint-url <url>]\n\n# Pay a Lightning invoice\ncocod send bolt11 <invoice> [--mint-url <url>]\n\nHTTP 402 Web Payments (NUT-24)\n\nUse these commands when a server responds with HTTP 402 and an X-Cashu payment request.\n\nAGENT rule: cocod x-cashu handle <request> can spend funds. Prefer cocod x-cashu parse <request> first to preview amount/requirements, then ask permission before handling unless already instructed.\n\n# Parse an encoded X-Cashu request from a 402 response header\ncocod x-cashu parse <request>\n\n# Settle the request and get an X-Cashu payment header value\ncocod x-cashu handle <request>\n\n\nTypical flow:\n\nRead X-Cashu from the 402 response.\nRun cocod x-cashu parse <request> to inspect amount and mint requirements.\nRun cocod x-cashu handle <request> to generate payment token header value.\nRetry the original web request with returned X-Cashu: cashuB... header.\nMints\n# Add a mint URL\ncocod mints add <url>\n\n# List configured mints\ncocod mints list\n\n# Get mint information\ncocod mints info <url>\n\nLightning Address (NPC)\n\nLightning Addresses are email-style identifiers (like name@npubx.cash) that let others pay you over Lightning. If you have not purchased a username, NPC provides a free address from your Nostr npub; purchasing a username gives you a human-readable handle. Buying a username is a two-step flow so you can review the required sats before confirming payment.\n\nAGENT rule: cocod npc username <name> --confirm is a spend action. Ask permission before running --confirm unless already instructed.\n\n# Get your NPC Lightning Address\ncocod npc address\n\n# Reserve/buy an NPC username (two-step)\ncocod npc username <name>\ncocod npc username <name> --confirm\n\nHistory\n# View wallet history\ncocod history\n\n# With pagination\ncocod history --offset 0 --limit 20\n\n# Watch for real-time updates\ncocod history --watch\n\n# Limit with watch\ncocod history --limit 50 --watch\n\nDaemon Control\n# Start the background daemon (started automatically when not running when required)\ncocod daemon\n\n# Stop the daemon\ncocod stop\n\nExamples\n\nInitialize with encryption:\n\ncocod init --passphrase \"my-secret\"\n\n\nReceive via Lightning:\n\ncocod receive bolt11 5000\n# Returns: lnbc50u1... (share this invoice to receive)\n\n\nPay a Lightning invoice:\n\ncocod send bolt11 lnbc100u1p3w7j3...\n\n\nSend Cashu to a friend:\n\ncocod send cashu 1000\n# Returns: cashuAeyJ0b2tlbiI6...\n# Friend receives with: cocod receive cashu cashuAeyJ0b2tlbiI6...\n\n\nCheck status and balance:\n\ncocod status\ncocod balance\n\n\nView recent history:\n\ncocod history --limit 10\n\nConcepts\nCashu: Privacy-preserving ecash protocol using blind signatures\nMint: Server that issues and redeems Cashu tokens\nToken: Transferable Cashu string representing satoshi value\nBolt11: Lightning Network invoice format\nNPC: Lightning Address service for receiving payments\nMnemonic: Seed phrase for wallet recovery"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Egge21M/cocod",
    "publisherUrl": "https://clawhub.ai/Egge21M/cocod",
    "owner": "Egge21M",
    "version": "0.0.13",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/cocod",
    "downloadUrl": "https://openagent3.xyz/downloads/cocod",
    "agentUrl": "https://openagent3.xyz/skills/cocod/agent",
    "manifestUrl": "https://openagent3.xyz/skills/cocod/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/cocod/agent.md"
  }
}