Skip to content
Back to skills

Cosmosdb Indexing

ASecurity

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 co...

  • 5 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 11, 2026
ai-agentsazure

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned September 11, 2026

npx -y skills add atc-net/atc-agentic-toolkit --skill cosmosdb-indexing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cosmosdb Indexing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cosmosdb Indexing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/atc-net-cosmosdb-indexing/badge)](https://www.skillsdirectory.com/skills/atc-net-cosmosdb-indexing)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.md1.6 KB
  • references/index-composite-direction.md2.7 KB
  • references/index-composite.md10.4 KB
  • references/index-exclude-unused.md4 KB
  • references/index-lazy-consistent.md3.1 KB
  • references/index-path-syntax.md2.5 KB
  • references/index-range-vs-hash.md3.4 KB
  • references/index-spatial.md3.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.