1
---
2
name: microsoft-skill-creator
3
description: Create agent skills for Microsoft technologies using Learn MCP tools. Use when users want to create a skill that teaches agents about any Microsoft technology, library, framework, or service (Azure, .NET, M365, VS Code, Bicep, etc.). Investigates topics deeply, then generates a hybrid skill storing essential knowledge locally while enabling dynamic deeper investigation.
4
context: fork
5
compatibility: Works best with Microsoft Learn MCP Server (https://learn.microsoft.com/api/mcp). Can also use the mslearn CLI as a fallback.
6
---
7
8
# Microsoft Skill Creator
9
10
Create hybrid skills for Microsoft technologies that store essential knowledge locally while enabling dynamic Learn MCP lookups for deeper details.
11
12
## About Skills
13
14
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.
15
16
### Skill Structure
17
18
```
19
skill-name/
20
├── SKILL.md (required) # Frontmatter (name, description) + instructions
21
├── references/ # Documentation loaded into context as needed
22
├── sample_codes/ # Working code examples
23
└── assets/ # Files used in output (templates, etc.)
24
```
25
26
### Key Principles
27
28
- **Frontmatter is critical**: `name` and `description` determine when the skill triggers—be clear and comprehensive
29
- **Concise is key**: Only include what agents don't already know; context window is shared
30
- **No duplication**: Information lives in SKILL.md OR reference files, not both
31
32
## Learn MCP Tools
33
34
| Tool | Purpose | When to Use |
35
|------|---------|-------------|
36
| `microsoft_docs_search` | Search official docs | First pass discovery, finding topics |
37
| `microsoft_docs_fetch` | Get full page content | Deep dive into important pages |
38
| `microsoft_code_sample_search` | Find code examples | Get implementation patterns |
39
40
### CLI Alternative
41
42
If the Learn MCP server is not available, use the `mslearn` CLI from a terminal or shell (for example, Bash, PowerShell, or cmd) instead:
43
44
```bash
45
# Run directly (no install needed)
46
npx @microsoft/learn-cli search "semantic kernel overview"
47
48
# Or install globally, then run
49
npm install -g @microsoft/learn-cli
50
mslearn search "semantic kernel overview"
51
```
52
53
| MCP Tool | CLI Command |
54
|----------|-------------|
55
| `microsoft_docs_search(query: "...")` | `mslearn search "..."` |
56
| `microsoft_code_sample_search(query: "...", language: "...")` | `mslearn code-search "..." --language ...` |
57
| `microsoft_docs_fetch(url: "...")` | `mslearn fetch "..."` |
58
59
Generated skills should include this same CLI fallback table so agents can use either path.
60
61
## Creation Process
62
63
### Step 1: Investigate the Topic
64
65
Build deep understanding using Learn MCP tools in three phases:
66
67
**Phase 1 - Scope Discovery:**
68
```
69
microsoft_docs_search(query="{technology} overview what is")
70
microsoft_docs_search(query="{technology} concepts architecture")
71
microsoft_docs_search(query="{technology} getting started tutorial")
72
```
73
74
**Phase 2 - Core Content:**
75
```
76
microsoft_docs_fetch(url="...") # Fetch pages from Phase 1
77
microsoft_code_sample_search(query="{technology}", language="{lang}")
78
```
79
80
**Phase 3 - Depth:**
81
```
82
microsoft_docs_search(query="{technology} best practices")
83
microsoft_docs_search(query="{technology} troubleshooting errors")
84
```
85
86
#### Investigation Checklist
87
88
After investigating, verify:
89
- [ ] Can explain what the technology does in one paragraph
90
- [ ] Identified 3-5 key concepts
91
- [ ] Have working code for basic usage
92
- [ ] Know the most common API patterns
93
- [ ] Have search queries for deeper topics
94
95
### Step 2: Clarify with User
96
97
Present findings and ask:
98
1. "I found these key areas: [list]. Which are most important?"
99
2. "What tasks will agents primarily perform with this skill?"
100
3. "Which programming language should code samples prioritize?"
101
102
### Step 3: Generate the Skill
103
104
Use the appropriate template from [skill-templates.md](references/skill-templates.md):
105
106
| Technology Type | Template |
107
|-----------------|----------|
108
| Client library, NuGet/npm package | SDK/Library |
109
| Azure resource | Azure Service |
110
| App development framework | Framework/Platform |
111
| REST API, protocol | API/Protocol |
112
113
#### Generated Skill Structure
114
115
```
116
{skill-name}/
117
├── SKILL.md # Core knowledge + Learn MCP guidance
118
├── references/ # Detailed local documentation (if needed)
119
└── sample_codes/ # Working code examples
120
├── getting-started/
121
└── common-patterns/
122
```
123
124
### Step 4: Balance Local vs Dynamic Content
125
126
**Store locally when:**
127
- Foundational (needed for any task)
128
- Frequently accessed
129
- Stable (won't change)
130
- Hard to find via search
131
132
**Keep dynamic when:**
133
- Exhaustive reference (too large)
134
- Version-specific
135
- Situational (specific tasks only)
136
- Well-indexed (easy to search)
137
138
#### Content Guidelines
139
140
| Content Type | Local | Dynamic |
141
|--------------|-------|---------|
142
| Core concepts (3-5) | ✅ Full | |
143
| Hello world code | ✅ Full | |
144
| Common patterns (3-5) | ✅ Full | |
145
| Top API methods | Signature + example | Full docs via fetch |
146
| Best practices | Top 5 bullets | Search for more |
147
| Troubleshooting | | Search queries |
148
| Full API reference | | Doc links |
149
150
### Step 5: Validate
151
152
1. Review: Is local content sufficient for common tasks?
153
2. Test: Do suggested search queries return useful results?
154
3. Verify: Do code samples run without errors?
155
156
## Common Investigation Patterns
157
158
### For SDKs/Libraries
159
```
160
"{name} overview" → purpose, architecture
161
"{name} getting started quickstart" → setup steps
162
"{name} API reference" → core classes/methods
163
"{name} samples examples" → code patterns
164
"{name} best practices performance" → optimization
165
```
166
167
### For Azure Services
168
```
169
"{service} overview features" → capabilities
170
"{service} quickstart {language}" → setup code
171
"{service} REST API reference" → endpoints
172
"{service} SDK {language}" → client library
173
"{service} pricing limits quotas" → constraints
174
```
175
176
### For Frameworks/Platforms
177
```
178
"{framework} architecture concepts" → mental model
179
"{framework} project structure" → conventions
180
"{framework} tutorial walkthrough" → end-to-end flow
181
"{framework} configuration options" → customization
182
```
183
184
## Example: Creating a "Semantic Kernel" Skill
185
186
### Investigation
187
188
```
189
microsoft_docs_search(query="semantic kernel overview")
190
microsoft_docs_search(query="semantic kernel plugins functions")
191
microsoft_code_sample_search(query="semantic kernel", language="csharp")
192
microsoft_docs_fetch(url="https://learn.microsoft.com/semantic-kernel/overview/")
193
```
194
195
### Generated Skill
196
197
```
198
semantic-kernel/
199
├── SKILL.md
200
└── sample_codes/
201
├── getting-started/
202
│ └── hello-kernel.cs
203
└── common-patterns/
204
├── chat-completion.cs
205
└── function-calling.cs
206
```
207
208
### Generated SKILL.md
209
210
```markdown
211
---
212
name: semantic-kernel
213
description: Build AI agents with Microsoft Semantic Kernel. Use for LLM-powered apps with plugins, planners, and memory in .NET or Python.
214
---
215
216
# Semantic Kernel
217
218
Orchestration SDK for integrating LLMs into applications with plugins, planners, and memory.
219
220
## Key Concepts
221
222
- **Kernel**: Central orchestrator managing AI services and plugins
223
- **Plugins**: Collections of functions the AI can call
224
- **Planner**: Sequences plugin functions to achieve goals
225
- **Memory**: Vector store integration for RAG patterns
226
227
## Quick Start
228
229
See [getting-started/hello-kernel.cs](sample_codes/getting-started/hello-kernel.cs)
230
231
## Learn More
232
233
| Topic | How to Find |
234
|-------|-------------|
235
| Plugin development | `microsoft_docs_search(query="semantic kernel plugins custom functions")` |
236
| Planners | `microsoft_docs_search(query="semantic kernel planner")` |
237
| Memory | `microsoft_docs_fetch(url="https://learn.microsoft.com/en-us/semantic-kernel/frameworks/agent/agent-memory")` |
238
239
## CLI Alternative
240
241
If the Learn MCP server is not available, use the `mslearn` CLI instead:
242
243
| MCP Tool | CLI Command |
244
|----------|-------------|
245
| `microsoft_docs_search(query: "...")` | `mslearn search "..."` |
246
| `microsoft_code_sample_search(query: "...", language: "...")` | `mslearn code-search "..." --language ...` |
247
| `microsoft_docs_fetch(url: "...")` | `mslearn fetch "..."` |
248
249
Run directly with `npx @microsoft/learn-cli <command>` or install globally with `npm install -g @microsoft/learn-cli`.
250
```
251