본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

s3-sort

6mile-puppet 제작

DevOps & Cloud
402clawskills.sh가 보고한 다운로드 수
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

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

설명

이 스킬이 하는 일

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.

사용 시점

  • 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

예시 워크플로

입력

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

에이전트
  1. 1

    Verifies AWS credentials with aws sts get-caller-identity

  2. 2

    Tests bucket write access by uploading and removing a temporary file

  3. 3

    Creates a staging directory and populates it with prefix-based subdirectories using symlinks

  4. 4

    Runs aws s3 sync from the staging directory to s3://my-bucket/

  5. 5

    Removes the staging directory after sync completes

출력

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

요구 사항

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • aws CLI (install via: brew install awscli)

설치

clawhub install 6mile-puppet/s3-sort

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크