rootcastleco/rei-skills/azure-cosmos-py
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install rootcastleco/rei-skills/azure-cosmos-pySKILL.md
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
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 `upsert_item` for idempotent writes
- 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.
🏰 Rei Skills — Curated by Rootcastle Engineering & Innovation | Batuhan AyrıbaşEngineering Beyond Boundaries | admin@rootcastle.com
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
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
- 6
- Repository forks
- 2
- 7-day trend score
- 15
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
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/rootcastleco/rei-skills/azure-cosmos-py)