Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

dynamodb-single-tabledynamodb 单表

Agent Skill

dynamodb-single-table 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

558

周安装

23

GitHub Stars

公开资料未说明

下载量

182
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:dynamodb-single-table(dynamodb 单表)
来源仓库:https://github.com/juancarestre/dynamodb-skills
仓库路径:skills/dynamodb-single-table
安装命令:
npx skills add https://github.com/juancarestre/dynamodb-skills --skill dynamodb-single-table
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/juancarestre/dynamodb-skills --skill dynamodb-single-table

简介

DynamoDB 单表设计流水线整合三步流程:访问模式→表结构→接口生成。

  • 自动化协调各阶段输出,确保所有查询路径均有对应 GSI/LSI 支持。
  • 适用于高并发读写场景,优化数据局部性与请求合并效率。
  • 需在已有访问模式基础上运行,否则返回引导提示要求补全业务需求描述。
  • dynamodb-single-table 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

DynamoDB Single-Table Design Pipeline

This skill orchestrates a 3-step pipeline for designing and implementing a DynamoDB single-table design. Use it when the user wants the full workflow or needs guidance on which step to take next.

Pipeline Overview

  Step 1                    Step 2                    Step 3
  ┌──────────────────┐      ┌──────────────────┐      ┌──────────────────┐
  │ Access Patterns   │ ──>  │ Table Design      │ ──>  │ Query Interfaces  │
  │                   │      │                   │      │                   │
  │ Elicit entities   │      │ Design PK/SK/GSI  │      │ Generate method   │
  │ & access patterns │      │ Map AP -> Query   │      │ signatures & types│
  │ Output: .md file  │      │ Output: .md file  │      │ Output: .md file  │
  └──────────────────┘      └──────────────────┘      └──────────────────┘
  Skill:                    Skill:                    Skill:
  dynamodb-access-patterns  dynamodb-table-design     dynamodb-query-interfaces

Step 0: Detect Pipeline State

Before routing, check if the user's project already has pipeline artifacts. Search for files matching these patterns:

  • **/access-patterns.md or **/access_patterns.md
  • **/table-design.md or **/table_design.md
  • **/query-interfaces.md or **/query_interfaces.md

Also check common locations:

  • docs/dynamodb/
  • docs/
  • Project root

Based on what exists:

Files FoundStateAction
NoneFresh startRoute to dynamodb-access-patterns
Access patterns onlyStep 1 completeRoute to dynamodb-table-design with the file path
Access patterns + table designSteps 1-2 completeRoute to dynamodb-query-interfaces with the file path
All three filesPipeline completeAsk if they want to add entities, modify, or review
Table design only (no access patterns)Partial/legacyWarn that access patterns should be documented; offer to backfill or continue to Step 3

Tell the user what you found:

I found existing DynamoDB design artifacts in your project:

  [x] Access Patterns: docs/dynamodb/access-patterns.md
  [x] Table Design:    docs/dynamodb/table-design.md
  [ ] Query Interfaces: (not found)

You're ready for Step 3. Should I generate the query interfaces from
your table design?

How to Route

User wants to...Route to
Start designing from scratchdynamodb-access-patterns
Define entities and how they'll be querieddynamodb-access-patterns
Has access patterns, needs key designdynamodb-table-design
Has a table design, needs code interfacesdynamodb-query-interfaces
Add a new entity to an existing tableStart with dynamodb-access-patterns for the new entity, then continue the pipeline
Understand single-table design conceptsAnswer directly using the concepts below

Core Concepts (Quick Reference)

What is Single-Table Design?

All entity types live in ONE DynamoDB table. You pre-join related data into item collections (items sharing a partition key) so they can be fetched in a single Query call. This eliminates the need for joins and reduces network round-trips.

When to Use Single-Table Design

  • You need sub-30ms response times at any scale
  • You have well-defined access patterns that won't change frequently
  • You need to fetch multiple entity types in a single request
  • You're building OLTP workloads (not analytics)

When NOT to Use Single-Table Design

  • Your access patterns are still evolving rapidly (early-stage startup)
  • You use GraphQL with per-type resolvers (the resolver model negates single-query benefits)
  • You need flexible ad-hoc queries (consider a relational database instead)

Key Principles

  1. Access patterns first. Never design keys without knowing your queries.
  2. Pre-join into item collections. Related data shares a partition key.
  3. One table, generic key names. Use pk/sk (not userId/orderId).
  4. GSIs for alternate access patterns. Reuse before creating new ones (max 20).
  5. Composite sort keys for multi-field sorting. Encode hierarchy in the SK.
  6. No Scans. Every query must use a partition key. If you need Scan, redesign.
  7. Transactions for multi-item writes. Ensure consistency across item collections.

Artifacts Produced

By the end of the pipeline, the user will have 3 files:

FileContentProduced by
access-patterns.mdEntities, attributes, all read/write/delete patternsdynamodb-access-patterns
table-design.mdPK/SK design, GSIs, access pattern -> query mappingdynamodb-table-design
query-interfaces.mdEntity types, key builders, repository method signaturesdynamodb-query-interfaces

These files serve as the specification for the implementation phase.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.86%
按下载量换算69

Claude

32.8%
按下载量换算60

Cursor

17.08%
按下载量换算31

Gemini CLI

9.95%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills