file-uploads
Skill by sickn33
Guides an assistant through file uploads and cloud storage on S3 and Cloudflare R2. It covers presigned URLs, multipart uploads, image optimization and handling large files without blocking. Aimed at developers building secure upload features.
Install file-uploads
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/file-uploads ~/.claude/skills/file-uploadsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/file-uploads ~/.gemini/antigravity-cli/skills/file-uploadsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
File uploads & storage is an agent skill that guides an assistant through handling file uploads and cloud storage. It covers S3, Cloudflare R2, presigned URLs, multipart uploads and image optimization. The source frames the guidance around security and performance and states a rule to never trust client file type claims.
The skill sets out principles such as using presigned URLs for direct uploads, streaming large files instead of buffering them, and validating on upload before optimizing. It includes TypeScript fragments for magic-byte type checks, size limits, filename sanitization and presigned URL cache control. It is aimed at developers building upload features who need secure, non-blocking handling of large files. The publisher is sickn33, and the source credits vibeship-spawner-skills under Apache 2.0.
Written from the project's SKILL.md and checked against it.
What it can do
- Magic-byte file type checksVerifies the real file type with the file-type library instead of trusting extensions or Content-Type headers.
- Upload size limitsShows how to set size limits in Formidable, Multer and presigned URL requests.
- Filename sanitizationReplaces user-supplied filenames with generated names to prevent path traversal.
- Presigned URL handlingExplains short expiry and no-store headers so presigned URLs are not cached or shared.
- Direct uploadsRecommends presigned URLs for direct uploads over server proxying.
- Large file streamingAdvises streaming large files rather than buffering them in memory.
What you need
- TypeScript project
- file-type library (used in the validation example)
- AWS S3 or Cloudflare R2 storage (SDK examples)
Try asking
- Use @file-uploads to validate image uploads by magic bytes
- Use @file-uploads to design presigned S3 upload URLs with short expiry
- Use @file-uploads to sanitize user filenames before storing them
Good to know
- Code samples are TypeScript fragments that need real SDK imports, storage clients and handlers.
- Magic-byte detection is not malware scanning or proof that an image is safe.
- ContentLength alone is not a universal upload-size limit.
- Output is not a substitute for environment-specific testing or expert review.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/file-uploads/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB
Alternatives to file-uploads
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
file-uploads: common questions
Does this skill trust file extensions?
No. The source says never to trust client file type claims and recommends checking magic bytes with the file-type library.
Is setting ContentLength enough to limit upload size?
No. The source says ContentLength alone is not a cross-provider size limit and recommends a provider-supported signed policy, such as S3 POST content-length-range, plus server-side size checks.
How should presigned URLs be cached?
The source warns that cached presigned URLs can be used by unintended parties while valid, so it suggests short expiry and no-store cache headers.
How do I install file-uploads?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is file-uploads free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is file-uploads safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to file-uploads?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
