microsoft-docs

Query official Microsoft documentation for concepts, tutorials, and code samples across Azure, .NET, and related platforms.

Updated Jul 21, 2026
One-click install
npx skills add https://github.com/afonsoft/gamehub --skill microsoft-docs-afonsoft
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: microsoft-docs
Source: https://github.com/afonsoft/gamehub/tree/main/.claude/skills/microsoft-docs
Command: npx skills add https://github.com/afonsoft/gamehub --skill microsoft-docs-afonsoft

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Finding accurate, up-to-date Microsoft documentation is difficult because content is scattered across learn.microsoft.com, aspire.dev, code.visualstudio.com, docs.github.com, and GitHub repositories. This Skill routes each query to the correct documentation source so answers come from official material rather than guesswork. ## Core Features & Use Cases - Microsoft Learn MCP Integration: Search concepts, fetch full pages, and find code samples across Azure, .NET, M365, Power Platform, and Agent Framework using microsoft_docs_search, microsoft_docs_fetch, and microsoft_code_sample_search. - Source Routing for Exceptions: Directs Aspire queries to the Aspire MCP server or Context7, VS Code queries to Context7 library IDs, and GitHub docs to the appropriate Context7 sources. - CLI Fallback: Provides the mslearn CLI (npx @microsoft/learn-cli) as an alternative when the Learn MCP server is unavailable. - Use Case: When implementing Cosmos DB partition key design in a .NET 8 app, ask for best practices and receive guidance pulled directly from official Learn documentation with working C# code samples. ## Quick Start Ask the agent to find official Microsoft documentation and a C# code sample for uploading blobs with BlobClient in Azure.Storage.Blobs.

Frequently Asked Questions about microsoft-docs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search Microsoft Learn documentation from an AI agent?▼

Use the microsoft_docs_search tool from the Microsoft Learn MCP server to query concepts, guides, and tutorials. If the MCP server is unavailable, run the mslearn CLI via npx @microsoft/learn-cli search with your query.

How do I find official Microsoft code samples in C# or Python?▼

Use microsoft_code_sample_search and pass the language parameter such as csharp or python for targeted results. The CLI equivalent is mslearn code-search with the --language flag.

Where are .NET Aspire docs hosted and how do I search them?▼

Aspire documentation lives on aspire.dev, not learn.microsoft.com. With Aspire CLI 13.2+, use the Aspire MCP server's search_docs and get_doc tools; on CLI 13.1, fall back to Context7 with the /microsoft/aspire.dev library ID.

Does this cover VS Code and GitHub documentation?▼

Yes, but through Context7 rather than Microsoft Learn. VS Code docs use the /websites/code_visualstudio library ID, and GitHub docs use /websites/github_en or /websites/cli_github for CLI reference.

What should I do when the Microsoft Learn MCP server is not available?▼

Install or run the mslearn CLI as a fallback. Run npx @microsoft/learn-cli search with your query, or install it globally with npm install -g @microsoft/learn-cli, and add --json for raw JSON output.