microsoft-docs

Query official Microsoft Learn documentation for Azure, .NET, and M365 concepts and configuration.

1|Updated May 29, 2026
One-click install
npx skills add https://github.com/memasanz/agent-harness --skill microsoft-docs-memasanz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: microsoft-docs
Source: https://github.com/memasanz/agent-harness/tree/main/.github/skills/microsoft-docs
Command: npx skills add https://github.com/memasanz/agent-harness --skill microsoft-docs-memasanz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Answers about Microsoft technologies often rely on outdated training data or fragmented blog posts. This Skill retrieves current, authoritative information directly from official Microsoft Learn documentation, covering concepts, tutorials, configuration options, limits, and best practices. ## Core Features & Use Cases - Documentation Search: Find concepts, guides, tutorials, and configuration references across Azure, .NET, M365, Windows, and Power Platform using the microsoft_docs_search tool. - Full Page Retrieval: Fetch complete documentation pages when search excerpts are insufficient, such as step-by-step tutorials or full configuration option lists. - CLI Fallback: Use the mslearn CLI (npx @microsoft/learn-cli) when the Microsoft Learn MCP server is unavailable, with section extraction and output truncation options. - Use Case: When asked how Cosmos DB partition key design works or what Azure OpenAI rate limits apply, query the live docs and return accurate, version-specific answers. ## Quick Start Ask how Azure Functions Python v2 programming model works and have the official Microsoft documentation searched and summarized for you.

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 Azure documentation programmatically?

Use the microsoft_docs_search tool from the Microsoft Learn MCP server with a specific query like "Azure Functions Python v2 programming model". If the MCP server is unavailable, run npx @microsoft/learn-cli search with the same query from the command line.

What is the Microsoft Learn MCP server used for?

The Microsoft Learn MCP server provides two tools: microsoft_docs_search for finding documentation pages and microsoft_docs_fetch for retrieving full page content. It gives AI assistants live access to official Microsoft documentation instead of relying on training data.

How do I write effective queries for Microsoft docs search?

Include the service name, version, and task intent in your query, such as "Cosmos DB partition key design best practices" or ".NET 8 minimal API tutorial". Broad queries like "Azure Functions" return less useful results than specific ones.

Can I use Microsoft Learn search without the MCP server?

Yes, use the mslearn CLI as a fallback. Run npx @microsoft/learn-cli search "your query" without installation, or install it globally with npm install -g @microsoft/learn-cli. It supports search, fetch, section extraction, and output truncation.

When should I fetch the full documentation page instead of using search results?

Fetch the full page when you need complete step-by-step tutorials, exhaustive configuration option lists, or deep-dive coverage. Also fetch when the search excerpt appears truncated and lacks the context needed to answer the question.