What problem does it solve?
Adding file upload, download, and management to a PinMe-deployed Cloudflare Worker requires correct use of the injected R2 binding, streaming semantics, Range handling, and strict security controls. This Skill guides the AI to build those routes correctly without credentials, bucket configuration, or Wrangler edits.
Core Features & Use Cases
- Streaming Uploads and Downloads: Pass request bodies directly to env.R2.put with size limits, content-type allowlists, and Range/conditional request support for downloads.
- Secure Key Management: Generate opaque file IDs under server-derived owner prefixes, never accepting client-supplied object keys.
- R2 and D1 Coordination: Store file bodies in R2 and searchable metadata in D1 with explicit pending/ready state transitions and compensation logic.
- Use Case: A user asks to add profile image uploads to their PinMe app. The Skill produces authenticated upload, download, list, and delete routes using env.R2 with owner-scoped keys and proper HTTP semantics.
Quick Start
Use the pinme-r2 skill to add secure file upload and download routes to my PinMe Worker.