Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/thimslugga-aws-sdk-js-v3-usage
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: cloud, writing, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
aws-sdk-js-v3-usage- Description
- AWS SDK for JavaScript v3 development patterns. Use when writing JavaScript or TypeScript code that uses AWS services via @aws-sdk/* packages (aws-sdk-js-v3), or when asked about schemas, runtime validation, serialization, or code generation in the context of the JS/TS AWS SDK.
- License
- MIT
- Instructions
- 250 lines in SKILL.md · view on GitHub
Files (12)
- SKILL.md
- clients.md · references/
- credentials.md · references/
- dynamodb.md · references/
- effective-practices.md · references/
- error-handling.md · references/
- lambda.md · references/
- performance.md · references/
- s3.md · references/
- schemas.md · references/
- sigv4a.md · references/
- typescript.md · references/
SKILL.md (first lines)
> Do not use emojis in any code, comments, or output when this skill is active.
# AWS SDK for JavaScript v3
## Package Structure
- `@aws-sdk/client-*` — one per service, generated by [smithy-typescript](https://github.com/awslabs/smithy-typescript); one-to-one with AWS services and operations
- `@aws-sdk/lib-*` — higher-level helpers (e.g. `lib-dynamodb`, `lib-storage`)
- `@aws-sdk/*` (no prefix) — utility packages (mostly internal; don't import deep paths)
Always import from the package root:
```js
import { S3Client } from "@aws-sdk/client-s3"; // correct
// NOT: import { S3Client } from "@aws-sdk/client-s3/dist-cjs/S3Client"
```
## Two Client Styles
**Bare-bones** (preferred — smaller bundle):
```js
import { S3Client, GetObjectCommand } from "@aws-sdk/client-s3";
const client = new S3Client({ region: "us-east-1" });
const output = await client.send(new GetObjectCommand({ Bucket: "b", Key: "k" }));
```
**Aggregated** (v2-style but NOT v2, larger bundle):
```js
import { S3 } from "@aws-sdk/client-s3";
const client = new S3({ region: "us-east-1" });
const output = await client.getObject({ Bucket: "b", Key: "k" });
```
## Client Configuration
No global config in v3 — pass config to each client. `region` is always required; set it explicitly or via `AWS_REGION` env var.
```js
const config = { region: "us-east-1", maxAttempts: 5 };
const s3 = new S3Client(config);
const dynamo = new DynamoDBClient(config);
```
**Do not read or mutate `client.config` after instantiation** — it is a resolved form (e.g. `region` becomes an async function). See `references/effective-practices.md`.
For HTTP handler (`NodeHttpHandler` from `@smithy/node-http-handler`), retry strategy, endpoint details, logging, FIPS, dual-stack, protocol selection, and S3-specific options → see `references/clients.md`.
## Credentials
All providers from `@aws-sdk/credential-providers`. Credentials are lazy and cached per client until ~5 min before expiry.
```js
// Default chain (env → ini → IMDS/ECS) — use in most Node.js apps
const client = new S3Client({ credentials: fromNodeProviderChain() });
// Assume role (NOTE: fromTemporaryCredentials is correct for STS AssumeRole)
const client = new S3Client({
credentials: fromTemporaryCredentials({ params: { RoleArn: "arn:aws:iam::123456789012:role/MyRole" } }),
});
// Named profile
const client = new S3Client({ profile: "my-profile" });
```
Share credentials and socket pool across multi-region clients:
```js
const east = new S3Client({ region: "us-east-1" });
const { credentials, requestHandler } = east.config;
const west = new S3Client({ region: "us-west-2", credentials, requestHandler });
```
For all providers (Cognito, SSO, web identity, custom chains, STS region priority) → see `references/credentials.md`.
## Streams (e.g. S3 GetObject Body)
**Always read or discard streaming responses** — unread streams leave sockets open (socket exhaustion):
```js
const { Body } = await client.send(new GetObjectCommand({ Bucket: "b", Key: "k" }));
const str = await Body.transformToString(); // read as string
const bytes = await Body.transformToByteArray(); // read as Uint8Array
// or discard:
await (Body.destroy?.() ?? Body.cancel?.());
```
Streams can only be read once.
## Paginators
Use `paginate*` functions instead of manual token handling:
```js
import { DynamoDBClient, paginateListTables } from "@aws-sdk/client-dynamodb";
const client = new DynamoDBClient({});
const tableNames = [];
for await (const page of paginateListTables({ client }, {})) {
// page contains a single paginated output.
tableNames.push(...page.TableNames);
}
```
## DynamoDB DocumentClient
Use `@aws-sdk/lib-dynamodb` to work with native JS types instead of AttributeValues:
```js
import { DynamoDBClient } from "@aws-sdk/client-dynamodb";
import { DynamoDBDocumentClient, GetCommand, PutCommand } from "@aws-sdk/lib-dynamodb";
const client = DynamoDBDocumentClient.from(new DynamoDBClient({}));
await client.send(new PutCommand({ TableName: "T", Item: { id: "1", name: "Alice" } }));
const { Item } = await client.send(new GetCommand({ TableName: "T", Key: { id: "1" } }));
```From thimslugga/agent-skills, MIT.
More from thimslugga/agent-skills
- 0.529score
aws-iam
thimslugga
Verified corrections for IAM behaviors that AI agents frequently get wrong — policy evaluation edge cases, trust policy gotchas, STS session limits…
SkillBFreshness: BClaude Code +9 - 0.524score
aws-login
thimslugga
"Gets AWS credentials for CLI/SDK access via `aws login`.
SkillBFreshness: BClaude Code +9 - 0.524score
chrome-devtools
thimslugga
Use when interacting with, testing, or debugging a browser page through Chrome DevTools MCP, including UI behavior, screenshots, console and network issues…
SkillBFreshness: BClaude Code +9 - 0.521score
agents-md-refactor
thimslugga
Refactor bloated AGENTS.md, CLAUDE.md, or similar agent instruction files to follow progressive disclosure principles.
SkillBFreshness: BClaude Code +9 - 0.521score
anti-ui-slop
thimslugga
Stop Codex, Claude Code, and Kiro from shipping generic UI.
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 11, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/thimslugga/agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.598score
aws-sdk-js-v3-usage
awsOfficial
AWS SDK for JavaScript v3 development patterns.
SkillCFreshness: C★ 3KClaude Code +9 - 0.312score
aws-sdk-js-v3-usage
awsOfficial
AWS SDK for JavaScript v3 development patterns.
SkillCFreshness: C★ 3KClaude Code +9 - 0.311score
aws-sdk-js-v3-usage
eratio08
AWS SDK for JavaScript v3 development patterns.
SkillCFreshness: C★ 4Claude Code +9
More from thimslugga
- 0.570score
adr
thimslugga
Create and maintain Architecture Decision Records (ADRs).
SkillAFreshness: AClaude Code +9 - 0.567score
golang-pro
thimslugga
Write, edit, update, or review Go code to a consistent professional standard: gofumpt-formatted, go vet clean, golangci-lint clean under a curated config.
SkillAFreshness: AClaude Code +9 - 0.565score
gauntlet-loop
thimslugga
Turns any goal into one short, paste-ready "gauntlet loop" prompt - a prompt that makes an agent set a concrete quality bar, split the work into small…
SkillAFreshness: AClaude Code +9 - 0.565score
ast-grep-outline
thimslugga
Use when exploring or modifying a codebase and you need a cheap structural map of files, directories, imports, exports, or direct members before reading full…
SkillAFreshness: AClaude Code +9 - 0.540score
impeccable
thimslugga
Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or…
SkillAFreshness: AClaude Code +9 - 0.529score
redshift-api
thimslugga
Run SQL against Amazon Redshift — submit statements, poll status, page through results, and browse databases/schemas/tables.
SkillBFreshness: BClaude Code +9
Cite this page
aws-sdk-js-v3-usage skill. Agent Mart. https://agentmart.dev/skills/thimslugga-aws-sdk-js-v3-usage (last updated 2026-10-24)