Study FAQ
How do I create and invoke a reusable skill in GitHub Copilot CLI?
Also asked as 2
- How can I add a repository skill to Copilot CLI and confirm the right package is used?
- What files and commands are needed to use a new Copilot CLI skill?
Answer
Create a directory for the procedure with a file named exactly SKILL.md, place it in a supported Copilot CLI discovery location, and confirm that the CLI loads the intended package. Use a skill for a recurring task with stable inputs and outputs; it supplies guidance and optional resources, not missing tools.
For a repository skill, create .github/skills/release-brief/SKILL.md. A personal alternative is ~/.copilot/skills/release-brief/SKILL.md, which applies across projects. A minimal file is:
---
name: release-brief
description: Draft release briefings from supplied approved records, preserving missing decisions.
---
Use only the supplied records for this release.
Report confirmed changes, unresolved decisions and evidence gaps.
Keep proposed dates separate from approved commitments.
Do not invent owners, approvals or availability, or publish the briefing.
Check each factual claim against its source record.
In an interactive CLI session, run /skills reload after adding the package, /skills list to inspect available skills, and /skills info release-brief to check details and location. Duplicate names follow discovery priority, so verify the loaded path rather than trusting the name alone.
Invoke it with a prompt such as “Use the /release-brief skill with these supplied records.” Copilot can also choose skills based on their descriptions. Start with non-sensitive sample records containing a confirmed item, a proposed date and a missing owner. Verify that the result preserves those distinctions.
If the skill is absent, inspect path, filename, name and loaded location. If it is loaded but the procedure fails, inspect instructions and inputs. An unavailable tool requires a separate integration fix.
References: Adding agent skills for GitHub Copilot CLI - GitHub Docs, GitHub Copilot CLI command reference - GitHub Docs.
Full explanation
GH-700: Create and Use Trusted Copilot CLI Skills
Study guide · GH-700
Read the full explanation