r2-storage
r2-storage provides S3-compatible object storage through Cloudflare R2, enabling you to upload, download, and manage files, images, videos, and structured data. The skill includes patterns for multipart uploads, conditional operations, custom metadata, range requests, and AWS SDK integration.
r2-storage lets you store and retrieve files, images, and large data using Cloudflare's S3-compatible object storage.
AI-generated summary based on this skill's SKILL.md
Decision gist · record as of 2026-01-18
r2-storage lets you store and retrieve files, images, and large data using Cloudflare's S3-compatible object storage. r2-storage provides S3-compatible object storage through Cloudflare R2, enabling you to upload, download, and manage files, images, videos, and structured data. The skill includes patterns for multipart uploads, conditional operations, custom metadata, range requests, and AWS SDK integration.
Use it when
- r2-storage supports presigned URLs for secure, direct file uploads without exposing your credentials.
- Yes.
Verify before relying
Read SKILL.md below before installing (5 files). Open directory: indexed for reading, not audited.
Install
null-shot/cloudflare-skills/r2-storage · repository language: TypeScript
Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.
Frequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What is r2-storage and how does it work?
r2-storage provides S3-compatible object storage through Cloudflare R2, enabling you to upload, download, and manage files, images, videos, and structured data. The skill includes patterns for multipart uploads, conditional operations, custom metadata, range requests, and AWS SDK integration.
How do I upload files to r2 using presigned URLs?
r2-storage supports presigned URLs for secure, direct file uploads without exposing your credentials. You can generate time-limited URLs that allow clients to upload files directly to R2 buckets. The skill also handles multipart transfers for large files, enabling efficient resumable uploads and reducing bandwidth overhead.
Can I migrate my existing S3 workflows to r2?
Yes. r2-storage is designed for seamless migration from S3 to Cloudflare R2 with AWS SDK compatibility. Your existing S3 code can work with R2 by changing the endpoint configuration, making it straightforward to adopt R2 without rewriting application logic.
What file types and data can r2-storage handle?
r2-storage handles files, images, videos, documents, and large structured data at scale. It supports object metadata management, conditional operations using ETags, and range requests for efficient partial-file retrieval. You can also host static assets and maintain backup archives in R2 buckets.
How does r2-storage manage object metadata and conditional operations?
r2-storage enables efficient metadata storage and conditional operations using ETags and other HTTP headers. You can set custom metadata on objects, perform conditional reads and writes based on object state, and use range requests to retrieve specific byte ranges without downloading entire files.
Can I use r2-storage with Cloudflare Workers?
Yes. r2-storage integrates with Cloudflare Workers, allowing you to store and retrieve files directly from your worker code. This enables dynamic file handling, direct client uploads, and seamless asset hosting within your worker applications.
SKILL.md
Rendered from the published skill. Quoted content, verbatim.
R2 Object Storage
Store and retrieve objects at scale using Cloudflare's S3-compatible object storage.
When to Use
- File uploads (images, videos, documents)
- AI assets and model artifacts
- Image and media asset storage
- Structured data (JSON, CSV, logs)
- User-facing uploads and downloads
- Static asset hosting
- Backup and archival storage
- S3-compatible workflows with existing tools
FIRST: Create R2 Bucket
# Create bucket
wrangler r2 bucket create my-bucket
# Create with location hint
wrangler r2 bucket create my-bucket --location wnam
# List buckets
wrangler r2 bucket list
Quick Reference
| Operation | API |
|---|---|
| Upload object | await bucket.put(key, data, { httpMetadata }) |
| Download object | const obj = await bucket.get(key); const data = await obj.text() |
| Delete object | await bucket.delete(key) |
| List objects | `const |
(truncated - see the full file via the links below)
File tree — 5 files
r2-storage/SKILL.md
r2-storage/references/limits.md
r2-storage/references/operations.md
r2-storage/references/s3-compat.md
r2-storage/references/testing.md
Let your AI agent find skills like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.
wish › “Store and retrieve files, images, and large data using S3-compatible object storage”
Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →
Related skills
This skill covers provisioning and operating Cloudflare R2 buckets via Wrangler CLI, AWS CLI, and boto3, plus binding R2 to Workers for server-side access. Learn lifecycle configuration, presigned URL generation, public bucket serving, and CORS setup to eliminate egress costs for read-heavy workloads and media delivery.
Cloudflare R2 provides production-ready patterns for S3-compatible object storage within Workers. Configure buckets and bindings, then use core APIs like put(), get(), delete(), and list() to manage files, with built-in support for multipart uploads, presigned URLs, CORS, and metadata handling.
r2-upload is a TypeScript MCP skill for uploading files to Cloudflare R2, AWS S3, or any S3-compatible storage service. It automatically generates secure, time-limited presigned URLs for downloads with customizable expiration—defaulting to 5 minutes—and supports multiple bucket configurations with automatic content-type detection.
pinme-r2 handles secure file uploads and downloads to your project's R2 bucket with automatic authentication and authorization. It provides streaming handlers for uploads, downloads with Range support, and metadata operations—all while keeping object keys server-controlled and enforcing size and media-type policies.
This skill covers development patterns and architectural guidance for Cloudflare's edge platform, including Workers for compute, Pages for frontend hosting, KV for caching, D1 for databases, R2 for object storage, and Durable Objects for stateful coordination. Learn optimization techniques, security practices, and configuration strategies to build performant serverless applications at the edge.
This skill streamlines deploying Hono web applications to Cloudflare Workers, handling wrangler configuration, environment bindings, and worker setup automatically. It bridges the gap between local Hono development and Cloudflare's serverless platform, enabling rapid iteration and production-ready deployments without manual configuration overhead.
More skills vectorize (Apache-2.0) · querying-aws-s3 (Apache-2.0)