Cosmosdb Best Practices
Azure Cosmos DB NoSQL guidance covering partitioning, RU optimization, query patterns, and SDK usage.
- CCM score
- 55 of 100
- skills.sh installs
- 1.2K
- GitHub stars
- 62
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers data modeling, partition key design, query optimization, SDK practices, indexing, throughput, and global distribution across 13 prioritized categories
- Includes over 100 rules, each linked to a dedicated file with SDK APIs, limits, and configuration prerequisites in its body
- Enforces constraints such as the 2MB item limit, 128-level nesting depth, and the 20GB logical partition limit during data model review
- Designed for writing, reviewing, or refactoring Cosmos DB code, and excludes non-Azure databases, Cosmos DB vCore offerings, and general SQL stores
Install
$ npx -y skills add azurecosmosdb/cosmosdb-agent-kit --skill cosmosdb-best-practices -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Azure Cosmos DB Best Practices
Comprehensive performance optimization guide for Azure Cosmos DB applications, containing 100+ rules across 13 categories, prioritized by impact to guide automated refactoring and code generation.
Before answering, read the linked rule files relevant to the user's question. The quick reference below is an index, not the full guidance: SDK APIs, limits, configuration prerequisites, and caveats live in the rule bodies. Use the language-specific integration rule when one exists rather than substituting a generic pattern. Keep answers concise, but include the constraints that make the recommendation correct for the user's scenario.
When to Apply
Reference these guidelines when:
- Designing data models for Cosmos DB
- Choosing partition keys
- Writing or optimizing queries
- Implementing SDK patterns
- Using the Cosmos DB Emulator for local development
- Inspecting or managing Cosmos DB data with developer tooling
- Implementing vector search or RAG features on Cosmos DB
- Reviewing code for performance issues
- Configuring throughput and scaling
- Building globally distributed applications
Rule Categories by Priority
Details
- Repository
- github.com/azurecosmosdb/cosmosdb-agent-kit
- Categories
- Databases, Backend & APIs
- First seen
- Jun 3, 2026
Similar to Cosmosdb Best Practices
More Databasescosmosdb-datamodelingSkillgithub/awesome-copilot8.7K installsStructured Cosmos DB NoSQL data modeling workflow that captures requirements and produces a design document.
azure-cosmosdbSkillalinaqi/maggy234 installsAzure Cosmos DB NoSQL API skill covering partition key design, SDK CRUD patterns, and optimistic concurrency.
azure-cosmos-db-assistantPluginanthropics/claude-plugins-official48.8K starsExpert assistant for Azure Cosmos DB — data modeling, query optimization, performance tuning, and best practices.
supabase-postgres-best-practicesSkillsupabase/agent-skills504K installsPostgres best-practices guide covering query performance, connections, RLS, schema, locking, and advanced features.
nosql-expertSkilldavila7/claude-code-templates219 installsQuery-first modeling guide for Cassandra and DynamoDB that avoids hot partitions in high-scale systems.
dynamodbSkillitsmostafa/aws-agent-skills151 installsAWS DynamoDB NoSQL reference covering table schemas, queries, indexes, capacity, and performance troubleshooting.