Agent skill · software engineering · aiskillstore
azure-cosmos-java
Azure Cosmos DB SDK for Java. NoSQL database operations with global distribution, multi-model support, and reactive patterns.
Why this skill is useful
Provides specific commands and patterns for interacting with Azure Cosmos DB that the AI wouldn't reliably generate on its own.
What it needs
Requires maven installed locally. Requires azure account access. About 3k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
Azure Cosmos DB SDK for Java Client library for Azure Cosmos DB NoSQL API with global distribution and reactive patterns. Installation Or use Azure SDK BOM: Environment Variables Authentication Key-based Authentication Async Client With Customizations Client Hierarchy Class Purpose ------- --------- CosmosClient / CosmosAsyncClient Account-level operations CosmosDatabase / CosmosAsyncDatabase Database operations CosmosContainer / CosmosAsyncContainer Container/item operations Core Workflow Create Database Create Container CRUD Operations Query Documents Key Concepts Partition Keys Choose a partition key with: High cardinality (many distinct values) Even distribution of data and requests Frequently used in queries Consistency Levels Level Guarantee ------- ----------- Strong Linearizability Bounded Staleness Consistent prefix with bounded lag Session Consistent prefix within session Consistent Prefix Reads never see out-of-order writes Eventual No ordering guarantee Request Units (RUs) All operations consume RUs. Check response headers: Best Practices 1. Reuse CosmosClient — Create once, reuse throughout application 2. Use async client for high-throughput scenarios 3. Choose partition key carefully — Affects performance and scalability 4. Enable content response on write for immediate access to created items 5. Configure preferred regions for geo-distributed applications 6. Handle 429 errors with retry policies (built-in by default) 7. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/azure-cosmos-java