Command Palette

Search for a command to run...

Назад к скиллам
скилл № 08521

data-nosql-database

Use when the user asks about MongoDB, Cassandra, DynamoDB single-table design, Cosmos DB, Couchbase, partition keys, GSIs, consistency levels or NoSQL…

БесплатноБез исполняемых скриптов
j4flmaoот j4flmao★ 47 звёзд на GitHub

Установить data-nosql-database в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Data NoSQL Database

Purpose

Select and design NoSQL databases by access patterns, data shape, consistency requirements, and scale. Use document stores for flexible schemas, wide-column for high-scale writes, key-value for caching, and single-table designs for DynamoDB.

Architecture / Decision Trees

NoSQL Type Selection Decision Tree

What is the primary access pattern?
├── Complex queries with flexible filters, aggregations
│   └── Document store (MongoDB, Couchbase)
├── Simple lookups by primary key, high throughput
│   ├── Key-value reads < 1KB → Redis (in-memory)
│   └── Larger payloads, durable → DynamoDB
├── High-volume writes, time-series data
│   └── Wide-column (Cassandra, Scylla, Bigtable)
├── Relationship-heavy traversals
│   └── Graph (Neo4j, Amazon Neptune)

What consistency model is required?
├── Strong consistency required → MongoDB (primary reads, majority write)
├── Tunable consistency → Cassandra (ONE/QUORUM/ALL per query)
├── Eventually consistent acceptable → DynamoDB (default eventual reads)
└── Strict serializable → Spanner, CosmosDB (Bounded Staleness)

What is the write volume?
├── < 10K writes/sec → MongoDB, DynamoDB, any
├── 10K-100K writes/sec → Cassandra, Scylla, DynamoDB (on-demand)
├── 100K-1M writes/sec → Scylla, Cassandra (tuned), Bigtable
└── > 1M writes/sec → Scylla, Bigtable, custom partitioning

What is the data size per entity?
├── Small documents (< 16MB) → MongoDB (16MB doc limit)
├── Large blobs → Store in S3/GCS, reference in NoSQL
└── Variable size → DynamoDB (400KB item limit)

Partition Key Design Decision Tree

What is the query pattern?
├── Always query by user/tenant ID
│   └── User/tenant ID as partition key
├── Query by time range within a partition
│   └── Partition: user/region, Sort/cluster: timestamp
├── Global queries across all partitions
│   └── GSI (DynamoDB), secondary index (MongoDB)
├── Need time-series + evenly distributed writes
│   └── Compound partition key with time bucket + hashed shard key
└── Need geographic data locality
    └── Ranged shard key by region

Avoid:
├── Monotonically increasing keys (all writes to last shard)
├── Low-cardinality keys (jumbo partitions, hot spots)
├── Single-attribute keys for multi-tenant (all writes to one shard)
└── Frequently updated keys (cross-shard transactions)

Agent Protocol

Trigger

Exact user phrases: "MongoDB", "Cassandra", "DynamoDB", "Couchbase", "CosmosDB", "NoSQL", "document database", "wide-column", "key-value", "consistency model", "CAP theorem", "sharding", "denormalization", "single-table design", "GSI", "LSI", "aggregation pipeline", "CQL".

Input Context

Before activating, verify:

  • Access patterns (known queries, write volume, read volume)
  • Consistency requirements (strong, eventual, tunable)
  • Data shape (nested documents, flat rows, time-series)
  • Scale requirements (GB/TB/PB, throughput, latency SLAs)
  • Team expertise (SQL background, NoSQL experience)
  • Cloud vs on-premise deployment

Output Artifact

NoSQL data model with access patterns, sharding strategy, consistency configuration, and platform-specific DDL.

Response Format

// MongoDB schema + indexes + aggregation
// Cassandra table DDL + compaction
// DynamoDB table config + GSI/LSI
# Consistency configuration
# Sharding strategy

No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output — why use many token when few do trick.

Completion Criteria

  • NoSQL type selected based on access patterns and data shape
  • Data model designed around known queries (query-first approach)
  • Sharding/partition key chosen to avoid hot spots
  • Secondary indexes designed (GSI, LSI, MongoDB secondary)
  • Consistency model configured per operation
  • Denormalization applied for read performance
  • Write path optimized (compaction, write isolation)

Max Response Length

300 lines of schema and configuration.

Workflow

Step 1: NoSQL Type Selection

Document (MongoDB, Couchbase): nested data, flexible schema, complex queries. Wide-column (Cassandra, Scylla): high-volume writes, time-series, predictable queries by partition key. Key-value (Redis, DynamoDB): simple lookups, caching, session store. Graph (Neo4j): relationships are first-class. Decision matrix: write volume, query complexity, consistency needs, schema flexibility.

Pattern Read Latency Write Throughput Query Flexibility Consistency
Document Low Medium High Tunable
Wide-column Low Very High Low (by PK) Tunable
Key-value Very Low Very High Very Low Configurable
Graph Medium Low Very High (traversals) Often strict

Step 2: Data Modeling (Query-First)

Map all access patterns before designing schemas. For every query define: partition key, sort/clustering key, filter conditions,

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/document-db.md
  • references/dynamodb-couchbase.md
  • references/mongodb-cassandra.md
  • references/nosql-cap-theorem.md
  • references/nosql-data-modeling.md
  • references/nosql-performance-tuning.md
  • references/nosql-query-optimization.md
  • references/wide-column.md

FAQ

Что делает скилл data-nosql-database?

Use when the user asks about MongoDB, Cassandra, DynamoDB single-table design, Cosmos DB, Couchbase, partition keys, GSIs, consistency levels or NoSQL denormalization. Produces database choice, access-pattern-driven data model and capacity settings. Not for graph databases (use data-graph-database) or Redis caching (use backend-caching).

Как установить скилл data-nosql-database?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл data-nosql-database запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить data-nosql-database с