agentleFS
Mingz6Mingz6/copilot-dev-os/skills/microsoft-docs/SKILL.md

microsoft-docs

Skill1 starsChanged 35 days agoMITView on GitHub

Query official Microsoft documentation, look up API references, find working code samples, and verify SDK code. Uses Microsoft Learn MCP as the default, with Context7 and Aspire MCP for content outside learn.microsoft.com. Catches hallucinated methods, wrong signatures, and deprecated patterns.

15 other projects use a version of this, 6 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use microsoft-code-reference and microsoft-skill-creator.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • GitHubSkill

    microsoft-code-reference

    Look up Microsoft API references, find working code samples, and verify SDK code is correct. Use when working with Azure SDKs, .NET libraries, or Microsoft APIs—to find the right method, check parameters, get working examples, or troubleshoot errors. Catches hallucinated methods, wrong signatures, and deprecated patterns by querying official docs.

    Also in 4 projects that use this

  • GitHubSkill

    microsoft-skill-creator

    Create agent skills for Microsoft technologies using Learn MCP tools. Use when users want to create a skill that teaches agents about any Microsoft technology, library, framework, or service (Azure, .NET, M365, VS Code, Bicep, etc.). Investigates topics deeply, then generates a hybrid skill storing essential knowledge locally while enabling dynamic deeper investigation.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use microsoft_docs_fetch after search when you need complete tutorials, all config options, or when search excerpts are truncated.

    line 20
  2. Distinctive:

    If the Learn MCP server is not available:

    line 24
  3. Distinctive:

    Before generating code using Microsoft SDKs:

    line 40
  4. Very specific:

    Call mcp_context7_resolve-library-id with the technology name

    line 104
  5. Very specific:

    Call mcp_context7_query-docs with the returned library ID and a specific query

    line 105
  6. Very specific:

    Version: when relevant (.NET 8, VS Code 1.96)

    line 124

“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Microsoft Docs & Code Reference

Research and verify Microsoft APIs, SDKs, and documentation. Covers learn.microsoft.com and docs that live outside it (VS Code, GitHub, Aspire).


Tools

NeedToolExample
Concepts, guides, tutorialsmicrosoft_docs_search"Azure Functions Python v2 programming model"
Working code samplesmicrosoft_code_sample_searchquery: "upload blob managed identity", language: "python"
Full page contentmicrosoft_docs_fetchFetch URL from search (for overloads, full signatures)

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:

npx @microsoft/learn-cli search "BlobClient UploadAsync Azure.Storage.Blobs"
MCP ToolCLI Command
microsoft_docs_search(query: "...")mslearn search "..."
microsoft_code_sample_search(query: "...", language: "...")mslearn code-search "..." --language ...
microsoft_docs_fetch(url: "...")mslearn fetch "..."

API Verification Workflow

Before generating code using Microsoft SDKs:

  1. Confirm method/package exists — microsoft_docs_search(query: "[ClassName] [MethodName] [Namespace]")
  2. Fetch full details (for overloads/complex params) — microsoft_docs_fetch(url: "...")
  3. Find working sample — microsoft_code_sample_search(query: "[task]", language: "[lang]")

For simple lookups, step 1 alone may suffice. Always verify when:

  • Method name seems "too convenient" (UploadFile vs actual Upload)
  • Mixing SDK versions (v11 CloudBlobClient vs v12 BlobServiceClient)
  • Package name doesn't follow conventions (Azure.* for .NET, azure-* for Python)
  • Using an API for the first time

Error Troubleshooting

Error TypeQuery
Method not found"[ClassName] methods [Namespace]"
Type not found"[TypeName] NuGet package namespace"
Wrong signature"[ClassName] [MethodName] overloads" → fetch full page
Deprecated warning"[OldType] migration v12"
Auth failure"DefaultAzureCredential troubleshooting"
403 Forbidden"[ServiceName] RBAC permissions"

Exceptions: When to Use Other Tools

The following categories live outside learn.microsoft.com.

.NET Aspire — Use Aspire MCP Server or Context7

Aspire docs live on aspire.dev, not Learn.

MCP ToolDescription
list_docsLists all available documentation from aspire.dev
search_docsWeighted lexical search across aspire.dev content
get_docRetrieves a specific document by slug

Context7 fallback:

Library IDUse for
/microsoft/aspire.devGuides, integrations, CLI reference, deployment
/dotnet/aspireRuntime source — API internals
/communitytoolkit/aspireCommunity integrations — Go, Java, Node.js, Ollama

VS Code — Use Context7

Library IDUse for
/websites/code_visualstudioUser docs — settings, features, debugging, remote dev
/websites/code_visualstudio_apiExtension API — webviews, TreeViews, commands

GitHub — Use Context7

Library IDUse for
/websites/github_enActions, API, repos, security, admin, Copilot
/websites/cli_githubGitHub CLI (gh) commands and flags

Context7 Setup

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"

# ✅ Specific
"Azure Functions Python v2 programming model"
"Cosmos DB partition key design best practices"
"GitHub Actions workflow_dispatch inputs matrix strategy"

Include context:

  • Version when relevant (.NET 8, VS Code 1.96)
  • Task intent (quickstart, tutorial, overview, limits, API reference)
  • Language for polyglot docs (Python, TypeScript, C#)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.