cloudflare-r2
Skill by sickn33
Manages Cloudflare R2 buckets, objects, lifecycle rules, CORS and signed URLs. It is aimed at teams that want S3-compatible object storage with low egress costs for media delivery.
Install cloudflare-r2
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/cloudflare-r2 ~/.claude/skills/cloudflare-r2Run 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/cloudflare-r2 ~/.gemini/antigravity-cli/skills/cloudflare-r2Antigravity 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 documents how to manage Cloudflare R2, an S3-compatible object storage service with zero egress fees. It covers creating and listing buckets with Wrangler, uploading, downloading, deleting and checking objects, and using the S3 API through the AWS CLI or boto3. It also describes Worker bindings, public bucket access, lifecycle rules and CORS configuration.
The source is a docs-only import, and its helper scripts and templates are not bundled. Its Worker examples fail closed: PUT and DELETE return 403, and the presigned URL signing example is disabled until authorization exists. The skill is aimed at teams storing uploads, media, backups or static assets. It asks users to confirm account, bucket and key scope before writes or lifecycle changes.
Written from the project's SKILL.md and checked against it.
What it can do
- Bucket managementCreate, list and delete R2 buckets with Wrangler, with an optional location hint.
- Object operationsUpload, download, delete and inspect object metadata with Wrangler commands.
- S3-compatible accessUse the AWS CLI or boto3 against the R2 endpoint with an R2 API token.
- Worker bindingsBind R2 buckets to Workers or Pages Functions for server-side reads.
- Public bucket accessServe objects directly through a custom domain or the r2.dev subdomain.
- Lifecycle rulesSet prefix-based rules that delete objects after a number of days.
- CORS configurationSet CORS rules on a bucket for browser-based uploads and reads.
What you need
- Cloudflare account with R2 enabled
- Wrangler CLI v3 or later
- Cloudflare API token or wrangler login
- R2 API token for S3-compatible access
Try asking
- Create an R2 bucket named app-assets in the EU location
- Set a lifecycle rule that deletes objects under tmp/ after 7 days
- Sync my ./dist folder to the static/ prefix in app-assets
Good to know
- Docs-only import; upstream helper scripts and templates are not bundled.
- Worker PUT and DELETE examples return 403 until authentication and authorization exist.
- The presigned URL signing example is disabled until caller and object authorization exist.
- Zero egress does not mean zero storage, request or infrequent-access costs.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/cloudflare-r2/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md11 KB
Alternatives to cloudflare-r2
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
cloudflare-r2: common questions
Does Cloudflare R2 charge for egress?
The source says R2 has zero egress fees. It also notes that zero egress does not mean zero storage, request or infrequent-access costs.
Can the Worker example upload or delete files?
No. The example returns 403 for PUT and DELETE until application authentication, object-level authorization and audit controls exist.
Are R2 signed URLs safe to share?
The source calls signed URLs bearer capabilities. It says to set a short expiry, return them privately with no-store, and never print or share them in logs.
How do I install cloudflare-r2?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is cloudflare-r2 free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is cloudflare-r2 safe to use?
It scores 89 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 cloudflare-r2?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
