This one covers the essentials of working with Azure Cosmos DB's NoSQL API: partition key design, CRUD patterns with the TypeScript SDK, and consistency tradeoffs. The partition key guidance is solid, showing good patterns like userId or tenantId and warning against low cardinality or timestamp keys that create hot partitions. Includes practical code for point reads, cross-partition queries, pagination, and patch operations. If you're building on Cosmos DB and need to avoid the common mistakes around data distribution and query efficiency, this captures the patterns that actually matter in production. Focuses on the Core API, so if you're using MongoDB or Cassandra wire protocols, you'll need different resources.

skills.sh installs
170
GitHub stars
685
last updated
Jun 3, 2026

Install

$ npx -y skills add alinaqi/claude-bootstrap --skill azure-cosmosdb --agent claude-code

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/alinaqi/claude-bootstrap
Category
Cloud & Infrastructure
First seen
Jun 3, 2026

More from alinaqi/claude-bootstrap

All 54
1membranedev avataroracle-fusion-cloud-financialsmembranedev/application-skillsOracle Fusion Cloud Financials integration. Manage data, records, and automate workflows. Use when the user wants to interact with Oracle Fusion Cloud Financial167skills.sh installs
2akillness avatarvercel-deployakillness/oh-my-skillsvercel deploy164skills.sh installs
3andrelandgraf avatarnextjs-on-vercelandrelandgraf/fullstackrecipesCreate a Next.js app running on Bun, configure the development environment, and deploy to Vercel with automatic deployments on push.164skills.sh installs
4fluid-tools avatarvercel-ai-sdkfluid-tools/claude-skillsvercel ai sdk163skills.sh installs
5membranedev avatarmicrosoft-azure-sql-databasemembranedev/application-skillsMicrosoft Azure SQL Database integration. Manage data, records, and automate workflows. Use when the user wants to interact with Microsoft Azure SQL Database da161skills.sh installs
6rysweet avatarazure-devopsrysweet/amplihackComplete Azure DevOps (ADO) automation — work items, boards, sprints, repos, pull requests, pipelines, builds, artifacts. Use when user mentions ADO, work items154skills.sh installs