jyjeanne/ai-setup-forge/file-storage-s3-minio

Claude Code and agent skill by jyjeanne/ai-setup-forge

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

To securely store, retrieve, and serve user-uploaded files (images, documents) using Object Storage, separating binary data from the database. Use when: Storing user avatars, post images, or PDFs; When local disk storage is not scalable (e.g., stateless containers).

Install

npx vskill@latest install jyjeanne/ai-setup-forge/file-storage-s3-minio

SKILL.md

The same SKILL.md was published earlier as jyjeanne/ai-setup-forge/file-storage-s3-minio.

Purpose

To securely store, retrieve, and serve user-uploaded files (images, documents) using Object Storage, separating binary data from the database.

When to Use

  • Storing user avatars, post images, or PDFs.
  • When local disk storage is not scalable (e.g., stateless containers).

Procedure

1. Setup
  • AWS S3: Create Bucket, create IAM User with PutObject/GetObject permissions.
  • MinIO: Self-hosted S3-compatible alternative (great for dev/on-prem).
2. SDK Integration (AWS SDK v3)
javascript
const { S3Client, PutObjectCommand } = require('@aws-sdk/client-s3');
const s3 = new S3Client({ region: 'us-east-1', credentials: { ... } });
3. Upload Strategy

A. Presigned URLs (Recommended) Client uploads directly to S3. Server generates a temporary signature. Saves server bandwidth.

  1. Server:

``javascript const { getSignedUrl } = require('@aws-sdk/s3-request-presigner'); const command = new PutObjectCommand({ Bucket: 'my-bucket', Key: 'file.jpg' }); const url = await getSignedUrl(s3, command, { expiresIn: 3600 }); // Send url to client ``

  1. Client: PUT binary data to that URL.

B. Server-Side Upload Client -> Server -> S3. Easier to validate content, but heavy on server.

4. Security
  • Bucket Policy: Block public access.
  • Serving Files: Use CloudFront (CDN) with Signed URLs for private content, or public read access for public assets.

Constraints

  • Filename Collisions: Always generate unique keys (e.g., uuid-filename.ext).
  • Validation: Validate mime-type and file size before generating presigned URLs.

Expected Output

Scalable, durable file storage system with secure access controls and offloaded bandwidth usage.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jyjeanne/ai-setup-forge/file-storage-s3-minio/badge)](https://verified-skill.com/skills/jyjeanne/ai-setup-forge/file-storage-s3-minio)

Something wrong with this skill or its page? Tell us.