MicrosoftDocsSKILL.mdVerified source

Agent Skill

Microsoft docs retrieval

Ground Microsoft platform answers in official documentation through Learn MCP or its public CLI fallback.

microsoft-learndocsmcp

Skill specification

Declared by Microsoft in the package front matter. Trigger conditions are what the coding agent matches on before it loads the skill.

Microsoft docs retrieval SKILL.md front matter fields
Skill namemicrosoft-docs
Trigger conditionsUnderstand Microsoft technologies by querying official documentation. Use whenever the user asks how something works, wants tutorials, needs configuration options, limits, quotas, or best practices for any Microsoft technology (Azure, .NET, M365, Windows, Power Platform, etc.)—even if they don't mention "docs." If the question is about understanding a concept rather than writing code, this is the right skill.
CompatibilityPrimarily 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`).

Install microsoft-docs

Agent Skills are a shared file format, but each client discovers them from a different directory. Copy the command for your agent, then start a new session so the skill is picked up.

Claude Code

.claude/skills/microsoft-docs/SKILL.md

Project skills are committed with the repo. Use the user directory for a personal install across every project.

Project install

mkdir -p .claude/skills/microsoft-docs && curl -fsSL 'https://raw.githubusercontent.com/microsoft/skills/main/.github/skills/microsoft-docs/SKILL.md' -o .claude/skills/microsoft-docs/SKILL.md

Personal install

mkdir -p ~/.claude/skills/microsoft-docs && curl -fsSL 'https://raw.githubusercontent.com/microsoft/skills/main/.github/skills/microsoft-docs/SKILL.md' -o ~/.claude/skills/microsoft-docs/SKILL.md

Codex

.agents/skills/microsoft-docs/SKILL.md

Codex reads `.agents/skills/` as its primary location, which is also the cross-platform default other clients honour.

Project install

mkdir -p .agents/skills/microsoft-docs && curl -fsSL 'https://raw.githubusercontent.com/microsoft/skills/main/.github/skills/microsoft-docs/SKILL.md' -o .agents/skills/microsoft-docs/SKILL.md

Personal install

mkdir -p ~/.agents/skills/microsoft-docs && curl -fsSL 'https://raw.githubusercontent.com/microsoft/skills/main/.github/skills/microsoft-docs/SKILL.md' -o ~/.agents/skills/microsoft-docs/SKILL.md

Cursor

.cursor/skills/microsoft-docs/SKILL.md

Cursor also loads `.agents/skills/`, `.claude/skills/`, and `.codex/skills/`, so one committed copy can serve several clients.

Project install

mkdir -p .cursor/skills/microsoft-docs && curl -fsSL 'https://raw.githubusercontent.com/microsoft/skills/main/.github/skills/microsoft-docs/SKILL.md' -o .cursor/skills/microsoft-docs/SKILL.md

Personal install

mkdir -p ~/.cursor/skills/microsoft-docs && curl -fsSL 'https://raw.githubusercontent.com/microsoft/skills/main/.github/skills/microsoft-docs/SKILL.md' -o ~/.cursor/skills/microsoft-docs/SKILL.md

Gemini CLI

.gemini/skills/microsoft-docs/SKILL.md

Gemini CLI reads `.agents/skills/` first when both directories exist.

Project install

mkdir -p .gemini/skills/microsoft-docs && curl -fsSL 'https://raw.githubusercontent.com/microsoft/skills/main/.github/skills/microsoft-docs/SKILL.md' -o .gemini/skills/microsoft-docs/SKILL.md

Personal install

mkdir -p ~/.gemini/skills/microsoft-docs && curl -fsSL 'https://raw.githubusercontent.com/microsoft/skills/main/.github/skills/microsoft-docs/SKILL.md' -o ~/.gemini/skills/microsoft-docs/SKILL.md

GitHub Copilot

.github/skills/microsoft-docs/SKILL.md

Copilot in VS Code discovers repository skills from `.github/skills/`.

Project install

mkdir -p .github/skills/microsoft-docs && curl -fsSL 'https://raw.githubusercontent.com/microsoft/skills/main/.github/skills/microsoft-docs/SKILL.md' -o .github/skills/microsoft-docs/SKILL.md

Personal install

mkdir -p ~/.copilot/skills/microsoft-docs && curl -fsSL 'https://raw.githubusercontent.com/microsoft/skills/main/.github/skills/microsoft-docs/SKILL.md' -o ~/.copilot/skills/microsoft-docs/SKILL.md

Published by Microsoft under MIT. Rendered from the package in github.com/microsoft/skills/tree/main/.github/skills/microsoft-docs.

Microsoft Docs

Tools

ToolUse For
microsoft_docs_searchFind documentation—concepts, guides, tutorials, configuration
microsoft_docs_fetchGet full page content (when search excerpts aren't enough)

When to Use

  • Understanding concepts — "How does Cosmos DB partitioning work?"
  • Learning a service — "Azure Functions overview", "Container Apps architecture"
  • Finding tutorials — "quickstart", "getting started", "step-by-step"
  • Configuration options — "App Service configuration settings"
  • Limits & quotas — "Azure OpenAI rate limits", "Service Bus quotas"
  • Best practices — "Azure security best practices"

Query Effectiveness

Good queries are specific:

# ❌ Too broad
"Azure Functions"

# ✅ Specific
"Azure Functions Python v2 programming model"
"Cosmos DB partition key design best practices"
"Container Apps scaling rules KEDA"

Include context:

  • Version when relevant (.NET 8, EF Core 8)
  • Task intent (quickstart, tutorial, overview, limits)
  • Platform for multi-platform docs (Linux, Windows)

When to Fetch Full Page

Fetch after search when:

  • Tutorials — need complete step-by-step instructions
  • Configuration guides — need all options listed
  • Deep dives — user wants comprehensive coverage
  • Search excerpt is cut off — full context needed

Why Use This

  • Accuracy — live docs, not training data that may be outdated
  • Completeness — tutorials have all steps, not fragments
  • Authority — official Microsoft documentation

CLI Alternative

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 "azure functions timeout"

# Or install globally, then run
npm install -g @microsoft/learn-cli
mslearn search "azure functions timeout"
MCP ToolCLI Command
microsoft_docs_search(query: "...")mslearn search "..."
microsoft_docs_fetch(url: "...")mslearn fetch "..."

The fetch command also supports --section <heading> to extract a single section and --max-chars <number> to truncate output.

Add the registry badge

Maintainers can link this listing from the skill's own README. Free, no account needed, and it points back at the rendered package for anyone browsing the repo.

Markdown

[![Microsoft docs retrieval on tokens&](https://tokensand.com/api/badges/skill/microsoft-docs-retrieval)](https://tokensand.com/agent-skills/microsoft-docs-retrieval)

HTML

<a href="https://tokensand.com/agent-skills/microsoft-docs-retrieval" target="_blank" rel="noopener">
  <img src="https://tokensand.com/api/badges/skill/microsoft-docs-retrieval" alt="Microsoft docs retrieval on tokens&" />
</a>

More Microsoft Agent Skills

All Agent Skills