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

aws-dynamodb

Skill13 starsChanged 27 days agoMITView on GitHub

  • Installs packages

4 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

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use IAM conditions to restrict access to specific Partition Keys (e.g., tenant isolation) if acting on behalf of users.

    line 29
  2. Very specific:

    Use Single Table Design to minimize network trips.

    line 35
  3. Very specific:

    If a Query returns unexpected results, ensure you are specifying the IndexName if querying a GSI, and that the GSI has finished populating.

    line 38
  4. Distinctive:

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

    line 44

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “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 DynamoDB API Skill

Overview

Amazon DynamoDB is a fully managed NoSQL database. This skill covers the AWS SDK v3 with a strong emphasis on the DocumentClient.

Installation

npm install @aws-sdk/client-dynamodb @aws-sdk/lib-dynamodb
pip install boto3

Authentication

Uses standard AWS IAM authentication.

Core Concepts

  • Partition Key (PK): Determines data distribution.
  • Sort Key (SK): Enables range queries and sorting.
  • GSI: Global Secondary Index for alternative access patterns.

Common Workflows

  1. Instantiate DynamoDBClient.
  2. Wrap it with DynamoDBDocumentClient.from(client).
  3. Execute a QueryCommand or PutCommand.

Error Handling

Handle ProvisionedThroughputExceededException via exponential backoff (SDK v3 does this automatically up to a limit). Handle ConditionalCheckFailedException for optimistic locking.

Security

Use IAM conditions to restrict access to specific Partition Keys (e.g., tenant isolation) if acting on behalf of users.

Rate Limits

Limits are based on Provisioned Capacity (WCUs/RCUs) or On-Demand mode throughput.

Best Practices

Use Single Table Design to minimize network trips. Avoid Scan operations at all costs; always Query using well-defined indexes.

Troubleshooting

If a Query returns unexpected results, ensure you are specifying the IndexName if querying a GSI, and that the GSI has finished populating.

References

Why use this skill

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

AI pitfalls

  • Inventing column names or schema fields
  • Using deprecated driver methods or wrong connection strings
  • Omitting connection pooling or transaction boundaries

Production checklist

  • Migrations version-controlled and applied via CI
  • Connection limits and pooling configured
  • Backups and restore procedure documented

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.