sickn33/antigravity-awesome-skills/azure-cosmos-py
- community
Checking that the SKILL.md file is still in the repository.
Azure Cosmos DB SDK for Python (NoSQL API). Use for document CRUD, queries, containers, and globally distributed data.
Install
npx vskill@latest install sickn33/antigravity-awesome-skills/azure-cosmos-pySKILL.md
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/setup_cosmos_container.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.get_database_client() | |
ContainerProxy | Container/item operations | database.get_container_client() |
Core Workflow
Confirm account/database/container, partition-key definition and authorized budget before provisioning or changing throughput. create_*_if_not_exists does not reconcile an existing container configuration. Examples use different key paths; do not combine them against one container. Tenant partitioning is not authorization isolation. Use ETag conditions for read-modify-write operations and explicit logical-operation deduplication for retries. Change feed is not a globally ordered, exactly-once ledger; checkpoint only after successful idempotent processing and verify the pinned SDK checkpoint API.
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
- Always specify partition key for point reads and queries
- Use parameterized queries to prevent injection and improve caching
- Avoid cross-partition queries when possible
- Use stable IDs carefully; upsert replaces existing contents and is not a concurrency or logical-operation deduplication guarantee
- Use async client for high-throughput scenarios
- Design partition key for even data distribution
- Use `read_item` instead of query for single document retrieval
Reference Files
| File | Contents | |
|---|---|---|
| references/partitioning.md | Partition key strategies, hierarchical keys, hot partition detection and mitigation | |
| references/query-patterns.md | Query optimization, aggregations, pagination, transactions, change feed | |
| scripts/setup_cosmos_container.py | CLI tool for creating containers with partitioning, throughput, and indexing |
When to Use
This skill is applicable to execute the workflow or actions described in the overview.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/azure-cosmos-py/SKILL.md
Popularity
- Repository stars
- 27,464
- Repository forks
- 4,628
- Repository npm downloads, 7 days
- 9,651
- 7-day trend score
- 73
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 26 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sickn33/antigravity-awesome-skills/azure-cosmos-py)