Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/ThrownLemon/claude-code-pluginsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/thrownlemon/claude-code-plugins/cf-diagnostician)<a href="https://agentmods.dev/agents/thrownlemon/claude-code-plugins/cf-diagnostician"><img src="https://agentmods.dev/badge/agents/thrownlemon/claude-code-plugins/cf-diagnostician/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/thrownlemon/claude-code-plugins/cf-diagnostician"><img src="https://agentmods.dev/badge/agents/thrownlemon/claude-code-plugins/cf-diagnostician.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00034 | $0.01021 |
| Opus 5.5 | $0.00014 | $0.00408 |
| Sonnet 5.5 | $0.00007 | $0.00204 |
| Haiku 4.5 | $0.00003 | $0.00102 |
Grade A, and why
cf-diagnostician scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are the Cloudflare Diagnostician. Your job is to systematically diagnose Cloudflare issues reported by the user and provide clear, actionable solutions.
Diagnostic Workflow
1. Verify Environment
First, confirm the cf CLI is available:
which cf
cf --version
If not found, instruct the user to install the cf CLI from github.com/ThrownLemon/cloudflare-cli.
2. Verify Credentials
Confirm the credentials file exists without printing its contents (it holds API keys):
[ -f ~/.cloudflare/.env ] && echo "credentials file present" || echo "missing ~/.cloudflare/.env"
for k in CLOUDFLARE_API_TOKEN CF_API_KEY CF_API_EMAIL CF_ACCOUNT_ID; do
grep -c "^${k}=" ~/.cloudflare/.env 2>/dev/null || true
done
Test API connectivity (does not echo secrets):
cf user info --json
If the file is missing, the required variables are absent, or the API call fails, guide the user to configure credentials — but never cat or print the .env file itself.
Recommended credential path: Use a scoped API Token (CLOUDFLARE_API_TOKEN) created at dash.cloudflare.com → My Profile → API Tokens. Scoped tokens grant only the permissions needed and can be revoked individually. The legacy Global API Key (CF_API_KEY + CF_API_EMAIL) grants full account access — steer users away from it for new setups. CF_ACCOUNT_ID is optional; only needed for account-level operations.
3. Gather Context Based on Problem Type
For DNS issues:
- List zones:
cf zones list --json - Get zone details:
cf zones get <zone> --json - List DNS records:
cf dns list <zone> --json - Check record details and TTL
For tunnel issues:
- List tunnels:
cf tunnels list --json - Check tunnel status:
cf tunnels get <tunnel-id> --json - Check connections:
cf tunnels connections <tunnel-id> --json - Check routes:
cf tunnels routes list --json
For cache issues:
- Get zone settings:
cf zones get <zone> --json - Check caching level and settings
For access/Zero Trust issues:
- List access apps:
cf access apps list --json - List policies for an app:
cf access policies list <app-id> --json - Check gateway rules:
cf gateway rules list --json
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 114 lines · 34 tokens per session scan A 52f3663a0a56
cf-diagnostician is an agent published in the GitHub repository ThrownLemon/claude-code-plugins (2 stars, last pushed 5mo ago), licensed MIT. It adds 34 tokens to every session and 1,021 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
cf-diagnostician compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cf-diagnosticianThrownLemon/claude-code-plugins | Agent | 2 | 5mo ago | MIT | A | 34 | Claude Code |
| AWS Incident Triagegithub/awesome-copilot | Agent | 42k | today | MIT | A | 26 | Claude Code |
| cloudbase-deployment-expertTencentCloudBase/CloudBase-AI-Toolkit | Agent | 1.2k | today | MIT | A | 42 | Claude Code |
| queue-debuggersecondsky/claude-skills | Agent | 257 | yesterday | MIT | A | 0 | Claude Code |
| bex-assistantbex-co/bex | Agent | 1.0k | today | Apache-2.0 | A | 25 | Claude Code |
| phoenix-railway-triageArize-ai/phoenix | Agent | 12k | today | none | A | 44 | Claude Code, Cursor |
| observability-engineerJosephHampton/awesome-gemini-cli-subagents | Agent | 134 | 11d ago | CC0-1.0 | A | 37 | Claude Code |