Skip to content
Back to skills

Cosmosdb Partition Key

ASecurity

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

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

Security analysis

A100/100

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

Scanned September 11, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Cosmosdb Partition Key?

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

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

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-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.md1.9 KB
  • references/partition-20gb-limit.md2.8 KB
  • references/partition-avoid-hotspots.md3.4 KB
  • references/partition-hierarchical.md5.7 KB
  • references/partition-high-cardinality.md2.2 KB
  • references/partition-immutable-key.md1.8 KB
  • references/partition-key-length.md2.8 KB
  • references/partition-query-patterns.md2.7 KB
  • references/partition-synthetic-keys.md3.8 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.