Microsoft Foundry Tools
MicrosoftDocs/Agent-Skills
Expert knowledge for Microsoft Foundry Tools (aka Azure AI services, Azure Cognitive Services) development including troubleshooting, best practices, decision making, architecture & design patterns…
Find working code samples, verify API signatures, and fix Microsoft SDK errors using official docs.
$ npx skills add MicrosoftDocs/mcp --skill microsoft-code-reference -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install MicrosoftDocs/mcp microsoft-code-reference --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/MicrosoftDocs/mcp.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/microsoft-code-reference .claude/skills/microsoft-code-reference && 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 "microsoft-code-reference" agent skill from https://github.com/MicrosoftDocs/mcp/tree/main/skills/microsoft-code-reference into .claude/skills/microsoft-code-reference/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "microsoft-code-reference", 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/MicrosoftDocs/mcp/tree/main/skills/microsoft-code-referenceType 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 MicrosoftDocs/mcp --skill microsoft-code-reference -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install MicrosoftDocs/mcp microsoft-code-reference --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/MicrosoftDocs/mcp.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/microsoft-code-reference .agents/skills/microsoft-code-reference && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "microsoft-code-reference" agent skill from https://github.com/MicrosoftDocs/mcp/tree/main/skills/microsoft-code-reference into .agents/skills/microsoft-code-reference/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "microsoft-code-reference", 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 MicrosoftDocs/mcp --skill microsoft-code-reference -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install MicrosoftDocs/mcp microsoft-code-reference --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/MicrosoftDocs/mcp.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/microsoft-code-reference .cursor/skills/microsoft-code-reference && 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 "microsoft-code-reference" agent skill from https://github.com/MicrosoftDocs/mcp/tree/main/skills/microsoft-code-reference into .cursor/skills/microsoft-code-reference/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "microsoft-code-reference", 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/MicrosoftDocs/mcp.git --path skills/microsoft-code-reference--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 MicrosoftDocs/mcp --skill microsoft-code-reference -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install MicrosoftDocs/mcp microsoft-code-reference --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/MicrosoftDocs/mcp.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/microsoft-code-reference .gemini/skills/microsoft-code-reference && 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 "microsoft-code-reference" agent skill from https://github.com/MicrosoftDocs/mcp/tree/main/skills/microsoft-code-reference into .gemini/skills/microsoft-code-reference/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "microsoft-code-reference", 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 MicrosoftDocs/mcp microsoft-code-referenceInstalls 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 MicrosoftDocs/mcp --skill microsoft-code-reference -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/MicrosoftDocs/mcp.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/microsoft-code-reference .github/skills/microsoft-code-reference && 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 "microsoft-code-reference" agent skill from https://github.com/MicrosoftDocs/mcp/tree/main/skills/microsoft-code-reference into .github/skills/microsoft-code-reference/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "microsoft-code-reference", 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 MicrosoftDocs/mcp --skill microsoft-code-reference -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install MicrosoftDocs/mcp microsoft-code-reference --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/MicrosoftDocs/mcp.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/microsoft-code-reference .opencode/skills/microsoft-code-reference && 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 "microsoft-code-reference" agent skill from https://github.com/MicrosoftDocs/mcp/tree/main/skills/microsoft-code-reference into .opencode/skills/microsoft-code-reference/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "microsoft-code-reference", 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.
microsoft-code-referenceFind working code samples, verify API signatures, and fix Microsoft SDK errors using official docs.
Microsoft Code Reference is an agent skill from MicrosoftDocs/mcp, published by the product's own GitHub organization. Find working code samples, verify API signatures, and fix Microsoft SDK errors using official docs. Use whenever the user is writing, debugging, or reviewing code that touches any Microsoft SDK, .NET library, Azure client library, or Microsoft API—even if they don't ask for a "reference." Catches hallucinated methods, wrong signatures, and deprecated patterns. If the task involves producing or fixing Microsoft-related code, this is the right skill.
Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Primarily uses the Microsoft Learn MCP Server (https://learn.microsoft.com/api/mcp); if that is unavailable, fall back to the mslearn CLI (npx…
It sits in Development. It works with Microsoft Azure and .NET. The repository describes itself as: Official Microsoft Learn MCP Server and CLI tool – powering LLMs and AI agents with real-time, trusted Microsoft docs & code samples. The licence is CC-BY-4.0.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit f8ffde1. 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.
Shell commands in SKILL.md call:
npxnpmFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use npx and npm, which can reach the network depending on how they are called.
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.
Primarily uses the Microsoft Learn MCP Server (https://learn.microsoft.com/api/mcp); if that is unavailable, fall back to the mslearn CLI (`npx @microsoft/learn-cli`).
From compatibility in the SKILL.md frontmatter.
Microsoft Code Reference loads about 1.1k tokens when it runs. Until then it costs about 119 tokens; SKILL.md has 289 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 MicrosoftDocs/mcp at commit f8ffde1, republished under its CC-BY-4.0 licence (© MicrosoftDocs). 289 words, ~1,076 tokens.
.claude/skills/microsoft-code-reference/SKILL.md (or your agent's skills folder).| Need | Tool | Example |
|---|---|---|
| API method/class lookup | microsoft_docs_search | "BlobClient UploadAsync Azure.Storage.Blobs" |
| Working code sample | microsoft_code_sample_search | query: "upload blob managed identity", language: "python" |
| Full API reference | microsoft_docs_fetch | Fetch URL from microsoft_docs_search (for overloads, full signatures) |
Use microsoft_code_sample_search to get official, working examples:
microsoft_code_sample_search(query: "upload file to blob storage", language: "csharp")
microsoft_code_sample_search(query: "authenticate with managed identity", language: "python")
microsoft_code_sample_search(query: "send message service bus", language: "javascript")When to use:
# Verify method exists (include namespace for precision)
"BlobClient UploadAsync Azure.Storage.Blobs"
"GraphServiceClient Users Microsoft.Graph"
# Find class/interface
"DefaultAzureCredential class Azure.Identity"
# Find correct package
"Azure Blob Storage NuGet package"
"azure-storage-blob pip package"Fetch full page when method has multiple overloads or you need complete parameter details.
Use microsoft_code_sample_search to find working code samples and compare with your implementation. For specific errors, use microsoft_docs_search and microsoft_docs_fetch:
| Error Type | Query |
|---|---|
| Method not found | "[ClassName] methods [Namespace]" |
| Type not found | "[TypeName] NuGet package namespace" |
| Wrong signature | "[ClassName] [MethodName] overloads" → fetch full page |
| Deprecated warning | "[OldType] migration v12" |
| Auth failure | "DefaultAzureCredential troubleshooting" |
| 403 Forbidden | "[ServiceName] RBAC permissions" |
Always verify when:
UploadFile vs actual Upload)CloudBlobClient vs v12 BlobServiceClient)Azure.* for .NET, azure-* for Python)Before generating code using Microsoft SDKs, verify it's correct:
microsoft_docs_search(query: "[ClassName] [MethodName] [Namespace]")microsoft_docs_fetch(url: "...")microsoft_code_sample_search(query: "[task]", language: "[lang]")For simple lookups, step 1 alone may suffice. For complex API usage, complete all three steps.
If the Learn MCP server is not available, use the mslearn CLI from the command line instead:
# Run directly (no install needed)
npx @microsoft/learn-cli search "BlobClient UploadAsync Azure.Storage.Blobs"
# Or install globally, then run
npm install -g @microsoft/learn-cli
mslearn search "BlobClient UploadAsync Azure.Storage.Blobs"| MCP Tool | CLI Command |
|---|---|
microsoft_docs_search(query: "...") | mslearn search "..." |
microsoft_code_sample_search(query: "...", language: "...") | mslearn code-search "..." --language ... |
microsoft_docs_fetch(url: "...") | mslearn fetch "..." |
Pass --json to search or code-search to get raw JSON output for further processing.
© MicrosoftDocs, CC-BY-4.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/microsoft-code-reference of MicrosoftDocs/mcp.
Open the folder on GitHubat commit f8ffde1
We found 9 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 4 other GitHub owners. This page covers the copy in MicrosoftDocs/mcp, which our catalogue first saw on October 7, 2026.
Microsoft Code Reference 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 |
|---|---|---|---|---|---|---|
| Microsoft Code Reference this skillMicrosoftDocs/mcp | 1.9k | 4 repos | ~1.1k | Automated safety check: Pass | CC-BY-4.0 | |
| Microsoft Foundry ToolsMicrosoftDocs/Agent-Skills | 777 | — | ~2.4k | Automated safety check: Pass | CC-BY-4.0 | |
| Microsoft Code ReferenceKilo-Org/kilo-marketplace | 189 | — | ~1.2k | Automated safety check: Pass | Custom licence | |
| Azure Event HubsKilo-Org/kilo-marketplace | 189 | — | ~3.7k | Automated safety check: Pass | Custom licence | |
| Aspiremicrosoft/aspire.dev | 196 | 4 repos | ~1.1k | Automated safety check: Pass | MIT | |
| Azure Identity Dotnetsickn33/agentic-awesome-skills | 47k | — | ~2.5k | Automated safety check: Pass | MIT |
MicrosoftDocs/Agent-Skills
Expert knowledge for Microsoft Foundry Tools (aka Azure AI services, Azure Cognitive Services) development including troubleshooting, best practices, decision making, architecture & design patterns…
Kilo-Org/kilo-marketplace
Find working code samples, verify API signatures, and fix Microsoft SDK errors using official docs.
Kilo-Org/kilo-marketplace
Expert knowledge for Azure Event Hubs development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations &…
microsoft/aspire.dev
Orchestrates Aspire distributed applications using the Aspire CLI for running, debugging, and managing distributed apps.
sickn33/agentic-awesome-skills
Azure Identity SDK for .NET. An agent skill from sickn33/agentic-awesome-skills.
microsoft/skills
Azure Identity library for .NET. An agent skill from microsoft/skills.
MicrosoftDocs/mcp
Create agent skills for Microsoft technologies using official documentation.
MicrosoftDocs/mcp
Understand Microsoft technologies by querying official documentation.
MicrosoftDocs/mcp
Use the Microsoft Learn CLI to retrieve current official Microsoft documentation and code samples when Microsoft Learn MCP tools are unavailable.
Works with
Categories
Find working code samples, verify API signatures, and fix Microsoft SDK errors using official docs. Microsoft Code Reference is an agent skill from MicrosoftDocs/mcp, published by the product's own GitHub organization. Find working code samples, verify API signatures, and fix Microsoft SDK errors using official docs.
Microsoft Code Reference fits situations like: the user is writing; reviewing code that touches any Microsoft SDK; azure client library; microsoft API—even if they dont ask for a reference. Catches hallucinated methods.
Run `npx skills add MicrosoftDocs/mcp --skill microsoft-code-reference -a claude-code`. Or copy the skill folder (skills/microsoft-code-reference in MicrosoftDocs/mcp) into .claude/skills/microsoft-code-reference in your project. Claude Code loads it when a task matches its description.
Run `npx skills add MicrosoftDocs/mcp --skill microsoft-code-reference -a codex`. Or copy the skill folder (skills/microsoft-code-reference in MicrosoftDocs/mcp) into .agents/skills/microsoft-code-reference 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 MicrosoftDocs/mcp --skill microsoft-code-reference -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/microsoft-code-reference, .gemini/skills/microsoft-code-reference, .github/skills/microsoft-code-reference and .opencode/skills/microsoft-code-reference in your project.
Going by SKILL.md and its folder, Microsoft Code Reference needs the command-line tools its instructions call (npx and npm). Our summary lists: Node.js. Compatibility (from SKILL.md): Primarily uses the Microsoft Learn MCP Server (https://learn.microsoft.com/api/mcp); if that is unavailable, fall back to the mslearn CLI (`npx @microsoft/learn-cli`)..
SKILL.md contains no URLs. Its commands use npx and npm, which can reach the network depending on how they are called. 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.
Microsoft Code Reference is published under the CC-BY-4.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.1k tokens (SKILL.md is roughly 4.3k 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 Microsoft Code Reference: Microsoft Foundry Tools (MicrosoftDocs/Agent-Skills, 777 stars), Microsoft Code Reference (Kilo-Org/kilo-marketplace, 189 stars), Azure Event Hubs (Kilo-Org/kilo-marketplace, 189 stars) and Aspire (microsoft/aspire.dev, 196 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
MicrosoftDocs (a GitHub organization, an official publisher) maintains it in MicrosoftDocs/mcp, which has 1,936 GitHub stars. The repository was last updated on September 29, 2026.
Source: MicrosoftDocs/mcp on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.