mcpField

file-uploads

github.com/eddiebe147Development36 installs
Repository

About file-uploads

file-uploads is a file upload and storage specialist skill for handling uploads with attention to security and performance. It highlights validation and safeguards for file types, sizes, filenames, and presigned URLs.

Key features

  1. 01Validate file types using magic bytes
  2. 02Set upload size limits
  3. 03Sanitize user-controlled filenames
  4. 04Handle presigned URL distribution carefully

Use cases

  1. 01Reviewing an upload flow for security risks
  2. 02Adding size restrictions to file uploads
  3. 03Preventing path traversal through filenames
  4. 04Controlling sharing or caching of presigned URLs

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/eddiebe147/claude-settings --skill file-uploads

After installing, type/file-uploadsin Claude Code to confirm it loaded.

Details

From the project README

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

Comments

Markdown supported