Cloudflare R2
CheckedSecurely store and retrieve data in Cloudflare R2 object storage using this efficient AI agent integration.
Install on your platform
Showing Claude Code. One command installs this skill into any of the agents below.
- 1
Run this in your project
terminal$ npx skills add ovachiever/droid-tings --skill cloudflare-r2 -a claude-code Uses the open-source
skillsCLI and needs Node.js. Add-gto install it for your user instead of this project.
What we know about this skill
Publisher
ovachiever
Taken from the source listing. We haven't verified who controls this account.
Install target
Live repository
Not pinned. Installing fetches whatever the repository holds at the time you run the command.
Automated safety checks
This skill passed all 6 checks. We read its files at one commit and looked for the things that make a skill dangerous to run — not for whether it works.
Declares what it does: passed
SKILL.md parses and declares a name and a description.
SKILL.md exists, its frontmatter parses, and it declares a name and a description.
No undeclared network calls: passed
Makes no network calls.
Every host the skill dials — from its scripts, its config endpoints or the commands it tells the agent to run — is either well-known package and API infrastructure or declared in its own frontmatter. Links in documentation are not counted.
No obfuscated payloads: passed
No encoded or obfuscated payloads.
No base64, hex or compressed blob is decoded and then executed, and no encoded shell commands.
No credential access: passed
Reads no keys, tokens, keychains or credential files.
Neither the code nor the SKILL.md instructions read SSH keys, cloud credentials, keychains, token stores, browser cookie databases or dotfiles that hold secrets.
No pipe-to-shell installers: passed
No pipe-to-shell or download-and-run installers.
No `curl … | sh` pattern, in the code or in the instructions, that runs code fetched at run time.
Pinned to a commit: passed
Scanned ovachiever/droid-tings at 7acd12a754.
The exact upstream commit SHA that was scanned is recorded, so the result refers to specific bytes.
- Commit
- 7acd12a754
- Manifest
- skills/cloudflare-r2/SKILL.md
- Scanned
- 10 files, 3,380 lines
About this skill
What it does
This skill enables AI agents to securely store and retrieve data in Cloudflare R2 object storage. It provides functionality for uploading files to, and downloading files from, an R2 bucket using a worker environment. The integration leverages Wrangler CLI and the Cloudflare dashboard for initial setup and deployment of workers that interact with R2.
When to use it
- Storing user-generated content like images or videos.
- Serving static assets (e.g., website files, media) directly from object storage.
- Backing up data securely within the Cloudflare network.
- Creating a development/production separation using preview buckets for testing uploads.
- Building custom APIs that require file upload and download capabilities.
Key capabilities
- Bucket Creation: Ability to create R2 buckets via Wrangler CLI or the Cloudflare dashboard.
- File Uploading: Securely uploads files to specified R2 buckets, including setting content type metadata.
- File Downloading: Retrieves files from R2 buckets and serves them with appropriate headers (Content-Type, ETag, Cache-Control).
- Environment Binding: Uses environment variables (
MY_BUCKET) within a Cloudflare Worker to access the R2 bucket.
Example prompts
- "Upload this file named 'report.pdf' to my R2 bucket."
- "Download the file 'image.jpg' from my R2 bucket and serve it."
- “Create an R2 bucket named ‘my-data’ if one doesn’t already exist.”
Tips & gotchas
- Dependencies: Requires
cloudflare-worker-basefor Worker setup, as well as specific versions of Wrangler,@cloudflare/workers-types, and aws4fetch. - Bucket Naming Rules: R2 bucket names must adhere to strict naming conventions: 3-63 characters, lowercase letters, numbers, or hyphens only, starting/ending with a letter or number, and globally unique within your Cloudflare account.
- Binding vs. Bucket Name: Pay close attention to the distinction between the R2 binding (used in code as
env.MY_BUCKET) and the actual bucket name configured in Wrangler.