Skip to content
Back to skills

Cosmosdb Design Patterns

ASecurity

Azure Cosmos DB design patterns: change feed materialized views, efficient ranking, service layer relationship hydration, LangGraph multi-agent orchestration, human-in-the-loop interrupts, checkpoint resumption, agent routing, FastAPI startup, chat history separation, background task writes, async Cosmos DB routing, and agent name attribution. USE FOR: Cosmos DB change feed, materialized views, CQRS, event sourcing, ranking patterns, service layer, relationship hydration, LangGraph, multi-age...

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 11, 2026
ai-agentsfastapiazureapi

Works with

  • api

Security analysis

A100/100

Pro scans all 15 files and shows the line behind each finding

Scanned September 11, 2026

npx -y skills add atc-net/atc-agentic-toolkit --skill cosmosdb-design-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cosmosdb Design Patterns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cosmosdb Design Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/atc-net-cosmosdb-design-patterns/badge)](https://www.skillsdirectory.com/skills/atc-net-cosmosdb-design-patterns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cosmosdb-design-patterns
description: >
  Azure Cosmos DB design patterns: change feed materialized views, efficient
  ranking, service layer relationship hydration, LangGraph multi-agent orchestration,
  human-in-the-loop interrupts, checkpoint resumption, agent routing, FastAPI startup,
  chat history separation, background task writes, async Cosmos DB routing, and
  agent name attribution.
  USE FOR: Cosmos DB change feed, materialized views, CQRS, event sourcing,
  ranking patterns, service layer, relationship hydration, LangGraph, multi-agent,
  human-in-the-loop, interrupt, checkpoint, agent routing, FastAPI startup,
  chat history, background tasks, async routing, agent attribution, AI grounding.
  DO NOT USE FOR: SDK configuration (use cosmosdb-sdk), data modeling (use cosmosdb-data-modeling).
---

# Azure Cosmos DB Design Patterns

Architecture and integration patterns for Azure Cosmos DB applications, including AI agent orchestration with LangGraph.

## When to Apply

Reference these guidelines when:
- Implementing materialized views with change feed
- Building ranking or leaderboard features
- Hydrating document references across containers
- Building LangGraph multi-agent applications with Cosmos DB
- Implementing human-in-the-loop flows
- Managing chat history and agent routing

## Rules

- [pattern-change-feed-materialized-views](references/pattern-change-feed-materialized-views.md) - Use Change Feed for cross-partition query optimization
- [pattern-efficient-ranking](references/pattern-efficient-ranking.md) - Efficient ranking approaches
- [pattern-service-layer-relationships](references/pattern-service-layer-relationships.md) - Service layer for relationship hydration
- [pattern-langgraph-multi-agent](references/pattern-langgraph-multi-agent.md) - StateGraph with conditional edges for multi-agent routing
- [pattern-langgraph-interrupt-human](references/pattern-langgraph-interrupt-human.md) - LangGraph interrupt for human-in-the-loop
- [pattern-langgraph-resume-checkpoint](references/pattern-langgraph-resume-checkpoint.md) - Resume from checkpoint after interrupt
- [pattern-langgraph-agent-routing-cosmosdb](references/pattern-langgraph-agent-routing-cosmosdb.md) - Persist active agent in Cosmos DB
- [pattern-langgraph-fastapi-startup](references/pattern-langgraph-fastapi-startup.md) - Initialize LangGraph agents in FastAPI
- [pattern-langgraph-chat-history-separate](references/pattern-langgraph-chat-history-separate.md) - Store chat history in dedicated container
- [pattern-background-task-writes](references/pattern-background-task-writes.md) - FastAPI background tasks for non-blocking writes
- [pattern-langgraph-async-cosmos-routing](references/pattern-langgraph-async-cosmos-routing.md) - Async Cosmos DB calls in LangGraph routing
- [pattern-langgraph-async-cosmos-writes](references/pattern-langgraph-async-cosmos-writes.md) - Async active agent writes
- [pattern-langgraph-agent-name-attribution](references/pattern-langgraph-agent-name-attribution.md) - Tag AI messages with agent name
- [pattern-ai-grounding-access](references/pattern-ai-grounding-access.md) - AI grounding access patterns

Files in this skill

  • SKILL.md3.1 KB
  • references/pattern-ai-grounding-access.md4.4 KB
  • references/pattern-background-task-writes.md2.8 KB
  • references/pattern-change-feed-materialized-views.md11.3 KB
  • references/pattern-efficient-ranking.md5.8 KB
  • references/pattern-langgraph-agent-name-attribution.md2.2 KB
  • references/pattern-langgraph-agent-routing-cosmosdb.md4.1 KB
  • references/pattern-langgraph-async-cosmos-routing.md3.2 KB
  • references/pattern-langgraph-async-cosmos-writes.md2.9 KB
  • references/pattern-langgraph-chat-history-separate.md3.4 KB
  • references/pattern-langgraph-fastapi-startup.md3.1 KB
  • references/pattern-langgraph-interrupt-human.md2.9 KB
  • references/pattern-langgraph-multi-agent.md4.2 KB
  • references/pattern-langgraph-resume-checkpoint.md2.8 KB
  • references/pattern-service-layer-relationships.md4.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…