cf-r2

Generate Cloudflare R2 bucket configurations with S3 compatibility and lifecycle rules.

1|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/sitharaj88/claude-skills --skill cf-r2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cf-r2
Source: https://github.com/sitharaj88/claude-skills/tree/main/skills/cf-r2
Command: npx skills add https://github.com/sitharaj88/claude-skills --skill cf-r2

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the creation and management of Cloudflare R2 object storage configurations, enabling efficient and cost-effective storage and retrieval of data with S3 compatibility and zero egress fees.

Core Features & Use Cases

  • R2 Bucket Creation & Configuration: Automate the setup of R2 buckets with S3 compatibility, lifecycle rules, and access controls.
  • Worker Bindings & S3 API Integration: Generate code for integrating R2 with Cloudflare Workers or using standard S3 SDKs.
  • Public Access & Custom Domains: Configure public access through r2.dev or custom domains for serving assets.
  • Use Case: You need to store user-uploaded images for a web application. This Skill helps you set up a Cloudflare R2 bucket, configure it for public access via a custom domain, and provides example Worker code to handle uploads and downloads efficiently.

Quick Start

Use the cf-r2 skill to generate a Cloudflare R2 bucket configuration for storing user media files with S3 compatibility.

Frequently Asked Questions about cf-r2

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

FAQPage Schema
How do I configure Cloudflare R2 object storage with S3 compatibility?

To configure Cloudflare R2 object storage, generate bucket configurations with S3 API compatibility, lifecycle management rules, and access controls for cost-effective, scalable data retrieval with zero egress fees.

Can I use Cloudflare Workers bindings to access R2 buckets?

Yes, Cloudflare Workers bindings can access R2 buckets. Generate integration code to handle uploads, downloads, and data processing pipelines directly within Workers, leveraging zero egress fees for efficient data handling.

What's the best way to serve media files from Cloudflare R2 using a custom domain?

The best way to serve media files from Cloudflare R2 is by configuring public access through r2.dev or custom domains. This setup allows direct asset serving while maintaining S3 API compatibility for backend operations.

Does Cloudflare R2 support lifecycle management for object storage?

Yes, Cloudflare R2 supports lifecycle management for object storage. You can automate bucket setups with lifecycle rules to manage data retention, transition objects, and control storage costs effectively.

How do I set up event notifications for Cloudflare R2 data processing pipelines?

To set up event notifications for Cloudflare R2 data processing pipelines, configure bucket options that trigger workflows on object changes. This supports automated downstream processing and integration with Workers.