handler-storage-r2

Manage Cloudflare R2 file storage via AWS CLI endpoint.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/fractary/claude-plugins --skill handler-storage-r2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: handler-storage-r2
Source: https://github.com/fractary/claude-plugins/tree/main/plugins/file/skills/handler-storage-r2
Command: npx skills add https://github.com/fractary/claude-plugins --skill handler-storage-r2

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires aws, jq, bash, and includes scripts (resource) components.

What problem does it solve?

This Skill provides an R2 storage handler using S3-compatible API for upload, download, delete, list, and get-url.

Core Features & Use Cases

  • Upload/download/delete/list files to/from Cloudflare R2
  • Generate presigned or public URLs
  • Work with environment-based credentials

Quick Start

Upload a file to R2 and obtain a presigned URL.

Frequently Asked Questions about handler-storage-r2

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

FAQPage Schema
How do I upload files to Cloudflare R2 using the AWS CLI?

Upload files to R2 by configuring AWS CLI v2 with your R2 endpoint, bucket name, and credentials, then use the upload operation to push files to your bucket. The handler validates inputs and returns structured JSON results confirming successful storage.

Can I generate presigned URLs for R2 storage?

Yes, presigned URLs enable temporary public access to R2 files without exposing credentials. The handler generates time-limited URLs or permanent public URLs depending on your access requirements.

What are the prerequisites for using R2 storage operations?

You need AWS CLI v2 installed, R2 endpoint configuration, a bucket name, and valid Cloudflare R2 credentials set as environment variables. The handler expands these variables and validates all inputs before executing storage operations.

Does R2 storage work with download, delete, and list operations?

R2 supports complete file lifecycle management: download files to local storage, delete objects from the bucket, and list bucket contents. All operations validate inputs and return structured results without logging sensitive information.

Can I read file contents directly from R2 without downloading?

Yes, streaming read operations allow you to access R2 file contents directly. This approach streams data without intermediate storage, reducing latency for applications that process files in-place.

Why use presigned URLs instead of public access for R2 files?

Presigned URLs provide time-limited, credential-free access to specific files without exposing your R2 credentials or making entire buckets public. Use them for secure file sharing, temporary downloads, or controlled user access scenarios.