Agent skill · software engineering · secondsky
cloudflare-r2
Cloudflare R2 S3-compatible object storage. Use for buckets, uploads, CORS, presigned URLs, or encountering R2_ERROR, CORS failures, multipart issues.
Why this skill is useful
Includes specific commands and scripts for managing Cloudflare R2 buckets and handling uploads/downloads that the AI wouldn't reliably generate on its own.
What it needs
Requires bunx installed locally. Requires cloudflare account access. About 7k tokens when loaded. Last updated 2026-08-06. 204 stars on the source repository.
What this skill does
Cloudflare R2 Object Storage Status: Production Ready ✅ Last Verified: 2025-12-27 v3.0.0 Contents: Quick Start • New Features • Core R2 API • Critical Rules • Agents & Commands • References --- Quick Start (5 Minutes) 1. Create R2 Bucket Bucket naming: 3-63 chars, lowercase, numbers, hyphens only 2. Configure Binding Add to wrangler.jsonc: CRITICAL: binding = code access name, bucketname = actual R2 bucket 3. Basic Upload/Download Load references/setup-guide.md for complete setup walkthrough. --- New R2 Features (2025) 🆕 R2 SQL Integration - Query CSV/Parquet/JSON data with distributed SQL. Analytics without ETL. Load references/r2-sql-integration.md 🆕 Data Catalog (Apache Iceberg) - Table versioning, time-travel queries, schema evolution. Spark/Snowflake integration. Load references/data-catalog-iceberg.md 🆕 Event Notifications - Trigger Workers on object changes (upload/delete). Automate image processing, backups, webhooks. Load references/event-notifications.md Advanced Features - Storage classes, bucket locks (compliance), tus resumable uploads, SSE-C encryption. Load references/advanced-features.md Zero Trust Security - Cloudflare Access integration with SSO, MFA, identity policies, audit logging. Load references/cloudflare-access-integration.md Performance Tuning - Caching strategies, compression, range requests, ETags, monitoring best practices. Load references/performance-optimization.md --- Core R2 Workers API - Quick Reference put() - Upload Objects Upload with metadata, prevent overwrites with onlyIf. Load references/workers-api.md for complete R2PutOptions. get() - Download Objects Returns R2ObjectBody null. Supports range requests, conditional operations. Load references/workers-api.md for read methods (text(), json(), arrayBuffer(), blob()). head() - Get Metadata Only Check existence, get size, etag, metadata without downloading body. Useful for validation and caching. delete() - Delete Objects Bulk delete up to 1000 keys in single call. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills secondsky/cloudflare-r2