cloudflare-r2

Manage Cloudflare R2 buckets, S3-compatible APIs, presigned URLs, and multipart uploads.

22|1|Updated Jan 10, 2026
One-click install
npx skills add https://github.com/itechmeat/llm-code --skill cloudflare-r2-itechmeat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-r2
Source: https://github.com/itechmeat/llm-code/tree/main/skills/cloudflare-r2
Command: npx skills add https://github.com/itechmeat/llm-code --skill cloudflare-r2-itechmeat

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a structured playbook to help developers design, implement, and operate Cloudflare R2 object storage workflows with clear guidance and reusable patterns.

Core Features & Use Cases

  • R2 bucket creation and binding configuration with Wrangler for smooth integration with Workers and Pages.
  • S3-compatible API usage and interoperability for easy migration from other storage platforms.
  • Presigned URLs, multipart uploads, CORS, and lifecycle automation to support secure, scalable file handling and automation.
  • Event-driven workflows and data migration guidance to enable reactive data pipelines and smooth transitions.

Quick Start

Create an R2 bucket named my-bucket, configure the Wrangler binding, and list objects using the R2 API.

Frequently Asked Questions about cloudflare-r2

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

FAQPage Schema
How do I configure Cloudflare R2 bindings with Wrangler for Workers?

Configure Cloudflare R2 bindings in Wrangler to connect buckets to Workers. You create an R2 bucket, add the binding configuration to your Wrangler setup, and use the R2 API to list and manage objects directly within your application.

Can I use the S3-compatible API to migrate objects to Cloudflare R2?

Yes, the S3-compatible API enables migration to Cloudflare R2. You can use existing S3 SDKs and tools to transfer objects, ensuring interoperability and a smooth transition from other storage platforms without rewriting application logic.

What's the best way to handle large file uploads to Cloudflare R2?

Handle large file uploads to Cloudflare R2 using multipart uploads and presigned URLs. This approach supports secure, scalable file handling by splitting data into manageable chunks and granting temporary client-side access.

When do I need lifecycle policies and CORS for Cloudflare R2 buckets?

Configure lifecycle policies and CORS for Cloudflare R2 buckets to automate object expiration and manage cross-origin access. These features are essential for controlling storage costs and enabling secure browser-based uploads.

Does Cloudflare R2 support event notifications for reactive data pipelines?

Yes, Cloudflare R2 supports event notifications for reactive data pipelines. You can configure event-driven workflows that trigger automated actions whenever objects are created or modified, enabling responsive backend processing.

What are the limitations of using Cloudflare R2 with Pages compared to Workers?

Using Cloudflare R2 with Pages versus Workers involves different binding contexts for object storage access. While both support Wrangler integration, Workers provide direct runtime API access, whereas Pages may require specific configuration for static asset and data handling.