Microsoft Skill Creator

作者 MicrosoftDocsf8ffde185dfd无许可证收录于 2026年10月8日更新于 2026年10月8日

Create agent skills for Microsoft technologies using official documentation. Use whenever the user wants to build, generate, or scaffold a skill for any Microsoft technology (Azure, .NET, M365, VS Code, Bicep, etc.)—even phrased casually like "make a skill for Cosmos DB." Investigates the topic via official docs, then generates a hybrid skill with essential knowledge stored locally and dynamic lookups for depth.

仅含说明AI & Agents
AI 生成的概览

通过查阅官方文档,为 Microsoft 技术创建智能体技能,生成本地与动态结合的技能包。

功能
该技能指导为 Azure、.NET、M365、VS Code、Bicep 等 Microsoft 技术创建智能体技能。它通过 Microsoft Learn 文档和代码示例调研主题,然后生成包含 SKILL.md、可选参考文档和可运行代码示例的技能文件夹。生成的技能将核心知识存储在本地,同时指向动态文档查询以获取更深入的内容。
适用场景
当用户想要为任何 Microsoft 技术构建、生成或搭建技能时使用,即使表述比较随意。它用于产出新的技能包,而不是直接回答 Microsoft 技术问题。
运行要求
需要 Microsoft Learn MCP 服务器,或作为备选通过 npx @microsoft/learn-cli 使用 mslearn CLI。文档查询需要网络访问。该技能不附带脚本,仅为指令。

Microsoft Skill Creator

Create hybrid skills for Microsoft technologies that store essential knowledge locally while enabling dynamic Learn MCP lookups for deeper details.

About Skills

Skills are modular packages that extend agent capabilities with specialized knowledge and workflows. A skill transforms a general-purpose agent into a specialized one for a specific domain.

Skill Structure

skill-name/├── SKILL.md (required)     # Frontmatter (name, description) + instructions├── references/             # Documentation loaded into context as needed├── sample_codes/           # Working code examples└── assets/                 # Files used in output (templates, etc.)

Key Principles

  • Frontmatter is critical: name and description determine when the skill triggers—be clear and comprehensive
  • Concise is key: Only include what agents don't already know; context window is shared
  • No duplication: Information lives in SKILL.md OR reference files, not both

Learn MCP Tools

ToolPurposeWhen to Use
microsoft_docs_searchSearch official docsFirst pass discovery, finding topics
microsoft_docs_fetchGet full page contentDeep dive into important pages
microsoft_code_sample_searchFind code examplesGet implementation patterns

CLI Alternative

If the Learn MCP server is not available, use the mslearn CLI from the command line instead:

sh
# Run directly (no install needed)npx @microsoft/learn-cli search "semantic kernel overview"
# Or install globally, then runnpm install -g @microsoft/learn-climslearn search "semantic kernel overview"
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 "..."

Generated skills should include this same CLI fallback table so agents can use either path.

Creation Process

Step 1: Investigate the Topic

Build deep understanding using Learn MCP tools in three phases:

Phase 1 - Scope Discovery:

microsoft_docs_search(query="{technology} overview what is")microsoft_docs_search(query="{technology} concepts architecture")microsoft_docs_search(query="{technology} getting started tutorial")

Phase 2 - Core Content:

microsoft_docs_fetch(url="...")  # Fetch pages from Phase 1microsoft_code_sample_search(query="{technology}", language="{lang}")

Phase 3 - Depth:

microsoft_docs_search(query="{technology} best practices")microsoft_docs_search(query="{technology} troubleshooting errors")
Investigation Checklist

After investigating, verify:

  • Can explain what the technology does in one paragraph
  • Identified 3-5 key concepts
  • Have working code for basic usage
  • Know the most common API patterns
  • Have search queries for deeper topics

Step 2: Clarify with User

Present findings and ask:

  1. "I found these key areas: [list]. Which are most important?"
  2. "What tasks will agents primarily perform with this skill?"
  3. "Which programming language should code samples prioritize?"

Step 3: Generate the Skill

Use the appropriate template from skill-templates.md [blocked]:

Technology TypeTemplate
Client library, NuGet/npm packageSDK/Library
Azure resourceAzure Service
App development frameworkFramework/Platform
REST API, protocolAPI/Protocol
Generated Skill Structure
{skill-name}/├── SKILL.md                    # Core knowledge + Learn MCP guidance├── references/                 # Detailed local documentation (if needed)└── sample_codes/               # Working code examples    ├── getting-started/    └── common-patterns/

Step 4: Balance Local vs Dynamic Content

Store locally when:

  • Foundational (needed for any task)
  • Frequently accessed
  • Stable (won't change)
  • Hard to find via search

Keep dynamic when:

  • Exhaustive reference (too large)
  • Version-specific
  • Situational (specific tasks only)
  • Well-indexed (easy to search)
Content Guidelines
Content TypeLocalDynamic
Core concepts (3-5)✅ Full
Hello world code✅ Full
Common patterns (3-5)✅ Full
Top API methodsSignature + exampleFull docs via fetch
Best practicesTop 5 bulletsSearch for more
TroubleshootingSearch queries
Full API referenceDoc links

Step 5: Validate

  1. Review: Is local content sufficient for common tasks?
  2. Test: Do suggested search queries return useful results?
  3. Verify: Do code samples run without errors?

Common Investigation Patterns

For SDKs/Libraries

"{name} overview" → purpose, architecture"{name} getting started quickstart" → setup steps"{name} API reference" → core classes/methods"{name} samples examples" → code patterns"{name} best practices performance" → optimization

For Azure Services

"{service} overview features" → capabilities"{service} quickstart {language}" → setup code"{service} REST API reference" → endpoints"{service} SDK {language}" → client library"{service} pricing limits quotas" → constraints

For Frameworks/Platforms

"{framework} architecture concepts" → mental model"{framework} project structure" → conventions"{framework} tutorial walkthrough" → end-to-end flow"{framework} configuration options" → customization

Example: Creating a "Semantic Kernel" Skill

Investigation

microsoft_docs_search(query="semantic kernel overview")microsoft_docs_search(query="semantic kernel plugins functions")microsoft_code_sample_search(query="semantic kernel", language="csharp")microsoft_docs_fetch(url="https://learn.microsoft.com/semantic-kernel/overview/")

Generated Skill

semantic-kernel/├── SKILL.md└── sample_codes/    ├── getting-started/    │   └── hello-kernel.cs    └── common-patterns/        ├── chat-completion.cs        └── function-calling.cs

Generated SKILL.md

markdown
---name: semantic-kerneldescription: Build AI agents with Microsoft Semantic Kernel. Use for LLM-powered apps with plugins, planners, and memory in .NET or Python.---
# Semantic Kernel
Orchestration SDK for integrating LLMs into applications with plugins, planners, and memory.
## Key Concepts
- **Kernel**: Central orchestrator managing AI services and plugins- **Plugins**: Collections of functions the AI can call- **Planner**: Sequences plugin functions to achieve goals- **Memory**: Vector store integration for RAG patterns
## Quick Start
See [getting-started/hello-kernel.cs](sample_codes/getting-started/hello-kernel.cs)
## Learn More
| Topic | How to Find ||-------|-------------|| Plugin development | `microsoft_docs_search(query="semantic kernel plugins custom functions")` || Planners | `microsoft_docs_search(query="semantic kernel planner")` || Memory | `microsoft_docs_fetch(url="https://learn.microsoft.com/en-us/semantic-kernel/frameworks/agent/agent-memory")` |
## CLI Alternative
If the Learn MCP server is not available, use the `mslearn` CLI instead:
| 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 "..."` |
Run directly with `npx @microsoft/learn-cli <command>` or install globally with `npm install -g @microsoft/learn-cli`.

来源与署名

来源:MicrosoftDocs/mcp位于skills/microsoft-skill-creator提交f8ffde1

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架