Define a reusable skill.
Section: Skills and custom agents
Minimal skill frontmatter
markdown
markdown
---
name: repo-audit
description: Review a repository for risky shell scripts, weak CI defaults, and missing docs.
allowed-tools:
- shell(git:*)
user-invocable: true
---
Focus on reproducible, low-risk recommendations.Explanation
A skill lives in its own directory and includes a `SKILL.md` file.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Skills and custom agents
Initialize Copilot repo features
Set up custom instructions and agentic repo features.
Initialize Copilot instructions from the command line
Run init without first entering a full session.
Add an MCP server for one session from a file
Load additional MCP server config at runtime.