/documentdb:documentdb-indexingfrom documentdb
Index-type selection and shape guidance for Azure DocumentDB: single-field, compound (ESR), multikey, wildcard, hashed, 2dsphere, TTL, and vector indexes, plus a query-pattern cookbook and per-collection index budget.
Ships in documentdb. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Companion skill to documentdb-query-optimizer. That skill answers "why is this query slow?"; this one answers "which index should I create, and what shape should it take?".
Azure DocumentDB supports the standard MongoDB index types. Only _id is created automatically — every other index must be created explicitly. Default limit: 64 single-field indexes per collection (extendable to 300 on request).
_idvs regular indexes: The_idindex is a B-tree, created automatically, and cannot be dropped. For sharded collections the_idkey is composite — it includes a hash of the shard key. All other indexes created viacreateIndexare RUM indexes; the exception is geospatial indexes (2dsphere,2d), which are GiST indexes.
unique, sparse, partial, collation).textSearch index + $search over community $text indexes.[longitude, latitude] order, $near / $geoWithin / $geoIntersects.expireAfterSeconds semantics, date-field requirement, monitoring.$indexStats; drop unused.hideIndex → dropIndex. The _id index cannot be dropped.index-2dsphere-geospatial.md (opens in a new tab)index-compound-esr.md (opens in a new tab)index-count-budget.md (opens in a new tab)index-hashed-shard-keys.md (opens in a new tab)index-lifecycle-drop-hide.md (opens in a new tab)index-multikey-arrays.md (opens in a new tab)index-pattern-cookbook.md (opens in a new tab)index-single-field.md (opens in a new tab)index-text-prefer-textsearch.md (opens in a new tab)index-ttl-expiry.md (opens in a new tab)index-wildcard-dynamic-schemas.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
17 skills in this plugin
/documentdb-azure-deploymentDeploy an Azure DocumentDB cluster (`Microsoft.DocumentDB/mongoClusters`) end-to-end — Bicep (primary), Azure CLI (`documentdb` extension), Terraform, or the Azure portal. Every step has a scriptable command, so it works the same for a developer at a terminal, a CI pipeline, or a coding agent. Covers resource-group creation, cluster parameters (tier, storage, server version, sharding, HA), firewall rule configuration, retrieving the connection string, and teardown. Use when the user asks to provision, create, deploy, or spin up an Azure DocumentDB cluster, or wants infrastructure-as-code for one./documentdb-connectionOptimize MongoDB client connection configuration (pools, timeouts, patterns) for Azure DocumentDB. Use this skill when working on functions that instantiate or configure a MongoDB client (e.g., calling `connect()`), configuring connection pools, troubleshooting connection errors (ECONNREFUSED, timeouts, pool exhaustion), optimizing connection-related performance issues. Includes scenarios like building serverless functions, creating API endpoints, optimizing high-traffic applications, or debugging connection failures.Other plugins' skills for the same job
/documentdb-data-modelingData modeling patterns for Azure DocumentDB — embed vs reference, 16 MB document limit, denormalization for read-heavy workloads, schema versioning. Use when designing new schemas, reviewing existing data models, migrating from SQL, deciding between embedding and referencing, modeling one-to-one / one-to-many / many-to-many relationships, or troubleshooting document-size and query-performance problems that stem from the data model.npx claudepluginhub azure/documentdb-agent-kit --plugin documentdb