cloudflare-r2

Store objects in Cloudflare R2 using the Workers API.

961|99|Updated Oct 20, 2025
One-click install
npx skills add https://github.com/jezweb/claude-skills --skill cloudflare-r2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-r2
Source: https://github.com/jezweb/claude-skills/tree/main/skills/cloudflare-r2
Command: npx skills add https://github.com/jezweb/claude-skills --skill cloudflare-r2

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires aws4fetch, and includes references (resource) components.

What problem does it solve?

This Skill eliminates the complexity of managing cloud storage infrastructure, automatically handling file uploads, downloads, CORS configuration, and large file processing.

Core Features & Use Cases

  • Direct Client Uploads: Generate secure presigned URLs for browser-based file uploads.
  • Large File Handling: Process files over 100MB with automatic multipart uploads.
  • Use Case: Imagine you're building a user profile system. Use this Skill to automatically handle profile picture uploads, generate thumbnails, and serve images globally from Cloudflare's edge network.

Quick Start

Use the cloudflare-r2 skill to create a presigned URL for uploading user profile images that expires in 1 hour.

Frequently Asked Questions about cloudflare-r2

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate presigned URLs for secure file uploads to object storage?

Presigned URLs allow browser-based uploads without exposing access keys. This Skill generates time-limited presigned URLs for R2 object storage, enabling users to upload files directly from the client side while maintaining security through server-side signing.

Can I handle large file uploads over 100MB with automatic multipart uploads?

Yes, this Skill automates multipart upload workflows for large files, breaking them into chunks and managing the upload process. This approach improves reliability and performance for files exceeding 100MB on edge networks.

How do I upload and download files using Cloudflare Workers with R2?

This Skill implements the Workers API with put, get, head, delete, and list operations for R2 object storage. You can upload, download, and manage files directly from Cloudflare Workers edge functions while applying CORS configuration and metadata handling.

What's the best way to serve images globally from edge storage?

R2 edge-optimized object storage combined with Cloudflare Workers enables global image delivery. This Skill configures CORS, generates presigned URLs for uploads, and optimizes performance through caching and range requests across the edge network.

Do I need to expose my access keys when handling client file uploads?

No, this Skill enforces security best practices by implementing server-side signing for presigned URLs, ensuring access keys remain private. The client receives time-limited credentials without direct key exposure.

How do I configure CORS and custom metadata for objects in R2?

This Skill manages both HTTP and custom metadata for R2 objects, including CORS configuration. It implements proper error handling and metadata application during upload, download, and object management operations.