microsoft-docs
Skill1 starsChanged 35 days agoMITView on GitHub
Query official Microsoft documentation, look up API references, find working code samples, and verify SDK code. Uses Microsoft Learn MCP as the default, with Context7 and Aspire MCP for content outside learn.microsoft.com. Catches hallucinated methods, wrong signatures, and deprecated patterns.
15 other projects use a version of this, 6 of them edited.
Adopted by
Most recently taken up by
- elidadutra187/claude-skillsedited, first seen Nov 29, 2026
- AndreasKarz/Vibe-Coding-Dev-Setuptheir own version, first seen Nov 16, 2026
- TeddyAlbina/skillstheir own version, first seen Nov 1, 2026
- MicrosoftDocs/mcptheir own version, first seen Nov 1, 2026
- ericwood8/skillstheir own version, first seen Nov 1, 2026
- github/awesome-copilotedited, first seen Oct 25, 2026
Used with
Projects with it also use microsoft-code-reference and microsoft-skill-creator.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
GitHubSkillmicrosoft-code-reference
Look up Microsoft API references, find working code samples, and verify SDK code is correct. Use when working with Azure SDKs, .NET libraries, or Microsoft APIs—to find the right method, check parameters, get working examples, or troubleshoot errors. Catches hallucinated methods, wrong signatures, and deprecated patterns by querying official docs.
Also in 4 projects that use this
GitHubSkillmicrosoft-skill-creator
Create agent skills for Microsoft technologies using Learn MCP tools. Use when users want to create a skill that teaches agents about any Microsoft technology, library, framework, or service (Azure, .NET, M365, VS Code, Bicep, etc.). Investigates topics deeply, then generates a hybrid skill storing essential knowledge locally while enabling dynamic deeper investigation.
Also in 3 projects that use this
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 6
- microsoft/ai-agents-for-beginners★ 81k32% same
- github/awesome-copilot★ 42k34% same
- itsfatduck/optimizerDuck★ 13k34% same
- tae0y/python-project-template★ 1432% same
- elidadutra187/claude-skills★ 034% same
- RorroRojas3/maf-agents★ 034% same
Wrote their own version · 9
- microsoft/agent-skills★ 3.3ksame name
- microsoft/skills★ 3.3ksame name
- MicrosoftDocs/mcp★ 2ksame name
- ChatisTech/skills★ 17same name
- TianqiZhang/mem.net★ 15same name
- AndreasKarz/Vibe-Coding-Dev-Setup★ 7same name
- TeddyAlbina/skills★ 2same name
- ericwood8/skills★ 1same name
- bradcstevens/git-loopy-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- appinsights-instrumentationSkill
- csharp-toolkitSkill
- delegateSkill
- deploy-verifySkill
- diagnoseSkill
- documentation-writerSkill
- flywheelSkill
- grill-meSkill
- javascript-typescript-jestSkill
- nuget-managerSkill
- performance-optimizationSkill
- python-fastapi-pytestSkill
- sql-toolkitSkill
- tddSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Use microsoft_docs_fetch after search when you need complete tutorials, all config options, or when search excerpts are truncated.
- Distinctive: line 24
If the Learn MCP server is not available:
- Distinctive: line 40
Before generating code using Microsoft SDKs:
- Very specific: line 104
Call mcp_context7_resolve-library-id with the technology name
- Very specific: line 105
Call mcp_context7_query-docs with the returned library ID and a specific query
- Very specific: line 124
Version: when relevant (.NET 8, VS Code 1.96)
“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Microsoft Docs & Code Reference
Research and verify Microsoft APIs, SDKs, and documentation. Covers learn.microsoft.com and docs that live outside it (VS Code, GitHub, Aspire).
Tools
| Need | Tool | Example |
| Concepts, guides, tutorials | microsoft_docs_search | "Azure Functions Python v2 programming model" |
| Working code samples | microsoft_code_sample_search | query: "upload blob managed identity", language: "python" |
| Full page content | microsoft_docs_fetch | Fetch URL from search (for overloads, full signatures) |
Use microsoft_docs_fetch after search when you need complete tutorials, all config options, or when search excerpts are truncated.
CLI Alternative
If the Learn MCP server is not available:
npx @microsoft/learn-cli 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 "..." |
API Verification Workflow
Before generating code using Microsoft SDKs:
- Confirm method/package exists —
microsoft_docs_search(query: "[ClassName] [MethodName] [Namespace]") - Fetch full details (for overloads/complex params) —
microsoft_docs_fetch(url: "...") - Find working sample —
microsoft_code_sample_search(query: "[task]", language: "[lang]")
For simple lookups, step 1 alone may suffice. Always verify when:
- Method name seems "too convenient" (
UploadFilevs actualUpload) - Mixing SDK versions (v11
CloudBlobClientvs v12BlobServiceClient) - Package name doesn't follow conventions (
Azure.*for .NET,azure-*for Python) - Using an API for the first time
Error Troubleshooting
| 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" |
Exceptions: When to Use Other Tools
The following categories live outside learn.microsoft.com.
.NET Aspire — Use Aspire MCP Server or Context7
Aspire docs live on aspire.dev, not Learn.
| MCP Tool | Description |
list_docs | Lists all available documentation from aspire.dev |
search_docs | Weighted lexical search across aspire.dev content |
get_doc | Retrieves a specific document by slug |
Context7 fallback:
| Library ID | Use for |
/microsoft/aspire.dev | Guides, integrations, CLI reference, deployment |
/dotnet/aspire | Runtime source — API internals |
/communitytoolkit/aspire | Community integrations — Go, Java, Node.js, Ollama |
VS Code — Use Context7
| Library ID | Use for |
/websites/code_visualstudio | User docs — settings, features, debugging, remote dev |
/websites/code_visualstudio_api | Extension API — webviews, TreeViews, commands |
GitHub — Use Context7
| Library ID | Use for |
/websites/github_en | Actions, API, repos, security, admin, Copilot |
/websites/cli_github | GitHub CLI (gh) commands and flags |
Context7 Setup
Resolve the library ID first (one-time per session):
- Call
mcp_context7_resolve-library-idwith the technology name - Call
mcp_context7_query-docswith the returned library ID and a specific query
Writing Effective Queries
Be specific — include version, intent, and language:
# ❌ Too broad
"Azure Functions"
# ✅ Specific
"Azure Functions Python v2 programming model"
"Cosmos DB partition key design best practices"
"GitHub Actions workflow_dispatch inputs matrix strategy"Include context:
- Version when relevant (
.NET 8,VS Code 1.96) - Task intent (
quickstart,tutorial,overview,limits,API reference) - Language for polyglot docs (
Python,TypeScript,C#)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

