Copilot Skill Creator
ASecurityCreate, evaluate and improve GitHub Copilot agent skills (SKILL.md folders) with the local skillforge tool. Use when asked to write a new skill from a description, validate a skill, generate test prompts or evaluation cases for one, measure whether Copilot picks a skill or whether it helps, improve a skill's description so Copilot picks it more accurately, find out why a skill's evals fail and revise its instructions from those failures or from a human review, revise an existing skill safely,...
- 24 stars
- 0 votes
- 0 copies
- 0 views
- Added December 6, 2026
Works with
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add gabrielmoreira/agent-skills-mirror --skill copilot-skill-creator --agent claude-codeAre you the author of Copilot Skill Creator?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/gabrielmoreira-copilot-skill-creator)---
name: copilot-skill-creator
description: Create, evaluate and improve GitHub Copilot agent skills (SKILL.md folders) with the local skillforge tool. Use when asked to write a new skill from a description, validate a skill, generate test prompts or evaluation cases for one, measure whether Copilot picks a skill or whether it helps, improve a skill's description so Copilot picks it more accurately, find out why a skill's evals fail and revise its instructions from those failures or from a human review, revise an existing skill safely, compare two versions of a skill or two benchmark runs, roll one back, package a skill to share, install a skill into a project or the personal skills folder, or convert a skill's evals to or from the format of Anthropic's skill-creator.
---
# Copilot skill creator
Drive **skillforge**, a local command-line tool. It writes skills in isolated Copilot sessions, checks them with a validator, and measures them with real Copilot sessions. Use its commands instead of hand-writing or hand-editing a skill the user cares about, and report what they print.
## Run the tool
Call the launcher in this skill's `scripts` folder by its full path, from PowerShell:
```powershell
& '<this skill folder>\scripts\skillforge.ps1' <command> [options]
```
- The launcher finds the tool through the `SKILLFORGE_ROOT` environment variable, the repository it belongs to, or a `skillforge` command on PATH. If it exits 4 saying it cannot find the tool, ask the user where their `tools\copilot-skill-creator` folder is, set `$env:SKILLFORGE_ROOT` to it in the same command, and suggest that they set it permanently.
- Run `doctor` once before the first command that starts model sessions. It costs nothing. If it fails, show its hints and stop.
- `<command> --help` lists every option. Add `--json` when you need to read a result, then summarize it rather than pasting it.
- Run commands from the root of the project the skill belongs to: results go to `.skillforge\` under the current folder. Outside the skillforge repository that folder is not git-ignored. Offer to add `.skillforge/` to `.gitignore`, and never commit it: its records hold absolute paths.
- Quote arguments with single quotes and keep double quotes out of them, because Windows PowerShell 5.1 passes embedded double quotes to Node incorrectly. For `create`, put long background material in a file and pass it with `--context <file>`.
## Cost rule
`create`, `edit`, `eval generate`, `trigger test`, `eval run`, `optimize description` and `improve` start Copilot model sessions, which use the user's premium requests. For each of them, every time:
1. Run it first with `--dry-run`. That is free and needs no sign-in.
2. Tell the user the plan: what it will do, and the most sessions it can start (`maxSessions`, or the number of trials). In the recorded runs, each `claude-haiku-4.5` session used 0.33 premium requests; other models cost differently.
3. Ask for approval, and run it without `--dry-run` only after an explicit yes. A yes covers that one command.
`doctor`, `validate`, `report`, `analyze`, `compare`, `eval import`, `eval export`, `import`, `diff`, `apply`, `snapshot create`, `snapshot list`, `package` and `install` start no sessions. Run them as the task needs, except `apply --apply` and `install --apply`, which write into a skills folder: ask before running either.
## Create a new skill
1. Agree on the name and the place. The folder's name is the skill's name: lowercase letters and digits joined by single hyphens, such as `meeting-actions`. A project's skill goes in `<repo>\.github\skills\<name>`. A personal skill goes in `~\.copilot\skills\<name>`, or in the repository the user installs personal skills from.
2. If the request leaves something important open (the inputs, the output, when the skill should and should not apply), ask the user up to four short questions in chat and fold the answers into the description. Pass `--no-interview`, because skillforge's own interview needs a terminal.
3. `create '<description>' --out <folder>\<name> --no-interview --dry-run`, then follow the cost rule.
4. Report where the skill went, the validation result and the **Assumptions** the model made. Read the new `SKILL.md` and point out anything that looks wrong. A model wrote all of it; skillforge never runs it, and neither should you without the user's review.
Exit 3 means no attempt passed validation and nothing was written. Show what was still wrong, and offer to retry with a clearer description.
## Test a skill
1. `validate <skilldir>`. Fix errors first, and explain the warnings.
2. `eval generate <skilldir> --dry-run`, then the cost rule. The suite goes to `<skilldir>\evals\evals.json`. Show the user the "Review first" list: a model wrote the cases, and a score is only as good as its cases.
3. `trigger test <skilldir> --dry-run` plans a test of whether Copilot picks the skill on its own. `--trigger-rule any-time` (default) counts an automatic invocation anywhere; `--trigger-rule first-tool` requires it on the first tool call. Use the same rule for both versions. Suggest `--repeats 1` for a cheap first look. Then the cost rule.
4. `eval run <skilldir> --dry-run` plans a test of whether the skill helps, compared with an agent that has no skill; each execution case runs twice per repeat. Then the cost rule.
5. Report the numbers the command printed (precision and recall, or each arm's pass rate and the difference). Never claim a result the command did not print.
6. Point the user at `review.html` in the benchmark folder. On a new run they can mark each case good or needs work, comment, click *Download feedback.json* and move the file beside `review.html`. Legacy static reports have no review controls. Do not fill in a review for the user.
A skill with `disable-model-invocation: true` is only used when invoked by name, so its trigger test always measures 0%. Say so instead of running one.
## Change an existing skill
Never edit the user's skill folder in place. Make a candidate copy first:
- **By request:** `edit <skilldir> '<what to change>' --out <candidates>\<name> --dry-run`, then the cost rule. `--out` must end in the skill's name and lie outside the skill.
- **By hand:** `import <skilldir> --out <work>\<name>` archives the original and makes a working copy. Change the copy.
Then:
1. `diff <skilldir> <candidate>`, and show the user the change.
2. Measure what changed: `trigger test <candidate> --baseline <skilldir> --dry-run` compares when each version is picked; `eval run <candidate> --baseline <skilldir> --dry-run` compares outputs. Use the relevant cases and the cost rule. Both commands pair isolated sessions on the same prompt and repeat and accept a verified store snapshot instead of a skill folder. A change only to `evals/` is refused because the model never sees it.
3. `apply <candidate> --to <skilldir>` previews the change and writes nothing.
4. Only after the user agrees: `apply <candidate> --to <skilldir> --apply`. It archives the current folder as a snapshot, then replaces it.
To undo, `snapshot list <name>` shows the archived copies, and `apply <store>\<name>\<id>\<name> --to <skilldir> --apply` restores one. The store is `.skillforge\snapshots` unless `--store` says otherwise.
## Improve when Copilot picks a skill
When a trigger test shows the skill is missed or picked wrongly, `optimize description` searches for a better description and changes nothing else.
1. The suite needs at least 3 trigger cases that should use the skill and 3 that should not; more is better. The optimizer always scores `first-tool` and refuses duplicate prompts after case and whitespace normalisation. Check for near-duplicates yourself before the train/dev/holdout split. If there are too few distinct prompts, offer `eval generate` first.
2. `optimize description <skilldir> --out <candidates>\<name> --dry-run`, then the cost rule. The dry run shows the split and `maxSessions`. Each run draws a new split unless `--seed` is given, so pass the seed the dry run showed when you report its split. If it exceeds `--max-runs`, suggest `--repeats 1` and fewer `--iterations` for a first look, rather than raising the limit.
3. Report the stop reason, the train and dev scores of the original and each candidate, and the holdout line. Exit 0 with no winner means no description beat the original: say so, and that nothing was written. `dev-perfect` before any iteration means the original was already right on every dev trial, so no candidate could be promoted. If the trigger test still showed misses, suggest more or harder trigger cases, or another `--seed`.
4. If a winner was placed, say whether the holdout confirmed it. Then follow "Change an existing skill" from `diff`. Never apply a winner the holdout did not confirm without the user's explicit agreement.
## Improve what a skill does
When an `eval run` shows the skill is used but the work fails its checks:
1. `analyze <run-dir>` gives each failing case one cause and names the command that addresses it. It is free. `nonactivation` and `false-activation` call for `optimize description`, `suspect-evaluator` for a look at the checks, and `not-scored` for a fix and a re-run. Only `needs-judgement`, `flaky` and `permission-tool` call for `improve`.
2. `improve <skilldir> --out <candidates>\<name> --dry-run`, then the cost rule. The suite needs execution cases. If `maxSessions` exceeds `--max-runs`, suggest `--repeats 1` or `--iterations 1` for a first look, rather than raising the limit. If the user has notes that would help, such as what the skill is for or a style guide, pass them with `--context <file>`. If they reviewed the run on its page, pass their review with `--feedback <run-dir>\feedback.json`. The dry run's review line says whether the review is of this version of the skill, and how many cases need work.
3. Report the stop reason, the share of trials the original and each revision passed, and the line for each iteration. Exit 0 with no winner means no revision beat the original: say so, and that nothing was written. `nothing-to-fix` means the failures left are the skill not being used: suggest `optimize description`.
4. If a winner was placed, tell the user that its gain was measured on the very cases its sessions were shown, so it may not carry over to others. If it was not placed because it was picked differently from the original, give the reason and the folder in the record that holds it. Then follow "Change an existing skill" from `diff`.
5. After an applied change, offer another `eval run` (the cost rule again), then `compare <before-run> <after-run>`, which is free. Report the cases it lists as fixed, broken, better and worse, and its "Read this first" warnings. With fewer than 3 repeats a difference may be chance; say so.
## Share or install a skill
1. `package <skilldir>` writes a zip to `.skillforge\packages`, with a manifest of hashes and a `.sha256` file beside it. It leaves out `evals\`, common secret files such as `.env` and keys, and clutter, and lists each with its reason. Its checks go by file name only: tell the user to read what it packaged before they share it, since a secret inside `SKILL.md` or a script is not caught.
2. `install <skilldir | package.zip | file.skill>` previews where the skill would go and what it holds, and writes nothing. The default is `<project>\.github\skills\<name>`; `--scope personal` is `~\.copilot\skills\<name>`, for every project; `--project <folder>` picks another project. Show the preview and any `NAME_COLLISION` warning (a skill of the same name elsewhere makes it unclear which one Copilot uses).
3. Only after the user agrees: run the same command with `--apply`. Exit 6 with "Refusing to replace an installed skill without --replace" means another version is already installed: show the difference it printed, and add `--replace` only if the user agrees. That archives the installed version first and prints the command that puts it back.
4. Tell the user to start a new chat session (or run `/skills reload` in the Copilot CLI) to use the skill.
- When `validate` reports `SUITE_ANTHROPIC_EVALS` or `SUITE_ANTHROPIC_TRIGGER_SET`, the skill's evals are in Anthropic's format. Run the `eval import` command the message gives, with `--dry-run`, and show the user what it would write and its warnings. Run it for real only after they agree: it moves their `evals\evals.json` aside to `evals\anthropic-evals.json` and writes the suite in its place.
- Tell them that each expectation becomes a rubric criterion, which a model session grades after every `eval run` trial, so a run of the imported suite costs more sessions. Its dry run counts them.
- `eval export <skilldir> --out <dir>` writes a suite in Anthropic's formats, and `report <run-dir> --anthropic <dir>` writes a benchmark for Anthropic's review viewer. Keep `--anthropic` outside the skill folder, and `--out` outside it or under its `evals\`: the model reads everything else in the skill folder.
## Exit codes
| Code | Meaning | What to do |
| --- | --- | --- |
| 0 | Done | Report the result. A skill that is not picked, or fails its checks, is a result, not an error. |
| 1 | A bug in skillforge, or an error the SDK reported | Show the message. Do not retry blindly. |
| 2 | A usage error | Fix the arguments; see `--help`. |
| 3 | The skill, suite or folder is missing or invalid | Show the diagnostics. |
| 4 | This machine cannot run sessions | Run `doctor` and show its hints. |
| 5 | Incomplete: a timeout, a cancellation, or cleanup that did not finish | Report what finished. `report <run-dir>` rebuilds a benchmark's report. |
| 6 | Refused by a safety policy | Explain the refusal. Never work around it. |
Files in this skill
- SKILL.md
- scripts/skillforge.ps1
Attribution
Related skills
View all in tools →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.