Agent skill · software engineering · sickn33
azure-cosmos-py
Azure Cosmos DB SDK for Python (NoSQL API). Use for document CRUD, queries, containers, and globally distributed data.
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 azure-cosmos, azure-identity installed locally. Requires azure account access. About 3k tokens when loaded. Last updated 2026-08-07. 44,571 stars on the source repository.
What this skill does
Bundled upstream support Supporting files are included at skill-relative paths. See UPSTREAM-NOTICE.md for their pinned sources, licenses, hashes, and import changes. Supporting material availability These paths remain unavailable in this catalog copy: <support-root>/scripts/setupcosmoscontainer.py Do not invoke a step that requires one of these files. Obtain the original material and review its dependencies, license, and effects before use. Independent inline steps and the bundled helpers can proceed within the user’s authorized scope. Azure Cosmos DB SDK for Python Client library for Azure Cosmos DB NoSQL API — globally distributed, multi-model database. Installation Environment Variables Authentication Client Hierarchy Client Purpose Get From -------- --------- ---------- CosmosClient Account-level operations Direct instantiation DatabaseProxy Database operations client.getdatabaseclient() ContainerProxy Container/item operations database.getcontainerclient() Core Workflow Setup Database and Container Create Item Read Item Update Item (Replace) Upsert Item Delete Item Queries Basic Query Cross-Partition Query Query with Projection Read All Items Partition Keys Critical: Always include partition key for efficient operations. Throughput Async Client Error Handling Best Practices 1. Always specify partition key for point reads and queries 2. Use parameterized queries to prevent injection and improve caching 3. Avoid cross-partition queries when possible 4. Use upsertitem for idempotent writes 5. Use async client for high-throughput scenarios 6. Design partition key for even data distribution 7. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills sickn33/azure-cosmos-py