Claude Skill MartBrowse skillsWhat is a Skill?
Back to list

Cloudflare Troubleshooting

Diagnoses Cloudflare redirect loops, SSL, DNS and origin errors by querying the real configuration through the Cloudflare API.

Web & APIIntermediate1,323212AI 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

  1. Redirect loop: "example.com returns ERR_TOO_MANY_REDIRECTS" → check whether SSL mode is flexible → switch to full → purge cache → retest after 60 seconds.
  2. SSL error 526: pull certificate packs and validate the origin certificate with openssl s_client to show the mismatch with Full (strict) mode.
  3. DNS not resolving: compare the Cloudflare DNS record list with dig @8.8.8.8 output to spot a missing A record or wrong proxy (orange cloud) status.

· · · Install guide · · ·

Install in the Claude app (no terminal)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download 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.

  1. Open a terminal.
  2. Clone the repository: git clone https://github.com/daymade/claude-code-skills.git
  3. Create the skills folder: mkdir -p ~/.claude/skills
  4. Copy this skill in: cp -r claude-code-skills/cloudflare-troubleshooting ~/.claude/skills/
  5. Install jq if you don't have it (macOS: brew install jq; Ubuntu: sudo apt install jq).
  6. 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.
  7. Restart Claude Code, then ask something like: "My site behind Cloudflare is stuck in a redirect loop — check the configuration."
  8. Always review any PATCH or cache-purge command before approving it, and never paste API keys into shared logs or chats.