/dynamo-expert:dynamodb-access-patternsfrom dynamo-expert
Interactive skill for eliciting, formalizing, and persisting DynamoDB access patterns. Use when the user wants to start designing a DynamoDB table, define entities, or document how their application will read and write data. This is Step 1 of a 3-step pipeline: access patterns -> table design -> query interfaces. The output is a structured .md file that feeds into the dynamodb-table-design skill.
Ships in dynamo-expert. 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.
This skill guides an interactive conversation to extract, formalize, and persist all access patterns for a DynamoDB single-table design. It is language-agnostic and project-agnostic -- it works for any application regardless of tech stack.
[1. Access Patterns] --> 2. Table Design --> 3. Query Interfaces
(this skill) (dynamodb-table- (dynamodb-query-
design) interfaces)
This skill produces a .md file that is consumed by dynamodb-table-design.
Ask the user to describe their application at a high level. You need to understand:
Ask open-ended questions. Don't assume -- let the user describe their domain.
Example opening:
Before designing the DynamoDB table, I need to understand your domain.
1. What does your application do in one sentence?
2. What are the main entities (things you need to store)?
3. Who or what interacts with these entities?
For each entity the user mentions, gather:
| Field | Description | Example |
|---|---|---|
| Name | Singular name, PascalCase | Order |
| Description | What it represents | "A purchase made by a customer" |
| Attributes | All fields with types | orderId: string, total: number, status: string, createdAt: datetime |
| Relationships | How it relates to other entities | "Belongs to a User. Contains many OrderItems." |
| Cardinality | Expected volume | "~100 orders per user, ~10M total" |
| Lifecycle | Does it expire? Get updated? Deleted? | "Updated when status changes. Archived after 1 year." |
Ask the user about EACH entity systematically. Don't skip attributes -- they affect key design later.
IMPORTANT: Also identify counter/aggregate entities that the user might not think of as entities:
This is the most critical step. For EACH entity, ask:
For [Entity], how will your application access this data?
Think about every screen, API endpoint, or background job that reads or writes this entity.
For each access pattern, capture these fields:
| Field | Description |
|---|---|
| ID | Sequential number (AP-001, AP-002, ...) |
| Entity | Which entity or entities are involved |
| Operation | Read / Write / Update / Delete |
| Description | Plain English description |
| Input Parameters | What the caller provides |
| Result Type | Single item, Collection, or Count |
| Sort Required | None, Ascending, Descending -- and by what field |
| Filters | Any conditions beyond the lookup key |
| Pagination | Yes/No -- is the result set potentially large? |
| Frequency | Hot (>100/s), Warm (1-100/s), Cold (<1/s) |
| Consistency | Eventual (default) or Strong |
| Multi-Entity | Does this pattern need data from multiple entity types in one call? |
Probing questions to uncover hidden patterns:
Review all access patterns and look for cases where multiple entity types are fetched together. These are the most valuable patterns in single-table design.
Ask the user:
Looking at your access patterns, I see some opportunities to fetch related data in a single query:
- [AP-003] and [AP-007] both need User + Orders data
- [AP-012] needs Product + Reviews together
Do these always get fetched together, or only sometimes?
Are there screens/endpoints where you need BOTH in one call?
Mark these patterns explicitly as item collection candidates.
For every write operation, determine:
Example questions:
When you create an Order:
- Do you also need to update the user's order count?
- Do you need to add it to a global "recent orders" list?
- Should it fail if the user doesn't exist?
Before persisting, do a final review with the user:
Here's a summary of what I've captured:
Entities: [list]
Access Patterns: [count] total
- Reads: [count]
- Writes: [count]
- Multi-entity: [count]
Missing anything? Common things people forget:
- Admin/backoffice access patterns
- Search/filtering patterns
- Reporting or analytics queries (these may go to a different system)
- Migration or bulk import patterns
- Audit trail / history patterns
Persist the output as a markdown file. The user chooses the path, but suggest docs/dynamodb/access-patterns.md or a similar location in their project.
Read reference/output-template.md for the exact file structure to use.
string, number, boolean, datetime, list, map. Don't use TypeScript, Python, or Java-specific types.dynamodb-table-design)..md file. This file is the input for the next step.Once the access patterns file is complete, tell the user:
Access patterns are documented at [file path].
The next step is to design the DynamoDB table structure -- partition keys,
sort keys, GSIs, and map each access pattern to a concrete DynamoDB operation.
To continue, use the `dynamodb-table-design` skill with this file as input.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub walis85300/marketplace --plugin dynamo-expert4 skills in this plugin
/dynamodb-query-interfacesGenerates language-agnostic repository interfaces (method signatures, input/output types, and entity models) from a DynamoDB table design document. Use when the user has a table design .md file (from dynamodb-table-design skill) and wants to generate the code skeleton for their data access layer. This is Step 3 of a 3-step pipeline: access patterns -> table design -> query interfaces./dynamodb-single-tableOrchestrator for the DynamoDB single-table design pipeline. Use when the user wants to design a DynamoDB table end-to-end or is unsure which step to start with. Routes to the appropriate specialized skill: dynamodb-access-patterns, dynamodb-table-design, or dynamodb-query-interfaces./dynamodb-table-designDesigns a DynamoDB single-table structure from a documented set of access patterns. Use when the user has an access patterns .md file (from dynamodb-access-patterns skill) and wants to design partition keys, sort keys, GSIs, composite keys, and map every access pattern to a concrete DynamoDB query operation. This is Step 2 of a 3-step pipeline: access patterns -> table design -> query interfaces.Other plugins' skills for the same job