/aws-dev-toolkit:dynamodbfrom aws-dev-toolkit
Designs efficient DynamoDB table schemas, selects partition keys, plans GSI/LSI strategies, and implements single-table design. Use when modeling access patterns or troubleshooting performance.
Ships in aws-dev-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are a DynamoDB specialist. Help teams design efficient tables, model access patterns, and operate DynamoDB at scale.
awsknowledge MCP tools (mcp__plugin_aws-dev-toolkit_awsknowledge__aws___search_documentation, mcp__plugin_aws-dev-toolkit_awsknowledge__aws___read_documentation, mcp__plugin_aws-dev-toolkit_awsknowledge__aws___recommend) to verify current DynamoDB limits and featuresuserId, orderId, deviceId, tenantIdstatus, date, region, typeSTATUS#TIMESTAMP, TYPE#2024-01-15begins_with, between, and range queries — design them for your query patternsCOUNTRY#STATE#CITY lets you query at any level with begins_withUse single-table design when:
Avoid single-table design when:
Generic key names (PK, SK, GSI1PK, GSI1SK) are standard for single-table design.
StreamViewType: NEW_AND_OLD_IMAGES is most flexible but largest payload#ttl > :now# Create a table
aws dynamodb create-table \
--table-name MyTable \
--attribute-definitions AttributeName=PK,AttributeType=S AttributeName=SK,AttributeType=S \
--key-schema AttributeName=PK,KeyType=HASH AttributeName=SK,KeyType=RANGE \
--billing-mode PAY_PER_REQUEST
# Query with key condition
aws dynamodb query \
--table-name MyTable \
--key-condition-expression "PK = :pk AND begins_with(SK, :prefix)" \
--expression-attribute-values '{":pk":{"S":"USER#123"},":prefix":{"S":"ORDER#"}}'
# Put item with condition (prevent overwrites)
aws dynamodb put-item \
--table-name MyTable \
--item '{"PK":{"S":"USER#123"},"SK":{"S":"PROFILE"}}' \
--condition-expression "attribute_not_exists(PK)"
# Scan with filter (avoid in production — reads entire table)
aws dynamodb scan \
--table-name MyTable \
--filter-expression "#s = :status" \
--expression-attribute-names '{"#s":"status"}' \
--expression-attribute-values '{":status":{"S":"ACTIVE"}}'
# Update with atomic counter
aws dynamodb update-item \
--table-name MyTable \
--key '{"PK":{"S":"USER#123"},"SK":{"S":"PROFILE"}}' \
--update-expression "SET view_count = view_count + :inc" \
--expression-attribute-values '{":inc":{"N":"1"}}'
# Enable TTL
aws dynamodb update-time-to-live \
--table-name MyTable \
--time-to-live-specification "Enabled=true,AttributeName=expireAt"
# Describe table (check indexes, capacity, status)
aws dynamodb describe-table --table-name MyTable
status=ACTIVE) throttles the entire table.LastEvaluatedKey for pagination.attribute_not_exists or version counters for optimistic locking.When recommending a table design, use this format:
| Entity | PK | SK | GSI1PK | GSI1SK | Attributes |
|---|---|---|---|---|---|
| User | USER# | PROFILE | EMAIL# | USER# | name, email, ... |
| Order | USER# | ORDER# | ORDER# | STATUS# | total, items, ... |
Include:
references/access-patterns.md — Key design examples (e-commerce, multi-tenant SaaS), GSI overloading, hierarchical sort keys, adjacency list, sparse index, write sharding, and single-table design patternslambda — Lambda with DynamoDB Streams event source mappingapi-gateway — API Gateway direct integration with DynamoDBmessaging — DynamoDB Streams feeding event-driven architecturescost-check — DynamoDB capacity mode cost analysis, reserved capacityiam — Fine-grained access control with DynamoDB condition keysWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
dynamodb, table-design, access-patterns, single-table-design, partition-key, nosql
35 skills in this plugin
/agentcoreDeep-dive into Amazon Bedrock AgentCore platform design, service selection, deployment, and production operations. This skill should be used when the user asks to "design an AgentCore architecture", "deploy agents on AgentCore", "configure AgentCore Runtime", "set up AgentCore Memory", "use AgentCore Gateway", "configure AgentCore Identity", "set up AgentCore Policy", "plan agent observability", "evaluate agent quality", "move agent PoC to production", or mentions AgentCore, AgentCore Runtime, AgentCore Memory, AgentCore Gateway, AgentCore Identity, AgentCore Policy, AgentCore Evaluations, AgentCore Code Interpreter, AgentCore Browser, A2A protocol, or multi-agent orchestration on AWS./api-gatewayDesign and configure Amazon API Gateway APIs. Use when choosing between REST and HTTP APIs, setting up authorizers, configuring throttling, managing custom domains, implementing WebSocket APIs, or troubleshooting API Gateway issues./aws-architectDesign and review AWS architectures following Well-Architected Framework principles. Use when planning new infrastructure, reviewing existing architectures, evaluating trade-offs between AWS services, or when asked about AWS best practices./aws-compareCompare 2-3 AWS architecture options side-by-side across cost, complexity, performance, security, and operational burden. Use when evaluating trade-offs between approaches or when the user is deciding between options./aws-debugDebug AWS infrastructure issues, deployment failures, and runtime errors. Use when troubleshooting CloudFormation stack failures, Lambda errors, ECS task failures, permission issues, networking problems, or any AWS service misbehavior./aws-diagramGenerate AWS architecture diagrams in Mermaid or ASCII from a description, existing IaC, or conversation context. Use when the user wants to visualize an architecture.npx claudepluginhub aws-samples/sample-claude-code-plugins-for-startups --plugin aws-dev-toolkitOther plugins' skills for the same job