Engineering
cloudflare avatar

cloudflare

Manages Cloudflare zones via API. Use for purging cache, querying DNS records, and monitoring analytics via GraphQL.

Introduction

The Cloudflare skill provides a streamlined interface for interacting with the Cloudflare API directly from your terminal within Claude Code. It is designed for developers, DevOps engineers, and system administrators who need to perform common administrative tasks on Cloudflare-managed domains without switching contexts to the web dashboard. By leveraging the power of command-line tools like curl and jq, this skill ensures that infrastructure management remains integrated into your existing coding workflow.

  • Perform granular cache purges for specific URLs or file paths.

  • Retrieve and list detailed DNS records for any configured zone.

  • Query complex traffic and performance data using the Cloudflare GraphQL Analytics API.

  • List all available zones associated with your API token.

  • Output structured JSON data formatted for readability via jq.

  • Before executing operations, ensure your environment variable CLOUDFLARE_API_TOKEN is set with the necessary Zone:Read and Cache Purge permissions.

  • The skill automatically handles API authentication using the bearer token flow.

  • Always lookup the zone ID first if you are performing domain-specific tasks, as some operations require the unique zone identifier.

  • When querying analytics, adapt the GraphQL query templates provided for specific datasets, ensuring the date_geq parameter is updated to reflect the desired time window.

  • Output is designed to be concise; the skill prefers summaries over raw data dumps to keep your chat interface clean and actionable.

  • Integration with bash allows you to script or pipe results into other local utilities for advanced automation or logging purposes.

Repository Stats

Stars
1
Forks
0
Open Issues
1
Language
Shell
Default Branch
main
Sync Status
Idle
Last Synced
May 3, 2026, 06:38 PM
View on GitHub