Azure SDK for Rust is a collection of Rust libraries, organized as separate crates, for interacting with Azure services. Rust developers use the crates and examples to build applications that work with Azure. The catalogue entries provide coding-agent skills, instructions, agents, and MCP integrations for working with the SDK.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add Azure/azure-sdk-for-rust --skill cosmos-pre-commit-validationgit clone --depth 1 https://github.com/Azure/azure-sdk-for-rustWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/azure/azure-sdk-for-rust/cosmos-pre-commit-validation)<a href="https://agentmods.dev/skills/azure/azure-sdk-for-rust/cosmos-pre-commit-validation"><img src="https://agentmods.dev/badge/skills/azure/azure-sdk-for-rust/cosmos-pre-commit-validation/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/azure/azure-sdk-for-rust/cosmos-pre-commit-validation"><img src="https://agentmods.dev/badge/skills/azure/azure-sdk-for-rust/cosmos-pre-commit-validation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium MCP Rug Pull · line 74 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00035 | $0.01194 |
| Opus 5.5 | $0.00014 | $0.00478 |
| Sonnet 5.5 | $0.00007 | $0.00239 |
| Haiku 4.5 | $0.00003 | $0.00119 |
Grade A, and why
cosmos-pre-commit-validation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Cosmos SDK Pre-Commit Checks
When to use this skill
Use this skill when:
- Reviewing or validating changes in the Cosmos SDK
- Running pre-commit checks locally before pushing
- Performing focused code review on
sdk/cosmos/**
Behavior
Follow these steps strictly:
-
Determine the target path:
- If the
scopeargument is specified and is not equal (case-insensitive) toallor*, set the target path tosdk/cosmos/<scope>(for example, ifscopeisazure_data_cosmos, usesdk/cosmos/azure_data_cosmosas the target path). - Otherwise, set the target path to
sdk/cosmos.
- If the
-
Determine file scope:
- If
changed-onlyistrue(the default), restrict scanning to.rsfiles that differ between the current local branch andmain. Usegit diff --name-only main -- <target path>(and include per-cratetests/directories) to obtain the list. Only.rsfiles in the result set are scanned; all other files are skipped. - If
changed-onlyisfalse, scan all.rsfiles under the target path(s). - In both modes, skip files in
generated/subdirectories — these are produced by external tools and must never be modified.
- If
-
Validate using the Pre-Completion Validation Checklist in
sdk/cosmos/AGENTS.md:- Formatting checks
- Build succeeds for affected crates
- Clippy lints pass for affected crates, with warnings treated as errors (
-D warnings) to match CI behavior. Run clippy withRUSTFLAGS=-D warningsset:- Bash:
RUSTFLAGS='-D warnings' cargo clippy -p <crate> --all-features --all-targets - PowerShell:
$env:RUSTFLAGS='-D warnings'; cargo clippy -p <crate> --all-features --all-targets; $env:RUSTFLAGS=$null
- Bash:
- Re-run formatting after any auto-fix: if
auto-fixis true and clippy or other tools modified files, re-runcargo fmtto ensure the auto-fixed code is properly formatted (e.g.,cargo clippy --fixcan leave trailing blank lines when removing unused imports). - Documentation builds successfully where applicable
- Spell check (cspell): CI runs cspell on all changed files using the root config at
.vscode/cspell.json; Cosmos-specific words are managed inignoreWordsinsdk/cosmos/.cspell.json. Run locally with:npx cspell lint --config sdk/cosmos/.cspell.json --no-must-find-files <target path>/**Ifauto-fixis true and unknown words are legitimate (e.g., API type names, technical terms), add them toignoreWordsinsdk/cosmos/.cspell.json. - Unit and emulator tests relevant to the touched modules and crates
- CI-gated tests: Tests gated by
test_category(e.g., emulator, multi-write) are always compiled but are ignored at runtime unless the corresponding cfg is set viaRUSTFLAGS. This meanscargo check --testsandcargo testwill compile these tests without any special flags, so build errors are caught locally.RUSTFLAGSis only needed when you want to actually run the tests:RUSTFLAGS='--cfg test_category="emulator"' cargo test -p azure_data_cosmos --features fault_injection,key_auth --testsRUSTFLAGS='--cfg test_category="multi_write"' cargo test -p azure_data_cosmos --features fault_injection,key_auth --testsOn Windows (PowerShell), set the env var first:$env:RUSTFLAGS='--cfg test_category="emulator"'then run thecargo testcommand, and clear it afterwards with$env:RUSTFLAGS=$null. These tests require a live Cosmos DB emulator or multi-region account to run. Ifscopetargets a specific crate other thanazure_data_cosmos, skip these checks.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 96 lines · 35 tokens per session scan A 6882a7ad5ed0
cosmos-pre-commit-validation is a skill published in the GitHub repository Azure/azure-sdk-for-rust (886 stars, last pushed today), licensed MIT. It adds 35 tokens to every session and 1,194 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
update-changelog
Update the CHANGELOG.md files of C# projects. Parameters: csroot C# SDK repository root.
update-pr
Update the pull request for the current session. Use when the user wants to push new changes to an existing PR.
babysit-pr
Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…
gh-find-prs
Survey open Codewhale PRs and triage each for mergeability and disposition against the real landing branch.
github
Skill "github" from Hmbown/Codewhale, covering github, when to use, setup, workflow and non-goals.
generate-code-cs
Generate the code from typespec for C#. Parameter: C# SDK repository root location .