cloudflare-r2
Provides a comprehensive guide for implementing Cloudflare R2, an S3-compatible object storage solution with zero egress fees.
Install this skill
Security score
The cloudflare-r2 skill was audited on Feb 28, 2026 and we found 21 security issues across 3 threat categories. Review the findings below before installing.
Categories Tested
Security Issues
Template literal with variable interpolation in command context
| 235 | endpoint: `https://${accountId}.r2.cloudflarestorage.com`, |
Access to .env file
| 41 | 1. `process.env` - Runtime environment variables |
Access to .env file
| 42 | 2. `<project-root>/.env` - Project-level environment file |
Access to .env file
| 43 | 3. `.claude/.env` - Claude configuration directory |
Access to .env file
| 44 | 4. `.claude/skills/.env` - Skills shared configuration |
Access to .env file
| 45 | 5. `.claude/skills/cloudflare-r2/.env` - Skill-specific configuration |
Access to .env file
| 65 | **Example .env File:** |
Access to .env file
| 67 | # See .claude/skills/.env.example for complete configuration |
Access to .env file
| 237 | accessKeyId: process.env.R2_ACCESS_KEY_ID, |
Access to .env file
| 238 | secretAccessKey: process.env.R2_SECRET_ACCESS_KEY, |
External URL reference
| 219 | aws s3api list-buckets --endpoint-url https://<accountid>.r2.cloudflarestorage.com |
External URL reference
| 222 | aws s3 cp file.txt s3://my-bucket/ --endpoint-url https://<accountid>.r2.cloudflarestorage.com |
External URL reference
| 225 | aws s3 presign s3://my-bucket/file.txt --endpoint-url https://<accountid>.r2.cloudflarestorage.com --expires-in 3600 |
External URL reference
| 235 | endpoint: `https://${accountId}.r2.cloudflarestorage.com`, |
External URL reference
| 256 | endpoint_url=f'https://{account_id}.r2.cloudflarestorage.com', |
External URL reference
| 300 | https://pub-<hash>.r2.dev/file.txt |
External URL reference
| 319 | "AllowedOrigins": ["https://example.com"], |
External URL reference
| 497 | - **Documentation:** https://developers.cloudflare.com/r2/ |
External URL reference
| 498 | - **Wrangler Commands:** https://developers.cloudflare.com/r2/reference/wrangler-commands/ |
External URL reference
| 499 | - **S3 Compatibility:** https://developers.cloudflare.com/r2/api/s3/api/ |
External URL reference
| 500 | - **Workers API:** https://developers.cloudflare.com/r2/api/workers/workers-api-reference/ |
Install this skill with one command
/learn @mattnigh/cloudflare-r2