Cosmosdb Partition Key
ASecurityAzure Cosmos DB partition key design best practices: high cardinality, hotspot avoidance, hierarchical partition keys, synthetic keys, query pattern alignment, immutability, and logical partition size limits. USE FOR: Cosmos DB partition key choice, high cardinality, avoid hot partitions, hierarchical partition keys, synthetic partition keys, query pattern alignment, partition key length, immutable partition key, 20GB logical partition limit. DO NOT USE FOR: data modeling (use cosmosdb-data-m...
- 5 stars
- 0 votes
- 0 copies
- 5 views
- Added September 11, 2026
Security analysis
100/100Pro scans all 9 files and shows the line behind each finding
npx -y skills add atc-net/atc-agentic-toolkit --skill cosmosdb-partition-key --agent claude-codeAre you the author of Cosmosdb Partition Key?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/atc-net-cosmosdb-partition-key)---
name: cosmosdb-partition-key
description: >
Azure Cosmos DB partition key design best practices: high cardinality,
hotspot avoidance, hierarchical partition keys, synthetic keys, query pattern
alignment, immutability, and logical partition size limits.
USE FOR: Cosmos DB partition key choice, high cardinality, avoid hot partitions,
hierarchical partition keys, synthetic partition keys, query pattern alignment,
partition key length, immutable partition key, 20GB logical partition limit.
DO NOT USE FOR: data modeling (use cosmosdb-data-modeling), query optimization
(use cosmosdb-query-optimization), throughput (use cosmosdb-throughput).
---
# Azure Cosmos DB Partition Key Design
Best practices for choosing and designing partition keys in Azure Cosmos DB.
## When to Apply
Reference these guidelines when:
- Choosing a partition key for a new container
- Evaluating partition key cardinality
- Designing for even write distribution
- Using hierarchical partition keys
- Planning for logical partition size limits
## Rules
- [partition-high-cardinality](references/partition-high-cardinality.md) - Choose high-cardinality partition keys
- [partition-avoid-hotspots](references/partition-avoid-hotspots.md) - Distribute writes evenly
- [partition-hierarchical](references/partition-hierarchical.md) - Use hierarchical partition keys for flexibility
- [partition-query-patterns](references/partition-query-patterns.md) - Align partition key with query patterns
- [partition-synthetic-keys](references/partition-synthetic-keys.md) - Create synthetic keys when needed
- [partition-key-length](references/partition-key-length.md) - Respect partition key value length limits
- [partition-immutable-key](references/partition-immutable-key.md) - Choose immutable properties as partition keys
- [partition-20gb-limit](references/partition-20gb-limit.md) - Plan for 20GB logical partition limit
Files in this skill
- SKILL.md
- references/partition-20gb-limit.md
- references/partition-avoid-hotspots.md
- references/partition-hierarchical.md
- references/partition-high-cardinality.md
- references/partition-immutable-key.md
- references/partition-key-length.md
- references/partition-query-patterns.md
- references/partition-synthetic-keys.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.