partiql-dynamodb
DynamoDB PartiQL Assistant
Use this skill when the user needs help writing, validating, or understanding DynamoDB PartiQL.
This skill is DynamoDB-specific. Do not generalize from full SQL or full PartiQL behavior unless DynamoDB docs support it.
When to use this skill
Use this skill if the user asks to:
- learn how to use PartiQL in DynamoDB
- write or debug DynamoDB PartiQL statements
- break down statement syntax parts (for example what
expression,condition, orRETURNINGmean) - understand supported statements, functions, or operators
- avoid full table scans with PartiQL
SELECT - use PartiQL with transactions or batch operations
- understand IAM permissions for PartiQL actions
Core workflow
- Identify what the user is trying to do in DynamoDB (read, write, update, delete, transaction, batch, or access control).
- Load only the relevant reference page(s) from
references/. - If exact syntax or limits are in question, verify with AWS docs through MCP.
- Return DynamoDB-accurate guidance, examples, and caveats.
- Include source links when guidance is page-specific.
Reference routing
Start with:
Load by user intent:
- setup and first usage: Getting Started
- literals and attribute types: Data Types
- statement family overview: Statements
SELECT: SELECTINSERT: INSERTUPDATE: UPDATEDELETE: DELETE- function inventory: Functions
SIZE: SIZEEXISTS: EXISTSATTRIBUTE_TYPE: ATTRIBUTE_TYPEBEGINS_WITH: BEGINS_WITHCONTAINS: CONTAINSMISSING: MISSING- operators: Operators
- multi-statement transactions: Transactions
- batch statements: Batch Operations
- security and permissions: IAM
DynamoDB boundaries to enforce
- DynamoDB supports only a subset of PartiQL.
SELECTcan become a full table scan if partition-key equality orINpatterns are not used correctly.INSERT,UPDATE, andDELETEoperate on one item per statement.- A transaction can contain up to 100 statements and must be all reads or all writes (
EXISTSis the documented exception for condition-style checks). - A batch can contain up to 25 statements and cannot mix reads and writes.
EXISTSis only valid in transactional operations.- IAM permissions are action specific:
dynamodb:PartiQLSelect,dynamodb:PartiQLInsert,dynamodb:PartiQLUpdate,dynamodb:PartiQLDelete.
Output guidance
When answering, prefer:
- short statement of whether the user approach is valid in DynamoDB PartiQL
- corrected query or query alternatives
- caveats (scan risk, limits, permissions)
- source links when rules come from a specific reference page
More from layeredcraft/skills
git-workflow
>-
15zensical-site
Use this skill whenever the user asks for anything related to https://zensical.org/ including researching pages, drafting or editing site copy, planning information architecture, writing Zensical-style markdown, extracting key points from docs, or preparing publish-ready content updates. Trigger even if the user does not explicitly mention "skill" or "zensical-style" but the work is clearly about zensical.org content.
5skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
2