본문으로 건너뛰기
Skillpedia
일반 코딩40k · #7290

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/microsoft-code-reference/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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" (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

Validation Workflow

Before generating code using Microsoft SDKs, verify it's correct:

  1. Confirm method or 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. 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬