itsmostafa/aws-agent-skills/dynamodb
- community
Checking that the SKILL.md file is still in the repository.
AWS DynamoDB NoSQL database for scalable data storage. Use when designing table schemas, writing queries, configuring indexes, managing capacity, implementing single-table design, or troubleshooting performance issues.
Install
npx vskill@latest install itsmostafa/aws-agent-skills/dynamodbSKILL.md
AWS DynamoDB
Amazon DynamoDB is a fully managed NoSQL database service providing fast, predictable performance at any scale. It supports key-value and document data structures.
Table of Contents
Core Concepts
Keys
| Key Type | Description | |
|---|---|---|
| Partition Key (PK) | Required. Determines data distribution | |
| Sort Key (SK) | Optional. Enables range queries within partition | |
| Composite Key | PK + SK combination |
Secondary Indexes
| Index Type | Description | |
|---|---|---|
| GSI (Global Secondary Index) | Different PK/SK, separate throughput, eventually consistent | |
| LSI (Local Secondary Index) | Same PK, different SK, shares table throughput, strongly consistent option |
Capacity Modes
| Mode | Use Case | |
|---|---|---|
| On-Demand | Unpredictable traffic, pay-per-request | |
| Provisioned | Predictable traffic, lower cost, can use auto-scaling |
Common Patterns
Create a Table
AWS CLI:
boto3:
Basic CRUD Operations
Query Operations
Batch Operations
Create GSI
Conditional Writes
CLI Reference
Table Operations
| Command | Description | |
|---|---|---|
aws dynamodb create-table | Create table | |
aws dynamodb describe-table | Get table info | |
aws dynamodb update-table | Modify table/indexes | |
aws dynamodb delete-table | Delete table | |
aws dynamodb list-tables | List all tables |
Item Operations
| Command | Description | |
|---|---|---|
aws dynamodb put-item | Create/replace item | |
aws dynamodb get-item | Read single item | |
aws dynamodb update-item | Update item attributes | |
aws dynamodb delete-item | Delete item | |
aws dynamodb query | Query by key | |
aws dynamodb scan | Full table scan |
Batch Operations
| Command | Description | |
|---|---|---|
aws dynamodb batch-write-item | Batch write (25 max) | |
aws dynamodb batch-get-item | Batch read (100 max) | |
aws dynamodb transact-write-items | Transaction write | |
aws dynamodb transact-get-items | Transaction read |
Best Practices
Data Modeling
- Design for access patterns — know your queries before designing
- Use composite keys — PK for grouping, SK for sorting/filtering
- Prefer query over scan — scans are expensive
- Use sparse indexes — only items with index attributes are indexed
- Consider single-table design for related entities
Performance
- Distribute partition keys evenly — avoid hot partitions
- Use batch operations to reduce API calls
- Enable DAX for read-heavy workloads
- Use projections to reduce data transfer
Cost Optimization
- Use on-demand for variable workloads
- Use provisioned + auto-scaling for predictable workloads
- Set TTL for expiring data
- Archive to S3 for cold data
Troubleshooting
Throttling
Symptom: ProvisionedThroughputExceededException
Causes:
- Hot partition (uneven key distribution)
- Burst traffic exceeding capacity
- GSI throttling affecting base table
Solutions:
Hot Partitions
Debug:
Solutions:
- Add randomness to partition keys
- Use write sharding
- Distribute access across partitions
Query Returns No Items
Debug checklist:
- Verify key values exactly match (case-sensitive)
- Check key types (S, N, B)
- Confirm table/index name
- Review filter expressions (they apply AFTER read)
Scan Performance
Issue: Scans are slow and expensive
Solutions:
- Use parallel scan for large tables
- Create GSI for the access pattern
- Use filter expressions to reduce returned data
References
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/dynamodb/SKILL.md
Popularity
- Repository stars
- 1,050
- Repository forks
- 437
- 7-day trend score
- 35
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 22 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/itsmostafa/aws-agent-skills/dynamodb)