upload-gen
Generate file upload handling code. Use when building upload features with S3, local storage, or cloud providers.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/lxgicstudios/upload-genUpload Handler Generator
File uploads are tricky. Validation, storage, progress tracking. This tool generates complete upload handling code for your stack. S3, local disk, Cloudflare R2. whatever you need.
One command. Zero config. Just works.
Quick Start
npx ai-upload "image upload to S3 with validation"
What It Does
- Generates file upload handlers for Express, Fastify, or serverless
- Includes file type validation and size limits
- Supports S3, local storage, Cloudflare R2, and GCS
- Creates presigned URL flows for direct uploads
- Handles multipart uploads for large files
Usage Examples
# S3 upload with validation
npx ai-upload "images to S3 with 5MB limit and JPEG/PNG only"
# Local storage
npx ai-upload "documents to local disk with unique filenames"
# Presigned URLs for direct upload
npx ai-upload "presigned S3 URLs for client-side upload"
# Multiple file upload
npx ai-upload "bulk image upload up to 10 files"
# With progress tracking
npx ai-upload "large file upload with progress callback" --with-progress
Best Practices
- Validate on both client and server - Never trust client-side validation alone
- Use presigned URLs for large files - Don't proxy everything through your server
- Set reasonable limits - Both file size and count per request
- Scan for malware - Especially for user-uploaded executables
When to Use This
- Adding profile picture uploads
- Building document management features
- Creating media libraries with file uploads
- Implementing bulk import functionality
Part of the LXGIC Dev Toolkit
This is one of 110+ free developer tools built by LXGIC Studios. No paywalls, no sign-ups, no API keys on free tiers. Just tools that work.
Find more:
- GitHub: https://github.com/LXGIC-Studios
- Twitter: https://x.com/lxgicstudios
- Substack: https://lxgicstudios.substack.com
- Website: https://lxgic.dev
Requirements
No install needed. Just run with npx. Node.js 18+ recommended.
npx ai-upload --help
How It Works
The tool generates upload handling code based on your storage target and requirements. It creates the middleware, validation logic, and storage integration code you need to handle file uploads properly.
License
MIT. Free forever. Use it however you want.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-lxgicstudios-upload-gen": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
script-gen
Generate package.json scripts with AI. Use when setting up npm scripts.
email-template-gen
Generate responsive email templates. Use when building transactional emails.
branch-namer
Generate descriptive git branch names from plain English. Use when you need a branch name that follows conventions.
cloudflare-gen
Generate Cloudflare Workers configuration and code. Use when building on the edge.
adr-writer
Generate Architecture Decision Records with AI. Use when documenting technical decisions.