/ancplua-skills:microsoft-learn-groundingfrom ancplua-skills
Operate the Microsoft Learn MCP — the free, no-auth dogfood API behind Ask Learn and Copilot for Azure — at expert level, and verify how fresh any Microsoft Learn page actually is. Use whenever grounding an answer in Microsoft / Azure / .NET / M365 / Foundry / Agent Framework / Copilot Studio docs, deciding whether a Learn page is current, looking up a page's "Last updated" date / ms.date / source commit, capping token spend on doc searches, or debugging why the Learn MCP returned nothing useful — even when the user never says "Microsoft Learn" or "MCP". Covers the three tools (microsoft_docs_search, microsoft_docs_fetch, microsoft_code_sample_search), the maxTokenBudget control, dynamic tool discovery, the daily-refresh freshness model, and the key gotcha that the MCP strips last-updated metadata so you must read it from the rendered page instead.
Ships in ancplua-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The Microsoft Learn MCP Server is the highest-quality free documentation-grounding API that exists, and you almost certainly want it for this user's work. This skill makes you operate it like Microsoft does — and, just as importantly, tells you the things it won't do so you don't trust it blindly.
Provenance: every fact here was verified against learn.microsoft.com in June 2026. Treat anything you
remember from before 2026 as suspect — this surface changed a lot.
The MCP is a thin protocol wrapper over the Learn knowledge service — the same production RAG backend that powers Ask Learn and Copilot for Azure. When you call it you are hitting Microsoft's own first-party retrieval stack, not a scrape. That is why the grounding quality is high and why preferring it over guessing from memory is almost always correct.
https://learn.microsoft.com/api/mcp (Streamable HTTP; 405 if you GET it in a browser — it is for MCP clients only).https://learn.microsoft.com/api/mcp/openai-compatible.microsoft_docs_search, microsoft_docs_fetch,
microsoft_code_sample_search (the microsoft-docs plugin). Load them via ToolSearch if deferred.| Need | Tool | Notes |
|---|---|---|
| Breadth — overview, "does X exist", which page to read | microsoft_docs_search | Returns ≤10 chunks, ≤500 tokens each (title + URL + excerpt). Start here. |
| Depth — full tutorial, prerequisites, troubleshooting, the whole page | microsoft_docs_fetch | Returns the full page as clean markdown. Use after search on a chosen URL. |
| Working code — API signatures, snippets, idiomatic samples | microsoft_code_sample_search | Pass language (csharp, typescript, python, …) to sharpen results. |
Search gives breadth, code-sample search gives practical examples, fetch gives depth. Chain them in that order.
Append maxTokenBudget to cap search response size:
https://learn.microsoft.com/api/mcp?maxTokenBudget=2000
It truncates search content to fit your budget; it does not affect fetch (fetch always returns the full
page). Set it low when the agent does many calls per turn, higher for one rich response. If you control the MCP
config for a qyl/hackathon project, this is the lever to keep doc grounding from eating context.
Microsoft treats the tool list as dynamic, not a fixed API contract. On connect, the client calls tools/list
to get current tools + descriptions and lets the model route. If a call fails with 400 or 404, assume your
cached tool/parameter shape is stale: refresh via tools/list and retry. Do not hardcode tool names, parameter
schemas, or response formats in any custom integration — Microsoft explicitly says the interface may change.
The knowledge service refreshes incrementally after content updates and does a full refresh once a day. So the MCP's search index is at most ~1 day behind the live docs. Good enough for almost everything; if you need truly-today content, fall back to fetching the rendered page (below).
There is no dedicated REST/JSON "last-updated" endpoint, and the MCP cannot give you the date:
microsoft_docs_fetch returns body-only markdown and strips the metadata block (verified: its output begins
at the page's first # heading with no dates). The date lives only in the rendered page's metadata, which a
plain page fetch (WebFetch, or curl + grep) exposes as front-matter / <meta> tags:
| Field | Meaning | Example (the training/support/mcp page, June 2026) |
|---|---|---|
updated_at | What renders as the visible "Last updated on …" badge, localized to the viewer's timezone | 2026-05-22T23:04:00Z → shows 05/23/2026 in CET (UTC+2) — that's why a 23:0x-UTC build reads as the next day |
ms.date | Author-controlled freshness date — set by hand / Learn Authoring Pack, not derived from git | 2026-05-05T00:00:00Z |
git_commit_id | Exact source commit SHA | b3cb6f8fc44f2ccd5428d4adabbce28a6e148247 |
original_content_git_url | The source markdown file | github.com/MicrosoftDocs/LearnShared/blob/live/LearnShared/support/mcp.md |
How to read it, in order of preference:
updated_at, ms.date, git_commit_id, original_content_git_url
verbatim. (WebFetch surfaces the metadata block; the Learn MCP fetch does not.)original_content_git_url, then query
GitHub: GET /repos/MicrosoftDocs/<repo>/commits?path=<file>&per_page=1. Most Learn content sources are public
MicrosoftDocs/* repos (e.g. LearnShared, azure-docs, dotnet-docs).The visible badge ≈ updated_at. ms.date is a claim of freshness, not proof — see safety below.
These are the guards for the cases the user "hasn't considered." Check them; they're cheap.
context7 / nuget-opensrc / web instead. This skill helps; it never gates.ms.date can lie. It's hand-set, so content can change without it moving (and vice-versa). When the date
actually matters, cite which field you used (updated_at vs ms.date vs git commit), and prefer the git
commit for "was this really touched recently".Microsoft.Agents.AI.* / Foundry / Copilot Studio
/ Fabric, the installed package and its NuGet .xml sidecar + an <agent-framework-checkout> local source checkout are
the deciding source. When Learn (often preview-era) and the local checkout disagree, trust compile/run + the
checkout, and say so. Learn is for concepts and breadth; it is not API-exact for preview packages./api/mcp expecting stable
request/response shapes — go through the MCP client. The interface changes dynamically.microsoft_docs_search "Learn MCP Server overview" → get the canonical URL.updated_at (the badge) and git_commit_id.original_content_git_url → GitHub commits API for that path → real last-commit date.updated_at); author freshness ms.date is 05/05; latest
source commit is b3cb6f8." Name the field — don't collapse three different dates into one vague claim.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ancplua/ancplua-skills --plugin ancplua-skills43 skills in this plugin
/agent-log-scanScan agent transcripts and turn antipatterns into config and routine changes, not just an allowlist like fewer-permission-prompts. Use when asked to scan agent logs or session history, "why do my agents keep failing", "what happened across my sessions", to find retry loops, permission thrash, API dead-ends or limit interrupts, or raise autonomy./analyzer-purityKeep Roslyn analyzers, source generators and code fixes pure, loadable and cache-friendly inside every compiler host. Use when creating, changing, reviewing or packaging a netstandard2.0 project with IsRoslynComponent, EnforceExtendedAnalyzerRules or Microsoft.CodeAnalysis references, or when an RS1xxx/RS2xxx diagnostic, a sluggish IDE or a generator that reruns on every keystroke points at one./Other plugins' skills for the same job