cdn-setup
Skill by sickn33
Configure CloudFront and Cloudflare CDNs for global content delivery. The skill gives CLI, Terraform and origin cache header examples for DevOps engineers who want faster, cheaper asset delivery.
Install cdn-setup
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/cdn-setup ~/.claude/skills/cdn-setupRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/cdn-setup ~/.gemini/antigravity-cli/skills/cdn-setupAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a set of written guides for setting up content delivery networks. It covers creating an AWS CloudFront distribution with an S3 origin through the CLI, adding a CloudFront Terraform configuration, and writing CloudFront Functions for edge logic. It also covers Cloudflare zone setup, cache rules that replace page rules, and cache purging by URL, prefix or everything. Origin cache headers for nginx and a Cache-Control reference are included, along with cache warming, monitoring commands and a troubleshooting table.
The source says it is docs-only, with helper scripts and templates not bundled. Its examples use placeholders and create billable resources, so the guide asks users to confirm the account, distribution and rollback plan first. It is aimed at DevOps and platform engineers who serve static assets, offload origin traffic or add TLS and DDoS protection at the edge.
Written from the project's SKILL.md and checked against it.
What it can do
- CloudFront distributionCreate an S3-origin CloudFront distribution with OAC via the AWS CLI.
- CloudFront TerraformPartial Terraform configuration for a CloudFront distribution with an SPA fallback and API pass-through.
- CloudFront FunctionsEdge function that adds index.html to directory requests.
- CloudFront invalidationCreate, check and list cache invalidations for specific paths or everything.
- Cloudflare zone setupAdd a Cloudflare zone and look up its zone ID through the API.
- Cloudflare cache rulesCreate a cache rule that caches static asset extensions with set TTLs.
- Cloudflare cache purgePurge everything, specific URLs or URL prefixes through the Cloudflare API.
- Origin cache headersnginx examples and a Cache-Control cheat sheet for hashed assets, HTML and APIs.
- Cache warming and monitoringScript to warm critical URLs and commands to check cache status headers and hit ratio.
- Troubleshooting guideTable of common CDN symptoms such as DYNAMIC status, low hit ratio and CORS errors.
What you need
- AWS CLI configured for CloudFront
- Cloudflare account with a configured zone
- Terraform 1.5 or later
- Domain with DNS management access
- Origin server or S3/R2 bucket with content
Try asking
- Set up a CloudFront distribution for my S3 bucket with OAC and HTTPS.
- Write a Cloudflare cache rule for CSS, JS and image files.
- Purge the Cloudflare cache for these URLs after my deploy.
Good to know
- Docs-only: helper scripts and templates are not bundled.
- Examples create billable resources and use placeholder values.
- The description names Fastly, but the body has no Fastly section.
- Terraform example is partial and needs a bucket, certificate and API origin supplied.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/cdn-setup/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md12 KB
Alternatives to cdn-setup
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
cdn-setup: common questions
Does this skill cover Fastly?
The description names Fastly, but the source body only includes CloudFront and Cloudflare sections.
Is this skill safe to run without review?
The source says to confirm the zone, distribution, account and rollback before provisioning, DNS changes or purges. It also says to avoid caching authenticated or sensitive routes.
What license does this skill use?
The source lists the MIT license and links to the license file in the BagelHole DevOps-Security-Agent-Skills repository.
How do I install cdn-setup?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is cdn-setup free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is cdn-setup safe to use?
It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to cdn-setup?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
