Get the FREE Ultimate OpenClaw Setup Guide →

microsoft-skill-creator

Scanned
npx machina-cli add skill MicrosoftDocs/mcp/microsoft-skill-creator --openclaw
Files (1)
SKILL.md
7.0 KB

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

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 1
microsoft_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:

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

---
name: semantic-kernel
description: 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")` |

Source

git clone https://github.com/MicrosoftDocs/mcp/blob/main/skills/microsoft-skill-creator/SKILL.mdView on GitHub

Overview

Microsoft Skill Creator enables building hybrid agent skills for Microsoft technologies. It stores essential knowledge locally while enabling dynamic Learn MCP lookups for deeper details, supporting areas like Azure, .NET, M365, VS Code, and Bicep.

How This Skill Works

Developers investigate topics using Learn MCP tools to gather core concepts, code patterns, and best practices. The result is a modular skill that preserves foundational knowledge locally and uses dynamic MCP lookups for deeper exploration when needed.

When to Use It

  • You want to teach an agent about a specific Microsoft technology, library, framework, or service (Azure, .NET, M365, VS Code, Bicep, etc.).
  • You need a stable, locally stored knowledge base for foundational Microsoft topics to speed up responses.
  • You require dynamic, on-demand access to deeper MCP content for advanced or evolving topics.
  • You’re creating skills across multiple Microsoft domains with a consistent structure and lifecycle.
  • You want to generate scalable, hybrid skills that balance local context with dynamic external data.

Quick Start

  1. Step 1: Investigate the Topic using Learn MCP tools (microsoft_docs_search, microsoft_docs_fetch, microsoft_code_sample_search).
  2. Step 2: Clarify with the user which Microsoft areas and languages to prioritize.
  3. Step 3: Generate the skill using the appropriate template and structure (skill-name/, SKILL.md, references/, sample_codes/).

Best Practices

  • Start with clear frontmatter: define name and description to trigger the skill accurately.
  • Keep content concise: include only what agents don’t already know to maximize relevance.
  • Avoid duplication: store information in SKILL.md or references, not both.
  • Balance content: store foundational knowledge locally and route deeper details to MCP lookups.
  • Follow templates and structure: organize output under {skill-name}/ with SKILL.md, references, and sample_codes.

Example Use Cases

  • Azure fundamentals: core concepts, deployment patterns, and sample ARM/Bicep templates.
  • .NET basics: project structure, common APIs, and sample usage patterns.
  • M365 administration: Graph API usage and automation scripts.
  • VS Code extension development: APIs, extension points, and sample code.
  • Bicep infrastructure as code: module composition and deployment examples.

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers