Cosmosdb Indexing
ASecurityAzure Cosmos DB indexing strategy best practices: excluding unused paths, composite indexes for ORDER BY, spatial indexes, index types, path syntax, and indexing modes (consistent vs lazy). USE FOR: Cosmos DB indexing policy, exclude paths, composite index, spatial index, index path syntax /? /* /[], range vs hash index, lazy vs consistent indexing, index direction, write overhead reduction. DO NOT USE FOR: query optimization (use cosmosdb-query-optimization), full-text search indexes (use co...
- 5 stars
- 0 votes
- 0 copies
- 2 views
- Added September 11, 2026
Security analysis
100/100Pro scans all 8 files and shows the line behind each finding
npx -y skills add atc-net/atc-agentic-toolkit --skill cosmosdb-indexing --agent claude-codeAre you the author of Cosmosdb Indexing?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/atc-net-cosmosdb-indexing)---
name: cosmosdb-indexing
description: >
Azure Cosmos DB indexing strategy best practices: excluding unused paths,
composite indexes for ORDER BY, spatial indexes, index types, path syntax,
and indexing modes (consistent vs lazy).
USE FOR: Cosmos DB indexing policy, exclude paths, composite index, spatial index,
index path syntax /? /* /[], range vs hash index, lazy vs consistent indexing,
index direction, write overhead reduction.
DO NOT USE FOR: query optimization (use cosmosdb-query-optimization),
full-text search indexes (use cosmosdb-full-text-search),
vector indexes (use cosmosdb-vector-search).
---
# Azure Cosmos DB Indexing Strategies
Best practices for configuring indexing policies in Azure Cosmos DB.
## When to Apply
Reference these guidelines when:
- Configuring indexing policies
- Adding composite indexes for multi-field ORDER BY
- Optimizing write costs by excluding unused paths
- Setting up spatial indexes for geo queries
## Rules
- [index-exclude-unused](references/index-exclude-unused.md) - Exclude paths never queried
- [index-path-syntax](references/index-path-syntax.md) - Use correct path notation
- [index-composite](references/index-composite.md) - Use composite indexes for ORDER BY
- [index-composite-direction](references/index-composite-direction.md) - Match composite index directions
- [index-spatial](references/index-spatial.md) - Add spatial indexes for geo queries
- [index-range-vs-hash](references/index-range-vs-hash.md) - Choose appropriate index types
- [index-lazy-consistent](references/index-lazy-consistent.md) - Understand indexing modes
Files in this skill
- SKILL.md
- references/index-composite-direction.md
- references/index-composite.md
- references/index-exclude-unused.md
- references/index-lazy-consistent.md
- references/index-path-syntax.md
- references/index-range-vs-hash.md
- references/index-spatial.md
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.