Skip to content
alinaqi avatar

Azure Cosmosdb

Azure Cosmos DB NoSQL API skill covering partition key design, SDK CRUD patterns, and optimistic concurrency.

CCM score
51 of 100
skills.sh installs
234
GitHub stars
712
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers partition key selection, hierarchical partition keys, and how key choice affects scalability and query cost
  • Includes TypeScript @azure/cosmos client setup, typed item models, point reads, queries, paginated queries, and patch operations
  • Guides avoidance of low-cardinality and monotonically increasing partition keys that create hot partitions
  • Designed for developers building services on the NoSQL (Core) API who need efficient access patterns

Install

$ npx -y skills add alinaqi/maggy --skill azure-cosmosdb -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Core Principle

Choose partition key wisely, design for your access patterns, understand consistency tradeoffs.

Cosmos DB distributes data across partitions. Your partition key choice determines scalability, performance, and cost. Design for even distribution and query efficiency.


Cosmos DB APIs

APIUse Case
NoSQL (Core)Document database, most flexible
MongoDBMongoDB wire protocol compatible
PostgreSQLDistributed PostgreSQL (Citus)
Apache CassandraWide-column store
Apache GremlinGraph database
TableKey-value (Azure Table Storage compatible)

This skill focuses on NoSQL (Core) API - the most common choice.


Key Concepts

ConceptDescription
ContainerCollection of items (like a table)
ItemSingle document/record (JSON)
Partition KeyDetermines data distribution
Logical PartitionItems with same partition key
Physical PartitionStorage unit (max 50GB, 10K RU/s)
RU (Request Unit)Throughput currency

Partition Key Design

Details

Repository
github.com/alinaqi/maggy
Categories
Databases, Backend & APIs
First seen
Jun 3, 2026

Questions

What does the azure-cosmosdb skill help with?

The azure-cosmosdb skill covers Azure Cosmos DB partition key design, consistency levels, change feed and SDK patterns. It focuses on the NoSQL (Core) API and gives patterns for point reads, queries, updates and optimistic concurrency with ETags.

How do I install the azure-cosmosdb skill?

Run npx -y skills add alinaqi/maggy --skill azure-cosmosdb -y in your project. The skill then gives Claude Code guidance on working with Azure Cosmos DB.

Which other skills sit beside azure-cosmosdb in the Databases category?

In the Databases category, azure-cosmosdb is listed alongside supabase-postgres-best-practices, prisma-client-api, prisma-database-setup, prisma-cli and prisma-postgres. Where azure-cosmosdb differs is its focus on Cosmos DB partition keys and request unit throughput rather than relational databases.

What does the skill need before I can use it?

The SDK code expects an endpoint and key, or a connection string, set as COSMOS_ENDPOINT, COSMOS_KEY and COSMOS_DATABASE environment variables. The TypeScript examples install the @azure/cosmos package with npm.

More from alinaqi/maggy

All 54

Similar to Azure Cosmosdb

More Databases