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.
Security Assessment
About microsoft-code-reference
The 'microsoft-code-reference' skill is designed to assist developers by providing accurate and reliable access to Microsoft API references and working code samples. It helps users verify SDK code, check method signatures, and troubleshoot errors. Whether working with Azure SDKs, .NET libraries, or Microsoft APIs, this skill enables developers to confirm method existence, find correct API signatures, and catch common errors like deprecated patterns or wrong method signatures. It acts as a guide to ensure that the correct methods and parameters are used, enhancing the development experience and reducing the risk of errors in production code.
FAQ
How do I use this skill to find code samples?
You can use the `microsoft_code_sample_search` tool by specifying a query and language. For example, `microsoft_code_sample_search(query: 'upload file to blob storage', language: 'csharp')`.
What tools are available in this skill?
The skill includes three tools: `microsoft_docs_search` for API method lookups, `microsoft_code_sample_search` for finding code samples, and `microsoft_docs_fetch` for fetching full API reference pages.
What is the compatibility requirement for using this skill?
This skill requires the Microsoft Learn MCP Server, which can be accessed at https://learn.microsoft.com/api/mcp.
Can I use this skill for troubleshooting specific API errors?
Yes, you can use `microsoft_code_sample_search` to find working code samples for comparison and `microsoft_docs_search` or `microsoft_docs_fetch` to troubleshoot errors like method not found, wrong signatures, or deprecated patterns.
Does this skill handle all Microsoft SDKs and APIs?
This skill primarily supports Azure SDKs, .NET libraries, and Microsoft APIs, but may not cover every possible Microsoft SDK or API.
Install microsoft-code-reference
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
MicrosoftDocs/mcp