| name | skill-creator |
| description | Meta-skill for creating new DLM diagnostic skills. Use this skill when you need to author a new troubleshooting guide (SKILL.md + reference files) that follows the project's conventions. Produces a complete skill directory structure that can be dropped into .github/skills/ and .claude/skills/. |
Skill Creator
Create new diagnostic skills for the DLM Diagnostics MCP server. Each skill is a self-contained directory with a SKILL.md and supporting reference files.
Prerequisites
- Familiarity with the existing skill structure (see
.github/skills/dlm-diagnostics/ as the canonical example).
- Knowledge of the PowerShell cmdlet allowlist in
src/powershell/allowlist.ts.
- Understanding of the project's read-only safety model.
Safety Rules
- Only reference read-only cmdlets — allowed verb prefixes:
Get-*, Test-*, Export-*.
- Never include mutating commands in diagnostic steps —
Set-*, New-*, Remove-*, Enable-*, Start-*, Invoke-* must only appear in the "Recommended Actions" output section, clearly marked as manual-review-only.
- All cmdlets used in the skill must exist in
src/powershell/allowlist.ts — if a new Get-* cmdlet is needed, add it to the allowlist as a separate change.
- No credentials or secrets — never embed tokens, passwords, or connection strings in skill files.
SKILL.md Template
Every skill must have a SKILL.md at its root with the following structure:
---
name: <skill-name>
description: "<One-paragraph description of when to invoke this skill. Include symptom keywords for matching.>"
---
# <Skill Title>
<Brief overview of what this skill investigates.>
## Prerequisites
<Required PowerShell sessions or environment setup.>
## Safety Rules
<Read-only enforcement rules specific to this skill.>
## Decision Tree
| Symptom | Reference |
|---------|-----------|
| <symptom description> | [<filename>.md](references/<filename>.md) |
## Workflow
1. **Identify the symptom** — match user description to the decision tree.
— read it fully before starting.
— step by step using .
— follow the reference guide's evaluation criteria.
— load linked references when directed.
— summarize using the Output Format below.
— use for the audit trail.
Reference File Structure
Each reference file in references/ should follow this pattern:
# <Issue Title>
## Overview
<Brief description of the issue and when it occurs.>
## Diagnostic Steps
### Step N: <Step Name>
**Command:**
\`\`\`powershell
<Get-* / Test-* / Export-* command>
\`\`\`
**Evaluate:**
- <What to look for in the output>
- <Condition that indicates a problem>
## Root-Cause Table
| Finding | Root Cause | Remediation |
|---------|-----------|-------------|
| <diagnostic finding> | <why it happens> | <fix command or action — marked as > |
[]() —
Creation Workflow
Follow these steps to create a new skill:
- Name the skill — use kebab-case (e.g.,
edr-diagnostics, compliance-search-triage).
- Write the SKILL.md — follow the template above. Start with the YAML frontmatter
name and description.
- Build the decision tree — list every symptom the skill can diagnose, each mapping to a reference file.
- Create reference files — one
.md per symptom in a references/ subdirectory. Each must include diagnostic steps with exact PowerShell commands, evaluation criteria, a root-cause table, and cross-references.
- Validate cmdlets — every cmdlet used in diagnostic steps must be in
src/powershell/allowlist.ts. If a new read-only cmdlet is needed, add it to the allowlist.
- Test the flow — mentally walk through at least one symptom end-to-end: decision tree → reference file → commands → evaluation → root cause → remediation.
- Write the output format — ensure it matches the standard investigation summary template.
- Mirror the skill — copy the complete skill directory to both locations:
.github/skills/<skill-name>/
.claude/skills/<skill-name>/
- Update documentation — if the skill introduces new cmdlets, update
CLAUDE.md and .github/copilot-instructions.md.
- Commit — commit both skill copies and any allowlist changes together.
Validation Checklist
Before finalizing a new skill, verify:
Canonical Example
See .github/skills/dlm-diagnostics/ (or .claude/skills/dlm-diagnostics/) for the reference implementation. It demonstrates all conventions: YAML frontmatter, decision tree, 12 reference files, safety rules, workflow, and output format.