Azure Cosmos DB Performance Investigator
Purpose
Investigate Azure Cosmos DB performance pathologies with evidence-first profiling instead of lazy “add more RUs” advice.
This skill is for deep performance work across:
- RU inefficiency and unexpected request-charge spikes,
- query latency and scan-heavy query behavior,
- hot partitions and partition-key skew,
- throttling, retry inflation, and client-perceived latency,
- indexing gaps and poor query/index alignment,
- container, partition, and workload-level profiling,
- diagnostic-log and metrics-backed remediation planning.
When to use
Use this skill when the user asks for:
- slow Azure Cosmos DB queries or workload latency,
- high RU cost or suspicious request-charge behavior,
- 429 throttling analysis,
- hot partition or partition-skew investigation,
- indexing or query-performance tuning,
- a step-by-step Cosmos DB profiling plan.
Do not use this skill as a substitute for:
- initial data-model design when the main problem is greenfield schema modeling,
- pure account/platform governance review when performance is incidental,
- generic application debugging unrelated to Cosmos DB workload behavior,
- vector-search-specific Mongo vCore tuning unless the user explicitly asks for that API surface.
Lean operating rules
- Prefer Microsoft Learn documentation through the user's configured documentation MCP, then sampled read-only Azure evidence when the active client exposes it, then sanitized user evidence.
- Separate confirmed facts from inference. If state was not queried or shown, say so.
- Challenge throughput-first fixes that ignore partition skew, query scans, indexing, or client retry inflation.
- Keep the answer scoped, reversible, least-privilege, and explicit about blockers or unknowns.
References
Load these only when needed:
- Operations guide — use for service-specific pitfalls, design rules, verification targets, and pushback criteria.
- MCP and evidence path — use when choosing documentation-based evidence, sampled read-only Azure evidence, or sanitized user evidence.
- Safety checklist — use for evidence labels, risk gates, mutation boundaries, approval rules, and credential boundaries.
- Workflow and output contract — use when executing the full investigation, applying stress checks, or formatting the final answer.
- Data profiling playbook — use when you need the detailed step-by-step profiling sequence.
- Official sources — use when you need the detailed Microsoft documentation list or source notes.
Response minimum
Return, at minimum:
- the scoped target and evidence level,
- the main performance pathologies observed or still unproven,
- the safest next profiling or remediation steps,
- the assumptions or blockers that prevent stronger conclusions.
1---2name: azure-cosmosdb-performance-investigator3description: Azure Cosmos DB Performance Investigator4---56# Azure Cosmos DB Performance Investigator78## Purpose910Investigate Azure Cosmos DB performance pathologies with evidence-first profiling instead of lazy “add more RUs” advice.1112This skill is for deep performance work across:1314- RU inefficiency and unexpected request-charge spikes,15- query latency and scan-heavy query behavior,16- hot partitions and partition-key skew,17- throttling, retry inflation, and client-perceived latency,18- indexing gaps and poor query/index alignment,19- container, partition, and workload-level profiling,20- diagnostic-log and metrics-backed remediation planning.2122## When to use2324Use this skill when the user asks for:2526- slow Azure Cosmos DB queries or workload latency,27- high RU cost or suspicious request-charge behavior,28- 429 throttling analysis,29- hot partition or partition-skew investigation,30- indexing or query-performance tuning,31- a step-by-step Cosmos DB profiling plan.3233Do not use this skill as a substitute for:3435- initial data-model design when the main problem is greenfield schema modeling,36- pure account/platform governance review when performance is incidental,37- generic application debugging unrelated to Cosmos DB workload behavior,38- vector-search-specific Mongo vCore tuning unless the user explicitly asks for that API surface.3940## Lean operating rules4142- Prefer Microsoft Learn documentation through the user's configured documentation MCP, then sampled read-only Azure evidence when the active client exposes it, then sanitized user evidence.43- Separate confirmed facts from inference. If state was not queried or shown, say so.44- Challenge throughput-first fixes that ignore partition skew, query scans, indexing, or client retry inflation.45- Keep the answer scoped, reversible, least-privilege, and explicit about blockers or unknowns.4647## References4849Load these only when needed:5051- [Operations guide](references/cosmosdb-performance-investigation.md) — use for service-specific pitfalls, design rules, verification targets, and pushback criteria.52- [MCP and evidence path](references/mcp-and-evidence.md) — use when choosing documentation-based evidence, sampled read-only Azure evidence, or sanitized user evidence.53- [Safety checklist](references/safety-checklist.md) — use for evidence labels, risk gates, mutation boundaries, approval rules, and credential boundaries.54- [Workflow and output contract](references/workflow-and-output.md) — use when executing the full investigation, applying stress checks, or formatting the final answer.55- [Data profiling playbook](references/data-profiling-playbook.md) — use when you need the detailed step-by-step profiling sequence.56- [Official sources](references/official-sources.md) — use when you need the detailed Microsoft documentation list or source notes.5758## Response minimum5960Return, at minimum:6162- the scoped target and evidence level,63- the main performance pathologies observed or still unproven,64- the safest next profiling or remediation steps,65- the assumptions or blockers that prevent stronger conclusions.