{
  "schemaVersion": "1.0",
  "item": {
    "slug": "cloudflare-api",
    "name": "Cloudflare API",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/lucassynnott/cloudflare-api",
    "canonicalUrl": "https://clawhub.ai/lucassynnott/cloudflare-api",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/cloudflare-api",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=cloudflare-api",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "examples/config-snippet.json",
      "scripts/_lib.sh",
      "scripts/dns/create.sh",
      "scripts/dns/delete.sh",
      "scripts/dns/list.sh"
    ],
    "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",
      "slug": "cloudflare-api",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T21:29:24.502Z",
      "expiresAt": "2026-05-08T21:29:24.502Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=cloudflare-api",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=cloudflare-api",
        "contentDisposition": "attachment; filename=\"cloudflare-api-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "cloudflare-api"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/cloudflare-api"
    },
    "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/cloudflare-api",
    "agentPageUrl": "https://openagent3.xyz/skills/cloudflare-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/cloudflare-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/cloudflare-api/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": "Cloudflare Skill",
        "body": "Connect to Cloudflare API for DNS management, tunnels, and zone administration."
      },
      {
        "title": "1. Get Your API Token",
        "body": "Go to dash.cloudflare.com/profile/api-tokens\nCreate a token with required permissions:\n\nZone:Read - List domains\nDNS:Edit - Manage DNS records\nAccount:Cloudflare Tunnel:Edit - Manage tunnels\n\n\nCopy the token"
      },
      {
        "title": "2. Configure",
        "body": "# Option A: Store in file (recommended)\necho \"YOUR_API_TOKEN\" > ~/.cloudflare_token\nchmod 600 ~/.cloudflare_token\n\n# Option B: Environment variable\nexport CLOUDFLARE_API_TOKEN=\"YOUR_API_TOKEN\""
      },
      {
        "title": "3. Test Connection",
        "body": "./scripts/setup.sh"
      },
      {
        "title": "Zones (Domains)",
        "body": "./scripts/zones/list.sh                    # List all zones\n./scripts/zones/list.sh --json             # JSON output\n./scripts/zones/get.sh example.com         # Get zone details"
      },
      {
        "title": "DNS Records",
        "body": "# List records\n./scripts/dns/list.sh example.com\n./scripts/dns/list.sh example.com --type A\n./scripts/dns/list.sh example.com --name api\n\n# Create record\n./scripts/dns/create.sh example.com \\\n  --type A \\\n  --name api \\\n  --content 1.2.3.4 \\\n  --proxied\n\n# Create CNAME\n./scripts/dns/create.sh example.com \\\n  --type CNAME \\\n  --name www \\\n  --content example.com \\\n  --proxied\n\n# Update record\n./scripts/dns/update.sh example.com \\\n  --name api \\\n  --type A \\\n  --content 5.6.7.8\n\n# Delete record\n./scripts/dns/delete.sh example.com --name api --type A"
      },
      {
        "title": "Tunnels",
        "body": "# List tunnels\n./scripts/tunnels/list.sh\n\n# Create tunnel\n./scripts/tunnels/create.sh my-tunnel\n\n# Configure tunnel ingress\n./scripts/tunnels/configure.sh my-tunnel \\\n  --hostname app.example.com \\\n  --service http://localhost:3000\n\n# Get run token\n./scripts/tunnels/token.sh my-tunnel\n\n# Delete tunnel\n./scripts/tunnels/delete.sh my-tunnel"
      },
      {
        "title": "Token Permissions",
        "body": "FeatureRequired PermissionList zonesZone:ReadManage DNSDNS:EditManage tunnelsAccount:Cloudflare Tunnel:Edit\n\nCreate token at: dash.cloudflare.com/profile/api-tokens"
      },
      {
        "title": "Point subdomain to server",
        "body": "./scripts/dns/create.sh mysite.com --type A --name api --content 1.2.3.4 --proxied"
      },
      {
        "title": "Set up tunnel for local service",
        "body": "# 1. Create tunnel\n./scripts/tunnels/create.sh webhook-tunnel\n\n# 2. Configure ingress\n./scripts/tunnels/configure.sh webhook-tunnel \\\n  --hostname hook.mysite.com \\\n  --service http://localhost:8080\n\n# 3. Add DNS record\nTUNNEL_ID=$(./scripts/tunnels/list.sh --name webhook-tunnel --quiet)\n./scripts/dns/create.sh mysite.com \\\n  --type CNAME \\\n  --name hook \\\n  --content ${TUNNEL_ID}.cfargotunnel.com \\\n  --proxied\n\n# 4. Run tunnel\nTOKEN=$(./scripts/tunnels/token.sh webhook-tunnel)\ncloudflared tunnel run --token $TOKEN"
      },
      {
        "title": "Output Formats",
        "body": "FlagDescription--jsonRaw JSON from API--tableFormatted table (default)--quietMinimal output (IDs only)"
      },
      {
        "title": "Troubleshooting",
        "body": "ErrorSolution\"No API token found\"Run setup or set CLOUDFLARE_API_TOKEN\"401 Unauthorized\"Check token is valid\"403 Forbidden\"Token missing required permission\"Zone not found\"Verify domain is in your account"
      }
    ],
    "body": "Cloudflare Skill\n\nConnect to Cloudflare API for DNS management, tunnels, and zone administration.\n\nSetup\n1. Get Your API Token\nGo to dash.cloudflare.com/profile/api-tokens\nCreate a token with required permissions:\nZone:Read - List domains\nDNS:Edit - Manage DNS records\nAccount:Cloudflare Tunnel:Edit - Manage tunnels\nCopy the token\n2. Configure\n# Option A: Store in file (recommended)\necho \"YOUR_API_TOKEN\" > ~/.cloudflare_token\nchmod 600 ~/.cloudflare_token\n\n# Option B: Environment variable\nexport CLOUDFLARE_API_TOKEN=\"YOUR_API_TOKEN\"\n\n3. Test Connection\n./scripts/setup.sh\n\nCommands\nZones (Domains)\n./scripts/zones/list.sh                    # List all zones\n./scripts/zones/list.sh --json             # JSON output\n./scripts/zones/get.sh example.com         # Get zone details\n\nDNS Records\n# List records\n./scripts/dns/list.sh example.com\n./scripts/dns/list.sh example.com --type A\n./scripts/dns/list.sh example.com --name api\n\n# Create record\n./scripts/dns/create.sh example.com \\\n  --type A \\\n  --name api \\\n  --content 1.2.3.4 \\\n  --proxied\n\n# Create CNAME\n./scripts/dns/create.sh example.com \\\n  --type CNAME \\\n  --name www \\\n  --content example.com \\\n  --proxied\n\n# Update record\n./scripts/dns/update.sh example.com \\\n  --name api \\\n  --type A \\\n  --content 5.6.7.8\n\n# Delete record\n./scripts/dns/delete.sh example.com --name api --type A\n\nTunnels\n# List tunnels\n./scripts/tunnels/list.sh\n\n# Create tunnel\n./scripts/tunnels/create.sh my-tunnel\n\n# Configure tunnel ingress\n./scripts/tunnels/configure.sh my-tunnel \\\n  --hostname app.example.com \\\n  --service http://localhost:3000\n\n# Get run token\n./scripts/tunnels/token.sh my-tunnel\n\n# Delete tunnel\n./scripts/tunnels/delete.sh my-tunnel\n\nToken Permissions\nFeature\tRequired Permission\nList zones\tZone:Read\nManage DNS\tDNS:Edit\nManage tunnels\tAccount:Cloudflare Tunnel:Edit\n\nCreate token at: dash.cloudflare.com/profile/api-tokens\n\nCommon Workflows\nPoint subdomain to server\n./scripts/dns/create.sh mysite.com --type A --name api --content 1.2.3.4 --proxied\n\nSet up tunnel for local service\n# 1. Create tunnel\n./scripts/tunnels/create.sh webhook-tunnel\n\n# 2. Configure ingress\n./scripts/tunnels/configure.sh webhook-tunnel \\\n  --hostname hook.mysite.com \\\n  --service http://localhost:8080\n\n# 3. Add DNS record\nTUNNEL_ID=$(./scripts/tunnels/list.sh --name webhook-tunnel --quiet)\n./scripts/dns/create.sh mysite.com \\\n  --type CNAME \\\n  --name hook \\\n  --content ${TUNNEL_ID}.cfargotunnel.com \\\n  --proxied\n\n# 4. Run tunnel\nTOKEN=$(./scripts/tunnels/token.sh webhook-tunnel)\ncloudflared tunnel run --token $TOKEN\n\nOutput Formats\nFlag\tDescription\n--json\tRaw JSON from API\n--table\tFormatted table (default)\n--quiet\tMinimal output (IDs only)\nTroubleshooting\nError\tSolution\n\"No API token found\"\tRun setup or set CLOUDFLARE_API_TOKEN\n\"401 Unauthorized\"\tCheck token is valid\n\"403 Forbidden\"\tToken missing required permission\n\"Zone not found\"\tVerify domain is in your account"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/lucassynnott/cloudflare-api",
    "publisherUrl": "https://clawhub.ai/lucassynnott/cloudflare-api",
    "owner": "lucassynnott",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/cloudflare-api",
    "downloadUrl": "https://openagent3.xyz/downloads/cloudflare-api",
    "agentUrl": "https://openagent3.xyz/skills/cloudflare-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/cloudflare-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/cloudflare-api/agent.md"
  }
}