r2-storage-manager

📁 amirrudd/flyerboard 📅 3 days ago
2
总安装量
2
周安装量
#69179
全站排名
安装命令
npx skills add https://github.com/amirrudd/flyerboard --skill r2-storage-manager

Agent 安装分布

opencode 2
kilo 2
gemini-cli 2
antigravity 2
claude-code 2
github-copilot 2

Skill 文档

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 ChecksumAlgorithm is set to undefined.
  • Check if x-amz-checksum-crc32 is unhoisted.
  • Verify the bucket CORS policy allows the current origin.