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

.github/skills/dpg-migration/SKILL.md

dpg-migration is a skill for Claude Code, Codex from Azure/azure-sdk-for-net. It costs 41 tokens per session (12,202 once invoked), scanned A, original, MIT.

A migration workflow for Azure SDK for .NET data libraries moving from AutoRest or Swagger generation to TypeSpec generation. TypeSpec is a language for describing APIs and generating client libraries.

In plain words
What is it for?
Migrating a service, updating its TypeSpec definitions, regenerating clients, and fixing deterministic migration or build issues.
Why use it?
It automates repetitive code fixes during the migration so the remaining build errors require focused judgment. It requires the Azure SDK repository and the related API specification repository.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

This is Azure/azure-sdk-for-net's own configuration. It tells Claude Code and Codex how to work on azure-sdk-for-net 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-net configures →

About the project

Azure SDK for .NET is a repository containing the actively developed C# libraries that applications use to work with Azure services. It is for .NET developers building software that connects to Azure storage, management, and other cloud services.

Azure/azure-sdk-for-net · 6,050 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to Azure/azure-sdk-for-net. 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-net/main/.github/skills/dpg-migration/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Azure/azure-sdk-for-net

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 dpg-migration

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/azure/azure-sdk-for-net/dpg-migration"><img src="https://agentmods.dev/badge/skills/azure/azure-sdk-for-net/dpg-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 12,202 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
  • Snyk pass 7 Sept 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

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 →

  • high Tool Misuse · line 718
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • medium Excessive Agency · line 817
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.00041 $0.12202
Opus 5 $0.00020 $0.06101
Sonnet 5 $0.00008 $0.02440
Haiku 4.5 $0.00004 $0.01220

Measured 9d ago against content hash fc3cd72c6360, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

dpg-migration 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 9d 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/dpg-migration/SKILL.md · 863 lines

How it starts

The opening of the file, as written. The whole thing — 863 lines — stays where its author put it; the contents beside it link to each section on GitHub.

DPG Migration Workflow

Data-plane migration workflow for Azure SDK for .NET libraries.

The workflow uses MCP tools from the generator-agent server to automate all deterministic, rule-based fixes (field renames, missing usings, type pattern replacements, nullable annotations, etc.) so the LLM only reasons about non-deterministic errors.

When Invoked

Trigger phrases: "migrate service X", "data-plane migration", "dpg migration", "migrate to TypeSpec", "swagger to TypeSpec migration", "upgrade generator", "generator migration help", "migrate with MCP tools", "use generator-agent tools", "tool-assisted migration", "MCP migration", "automated build fix".

Prerequisites

This skill requires the SDK repository and the spec repo:

Path Purpose Required?
Current repository (azure-sdk-for-net) Azure SDK for .NET mono-repo. Data-plane SDK packages typically live under sdk/<service>/<package>/. Always
Sibling spec folder (../azure-rest-api-specs) Full or sparse-checkout of the Azure REST API Specs repo. Used for spec-side changes (client.tsp, tspconfig.yaml edits) and as the local spec path for code generation after any spec modification. Always
Sibling TypeSpec folder (../typespec) Clone of the microsoft/typespec repo. Only for diagnosing generator bugs

The local spec repo path (localSpecsPath) is always required — ask the user for it at the start if not found at ../azure-rest-api-specs. Code generation starts in remote mode (using the commit pinned in tsp-location.yaml) and switches to local mode (/p:LocalSpecRepo=<path>) only after client.tsp or tspconfig.yaml has been modified locally. Once in local mode, all subsequent generation calls use the local spec path — see Generation Mode for details.

MCP Server (Generator Agent)

The MCP server provides deterministic fix tools for the build-fix cycle. Configure in .vscode/mcp.json:

{
  "servers": {
    "generator-agent": {
      "command": "dotnet",
      "args": ["run", "--project", "sdk/tools/Azure.GeneratorAgent/src/Azure.GeneratorAgent.csproj", "--framework", "net10.0"]
    }
  }
}

Read the full file on GitHub · 863 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 863 lines · 41 tokens per session scan A fc3cd72c6360

Subscribe to this mod's changes

dpg-migration is a skill published in the GitHub repository Azure/azure-sdk-for-net (6,050 stars, last pushed today), licensed MIT. It adds 41 tokens to every session and 12,202 once invoked, about $0.0002 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

csharp-expert

Expert-level C# development with .NET 8+, ASP.NET Core, LINQ, async/await, and enterprise patterns. Use when the user mentions C#, .NET, ASP.NET, enterprise, or Microsoft platforms, or when the task involves Modern C#, Async/Await, LINQ, or ASP.NET Core.

personamanagmentlayer/pcl · 70 tokens

azure-maps-search-dotnet

Azure Maps SDK for .NET. Location-based services including geocoding, routing, rendering, geolocation, and weather. Use for address search, directions, map tiles, IP geolocation, and weather data. Triggers: "Azure Maps", "MapsSearchClient", "MapsRoutingClient", "MapsRenderingClient", "geocoding .NET", "route…

microsoft/skills · 91 tokens

azure-eventgrid-dotnet

Azure Event Grid SDK for .NET. Client library for publishing and consuming events with Azure Event Grid. Use for event-driven architectures, pub/sub messaging, CloudEvents, and EventGridEvents. Triggers: "Event Grid", "EventGridPublisherClient", "CloudEvent", "EventGridEvent", "publish events .NET", "event-driven"…

microsoft/skills · 80 tokens

azure-mgmt-apicenter-dotnet

Azure API Center SDK for .NET. Centralized API inventory management with governance, versioning, and discovery. Use for creating API services, workspaces, APIs, versions, definitions, environments, deployments, and metadata schemas. Triggers: "API Center", "ApiCenterService", "ApiCenterWorkspace", "ApiCenterApi", "API…

microsoft/skills · 97 tokens

azure-ai-voicelive-dotnet

Azure AI Voice Live SDK for .NET. Build real-time voice AI applications with bidirectional WebSocket communication. Use for voice assistants, conversational AI, real-time speech-to-speech, and voice-enabled chatbots. Triggers: "voice live", "real-time voice", "VoiceLiveClient", "VoiceLiveSession", "voice assistant…

microsoft/skills · 92 tokens

cosmos-design-struct

Enforce consistent struct design conventions across sdk/cosmos crates. Validates visibility modifiers, field privacy, #[nonexhaustive] usage, and construction API patterns (Default/new with with setters, or optional separate builders with builder()/build()), and construction correctness on public structs. Can auto-fix…

Azure/azure-sdk-for-rust · 83 tokens