create-crate

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

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

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 · 885 stars · on GitHub

Install

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.

agentmods
npx agentmods add skills/azure/azure-sdk-for-rust/create-crate
Any agent
npx skills add Azure/azure-sdk-for-rust --skill create-crate
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00008 $0.00295
Sonnet 5 $0.00003 $0.00118
Haiku 4.5 $0.00002 $0.00059

Measured 2d ago against content hash cdfd9de96e94, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 2d 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. 2d ago Changed · +6 lines cdfd9de96e94
  2. 6d 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 (885 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. 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.

Related

Other skills, from other repositories

dpg-migration

Migration logic for Azure SDK for .NET data-plane libraries migrating from AutoRest/Swagger to TypeSpec-based generation. Uses MCP tools from the generator-agent server for automated deterministic fixes.

Azure/azure-sdk-for-net · 41 tokens

csharp-azure-spector-coverage-gaps

Discovers and implements gaps in Spector test coverage for the Azure C# HTTP client emitter. Use when asked to find missing Spector scenarios, add Spector test coverage, or implement a specific Spector spec for the Azure C# emitter. Can also compare coverage between the Azure dashboard and the Standard (TypeSpec core)…

Azure/azure-sdk-for-net · 78 tokens

auto-build-repair

Headless, bounded repair of custom-code build failures in an already-generated Azure SDK PR. Thin wrapper over the shared azure-sdk-mcp:azsdkcustomizedcodeupdate engine in custom-code-only scope (editScope: CustomCode); the skill owns the iterate-until-green loop, capped by a per-language maxIterations read from…

Azure/azure-sdk-for-net · 149 tokens

azure-sdk-mgmt-pr-review

Review Azure SDK management-plane pull requests, check naming conventions, API compatibility, and code quality.

Azure/azure-sdk-for-net · 26 tokens

mgmt-review-comment-resolution

Resolve review comments on Azure management-plane .NET SDK PRs. Handles renaming types/properties, changing property types, and other API surface adjustments by updating TypeSpec client.tsp and regenerating.

Azure/azure-sdk-for-net · 46 tokens

provisioning-library-generation

Generate new Azure.Provisioning. libraries OR regenerate existing ones. Use when introducing a brand-new provisioning library, adding new resource types, enum values, or API versions.

Azure/azure-sdk-for-net · 40 tokens