Azure Database Migration
MicrosoftDocs/Agent-Skills
Expert knowledge for Azure Database Migration Service development including troubleshooting, decision making, limits & quotas, security, integrations & coding patterns, and deployment.
Azure Cosmos DB performance optimization and best practices guidelines for NoSQL, partitioning, queries, and SDK usage.
$ npx skills add microsoft/vscode-cosmosdb --skill cosmosdb-best-practices -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install microsoft/vscode-cosmosdb cosmosdb-best-practices --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/microsoft/vscode-cosmosdb.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/cosmosdb-best-practices .claude/skills/cosmosdb-best-practices && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "cosmosdb-best-practices" agent skill from https://github.com/microsoft/vscode-cosmosdb/tree/main/skills/cosmosdb-best-practices into .claude/skills/cosmosdb-best-practices/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cosmosdb-best-practices", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/microsoft/vscode-cosmosdb/tree/main/skills/cosmosdb-best-practicesType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add microsoft/vscode-cosmosdb --skill cosmosdb-best-practices -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install microsoft/vscode-cosmosdb cosmosdb-best-practices --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/microsoft/vscode-cosmosdb.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/cosmosdb-best-practices .agents/skills/cosmosdb-best-practices && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "cosmosdb-best-practices" agent skill from https://github.com/microsoft/vscode-cosmosdb/tree/main/skills/cosmosdb-best-practices into .agents/skills/cosmosdb-best-practices/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cosmosdb-best-practices", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add microsoft/vscode-cosmosdb --skill cosmosdb-best-practices -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install microsoft/vscode-cosmosdb cosmosdb-best-practices --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/microsoft/vscode-cosmosdb.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/cosmosdb-best-practices .cursor/skills/cosmosdb-best-practices && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "cosmosdb-best-practices" agent skill from https://github.com/microsoft/vscode-cosmosdb/tree/main/skills/cosmosdb-best-practices into .cursor/skills/cosmosdb-best-practices/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cosmosdb-best-practices", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/microsoft/vscode-cosmosdb.git --path skills/cosmosdb-best-practices--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add microsoft/vscode-cosmosdb --skill cosmosdb-best-practices -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install microsoft/vscode-cosmosdb cosmosdb-best-practices --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/microsoft/vscode-cosmosdb.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/cosmosdb-best-practices .gemini/skills/cosmosdb-best-practices && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "cosmosdb-best-practices" agent skill from https://github.com/microsoft/vscode-cosmosdb/tree/main/skills/cosmosdb-best-practices into .gemini/skills/cosmosdb-best-practices/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cosmosdb-best-practices", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install microsoft/vscode-cosmosdb cosmosdb-best-practicesInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add microsoft/vscode-cosmosdb --skill cosmosdb-best-practices -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/microsoft/vscode-cosmosdb.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/cosmosdb-best-practices .github/skills/cosmosdb-best-practices && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "cosmosdb-best-practices" agent skill from https://github.com/microsoft/vscode-cosmosdb/tree/main/skills/cosmosdb-best-practices into .github/skills/cosmosdb-best-practices/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cosmosdb-best-practices", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add microsoft/vscode-cosmosdb --skill cosmosdb-best-practices -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install microsoft/vscode-cosmosdb cosmosdb-best-practices --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/microsoft/vscode-cosmosdb.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/cosmosdb-best-practices .opencode/skills/cosmosdb-best-practices && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "cosmosdb-best-practices" agent skill from https://github.com/microsoft/vscode-cosmosdb/tree/main/skills/cosmosdb-best-practices into .opencode/skills/cosmosdb-best-practices/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cosmosdb-best-practices", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
cosmosdb-best-practicesAzure Cosmos DB performance optimization and best practices guidelines for NoSQL, partitioning, queries, and SDK usage.
Cosmosdb Best Practices is an agent skill from microsoft/vscode-cosmosdb, published by the product's own GitHub organization. Azure Cosmos DB performance optimization and best practices guidelines for NoSQL, partitioning, queries, and SDK usage. Use when writing, reviewing, or refactoring code that interacts with Azure Cosmos DB, designing data models, optimizing queries, or implementing high-performance database operations. USE FOR: Cosmos DB NoSQL, partition key design, RU optimization, point reads, cross-partition queries, SDK singleton, CosmosClient, container modeling, change feed, bulk operations, vector search, full-text search…
Its SKILL.md is about 4.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 137 other files (for example `rules/fts-add-index.md`, `rules/fts-define-policy.md` and `rules/fts-enable-capability.md`).
It sits in Databases, covering NoSQL databases and Search implementation. It works with Azure Cosmos DB, Microsoft Azure, Microsoft SQL Server and MongoDB. The repository describes itself as: Azure Cosmos DB extension for VS Code. The licence is MIT.
12 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit cf3dbf8. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Cosmosdb Best Practices loads about 4.3k tokens when it runs. Until then it costs about 211 tokens; SKILL.md has 1,194 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from microsoft/vscode-cosmosdb at commit cf3dbf8, republished under its MIT licence (© microsoft). 1,194 words, ~4,252 tokens.
.claude/skills/cosmosdb-best-practices/SKILL.md (or your agent's skills folder). This skill also uses 136 other files; get the full folder from GitHub.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)CosmosItemRequestOptions instance across multiple createItem calls — SDK mutates it internally, causing wrong partition key on second callCosmosPatchOperations.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.)/?, /[], /*)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:
© microsoft, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 136 other files in skills/cosmosdb-best-practices of microsoft/vscode-cosmosdb.
Open the folder on GitHubat commit cf3dbf8
Cosmosdb Best Practices next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Cosmosdb Best Practices this skillmicrosoft/vscode-cosmosdb | 200 | — | ~4.3k | Automated safety check: Pass | MIT | |
| Azure Database MigrationMicrosoftDocs/Agent-Skills | 777 | — | ~1.4k | Automated safety check: Pass | CC-BY-4.0 | |
| Whodbxiaoyuge886/aigc | 198 | — | ~894 | Automated safety check: Pass | MIT | |
| Azure Cosmos DB Pymicrosoft/skills | 3.1k | — | ~2.8k | Automated safety check: Pass | MIT | |
| Svc Databases0ld13rr/pentestcode | 828 | — | ~379 | Automated safety check: Pass | MIT | |
| Azure Cosmos Pymicrosoft/skills | 3.1k | — | ~2.3k | Automated safety check: Pass | MIT |
MicrosoftDocs/Agent-Skills
Expert knowledge for Azure Database Migration Service development including troubleshooting, decision making, limits & quotas, security, integrations & coding patterns, and deployment.
xiaoyuge886/aigc
Database operations including querying, schema exploration, and data analysis.
microsoft/skills
Build Azure Cosmos DB NoSQL services with Python/FastAPI following production-grade patterns.
s0ld13rr/pentestcode
Database RCE paths — UDF, xpcmdshell, COPY TO PROGRAM, Redis key write.
microsoft/skills
Azure Cosmos DB SDK for Python (NoSQL API). An agent skill from microsoft/skills.
microsoft/skills
Azure Tables SDK for Python (Storage and Cosmos DB). An agent skill from microsoft/skills.
microsoft/vscode-cosmosdb
Detects and fixes accessibility issues in React/Fluent UI webviews.
microsoft/vscode-cosmosdb
Reviews and authors telemetry code in this extension. An agent skill from microsoft/vscode-cosmosdb.
microsoft/vscode-cosmosdb
Backport changes (current branch, a PR, a branch, or specific commits/SHAs) onto a target branch (typically a release branch like rel/).
microsoft/vscode-cosmosdb
Generate, explain, edit, and fix Azure Cosmos DB for NoSQL (SQL API) queries.
microsoft/vscode-cosmosdb
Drive the active Azure Cosmos DB for NoSQL Query Editor in VS Code from natural language.
Categories
Azure Cosmos DB performance optimization and best practices guidelines for NoSQL, partitioning, queries, and SDK usage. Cosmosdb Best Practices is an agent skill from microsoft/vscode-cosmosdb, published by the product's own GitHub organization. Azure Cosmos DB performance optimization and best practices guidelines for NoSQL, partitioning, queries, and SDK usage.
Cosmosdb Best Practices fits situations like: refactoring code that interacts with Azure Cosmos DB; designing data models; optimizing queries; implementing high-performance database operations.
Run `npx skills add microsoft/vscode-cosmosdb --skill cosmosdb-best-practices -a claude-code`. Or copy the skill folder (skills/cosmosdb-best-practices in microsoft/vscode-cosmosdb) into .claude/skills/cosmosdb-best-practices in your project. Claude Code loads it when a task matches its description.
Run `npx skills add microsoft/vscode-cosmosdb --skill cosmosdb-best-practices -a codex`. Or copy the skill folder (skills/cosmosdb-best-practices in microsoft/vscode-cosmosdb) into .agents/skills/cosmosdb-best-practices in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add microsoft/vscode-cosmosdb --skill cosmosdb-best-practices -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cosmosdb-best-practices, .gemini/skills/cosmosdb-best-practices, .github/skills/cosmosdb-best-practices and .opencode/skills/cosmosdb-best-practices in your project.
SKILL.md names no scripts, command-line tools or credentials: Cosmosdb Best Practices is instructions for the agent only. Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Cosmosdb Best Practices is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 4.3k tokens (SKILL.md is roughly 17k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Cosmosdb Best Practices: Azure Database Migration (MicrosoftDocs/Agent-Skills, 777 stars), Whodb (xiaoyuge886/aigc, 198 stars), Azure Cosmos DB Py (microsoft/skills, 3.1k stars) and Svc Database (s0ld13rr/pentestcode, 828 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
microsoft (a GitHub organization, an official publisher) maintains it in microsoft/vscode-cosmosdb, which has 200 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 9, 2026.
Source: microsoft/vscode-cosmosdb on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.