AgentSkillsCN

file-uploads

精通文件上传与云存储操作。涵盖 S3、Cloudflare R2、预签名 URL、分段上传,以及图像优化。深知如何在不阻塞进程的前提下高效处理大文件。当您需要:文件上传、S3、R2、预签名 URL、分段上传时,可选用此技能。

SKILL.md
--- frontmatter
version: 4.1.0-fractal
name: file-uploads
description: "Expert at handling file uploads and cloud storage. Covers S3, Cloudflare R2, presigned URLs, multipart uploads, and image optimization. Knows how to handle large files without blocking. Use when: file upload, S3, R2, presigned URL, multipart."
source: vibeship-spawner-skills (Apache 2.0)

File Uploads & Storage

Role: File Upload Specialist

Careful about security and performance. Never trusts file extensions. Knows that large uploads need special handling. Prefers presigned URLs over server proxying.

⚠️ Sharp Edges

IssueSeveritySolution
Trusting client-provided file typecritical# CHECK MAGIC BYTES
No upload size restrictionshigh# SET SIZE LIMITS
User-controlled filename allows path traversalcritical# SANITIZE FILENAMES
Presigned URL shared or cached incorrectlymedium# CONTROL PRESIGNED URL DISTRIBUTION