# GH-700: Create and Use Trusted Copilot CLI Skills

Review a Copilot CLI skill package, create scoped SKILL.md instructions, confirm discovery and invoke a bounded task while checking scripts, tool approvals and results.

Author: LearningPathX Editorial Team
Content version: 1.0
Published: 2026-11-17T01:53:54.22483+00:00
HTML: https://learningpathx.com/guide/GH-700/gh-700-create-and-use-trusted-copilot-cli-skills.html

## GH-700: Create and Use Trusted Copilot CLI Skills

To use a reusable GitHub Copilot CLI skill safely, review the complete task package and its tool implications, put it in a supported CLI discovery location, and give its `SKILL.md` a clear name, description and procedure. Confirm that the CLI discovers the intended package, invoke it for a bounded task, and examine the result against known requirements. A discovered skill is reusable guidance, not proof that its contents are safe or its output is correct.

This procedure concerns Copilot CLI documentation checked on November 14, 2026\. Other Copilot surfaces have their own support and discovery rules. The example below is original and unexecuted: no skill is installed, no script is run, and no actual model result is claimed.

## Choose a task package for a recurring procedure

GitHub distinguishes custom instructions, skills, custom agents and tools. Custom instructions provide continuing guidance within their supported scope. Skills supply instructions and optional resources for a particular kind of task. A custom agent defines a specialist role and toolset, while tools supply abilities. A skill can explain a procedure that uses an available tool; it does not make an unavailable integration appear.

For an illustrative operations team, a useful skill might turn supplied release records into a draft briefing that preserves missing decisions. General advice such as “write clearly” belongs in broader guidance. A maintained briefing procedure with a specific input check and output structure is a stronger candidate for a skill.

Choose a procedure that recurs, has a stable scope and produces something a colleague can evaluate. Packaging an unclear task will preserve its ambiguity. Resolve the input and output requirements before distributing it, using the separate guidance in GH-700: Write Prompts and Instructions for Testable Business Outputs.

## Review a third-party package before adding it

Inspect the whole directory, including `SKILL.md`, referenced scripts, examples and other resources. A package's name or distribution location does not establish what it will ask the agent to do. As a recommended review, identify required inputs, possible file changes, external connections, credentials and any instruction that expands the intended task.

Pay particular attention to `allowed-tools`. In Copilot CLI, it can automatically allow listed tools while the skill is active. GitHub warns that pre-approving shell or bash can remove command confirmation and expose the environment to arbitrary commands from malicious skills or injected instructions. Review referenced scripts and trust their source before considering such approval; do not enable it merely to make a demonstration run without prompts.

Also inspect the actual session's permissions. A textual instruction to produce only a draft is not an access-control boundary. If the package requests capabilities that the task does not need, choose a smaller reviewed package or revise the proposal through your team's review process. Adding another tool is a separate integration decision.

## Create a focused SKILL.md

Each skill has its own directory containing a file named exactly `SKILL.md`. The file uses YAML frontmatter with required `name` and `description`, followed by task instructions in Markdown. Supporting files and scripts are optional. Use a clear lowercase, hyphenated name for this example so the directory and invocation are easy to recognize.

For a skill directory named `release-brief`, the complete example `SKILL.md` is:

```markdown
---
name: release-brief
description: Draft a release briefing from supplied approved records, preserving missing decisions. Use for this briefing task only.
---

Use only the records supplied for the requested release.
First identify missing release identity, ownership or approval evidence.
If a required input is absent, report the gap before drafting conclusions.

Draft three parts: confirmed changes, unresolved decisions, and evidence gaps.
Keep proposals separate from approved commitments.
Do not invent dates, owners, approvals or customer availability.
Do not publish the briefing or change the source records.

Before returning, compare each factual claim with its supporting record.
Report any unresolved conflict explicitly.
```

The description identifies when the package is relevant; the body explains the method. The example omits automatic tool approvals. Review actual session permissions before use; these instructions express the intended procedure rather than enforce it.

Avoid adding scripts until the procedure needs them. A plain instruction package can be easier to inspect when the task only needs reading and drafting. If a script becomes necessary, explain what it reads, writes and requires so the reviewer can assess those effects.

## Place it in a documented CLI location

For a repository-scoped example, use `.github/skills/release-brief/SKILL.md`. A personal example can use `~/.copilot/skills/release-brief/SKILL.md`. These are supported Copilot CLI locations; the current reference also documents alternative project, personal and configured sources. Do not assume that the same path installs a skill for every client.

Choose scope deliberately. Repository guidance should reflect that repository's procedure. Personal guidance is available across projects, so a procedure containing one team's assumptions can become irrelevant elsewhere. For this example, a repository location makes the intended context easier to inspect with the rest of the team's maintained material.

The CLI uses discovery priority when duplicate skill names exist. Therefore, verify the actual selected location as well as the name. A familiar name alone does not prove that the reviewed directory is the package being used.

## Confirm discovery and invoke a bounded task

Start a CLI session, or use the `/skills` command with its `reload` subcommand after adding a package during a session. Use its `list` and `info` subcommands to inspect available skills and the intended skill's details and location. Check the current CLI reference if the picker or commands differ from your installed version.

Copilot can choose a skill from its description when relevant. To request this example explicitly, include its slash-prefixed name in the prompt, such as: “Use the `/release-brief` skill to draft the briefing from these supplied records.” Confirm the selected location and supply the required records before invoking it.

Begin with non-sensitive sample inputs and observable criteria. For example, supply one confirmed release item, one proposed date and one record without an owner. The expected behavior is to preserve those distinctions and expose the missing owner. Use those distinctions as the acceptance criteria.

## Evaluate the result and maintain the package

GitHub's responsible-use guidance calls for checking generated responses against expectations and requirements. For the example, inspect whether every factual statement has a supplied record, whether the proposed date stayed a proposal, and whether the missing owner remains visible. A fluent briefing that invents approval fails that task.

Separate discovery failure from procedure failure. If the package is absent, inspect its path, filename, name and loaded location. If the right package is loaded but evidence is omitted, examine the task instructions and inputs. If a required tool is unavailable, return that limitation to the integration owner. Reinstalling the package or widening permissions will not fix every one of these problems.

Review the complete package again when its instructions or resources change. Record what changed and repeat a bounded evaluation of the affected behavior. Keep the source version with the observed results so a later colleague can distinguish a reviewed package from a similarly named copy. GH-700: Connect MCP Tools with Scoped Credentials and Runtime Configuration covers the separate integration boundary.

## Authoritative Sources

* [Adding agent skills for GitHub Copilot CLI](https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-skills) — package structure, creation, third-party review implications and invocation.
* [GitHub Copilot CLI command reference](https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-command-reference) — skill fields, locations, discovery priority and commands.
* [Comparing Copilot customization features](https://docs.github.com/en/copilot/concepts/customizations/comparing-customizations) — skills, continuing guidance, specialist roles and tools.
* [Application card: GitHub Copilot Agents](https://docs.github.com/en/copilot/responsible-use/agents) — human oversight, output verification and command responsibility.

## Related Reading

* Prerequisite: [GH-700: Write Prompts and Instructions for Testable Business Outputs](https://learningpathx.com/guide/gh-700/gh-700-write-prompts-and-instructions-for-testable-business-outputs.html)
* Prerequisite: [GH-700: Create Custom Agents with Explicit Roles and Tools](https://learningpathx.com/guide/gh-700/gh-700-create-custom-agents-with-explicit-roles-and-tools.html)
* Next: [GH-700: Connect MCP Tools with Scoped Credentials and Runtime Configuration](https://learningpathx.com/guide/gh-700/gh-700-connect-mcp-tools-with-scoped-credentials-and-runtime-configuration.html)
