agentleFS
Robotti-ioRobotti-io/copilot-security-instructions/.github/skills/markdown-customizations/SKILL.md

markdown-customizations

Skill42 starsChanged 10 months agoApache-2.0View on GitHub

Use this skill when creating or editing GitHub Copilot customization Markdown files (agent profiles, prompt files, instruction files, and skills).

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when working on any of:

    line 15
  2. Distinctive:

    Add YAML frontmatter at the top with required keys.

    line 25
  3. Distinctive:

    Write the body using this structure:

    line 26
  4. Very specific:

    Ensure no contradictions with repo-wide copilot-instructions.md.

    line 33
  5. Very specific:

    Use short, testable rules (e.g., “MUST include description in agent profiles”).

    line 39
  6. Very specific:

    Use fenced code blocks with yaml or md tags.

    line 41

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Identify the target file type and verify the correct path + extension.
  2. Add YAML frontmatter at the top with required keys.
  3. Write the body using this structure:
    • # Title
    • ## Purpose
    • ## How to use
    • ## Rules (MUST/SHOULD/MAY)
    • ## Examples (at least one when ambiguity is likely)
  4. Validate glob patterns for .instructions.md files.
  5. Ensure no contradictions with repo-wide copilot-instructions.md.

Do / Don’t

Do

  • Use short, testable rules (e.g., “MUST include description in agent profiles”).
  • Provide one minimal realistic example for each “pattern” (agent/prompt/instructions/skill).
  • Use fenced code blocks with yaml or md tags.

Don’t

  • Don’t put YAML anywhere except the initial frontmatter block.
  • Don’t create skill.md; the file must be named SKILL.md.
  • Don’t introduce conflicting guidance across multiple instruction files.

Examples

Agent profile frontmatter example

---
name: my-agent
description: Short description of what this agent does
tools: ["read", "search", "edit"]
---

Path-specific instructions frontmatter example

---
applyTo: ".github/prompts/**/*.prompt.md"
excludeAgent: "code-review"
---

Prompt file frontmatter example

---
agent: "agent"
description: "One-line description of what this prompt does"
---

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.