{"id":"13a0e4ec-54fc-4458-8358-9581e236ad76","shortId":"XW79xG","kind":"skill","title":"Microsoft Code Reference","tagline":"Awesome Copilot skill by Github","description":"# Microsoft Code Reference\n\n## Tools\n\n| Need | Tool | Example |\n|------|------|---------|\n| API method/class lookup | `microsoft_docs_search` | `\"BlobClient UploadAsync Azure.Storage.Blobs\"` |\n| Working code sample | `microsoft_code_sample_search` | `query: \"upload blob managed identity\", language: \"python\"` |\n| Full API reference | `microsoft_docs_fetch` | Fetch URL from `microsoft_docs_search` (for overloads, full signatures) |\n\n## Finding Code Samples\n\nUse `microsoft_code_sample_search` to get official, working examples:\n\n```\nmicrosoft_code_sample_search(query: \"upload file to blob storage\", language: \"csharp\")\nmicrosoft_code_sample_search(query: \"authenticate with managed identity\", language: \"python\")\nmicrosoft_code_sample_search(query: \"send message service bus\", language: \"javascript\")\n```\n\n**When to use:**\n- Before writing code—find a working pattern to follow\n- After errors—compare your code against a known-good sample\n- Unsure of initialization/setup—samples show complete context\n\n## API Lookups\n\n```\n# Verify method exists (include namespace for precision)\n\"BlobClient UploadAsync Azure.Storage.Blobs\"\n\"GraphServiceClient Users Microsoft.Graph\"\n\n# Find class/interface\n\"DefaultAzureCredential class Azure.Identity\"\n\n# Find correct package\n\"Azure Blob Storage NuGet package\"\n\"azure-storage-blob pip package\"\n```\n\nFetch full page when method has multiple overloads or you need complete parameter details.\n\n## Error Troubleshooting\n\nUse `microsoft_code_sample_search` to find working code samples and compare with your implementation. For specific errors, use `microsoft_docs_search` and `microsoft_docs_fetch`:\n\n| Error Type | Query |\n|------------|-------|\n| Method not found | `\"[ClassName] methods [Namespace]\"` |\n| Type not found | `\"[TypeName] NuGet package namespace\"` |\n| Wrong signature | `\"[ClassName] [MethodName] overloads\"` → fetch full page |\n| Deprecated warning | `\"[OldType] migration v12\"` |\n| Auth failure | `\"DefaultAzureCredential troubleshooting\"` |\n| 403 Forbidden | `\"[ServiceName] RBAC permissions\"` |\n\n## When to Verify\n\nAlways verify when:\n- Method name seems \"too convenient\" (`UploadFile` vs actual `Upload`)\n- Mixing SDK versions (v11 `CloudBlobClient` vs v12 `BlobServiceClient`)\n- Package name doesn't follow conventions (`Azure.*` for .NET, `azure-*` for Python)\n- Using an API for the first time\n\n## Validation Workflow\n\nBefore generating code using Microsoft SDKs, verify it's correct:\n\n1. **Confirm method or package exists** — `microsoft_docs_search(query: \"[ClassName] [MethodName] [Namespace]\")`\n2. **Fetch full details** (for overloads/complex params) — `microsoft_docs_fetch(url: \"...\")`\n3. **Find working sample** — `microsoft_code_sample_search(query: \"[task]\", language: \"[lang]\")`\n\nFor simple lookups, step 1 alone may suffice. For complex API usage, complete all three steps.\n\n## CLI Alternative\n\nIf the Learn MCP server is not available, use the `mslearn` CLI from a terminal or shell (for example, Bash, PowerShell, or cmd) instead:\n\n```sh\n# Run directly (no install needed)\nnpx @microsoft/learn-cli search \"BlobClient UploadAsync Azure.Storage.Blobs\"\n\n# Or install globally, then run\nnpm install -g @microsoft/learn-cli\nmslearn search \"BlobClient UploadAsync Azure.Storage.Blobs\"\n```\n\n| MCP Tool | CLI Command |\n|----------|-------------|\n| `microsoft_docs_search(query: \"...\")` | `mslearn search \"...\"` |\n| `microsoft_code_sample_search(query: \"...\", language: \"...\")` | `mslearn code-search \"...\" --language ...` |\n| `microsoft_docs_fetch(url: \"...\")` | `mslearn fetch \"...\"` |\n\nPass `--json` to `search` or `code-search` to get raw JSON output for further processing.","tags":["microsoft","code","reference","awesome","copilot","github"],"capabilities":["skill","source-github","category-awesome-copilot"],"categories":["awesome-copilot"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/github/awesome-copilot/microsoft-code-reference","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"install_from":"skills.sh"}},"qualityScore":"0.300","qualityRationale":"deterministic score 0.30 from registry signals: · indexed on skills.sh · published under github/awesome-copilot","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill:v1","enrichmentVersion":1,"enrichedAt":"2026-04-22T19:40:26.936Z","embedding":null,"createdAt":"2026-04-18T20:25:19.078Z","updatedAt":"2026-04-22T19:40:26.936Z","lastSeenAt":"2026-04-22T19:40:26.936Z","tsv":"'1':300,340 '2':313 '3':324 '403':241 'actual':259 'alon':341 'altern':353 'alway':249 'api':16,40,132,283,346 'auth':237 'authent':85 'avail':361 'awesom':4 'azur':155,161,275,278 'azure-storage-blob':160 'azure.identity':151 'azure.storage.blobs':24,143,389,403 'bash':373 'blob':34,76,156,163 'blobclient':22,141,387,401 'blobservicecli':268 'bus':99 'category-awesome-copilot' 'class':150 'class/interface':148 'classnam':214,226,310 'cli':352,365,406 'cloudblobcli':265 'cmd':376 'code':2,10,26,29,56,60,69,81,92,107,118,184,190,292,329,415,422,437 'code-search':421,436 'command':407 'compar':116,193 'complet':130,177,348 'complex':345 'confirm':301 'context':131 'conveni':256 'convent':274 'copilot':5 'correct':153,299 'csharp':79 'defaultazurecredenti':149,239 'deprec':232 'detail':179,316 'direct':380 'doc':20,43,49,202,206,307,321,409,426 'doesn':271 'error':115,180,199,208 'exampl':15,67,372 'exist':136,305 'failur':238 'fetch':44,45,166,207,229,314,322,427,430 'file':74 'find':55,108,147,152,188,325 'first':286 'follow':113,273 'forbidden':242 'found':213,219 'full':39,53,167,230,315 'g':397 'generat':291 'get':64,440 'github':8 'global':392 'good':123 'graphservicecli':144 'ident':36,88 'implement':196 'includ':137 'initialization/setup':127 'instal':382,391,396 'instead':377 'javascript':101 'json':432,442 'known':122 'known-good':121 'lang':335 'languag':37,78,89,100,334,419,424 'learn':356 'lookup':18,133,338 'manag':35,87 'may':342 'mcp':357,404 'messag':97 'method':135,170,211,215,252,302 'method/class':17 'methodnam':227,311 'microsoft':1,9,19,28,42,48,59,68,80,91,183,201,205,294,306,320,328,408,414,425 'microsoft.graph':146 'microsoft/learn-cli':385,398 'migrat':235 'mix':261 'mslearn':364,399,412,420,429 'multipl':172 'name':253,270 'namespac':138,216,223,312 'need':13,176,383 'net':277 'npm':395 'npx':384 'nuget':158,221 'offici':65 'oldtyp':234 'output':443 'overload':52,173,228 'overloads/complex':318 'packag':154,159,165,222,269,304 'page':168,231 'param':319 'paramet':178 'pass':431 'pattern':111 'permiss':245 'pip':164 'powershel':374 'precis':140 'process':446 'python':38,90,280 'queri':32,72,84,95,210,309,332,411,418 'raw':441 'rbac':244 'refer':3,11,41 'run':379,394 'sampl':27,30,57,61,70,82,93,124,128,185,191,327,330,416 'sdk':262 'sdks':295 'search':21,31,50,62,71,83,94,186,203,308,331,386,400,410,413,417,423,434,438 'seem':254 'send':96 'server':358 'servic':98 'servicenam':243 'sh':378 'shell':370 'show':129 'signatur':54,225 'simpl':337 'skill':6 'source-github' 'specif':198 'step':339,351 'storag':77,157,162 'suffic':343 'task':333 'termin':368 'three':350 'time':287 'tool':12,14,405 'troubleshoot':181,240 'type':209,217 'typenam':220 'unsur':125 'upload':33,73,260 'uploadasync':23,142,388,402 'uploadfil':257 'url':46,323,428 'usag':347 'use':58,104,182,200,281,293,362 'user':145 'v11':264 'v12':236,267 'valid':288 'verifi':134,248,250,296 'version':263 'vs':258,266 'warn':233 'work':25,66,110,189,326 'workflow':289 'write':106 'wrong':224","prices":[{"id":"6ccb3e75-89c5-444f-8d84-8a171e61def9","listingId":"13a0e4ec-54fc-4458-8358-9581e236ad76","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"github","category":"awesome-copilot","install_from":"skills.sh"},"createdAt":"2026-04-18T20:25:19.078Z"}],"sources":[{"listingId":"13a0e4ec-54fc-4458-8358-9581e236ad76","source":"github","sourceId":"github/awesome-copilot/microsoft-code-reference","sourceUrl":"https://github.com/github/awesome-copilot/tree/main/skills/microsoft-code-reference","isPrimary":false,"firstSeenAt":"2026-04-18T21:50:12.886Z","lastSeenAt":"2026-04-22T18:52:59.700Z"},{"listingId":"13a0e4ec-54fc-4458-8358-9581e236ad76","source":"skills_sh","sourceId":"github/awesome-copilot/microsoft-code-reference","sourceUrl":"https://skills.sh/github/awesome-copilot/microsoft-code-reference","isPrimary":true,"firstSeenAt":"2026-04-18T20:25:19.078Z","lastSeenAt":"2026-04-22T19:40:26.936Z"}],"details":{"listingId":"13a0e4ec-54fc-4458-8358-9581e236ad76","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"github","slug":"microsoft-code-reference","source":"skills_sh","category":"awesome-copilot","skills_sh_url":"https://skills.sh/github/awesome-copilot/microsoft-code-reference"},"updatedAt":"2026-04-22T19:40:26.936Z"}}