Cloudflare Codemode Bash
Description
Claude Code skill for interacting with the Cloudflare API via bash + node
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
cloudflare-codemode-bash
A Claude Code skill for interacting with the entire Cloudflare API using bash + Node.js — no MCP server required.
Inspired by the **codemode pattern** invented by [Matt Carey (@mattzcarey)](https://x.com/mattzcarey), who built the original [mattzcarey/cloudflare-mcp](https://github.com/mattzcarey/cloudflare-mcp) server that Cloudflare subsequently adopted as their official [cloudflare/mcp](https://github.com/cloudflare/mcp). The core insight: instead of exposing 2,500 API endpoints as individual MCP tools (~244k tokens), give the agent two tools — `search` and `execute` — and let it write JavaScript to call the API itself (~1k tokens).
This skill takes that same approach but strips out the MCP server entirely. Since Claude Code already has bash access, you can just run Node directly.
How it works
Two steps, same as the official Cloudflare MCP codemode server:
- Search — query
~/.cache/cloudflare-spec-processed.jsonwith a Node snippet to find endpoints - Execute — run a Node script against
api.cloudflare.comusing your API token
The `process-spec.js` script mirrors `cloudflare/mcp`'s `spec-processor.ts`: it resolves all `$ref` pointers inline and injects synthetic product tags, so searches work cleanly without manual schema lookups.
Setup
# 1. Set env vars
export CLOUDFLARE_API_TOKEN=your_token_here
export CLOUDFLARE_ACCOUNT_ID=your_account_id_here
# 2. Download raw spec (~9MB)
curl -s -o ~/.cache/cloudflare-spec.json \
https://raw.githubusercontent.com/cloudflare/api-schemas/main/openapi.json
# 3. Pre-process (resolves $refs, injects product tags, ~33MB output)
node process-spec.js
Install
Clone and drop the skill folder into `~/.claude/skills/`:
git clone https://github.com/Ankcorn/cloudflare-codemode-bash
cp -r cloudflare-codemode-bash ~/.claude/skills/cloudflare-api
Or in Claude Code:
/plugin install cloudflare-codemode-bash@Ankcorn
Files
SKILL.md— skill
Related Skills
Docker
---
DevOps Kubernetes
---
DevOps AWS Skills
AWS development with CDK best practices, cost optimization MCP servers, and serverless/event-driven architectu
DevOps Composio Split
Manage Split feature flags and experiments
DevOps **claude-code-router**
(25.3k ⭐) - Use Claude Code as the foundation for coding infrastructure, allowing you to decide how to interac
DevOps CLAUDE.md CI/CD Wiki
Community patterns for CLAUDE.md configuration in CI/CD pipelines.
DevOps