cosmos-db-python-skill
✓按照生產級模式使用 Python/FastAPI 構建 Azure Cosmos DB NoSQL 服務。在實現具有雙重身份驗證(DefaultAzureCredential + 模擬器)的數據庫客戶端設置、具有 CRUD 操作的服務層類、分區鍵策略、參數化查詢或 Cosmos 的 TDD 模式時使用。在“Cosmos DB”、“NoSQL 數據庫”、“文檔存儲”、“添加持久性”、“數據庫服務層”或“Python Cosmos SDK”等短語上觸發。
SKILL.md
Build production-grade Azure Cosmos DB NoSQL services following clean code, security best practices, and TDD principles.
| references/client-setup.md | Setting up Cosmos client with dual auth, SSL config, singleton pattern | | references/service-layer.md | Implementing full service class with CRUD, conversions, graceful degradation | | references/testing.md | Writing pytest tests, mocking Cosmos, integration test setup |
| references/partitioning.md | Choosing partition keys, cross-partition queries, move operations | | references/error-handling.md | Handling CosmosResourceNotFoundError, logging, HTTP error mapping |
按照生產級模式使用 Python/FastAPI 構建 Azure Cosmos DB NoSQL 服務。在實現具有雙重身份驗證(DefaultAzureCredential + 模擬器)的數據庫客戶端設置、具有 CRUD 操作的服務層類、分區鍵策略、參數化查詢或 Cosmos 的 TDD 模式時使用。在“Cosmos DB”、“NoSQL 數據庫”、“文檔存儲”、“添加持久性”、“數據庫服務層”或“Python Cosmos SDK”等短語上觸發。 來源:microsoft/agent-skills。
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/microsoft/agent-skills --skill cosmos-db-python-skill- 分類
- </>開發工具
- 認證
- ✓
- 收錄時間
- 2026-02-01
- 更新時間
- 2026-02-18
快速解答
什麼是 cosmos-db-python-skill?
按照生產級模式使用 Python/FastAPI 構建 Azure Cosmos DB NoSQL 服務。在實現具有雙重身份驗證(DefaultAzureCredential + 模擬器)的數據庫客戶端設置、具有 CRUD 操作的服務層類、分區鍵策略、參數化查詢或 Cosmos 的 TDD 模式時使用。在“Cosmos DB”、“NoSQL 數據庫”、“文檔存儲”、“添加持久性”、“數據庫服務層”或“Python Cosmos SDK”等短語上觸發。 來源:microsoft/agent-skills。
如何安裝 cosmos-db-python-skill?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/microsoft/agent-skills --skill cosmos-db-python-skill 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/microsoft/agent-skills
詳情
- 分類
- </>開發工具
- 來源
- skills.sh
- 收錄時間
- 2026-02-01