Markdown Customizations Skill
Purpose
Help create and maintain Copilot customization files with correct structure and consistent, high-signal instructions.
When to use
Use this skill when working on any of:
- •
agents/*.agent.md - •
prompts/*.prompt.md - •
instructions/*.instructions.md - •
skills/**/SKILL.md
Procedure
- •Identify the target file type and verify the correct path + extension.
- •Add YAML frontmatter at the top with required keys.
- •Write the body using this structure:
- •
# Title - •
## Purpose - •
## How to use - •
## Rules(MUST/SHOULD/MAY) - •
## Examples(at least one when ambiguity is likely)
- •
- •Validate glob patterns for
.instructions.mdfiles. - •Ensure no contradictions with repo-wide
copilot-instructions.md.
Do / Don’t
Do
- •Use short, testable rules (e.g., “MUST include
descriptionin agent profiles”). - •Provide one minimal realistic example for each “pattern” (agent/prompt/instructions/skill).
- •Use fenced code blocks with
yamlormdtags.
Don’t
- •Don’t put YAML anywhere except the initial frontmatter block.
- •Don’t create
skill.md; the file must be namedSKILL.md. - •Don’t introduce conflicting guidance across multiple instruction files.
Examples
Agent profile frontmatter example
yaml
--- name: my-agent description: Short description of what this agent does tools: ["read", "search", "edit"] ---
Path-specific instructions frontmatter example
yaml
--- applyTo: ".github/prompts/**/*.prompt.md" excludeAgent: "code-review" ---
Prompt file frontmatter example
yaml
--- agent: "agent" description: "One-line description of what this prompt does" ---