microsoft-docs · github — GitHub Copilot skill: install and use
Finds official Microsoft documentation, tutorials, and code samples for Azure, .NET, VS Code, and GitHub work. Use it when an agent needs a source tied to a specific technology or version.
npx skills add github/awesome-copilot --skill microsoft-docs -a claude-codeWhat microsoft-docs does
microsoft-docs routes Microsoft documentation questions to Microsoft Learn MCP. It uses microsoft_docs_search for articles, microsoft_code_sample_search for code, and microsoft_docs_fetch when search excerpts do not contain the full page.
For Aspire, the skill selects Aspire MCP or Context7 based on the Aspire CLI version. VS Code and GitHub documentation goes through Context7. Agent Framework research combines Learn tutorials with repository material that can cover API details, DevUI, and CLI options.
Add a version, language, and task intent to each prompt. Install this skill if your work depends on Microsoft technologies; it is a poor fit for documentation outside that ecosystem.
What it helps with
- find an Azure tutorial for a specific version
- locate Python or C# code samples
- retrieve a full Learn article after search
- look up VS Code settings through Context7
- check Agent Framework API details in its repository
Example prompts for the agent
- Find a `BlobClient UploadAsync` example for `Azure.Storage.Blobs`.
- Show a tutorial for `Azure Functions Python v2 programming model`.
- How do I configure `workflow_dispatch inputs matrix strategy` in GitHub Actions?
How to install microsoft-docs
1Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill microsoft-docs -a claude-code2Manually: put the files in place
~/.claude/skills/microsoft-docs/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/microsoft-docs/
Manually: put the files in place
.agents/skills/microsoft-docs/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/microsoft-docs/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill microsoft-docs2GitHub CLI
gh skill install github/awesome-copilot microsoft-docs3Manually: put the files in place
.github/skills/microsoft-docs/SKILL.mdPlatform CLI
gemini skills install https://github.com/github/awesome-copilot --path skills/microsoft-docsManually: put the files in place
.devin/skills/microsoft-docs/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set554
The whole set →Other versions of microsoft-docs
Similar
Questions about microsoft-docs
How do I install microsoft-docs in GitHub Copilot?
Run npx skills add github/awesome-copilot --skill microsoft-docs. You can also use gh skill install github/awesome-copilot microsoft-docs.
What does the microsoft-docs skill do?
It searches official Microsoft documentation, configuration guidance, and code examples across Azure, .NET, M365, Power Platform, Windows, and related products. It switches to Context7 or Aspire MCP for sources outside Learn.
How does the skill handle Aspire documentation?
With Aspire CLI 13.2+, it uses the Aspire MCP documentation tools list_docs, search_docs, and get_doc. With CLI 13.1, it falls back to Context7.
Source text
SKILL.md · MIT
--- name: microsoft-docs description: 'Query official Microsoft documentation to find concepts, tutorials, and code examples across Azure, .NET, Agent Framework, Aspire, VS Code, GitHub, and more. Uses Microsoft Learn MCP as the default, with Context7 and Aspire MCP for content that lives outside learn.microsoft.com.' --- # Microsoft Docs Research skill for the Microsoft technology ecosystem. Covers learn.microsoft.com and documentation that lives outside it (VS Code, GitHub, Aspire, Agent Framework repos). --- ## Default: Microsoft Learn MCP Use these tools for **everything on learn.microsoft.com** — Azure, .NET, M365, Power Platform, Agent Framework, Semantic Kernel, Windows, and more. This is the primary tool for the vast majority of Microsoft documentation queries. | Tool | Purpose | |------|---------| | `microsoft_docs_search` | Search learn.microsoft.com — concepts, guides, tutorials, configuration | | `microsoft_code_sample_search` | Find working code snippets from Learn docs. Pass `language` (`python`, `csharp`, etc.) for best results | | `microsoft_docs_fetch` | Get full page content from a specific URL (when search excerpts aren't enough) | 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, use the `mslearn` CLI from your terminal or shell (for example, Bash, PowerShell, or cmd) instead: ```bash # 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. --- ## Exceptions: When to Use Other Tools The following categories live **outside** learn.microsoft.com. Use the specified tool instead. ### .NET Aspire — Use Aspire MCP Server (preferred) or Context7 Aspire docs live on **aspire.dev**, not Learn. The best tool depends on your Aspire CLI version: **CLI 13.2+** (recommended) — The Aspire MCP server includes built-in docs search tools: | 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 | These ship in Aspire CLI 13.2 ([PR #14028](https://github.com/dotnet/aspire/pull/14028)). To update: `aspire update --self --channel daily`. Ref: https://davidpine.dev/posts/aspire-docs-mcp-tools/ **CLI 13.1** — The MCP server provides integration lookup (`list_integrations`, `get_integration_docs`) but **not** docs search. Fall back to Context7: | Library ID | Use for | |---|---| | `/microsoft/aspire.dev` | Primary — guides, integrations, CLI reference, deployment | | `/dotnet/aspire` | Runtime source — API internals, implementation details | | `/communitytoolkit/aspire` | Community integrations — Go, Java, Node.js, Ollama | ### VS Code — Use Context7 VS Code docs live on **code.visualstudio.com**, not Learn. | Library ID | Use for | |---|---| | `/websites/code_visualstudio` | User docs — settings, features, debugging, remote dev | | `/websites/code_visualstudio_api` | Extension API — webviews, TreeViews, commands, contribution points | ### GitHub — Use Context7 GitHub docs live on **docs.github.com** and **cli.github.com**. | Library ID | Use for | |---|---| | `/websites/github_en` | Actions, API, repos, security, admin, Copilot | | `/websites/cli_github` | GitHub CLI (`gh`) commands and flags | ### Agent Framework — Use Learn MCP + Context7 Agent Framework tutorials are on learn.microsoft.com (use `microsoft_docs_search`), but the **GitHub repo** has API-level detail that is often ahead of published docs — particularly DevUI REST API reference, CLI options, and .NET integration. | Library ID | Use for | |---|---| | `/websites/learn_microsoft_en-us_agent-framework` | Tutorials — DevUI guides, tracing, workflow orchestration | | `/microsoft/agent-framework` | API detail — DevUI REST endpoints, CLI flags, auth, .NET `AddDevUI`/`MapDevUI` | **DevUI tip:** Query the Learn website source for how-to guides, then the repo source for API-level specifics (endpoint schemas, proxy config, auth tokens). --- ## Context7 Setup For any Context7 query, resolve the library ID first (one-time per session): 1. Call `mcp_context7_resolve-library-id` with the technology name 2. Call `mcp_context7_query-docs` with the returned library ID and a specific query --- ## Writing Effective Queries Be specific — include version, intent, and language: ``` # ❌ Too broad "Azure Functions" "agent framework" # ✅ Specific "Azure Functions Python v2 programming model" "Cosmos DB partition key design best practices" "GitHub Actions workflow_dispatch inputs matrix strategy" "Aspire AddUvicornApp Python FastAPI integration" "DevUI serve agents tracing OpenTelemetry directory discovery" "Agent Framework workflow conditional edges branching handoff" ``` Include context: - **Version** when relevant (`.NET 8`, `Aspire 13`, `VS Code 1.96`) - **Task intent** (`quickstart`, `tutorial`, `overview`, `limits`, `API reference`) - **Language** for polyglot docs (`Python`, `TypeScript`, `C#`)
© github · MIT · github/awesome-copilot