Agent Skills guide
GitHub Copilot skills and the gh skill command
Where GitHub Copilot looks for skills across the CLI, cloud agent and IDEs, and how to search, preview, pin, update and publish skills with gh skill.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkOn this page
GitHub Copilot skills go in .github/skills/, .agents/skills/ or .claude/skills/ in a repository, or ~/.copilot/skills/ for you. Copilot loads one when a request matches its description, in VS Code, Visual Studio, JetBrains, the Copilot CLI and the cloud agent. GitHub CLI’s gh skill install adds skills pinned to a commit or tag.
GitHub Copilot loads Agent Skills in nearly every place it runs an agent, and GitHub CLI has a gh skill command that installs them with proper version pinning. This guide covers both. Checked against GitHub’s skills documentation, the GitHub CLI manual and the Copilot CLI plugin reference on 25 November 2026; gh skill is still marked as a preview that may change without notice. New to skills? Start with what Agent Skills are, then browse the best GitHub Copilot skills in our directory.
Where GitHub Copilot uses skills
Skills work in the GitHub Copilot app, Copilot CLI, Copilot cloud agent and Copilot code review on github.com, and agent mode in VS Code, Visual Studio and JetBrains IDEs. IDE support depends on the version, so check GitHub’s feature matrix if a skill does not load in your editor. For the terminal side, the GitHub Copilot CLI cheat sheet lists the slash commands, flags and keys.
Where Copilot looks for skills
| Scope | Folders |
|---|---|
| Project (in the repository) | .github/skills/, .claude/skills/, .agents/skills/ |
| Personal (your home folder) | ~/.copilot/skills/, ~/.agents/skills/ |
Each skill is a subfolder with a lowercase, hyphenated name, and the file must be called exactly SKILL.md. Copilot is strict about that; some other tools accept skill.md, Copilot does not.
.github/skills/ is the natural home for skills that belong to one repository, next to your workflows and Copilot instructions. If the same repository is used with Claude Code or Codex, .agents/skills/ or .claude/skills/ work in Copilot too and save you a copy.
Frontmatter Copilot understands
Copilot documents four fields: name (required, lowercase with hyphens, usually the folder name), description (required, what it does and when to use it), license and allowed-tools. Other fields are ignored.
allowed-tools lists tools Copilot may use without asking. GitHub’s guidance is direct: only pre-approve shell or bash after you have reviewed the skill and its scripts and fully trust the source, because it removes the confirmation step before terminal commands. When in doubt, leave it out and let Copilot ask.
gh skill
gh skill needs GitHub CLI 2.90.0 or later. Check with gh --version.
Find and inspect skills before you install them:
gh skill search accessibility
gh skill preview github/awesome-copilot create-readme
Install a specific skill, interactively or by name:
gh skill install github/awesome-copilot # browse and pick
gh skill install github/awesome-copilot create-readme # one skill
Pin a version. You can append @TAG or @SHA to the skill, or use --pin; the two are mutually exclusive:
gh skill install github/awesome-copilot create-readme@v1.2.0
gh skill install github/awesome-copilot create-readme --pin v1.2.0
Our directory pages give gh skill commands pinned to the commit we reviewed, using the skill’s folder path, for example:
gh skill install trailofbits/skills plugins/agentic-actions-auditor/skills/agentic-actions-auditor --pin 149d7b21f4067765b82e67029730b42d228ef4b4 --agent github-copilot
--agent installs for another agent’s folders, and --scope user installs for your user instead of the current repository. gh skill install also writes provenance metadata (source repository, ref and tree SHA) into the installed skill’s frontmatter, which is how updates know where it came from.
Keep skills up to date:
gh skill update # check interactively
gh skill update create-readme # one skill
gh skill update --all # everything, no prompts
To see what is installed, and whether each skill is pinned, run gh skill list; it scans every agent’s folders at project and user scope, and --agent github-copilot or --scope user narrows it down. gh skill list --json skillName,sourceURL,version,pinned gives the same in a form you can check in CI.
Pinned skills are skipped by update. To move a pinned skill to a new version, reinstall it with a new --pin. That is the behaviour you want: a pinned skill only changes when you decide it should, after reading the diff.
Skills inside Copilot plugins
Skills can also arrive inside a plugin. Since 12 August 2026, VS Code, Copilot CLI, the Copilot SDK and the Copilot app load plugins in the open Agent Plugins 1.0 format: a root plugin.json that declares the Agent Plugins $schema, skills in skills/, and MCP servers in mcp.json. Copilot-only parts (custom agents, commands, rules, hooks and LSP servers) go in a com.github.copilot/ folder that other agents ignore. Older Copilot plugin layouts still load; when a root plugin.json targets Agent Plugins, it takes precedence.
In Copilot CLI, plugins install by name from a marketplace. awesome-copilot is there by default:
copilot plugin install database-data-management@awesome-copilot
copilot plugin marketplace add your-org/team-plugins
Inside a session the same commands work as /plugin install and /plugin marketplace add, and VS Code accepts /plugin install in chat. Plugins land in ~/.copilot/installed-plugins/. The marketplace decides which version of a plugin you get, so gh skill install --pin is still the way to fix a single skill at a commit you reviewed. Organisations on Copilot Business or Enterprise control plugins through managed-settings.json with enabledPlugins, extraKnownMarketplaces and strictKnownMarketplaces. For what the format covers and which other agents load it, see Agent Plugins.
Publishing your own skills with gh skill
If your repository holds skills you want others to install with gh skill, validate it first:
gh skill publish --dry-run # validate without publishing
gh skill publish --fix # fix metadata problems it can, without publishing
gh skill publish # validate and publish
Tag releases so people can pin to them. A tag such as v1.2.0 is easier to read in an install command than a SHA, though a SHA cannot be moved.
A sensible Copilot skills setup for teams
- Commit repository-specific skills to
.github/skills/and review changes to them like code; skill scanner can do a first pass. - Install third-party skills with
--pin, never from a moving branch. - Leave
allowed-tools: shellout of skills unless you wrote them. - If you use Copilot cloud agent with workflows that run agents on issues or PRs, audit those workflows with agentic actions auditor, because a comment from an outsider can become part of the agent’s prompt.
For the same setup in other agents, see how to install Agent Skills. Before you pin anything from outside your organisation, run through the security checklist for third-party skills, and if you are moving prompt files across from an older setup, migrating rules and commands to skills covers what to convert. If you are still deciding between Copilot and an agent-first tool, GitHub Copilot vs Cursor vs Claude Code compares the three.
Check your understanding
Agent Skills in GitHub Copilot quiz
Where Copilot finds skills, personal skills in the cloud agent, the frontmatter Copilot reads, allowed-tools, installing and pinning with gh skill, plugins and a team setup.
8 questions · pass mark 70%
Review
Related
- GitHub Copilot
Completions, chat and a coding agent inside GitHub and popular editors.
- How to install Agent Skills in Claude, Codex, Cursor, Copilot and more
Where each agent looks for SKILL.md folders, and the exact commands to install Agent Skills in Claude Code, Claude apps and API, Codex, Cursor and Copilot.
- Are Agent Skills safe? A security checklist for third-party skills
Are agent skills safe? What can go wrong when you install someone else's skill, what researchers found in public registries, and a fifteen-minute review.
- Scan a third-party Agent Skill before you install it
Read every file, grep scripts for risky patterns, run a skill scanner, then record a yes or no and pin it.