azure-cosmos-db-py
Build production-grade Azure Cosmos DB NoSQL services following clean code, security best practices, and TDD principles.
npx skills add sickn33/agentic-awesome-skills --skill azure-cosmos-db-py --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Cosmos DB Service Implementation Build production-grade Azure Cosmos DB NoSQL services following clean code, security best practices, and TDD principles. ## Installation ```bash pip install azure-cosmos azure-identity ``` ## Environment Variables ```bash COSMOS_ENDPOINT=https://<account>.documents.azure.com:443/ COSMOS_DATABASE_NAME=<database-name> COSMOS_CONTAINER_ID=<container-id> # For emulator only (not production) COSMOS_KEY=<emulator-key> ``` ## Authentication **DefaultAzureCredential (preferred)**: ```python from azure.cosmos import CosmosClient from azure.identity import DefaultAzureCredential client = CosmosClient( url=os.environ["COSMOS_ENDPOINT"], credential=DefaultAzureCredential() ) ``` **Emulator (local development)**: ```python from azure.cosmos import CosmosClient client = CosmosClient( url="https://localhost:8081", credential=os.environ["COSMOS_KEY"], connection_verify=False ) ``` ## Architecture Overview ``` ┌─────────────────────────────────────────────────────────────────┐ │ FastAPI Router │ │ - Auth dependencies (get_current_user, get_current_user_required) │ - HTTP error responses (HTTPException) │ └──────────────────────────────┬────────────────────────────
- Installation
- Environment Variables
- Authentication
- Architecture Overview
- Quick Start
- 1. Client Module Setup
- 2. Pydantic Model Hierarchy
- 3. Service Layer Pattern
- Core Principles
- Security Requirements
- Clean Code Conventions
- TDD Requirements
- Reference Files
- Template Files
pip install azure-cosmos azure-identity For emulator only (not production)
What does the azure-cosmos-db-py skill do?
Build production-grade Azure Cosmos DB NoSQL services following clean code, security best practices, and TDD principles.
How do I install it?
Run `npx skills add sickn33/agentic-awesome-skills --skill azure-cosmos-db-py --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.