LaunchKit · 2026
Back to Skills

s3-sort

Upload many files to S3 with automatic organization by first-character prefixes.

0
402 downloads
by @6mile-puppet

Setup & Installation

openclaw skills install @6mile-puppet/s3-sort

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install s3-sort

Version History

v1.0.1Feb 16, 2026 - Version note by skill developer:

Added the bash script to actually do the sorting and managing

What This Skill Does

Uploads files to an S3 bucket and organizes them into subdirectories based on the first character of each filename. Letters map to their lowercase folder (a/, b/), digits go to 0-9/, and other characters go to _other/. Supports dry runs, sync mode, and per-upload storage class selection.

Automatically partitions uploads into prefix directories, avoiding flat-bucket clutter that slows down listing and querying large S3 buckets.

When to use it

  • Organizing large media asset libraries uploaded to S3
  • Archiving log files from multiple servers into sorted buckets
  • Batch uploading dataset files for ML training pipelines
  • Migrating a local file collection to cloud storage with folder structure
  • Staging static assets alphabetically for CDN workflows

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Upload all files from ./exports to my-bucket using sync mode

AGENT
  1. 1Verifies AWS credentials with aws sts get-caller-identity
  2. 2Tests bucket write access by uploading and removing a temporary file
  3. 3Creates a staging directory and populates it with prefix-based subdirectories using symlinks
  4. 4Runs aws s3 sync from the staging directory to s3://my-bucket/
  5. 5Removes the staging directory after sync completes
OUTPUT

All files from ./exports uploaded to my-bucket under organized prefix paths (a/, b/, 0-9/, _other/)

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYaws CLI (install via: brew install awscli)