Cloudflare Troubleshooting
Diagnoses Cloudflare redirect loops, SSL, DNS and origin errors by querying the real configuration through the Cloudflare API.
Web & APIIntermediate★ 1,323⑂ 212AI score 8/10Last updated: Aug 8, 2026
What it does
- Queries the Cloudflare API to inspect the actual configuration instead of guessing at causes.
- Resolves the zone ID from a domain, then walks through SSL/TLS mode, Always Use HTTPS, Page Rules, DNS records, firewall rules and certificate packs.
- Provides evidence-gathering playbooks for the most common failures:
ERR_TOO_MANY_REDIRECTS, SSL errors (525/526), DNS resolution problems, and origin 502/503/504. - Applies targeted fixes via PATCH, purges cache when needed, and tells you realistic wait times (30–60s edge, up to 48h DNS, manual browser cache clear).
- Teaches a repeatable pattern for exploring undocumented endpoints: GET first to learn the schema, then change with PATCH/POST.
Who it's for
- Site owners who host on Cloudflare and want to self-diagnose outages.
- Anyone hitting infinite redirects with GitHub Pages / Netlify / Vercel behind Cloudflare.
- Developers and SREs who prefer reproducible API checks over dashboard clicking.
- Teams managing many zones who want a standard SSL/DNS triage workflow.
Examples
- Redirect loop: "example.com returns ERR_TOO_MANY_REDIRECTS" → check whether SSL mode is
flexible→ switch tofull→ purge cache → retest after 60 seconds. - SSL error 526: pull certificate packs and validate the origin certificate with
openssl s_clientto show the mismatch with Full (strict) mode. - DNS not resolving: compare the Cloudflare DNS record list with
dig @8.8.8.8output to spot a missing A record or wrong proxy (orange cloud) status.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the cloudflare-troubleshooting folder from the GitHub repo daymade/claude-code-skills into my ~/.claude/skills/cloudflare-troubleshooting/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/daymade/claude-code-skills.git && mkdir -p ~/.claude/skills && cp -r claude-code-skills/cloudflare-troubleshooting ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repository:
git clone https://github.com/daymade/claude-code-skills.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy this skill in:
cp -r claude-code-skills/cloudflare-troubleshooting ~/.claude/skills/ - Install
jqif you don't have it (macOS:brew install jq; Ubuntu:sudo apt install jq). - In the Cloudflare Dashboard go to My Profile → API Tokens and create a scoped API Token for the specific zone — prefer this over the Global API Key.
- Restart Claude Code, then ask something like: "My site behind Cloudflare is stuck in a redirect loop — check the configuration."
- Always review any PATCH or cache-purge command before approving it, and never paste API keys into shared logs or chats.
View source on GitHub ↗License: MIT