agentleFS
Ghost7802Ghost7802/awesome-api-skills/skills/aws-s3/SKILL.md

aws-s3

Skill13 starsChanged 27 days agoMITView on GitHub

  • Installs packages

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use Multipart Upload for files larger than 100MB.

    line 35
  2. Distinctive:

    If a presigned URL fails with SignatureDoesNotMatch, ensure the HTTP method and headers exactly match what was requested during generation.

    line 38
  3. Distinctive:

    Use this when your agent works with aws-s3 — structured patterns beat pasted docs and prevent common hallucinations.

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

AWS S3 API Skill

Overview

Amazon Simple Storage Service (S3) provides highly scalable object storage. This skill details the AWS SDK v3 for Node.js.

Installation

npm install @aws-sdk/client-s3 @aws-sdk/s3-request-presigner
pip install boto3

Authentication

Authenticate via IAM Roles (in EC2/Lambda) or Access Keys (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY). Avoid hardcoded credentials.

Core Concepts

  • Bucket: The root container for objects.
  • Object: A file and its metadata.
  • Presigned URL: A temporary URL granting access to upload/download a specific object.

Common Workflows

  1. Instantiate S3Client.
  2. Construct a PutObjectCommand.
  3. Send the command to upload a stream or buffer.

Error Handling

Catch S3ServiceException. Common errors include NoSuchBucket and AccessDenied. Ensure bucket policies and IAM permissions align.

Security

Block Public Access at the account level. Always use Presigned URLs for client-side uploads rather than routing large files through your API server.

Rate Limits

S3 automatically scales, but standard performance supports 3,500 PUT/COPY/POST/DELETE and 5,500 GET/HEAD requests per second per prefix.

Best Practices

Use Multipart Upload for files larger than 100MB. Use random prefixes (like UUIDs) in object keys to avoid thermal hotspots in S3 partitions.

Troubleshooting

If a presigned URL fails with SignatureDoesNotMatch, ensure the HTTP method and headers exactly match what was requested during generation.

References

Why use this skill

Use this when your agent works with aws-s3 — structured patterns beat pasted docs and prevent common hallucinations.

AI pitfalls

  • Using outdated SDK or API versions from training data
  • Inventing environment variable names
  • Omitting error handling and retry logic

Production checklist

  • Secrets in environment variables, not source code
  • Error handling and logging in place
  • Rate limits and timeouts configured

Related skills

  • terraform — provisioned by
  • pulumi — provisioned by

Last Verified: 2026-07-02

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.