用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/tomes --skill cosmosdb-best-practices命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
> Use when this capability is needed.
Use when writing kernel, account, or note MASM code that reads from or writes to the advice provider (advice stack / advice map) — validate advice data.
Use when writing a Rust test that exercises a failure path or a MASM test that expects a `panic` / `assert` — assert on the specific expected error variant or error code.
基于 SOC 职业分类
正在显示 SKILL.md
| name | cosmosdb-best-practices |
| description | | Use when this capability is needed. |
Comprehensive performance optimization guide for Azure Cosmos DB applications, containing 100+ rules across 12 categories, prioritized by impact to guide automated refactoring and code generation.
Reference these guidelines when:
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Data Modeling | CRITICAL | model- |
| 2 | Partition Key Design | CRITICAL | partition- |
| 3 | Query Optimization | HIGH | query- |
| 4 | SDK Best Practices | HIGH | sdk- |
| 5 | Indexing Strategies | MEDIUM-HIGH | index- |
| 6 | Throughput & Scaling | MEDIUM | throughput- |
| 7 | Global Distribution | MEDIUM | global- |
| 8 | Monitoring & Diagnostics | LOW-MEDIUM | monitoring- |
| 9 | Design Patterns | HIGH | pattern- |
| 10 | Developer Tooling | MEDIUM | tooling- |
| 11 | Vector Search | HIGH | vector- |
setIfNoneMatchETag("*") on createItem to reject duplicates atomically (409 on conflict)/?, /[], /*)EnableNoSQLFullTextSearch capability on the account — prerequisite for all FTS functionsfullTextPolicy on the container with correct language code (en-US, case-sensitive)fullTextIndexes entry in the indexing policy to build the inverted indexFullTextContains / FullTextContainsAll / FullTextContainsAny instead of CONTAINS(LOWER(...))ORDER BY RANK FullTextScore(path, term) for BM25 relevance rankingUse the linked rule files above for detailed explanations and code examples. The links give the agent direct paths to the relevant guidance instead of relying on folder scanning or inferred filenames.
Each rule file contains:
For the complete guide with all rules expanded: AGENTS.md
Source: AzureCosmosDB/cosmosdb-agent-kit — distributed by TomeVault.
CosmosItemRequestOptionscreateItemCosmosPatchOperations.incr() for atomic counter increments — no read RU, no ETag conflict cyclebyPage() — pass null for first page, never ""Microsoft.Azure.Cosmos, not the abandoned Azure.Cosmos v4-preview packageMicrosoft.Azure.Cosmos namespace collisions with domain models (User, Database, Container, etc.)