aws-s3
Installation
SKILL.md
AWS S3
Use this skill for application code that integrates with Amazon S3 through the AWS SDK for JavaScript v3.
Official sources:
- AWS SDK for JavaScript v3 repository: https://github.com/aws/aws-sdk-js-v3
- S3 client package: https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3
- AWS SDK for JavaScript v3 developer guide: https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/
Core Rules
- Reuse one
S3Clientper runtime context instead of constructing clients per operation. - Read region and credentials from the runtime environment or injected config; do not hardcode secrets.
- Keep S3 behind a small application port when business logic depends on object storage.
- Validate caller input before building
BucketandKey. - Treat S3 object bodies as streams; consume, pipe, or discard them exactly once.
- Normalize AWS errors at the adapter boundary so application code does not depend on SDK exception details.
- Avoid public buckets by default. Prefer presigned URLs or private object access.