azure-sdk-for-rust: Skill for Claude Code

.github/skills/create-crate/SKILL.md

create-crate is a skill for Claude Code, Codex from Azure/azure-sdk-for-rust. It costs 16 tokens per session (589 once invoked), scanned A, original, MIT.

A procedure for generating a new Azure SDK Rust crate from a TypeSpec specification, a formal description of an API.

In plain words
What is it for?
Use it to locate the service specification, check its Rust generator settings, and initialize a crate from a fixed repository revision.
Why use it?
It keeps client-library creation tied to the service's defined API and avoids manually writing the whole library from scratch.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

This is Azure/azure-sdk-for-rust's own configuration. It tells Claude Code and Codex how to work on azure-sdk-for-rust itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything azure-sdk-for-rust configures →

About the project

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.

Azure/azure-sdk-for-rust · 886 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to Azure/azure-sdk-for-rust. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Azure/azure-sdk-for-rust/main/.github/skills/create-crate/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Azure/azure-sdk-for-rust

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for create-crate

README.md
[![agentmods](https://agentmods.dev/badge/skills/azure/azure-sdk-for-rust/create-crate/github.svg)](https://agentmods.dev/skills/azure/azure-sdk-for-rust/create-crate)
Your own site
<a href="https://agentmods.dev/skills/azure/azure-sdk-for-rust/create-crate"><img src="https://agentmods.dev/badge/skills/azure/azure-sdk-for-rust/create-crate/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.

agentmods 80×15 button for create-crate

Your own site · 80×15
<a href="https://agentmods.dev/skills/azure/azure-sdk-for-rust/create-crate"><img src="https://agentmods.dev/badge/skills/azure/azure-sdk-for-rust/create-crate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 589 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.00589
Opus 5.5 $0.00006 $0.00236
Sonnet 5.5 $0.00003 $0.00118
Haiku 4.5 $0.00002 $0.00059

Measured 1mo ago against content hash cdfd9de96e94, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

create-crate 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.

.github/skills/create-crate/SKILL.md · 46 lines

What it actually says

Creating a New Crate

All new service crates must be generated from TypeSpec specifications in Azure/azure-rest-api-specs. Do not hand-write client libraries from scratch.

  1. Install tsp-client

    • Use the repository-pinned CLI; do not invoke a globally installed binary:

      _TspClientDir="$(pwd)/eng/common/tsp-client"
      npm ci --prefix "$_TspClientDir"
      
    • Run commands with npm exec --prefix "$_TspClientDir" --no -- tsp-client

    • See eng/common/tsp-client/README.md for prerequisites and more context

  2. Find the TypeSpec spec

    • Look for a tspconfig.yaml under specification/{service}/ in azure-rest-api-specs
    • Check the tspconfig.yaml for @azure-tools/typespec-rust emitter configuration
    • If no emitter configuration exists, stop and report an error indicating that the TypeSpec specification in Azure/azure-rest-api-specs must be updated before generating the client
  3. Initialize the crate

    • From the repository root, run npm exec --prefix "$_TspClientDir" --no -- tsp-client init --tsp-config {url}
    • {url} is the GitHub URL to the tspconfig.yaml
    • Always use a specific commit SHA in the URL — never a branch or tag, which can move
    • Example: https://github.com/Azure/azure-rest-api-specs/blob/{commit-sha}/specification/{service}/{rp}/tspconfig.yaml
  4. Generate the client

    • Use the azsdk_package_generate_code MCP tool, or
    • From the crate directory, run npm exec --prefix "$_TspClientDir" --no -- tsp-client update
  5. Add hand-written wrappers

    • Create clients.rs (or similar) for custom client constructors, authentication setup, and convenience methods
    • Build on top of the generated code in src/generated/
  6. Register the crate

    • Add the new crate to the workspace members list in the root Cargo.toml
  7. Add tests, examples, and documentation

    • Write unit tests and integration tests (using #[recorded::test])
    • Add examples, a README.md, and a CHANGELOG.md
Changes

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.

  1. 1mo ago Changed · +6 lines cdfd9de96e94
  2. 1mo ago First seen · 40 lines · 16 tokens per session scan A c7d67e96c823

Subscribe to this mod's changes

create-crate is a skill published in the GitHub repository Azure/azure-sdk-for-rust (886 stars, last pushed today), licensed MIT. It adds 16 tokens to every session and 589 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.