Cloudflare R2
sickn33/agentic-awesome-skills
Manage Cloudflare R2 buckets, lifecycle, and signed URLs. An agent skill from sickn33/agentic-awesome-skills.
Guide for implementing Cloudflare R2 - S3-compatible object storage with zero egress fees.
$ npx skills add einverne/dotfiles --skill cloudflare-r2 -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install einverne/dotfiles cloudflare-r2 --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/einverne/dotfiles.git skills-src && mkdir -p .claude/skills && cp -r skills-src/claude/skills/cloudflare-r2 .claude/skills/cloudflare-r2 && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "cloudflare-r2" agent skill from https://github.com/einverne/dotfiles/tree/master/claude/skills/cloudflare-r2 into .claude/skills/cloudflare-r2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cloudflare-r2", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/einverne/dotfiles/tree/master/claude/skills/cloudflare-r2Type this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add einverne/dotfiles --skill cloudflare-r2 -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install einverne/dotfiles cloudflare-r2 --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/einverne/dotfiles.git skills-src && mkdir -p .agents/skills && cp -r skills-src/claude/skills/cloudflare-r2 .agents/skills/cloudflare-r2 && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "cloudflare-r2" agent skill from https://github.com/einverne/dotfiles/tree/master/claude/skills/cloudflare-r2 into .agents/skills/cloudflare-r2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cloudflare-r2", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add einverne/dotfiles --skill cloudflare-r2 -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install einverne/dotfiles cloudflare-r2 --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/einverne/dotfiles.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/claude/skills/cloudflare-r2 .cursor/skills/cloudflare-r2 && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "cloudflare-r2" agent skill from https://github.com/einverne/dotfiles/tree/master/claude/skills/cloudflare-r2 into .cursor/skills/cloudflare-r2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cloudflare-r2", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/einverne/dotfiles.git --path claude/skills/cloudflare-r2--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add einverne/dotfiles --skill cloudflare-r2 -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install einverne/dotfiles cloudflare-r2 --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/einverne/dotfiles.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/claude/skills/cloudflare-r2 .gemini/skills/cloudflare-r2 && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "cloudflare-r2" agent skill from https://github.com/einverne/dotfiles/tree/master/claude/skills/cloudflare-r2 into .gemini/skills/cloudflare-r2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cloudflare-r2", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install einverne/dotfiles cloudflare-r2Installs for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add einverne/dotfiles --skill cloudflare-r2 -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/einverne/dotfiles.git skills-src && mkdir -p .github/skills && cp -r skills-src/claude/skills/cloudflare-r2 .github/skills/cloudflare-r2 && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "cloudflare-r2" agent skill from https://github.com/einverne/dotfiles/tree/master/claude/skills/cloudflare-r2 into .github/skills/cloudflare-r2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cloudflare-r2", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add einverne/dotfiles --skill cloudflare-r2 -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install einverne/dotfiles cloudflare-r2 --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/einverne/dotfiles.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/claude/skills/cloudflare-r2 .opencode/skills/cloudflare-r2 && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "cloudflare-r2" agent skill from https://github.com/einverne/dotfiles/tree/master/claude/skills/cloudflare-r2 into .opencode/skills/cloudflare-r2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cloudflare-r2", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
cloudflare-r2Guide for implementing Cloudflare R2 - S3-compatible object storage with zero egress fees.
Cloudflare R2 is an agent skill from einverne/dotfiles. Guide for implementing Cloudflare R2 - S3-compatible object storage with zero egress fees. Use when implementing file storage, uploads/downloads, data migration to/from R2, configuring buckets, integrating with Workers, or working with R2 APIs and SDKs.
Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/api-reference.md`, `references/pricing-guide.md` and `references/sdk-examples.md`).
It sits in Backend & APIs, covering File uploads and storage. It works with Cloudflare R2, Amazon Web Services, Cloudflare Workers and Cloudflare. The repository describes itself as: my personal dotfiles managed by dotbot, zinit. The licence is GPL-3.0.
3 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit c6c0686. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
wranglerawsnpmFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
developers.cloudflare.comFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
R2_ACCESS_KEY_IDR2_SECRET_ACCESS_KEYAWS_KEYAWS_SECRETFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Cloudflare R2 loads about 2.8k tokens when it runs, and up to ~20k if it reads all its reference files. Until then it costs about 67 tokens; SKILL.md has 736 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from einverne/dotfiles at commit c6c0686, republished under its GPL-3.0 licence (© einverne). 736 words, ~2,836 tokens.
.claude/skills/cloudflare-r2/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.S3-compatible object storage with zero egress bandwidth fees. Built on Cloudflare's global network for high durability (11 nines) and strong consistency.
Required:
For API access:
For Wrangler CLI:
npm install -g wrangler
wrangler loginWrangler:
wrangler r2 bucket create my-bucketWith location hint:
wrangler r2 bucket create my-bucket --location=wnamLocations: wnam (West NA), enam (East NA), weur (West EU), eeur (East EU), apac (Asia Pacific)
Wrangler:
wrangler r2 object put my-bucket/file.txt --file=./local-file.txtWorkers API:
await env.MY_BUCKET.put('file.txt', fileContents, {
httpMetadata: {
contentType: 'text/plain',
},
});Wrangler:
wrangler r2 object get my-bucket/file.txt --file=./downloaded.txtWorkers API:
const object = await env.MY_BUCKET.get('file.txt');
const contents = await object.text();wrangler.toml:
[[r2_buckets]]
binding = "MY_BUCKET"
bucket_name = "my-bucket"
preview_bucket_name = "my-bucket-preview"Upload with metadata:
await env.MY_BUCKET.put('user-uploads/photo.jpg', imageData, {
httpMetadata: {
contentType: 'image/jpeg',
cacheControl: 'public, max-age=31536000',
},
customMetadata: {
uploadedBy: userId,
uploadDate: new Date().toISOString(),
},
});Download with streaming:
const object = await env.MY_BUCKET.get('large-file.mp4');
if (object === null) {
return new Response('Not found', { status: 404 });
}
return new Response(object.body, {
headers: {
'Content-Type': object.httpMetadata.contentType,
'ETag': object.etag,
},
});List objects:
const listed = await env.MY_BUCKET.list({
prefix: 'user-uploads/',
limit: 100,
});
for (const object of listed.objects) {
console.log(object.key, object.size);
}Delete object:
await env.MY_BUCKET.delete('old-file.txt');Check if object exists:
const object = await env.MY_BUCKET.head('file.txt');
if (object) {
console.log('Exists:', object.size, 'bytes');
}Configure:
aws configure
# Access Key ID: <your-key-id>
# Secret Access Key: <your-secret>
# Region: autoOperations:
# List buckets
aws s3api list-buckets --endpoint-url https://<accountid>.r2.cloudflarestorage.com
# Upload file
aws s3 cp file.txt s3://my-bucket/ --endpoint-url https://<accountid>.r2.cloudflarestorage.com
# Generate presigned URL (expires in 1 hour)
aws s3 presign s3://my-bucket/file.txt --endpoint-url https://<accountid>.r2.cloudflarestorage.com --expires-in 3600import { S3Client, PutObjectCommand } from "@aws-sdk/client-s3";
const s3 = new S3Client({
region: "auto",
endpoint: `https://${accountId}.r2.cloudflarestorage.com`,
credentials: {
accessKeyId: process.env.R2_ACCESS_KEY_ID,
secretAccessKey: process.env.R2_SECRET_ACCESS_KEY,
},
});
await s3.send(new PutObjectCommand({
Bucket: "my-bucket",
Key: "file.txt",
Body: fileContents,
}));import boto3
s3 = boto3.client(
service_name="s3",
endpoint_url=f'https://{account_id}.r2.cloudflarestorage.com',
aws_access_key_id=access_key_id,
aws_secret_access_key=secret_access_key,
region_name="auto",
)
# Upload file
s3.upload_fileobj(file_obj, 'my-bucket', 'file.txt')
# Download file
s3.download_file('my-bucket', 'file.txt', './local-file.txt')Configure:
rclone config
# Select: Amazon S3 → Cloudflare R2
# Enter credentials and endpointUpload with multipart optimization:
# For large files (>100MB)
rclone copy large-video.mp4 r2:my-bucket/ \
--s3-upload-cutoff=100M \
--s3-chunk-size=100MWrangler:
wrangler r2 bucket create my-public-bucket
# Then enable in dashboard: R2 → Bucket → Settings → Public Accessr2.dev (development only, rate-limited):
https://pub-<hash>.r2.dev/file.txtCustom domain (recommended for production):
Required for:
Wrangler:
wrangler r2 bucket cors put my-bucket --rules '[
{
"AllowedOrigins": ["https://example.com"],
"AllowedMethods": ["GET", "PUT", "POST"],
"AllowedHeaders": ["*"],
"ExposeHeaders": ["ETag"],
"MaxAgeSeconds": 3600
}
]'Important: Origins must match exactly (no trailing slash).
For files >100MB or parallel uploads:
Workers API:
const multipart = await env.MY_BUCKET.createMultipartUpload('large-file.mp4');
// Upload parts (5MiB - 5GiB each, max 10,000 parts)
const part1 = await multipart.uploadPart(1, chunk1);
const part2 = await multipart.uploadPart(2, chunk2);
// Complete upload
const object = await multipart.complete([part1, part2]);Constraints:
Best for: Gradual migration, avoiding upfront egress fees
# Enable for bucket
wrangler r2 bucket sippy enable my-bucket \
--provider=aws \
--bucket=source-bucket \
--region=us-east-1 \
--access-key-id=$AWS_KEY \
--secret-access-key=$AWS_SECRETObjects migrate when first requested. Subsequent requests served from R2.
Best for: Complete migration, known object list
Auto-delete or transition storage classes:
Wrangler:
wrangler r2 bucket lifecycle put my-bucket --rules '[
{
"action": {"type": "AbortIncompleteMultipartUpload"},
"filter": {},
"abortIncompleteMultipartUploadDays": 7
},
{
"action": {"type": "Transition", "storageClass": "InfrequentAccess"},
"filter": {"prefix": "archives/"},
"daysFromCreation": 90
}
]'Trigger Workers on bucket events:
Wrangler:
wrangler r2 bucket notification create my-bucket \
--queue=my-queue \
--event-type=object-createSupported events:
object-create - new uploadsobject-delete - deletionsMessage format:
{
"account": "account-id",
"bucket": "my-bucket",
"object": {"key": "file.txt", "size": 1024, "etag": "..."},
"action": "PutObject",
"eventTime": "2024-01-15T12:00:00Z"
}401 Unauthorized:
403 Forbidden:
404 Not Found:
Presigned URLs not working:
Multipart upload failures:
For detailed documentation, see:
references/api-reference.md - Complete API endpoint documentationreferences/sdk-examples.md - SDK examples for all languagesreferences/workers-patterns.md - Advanced Workers integration patternsreferences/pricing-guide.md - Detailed pricing and cost optimization© einverne, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 4 other files (references) in claude/skills/cloudflare-r2 of einverne/dotfiles.
Open the folder on GitHubat commit c6c0686
Cloudflare R2 next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Cloudflare R2 this skilleinverne/dotfiles | 121 | — | ~2.8k | Automated safety check: Pass | GPL-3.0 | |
| Cloudflare R2sickn33/agentic-awesome-skills | 47k | 2 repos | ~2.5k | Automated safety check: Pass | MIT | |
| Neon Object Storageneondatabase/agent-skills | 100 | — | ~3.5k | Automated safety check: Notes | Apache-2.0 | |
| Olore Opennext Latestolorehq/olore | 104 | — | ~825 | Automated safety check: Pass | MIT | |
| Basincloudflare/skills | 3k | 1 repos | ~684 | Automated safety check: Pass | Apache-2.0 | |
| Vercel Migration Deep Divejeremylongshore/tons-of-skills-marketplace | 2.8k | — | ~2k | Automated safety check: Notes | MIT |
sickn33/agentic-awesome-skills
Manage Cloudflare R2 buckets, lifecycle, and signed URLs. An agent skill from sickn33/agentic-awesome-skills.
neondatabase/agent-skills
S3-compatible object storage that branches with your Neon project, so files and the database stay in sync across every branch.
olorehq/olore
Local opennext documentation reference (latest). An agent skill from olorehq/olore.
cloudflare/skills
Build and troubleshoot Cloudflare Basin analytics workflows with Basin Pipelines, Basin Catalog, and Basin SQL.
jeremylongshore/tons-of-skills-marketplace
Migrate to Vercel from other platforms or re-architecture existing Vercel deployments.
sundial-org/awesome-openclaw-skills
Manage Cloudflare Workers, KV, D1, R2, and secrets using the Wrangler CLI.
einverne/dotfiles
Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction.
einverne/dotfiles
Browser automation, debugging, and performance analysis using Puppeteer CLI scripts.
einverne/dotfiles
Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms.
einverne/dotfiles
Guide for implementing Google Gemini API audio capabilities - analyze audio with transcription, summarization, and understanding (up to 9.5 hours), plus generate speech with controllable TTS.
einverne/dotfiles
Guide for implementing Google Gemini API document processing - analyze PDFs with native vision to extract text, images, diagrams, charts, and tables.
einverne/dotfiles
Presentation creation, editing, and analysis. An agent skill from einverne/dotfiles.
Categories
Guide for implementing Cloudflare R2 - S3-compatible object storage with zero egress fees. Cloudflare R2 is an agent skill from einverne/dotfiles. Guide for implementing Cloudflare R2 - S3-compatible object storage with zero egress fees.
Cloudflare R2 fits situations like: implementing file storage; uploads/downloads; data migration to/from R2; configuring buckets.
Run `npx skills add einverne/dotfiles --skill cloudflare-r2 -a claude-code`. Or copy the skill folder (claude/skills/cloudflare-r2 in einverne/dotfiles) into .claude/skills/cloudflare-r2 in your project. Claude Code loads it when a task matches its description.
Run `npx skills add einverne/dotfiles --skill cloudflare-r2 -a codex`. Or copy the skill folder (claude/skills/cloudflare-r2 in einverne/dotfiles) into .agents/skills/cloudflare-r2 in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add einverne/dotfiles --skill cloudflare-r2 -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cloudflare-r2, .gemini/skills/cloudflare-r2, .github/skills/cloudflare-r2 and .opencode/skills/cloudflare-r2 in your project.
Going by SKILL.md and its folder, Cloudflare R2 needs the command-line tools its instructions call (wrangler, aws and npm) and credentials named R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY, AWS_KEY and AWS_SECRET. Our summary lists: Python 3; Node.js; A credential in R2_SECRET_ACCESS_KEY; A credential in AWS_KEY.
SKILL.md names 1 domain. As links in the text: developers.cloudflare.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Cloudflare R2 is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 17k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Cloudflare R2: Cloudflare R2 (sickn33/agentic-awesome-skills, 47k stars), Neon Object Storage (neondatabase/agent-skills, 100 stars), Olore Opennext Latest (olorehq/olore, 104 stars) and Basin (cloudflare/skills, 3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
einverne (a GitHub user) maintains it in einverne/dotfiles, which has 121 GitHub stars. The repository holds 39 skills in this directory. The repository was last updated on September 9, 2026.
Source: einverne/dotfiles on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.