microsoft-code-reference
하는 일
이 도구는 Azure SDK나 .NET 라이브러리 같은 Microsoft 기술을 사용하는 정보와 코드 예시를 찾도록 돕습니다. 생각하고 있는 명령이 실제로 있는지, 올바른지 확인하고, 사용 예시를 보여 줍니다.
사용하는 경우
- ✓명령이나 함수가 있는지 확실하지 않을 때.
- ✓Microsoft 도구를 쓰는 예시 코드를 찾고 싶을 때.
- ✓코드가 올바르고 최신 명령을 쓰는지 확인하고 싶을 때.
스킬 링크
https://github.com/github/awesome-copilot/blob/main/skills/microsoft-code-reference/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“Python으로 Azure Blob Storage에 파일을 업로드하는 예시를 찾아 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
'BlobClient UploadAsync Azure.Storage.Blobs'처럼 특정 메서드를 검색하도록 요청할 수 있습니다. 'JavaScript로 Service Bus 메시지 보내기'처럼 작업에 대한 코드 예시를 요청할 수도 있습니다. 도구는 공식 Microsoft 문서를 참고해 정보가 정확하도록 합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Microsoft Code Reference
Tools
| Need | Tool | Example |
|---|---|---|
| API method/class lookup | microsoft_docs_search |
"BlobClient UploadAsync Azure.Storage.Blobs" |
| Working code sample | microsoft_code_sample_search |
query: "upload blob managed identity", language: "python" |
| Full API reference | microsoft_docs_fetch |
Fetch URL from microsoft_docs_search (for overloads, full signatures) |
Finding Code Samples
Use microsoft_code_sample_search to get official, working examples:
microsoft_code_sample_search(query: "upload file to blob storage", language: "csharp")
microsoft_code_sample_search(query: "authenticate with managed identity", language: "python")
microsoft_code_sample_search(query: "send message service bus", language: "javascript")
When to use:
- Before writing code—find a working pattern to follow
- After errors—compare your code against a known-good sample
- Unsure of initialization/setup—samples show complete context
API Lookups
# Verify method exists (include namespace for precision)
"BlobClient UploadAsync Azure.Storage.Blobs"
"GraphServiceClient Users Microsoft.Graph"
# Find class/interface
"DefaultAzureCredential class Azure.Identity"
# Find correct package
"Azure Blob Storage NuGet package"
"azure-storage-blob pip package"
Fetch full page when method has multiple overloads or you need complete parameter details.
Error Troubleshooting
Use 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:
| Error Type | Query |
|---|---|
| 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" |
When to Verify
Always verify when:
- Method name seems "too convenient" (
UploadFilevs actualUpload) - Mixing SDK versions (v11
CloudBlobClientvs v12BlobServiceClient) - Package name doesn't follow conventions (
Azure.*for .NET,azure-*for Python) - Using an API for the first time
Validation Workflow
Before generating code using Microsoft SDKs, verify it's correct:
- Confirm method or package exists —
microsoft_docs_search(query: "[ClassName] [MethodName] [Namespace]") - Fetch full details (for overloads/complex params) —
microsoft_docs_fetch(url: "...") - Find working sample —
microsoft_code_sample_search(query: "[task]", language: "[lang]")
For simple lookups, step 1 alone may suffice. For complex API usage, complete all three steps.
CLI Alternative
If the Learn MCP server is not available, use the mslearn CLI from a terminal or shell (for example, Bash, PowerShell, or cmd) instead:
# Run directly (no install needed)
npx @microsoft/learn-cli search "BlobClient UploadAsync Azure.Storage.Blobs"
# Or install globally, then run
npm install -g @microsoft/learn-cli
mslearn search "BlobClient UploadAsync Azure.Storage.Blobs"
| MCP Tool | CLI Command |
|---|---|
microsoft_docs_search(query: "...") |
mslearn search "..." |
microsoft_code_sample_search(query: "...", language: "...") |
mslearn code-search "..." --language ... |
microsoft_docs_fetch(url: "...") |
mslearn fetch "..." |
Pass --json to search or code-search to get raw JSON output for further processing.
자주 묻는 질문
'API'와 'SDK'는 무엇인가요?
API는 서로 다른 컴퓨터 프로그램이 대화하도록 해 주는 메뉴와 같습니다. SDK(소프트웨어 개발 키트)는 이런 API를 사용해 애플리케이션을 만드는 데 도움을 주는 도구와 안내의 모음입니다.
'코드가 올바른지 확인한다'는 것은 무엇을 뜻하나요?
작성하는 명령이 실제로 존재하는지, 철자와 사용법(올바른 매개변수)이 맞는지, 새 버전으로 대체된 오래된 버전이 아닌지 확인한다는 뜻입니다.
이 맥락에서 '환각'은 무엇인가요?
AI가 사실이 아닌 정보를 지어내는 것을 말합니다. 이 도구는 AI가 존재하지 않거나 잘못된 명령과 코드 예시를 제안하지 않도록 돕습니다.
상세 정보
작성자의 원본 설명
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.
repo: github/awesome-copilot
인기도
- GitHub 스타
- 40k
- 순위
- #7290
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
acquire-codebase-knowledge
40k에이전트가 기존 코드 프로젝트를 이해하고 문서화하도록 돕습니다. 새 구성원을 맞이하거나 아키텍처를 개괄적으로 파악할 때 유용합니다.
acreadiness-assess
40k에이전트가 프로젝트의 AI 준비 상태를 평가하고 보고서를 만들도록 합니다. 프로젝트가 AI 도구를 쓸 준비가 얼마나 되어 있는지 이해하는 데 유용합니다.
acreadiness-generate-instructions
40k에이전트가 평가 결과를 바탕으로 AI 도구를 위한 지침을 만들도록 돕습니다. AI가 코드와 상호작용하는 방식을 개선하고 확인된 공백을 메울 때 유용합니다.
acreadiness-policy
40k에이전트가 AI 프로젝트 평가를 위한 정책을 정의하거나 적용하도록 돕습니다. 프로젝트 평가 방식을 표준화하고 규정 준수를 보장할 때 유용합니다.