r2-storage-manager
SKILL.md
R2 Storage Manager
This skill helps manage Cloudflare R2 storage and prevents common CORS/checksum issues.
Critical Patterns
1. CORS-Safe Presigned URLs
Always disable checksums and unhoist specific headers.
{
ChecksumAlgorithm: undefined,
unhoistableHeaders: new Set(["x-amz-checksum-crc32"])
}
2. Image Quality Standards
Ensure all uploads are 90% WebP.
Context: features/image-upload.md
Scripts
check-r2-env
Verifies that all required R2 environment variables are present in .env.local.
Command:
./.agent/skills/r2-storage-manager/scripts/check-env.sh
list-bucket-summary (via Node)
Provides a summary of objects in the bucket (requires valid AWS/R2 credentials).
Command:
node ./.agent/skills/r2-storage-manager/scripts/list-bucket.mjs
Common Fixes
403 Forbidden (CORS)
- Check if
ChecksumAlgorithmis set toundefined. - Check if
x-amz-checksum-crc32is unhoisted. - Verify the bucket CORS policy allows the current origin.
Weekly Installs
3
Repository
amirrudd/flyerboardFirst Seen
Feb 26, 2026
Security Audits
Installed on
opencode3
gemini-cli3
github-copilot3
codex3
amp3
kimi-cli3