MR
Mayur Rathi
@github
⭐ 34.1k GitHub stars

Microsoft-Docs

Microsoft-Docs是一款code方向的AI技能,核心价值是Query official Microsoft documentation to find concepts, tutorials, and code examples across Azure, ,可用于解决开发者在code领域的实际问题,帮助用户提升效率、自动化重复任务或优化工作流。

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, w

Last verified on: 2026-05-30
mkdir -p ./skills/microsoft-docs && curl -sfL https://raw.githubusercontent.com/github/awesome-copilot/main/skills/microsoft-docs/SKILL.md -o ./skills/microsoft-docs/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

# 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/lear

🎯 Best For

  • Technical writers
  • API documentation teams
  • Claude users
  • GitHub Copilot users
  • Software engineers

💡 Use Cases

  • Generating JSDoc/TSDoc comments
  • Writing README files for new projects
  • Code quality improvement
  • Best practice enforcement

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude or GitHub Copilot and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Microsoft-Docs to Your Work

    Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.

  4. 4

    Review and Refine

    Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.

❓ Frequently Asked Questions

Does it follow my documentation style?

Most documentation skills respect existing style. Provide a style guide or example in your prompt.

Is Microsoft-Docs compatible with Cursor and VS Code?

Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.

Do I need specific dependencies for Microsoft-Docs?

Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.

How do I install Microsoft-Docs?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/microsoft-docs/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Auto-generating without reviewing

AI documentation can contain inaccuracies. Always verify technical accuracy.

Skipping validation

Always test AI-generated code changes, even for simple refactors.

Missing dependency updates

Check if the skill requires updated dependencies or new packages.

🔗 Related Skills