Labsco
microsoft logo

cosmosdb-best-practices

✓ Official197

by microsoft · part of microsoft/vscode-cosmosdb

Comprehensive performance optimization guide for Azure Cosmos DB applications, containing 75+ rules across 11 categories, prioritized by impact to guide automated refactoring and code generation.

🔥🔥🔥🔥✓ VerifiedFreeAdvanced setup
🧰 Not standalone. This skill ships with microsoft/vscode-cosmosdb and only works together with that tool — install the tool first, then add this skill.

Comprehensive performance optimization guide for Azure Cosmos DB applications, containing 75+ rules across 11 categories, prioritized by impact to guide automated refactoring and code generation.

Inspect the full instructions your agent will receiveExpand

This is the exact playbook injected into your agent when the skill activates — shown here so you can audit it before installing. You don't need to read it to use the skill.

by microsoft

Comprehensive performance optimization guide for Azure Cosmos DB applications, containing 75+ rules across 11 categories, prioritized by impact to guide automated refactoring and code generation. npx skills add https://github.com/microsoft/vscode-cosmosdb --skill cosmosdb-best-practices Download ZIPGitHub197

Azure Cosmos DB Best Practices

Comprehensive performance optimization guide for Azure Cosmos DB applications, containing 75+ rules across 11 categories, prioritized by impact to guide automated refactoring and code generation.

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

Priority Category Impact Prefix 1 Data Modeling CRITICAL model- 2 Partition Key Design CRITICAL partition- 3 Query Optimization HIGH query- 4 SDK Best Practices HIGH sdk- 5 Indexing Strategies MEDIUM-HIGH index- 6 Throughput & Scaling MEDIUM throughput- 7 Global Distribution MEDIUM global- 8 Monitoring & Diagnostics LOW-MEDIUM monitoring- 9 Design Patterns HIGH pattern- 10 Developer Tooling MEDIUM tooling- 11 Vector Search HIGH vector-

Quick Reference

1. Data Modeling (CRITICAL)

2. Partition Key Design (CRITICAL)

3. Query Optimization (HIGH)

4. SDK Best Practices (HIGH)

5. Indexing Strategies (MEDIUM-HIGH)

6. Throughput & Scaling (MEDIUM)

7. Global Distribution (MEDIUM)

8. Monitoring & Diagnostics (LOW-MEDIUM)

9. Design Patterns (HIGH)

10. Developer Tooling (MEDIUM)

11. Vector Search (HIGH)

Full Compiled Document

For the complete guide with all rules expanded: AGENTS.md