add-skill
Skill79 starsChanged 2 months agoMITView on GitHub
Add an Agent Skill to a Copilot Studio agent - uploaded from your drive (a SKILL.md or .zip) or picked from the Power CAT "Cat Agent Skills" gallery - then optionally import it into a cloned agent workspace under behaviors/. Use when the user asks to add, import, upload, or install an Agent Skill (from a local SKILL.md/.zip or the Cat Agent Skills gallery) into a Copilot Studio agent.
- Reads credentials
27 other projects use a version of this.
Adopted by
Most recently taken up by
- blutarche/skillstheir own version, first seen Oct 1, 2026
- Paldom/python-skillstheir own version, first seen Sep 10, 2026
- Paldom/node-skillstheir own version, first seen Sep 10, 2026
- Paldom/storytelling-animationtheir own version, first seen Sep 8, 2026
- Paldom/mobile-app-inspectortheir own version, first seen Aug 31, 2026
- Paldom/playwright-stealththeir own version, first seen Aug 31, 2026
Used with
Projects with it also use publish-repo.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
PaldomSkillpublish-repo
Publishes this Agent Skills repository to skills.sh - pre-flight checks, public visibility flip, protections (PVR, ruleset), consumer-style install verification, telemetry seeding, and repo-page groupings. Use when the user asks to publish, deploy, release, go public, or get listed on skills.sh. Not for authoring skills or editing scaffold infrastructure.
Also in 15 projects that use this
Other versions27 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 27
- zeuikli/claude-code-workspace★ 156same name
- blutarche/skills★ 4same name
- EvanOman/claude-skills-public★ 4same name
- Joshua-Palamuttam/workbench-template★ 3same name
- Paldom/python-skills★ 3same name
- Paldom/icon-designer-skills★ 2same name
- phucbm/skills★ 2same name
- amanuelmamo7/Skills★ 1same name
- kpab/awesome-fun-claude-skills★ 1same name
- Paldom/github-skills★ 1same name
17 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- add-knowledgeSkill
- clone-agentSkill
- create-agentSkill
- delete-agentSkill
- publish-agentSkill
- pull-agentSkill
- push-agentSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 3 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 24 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 37
If plugin-paths.json cannot be read, fall back to locating reference/skill-schema.md under the installed plugin directory.
- Very specific: line 46
Read path.join(os.homedir(), '.copilot-studio-cli', 'plugin-paths.json') and use its pluginRoot -> path.join(pluginRoot, 'scripts', …
- Very specific: line 48
If that file is unavailable, fall back to ${CLAUDE_PLUGIN_ROOT}/scripts/add-skill.js when the env var is set.
- Very specific: line 52
Use this absolute path for every node invocation below.
- Distinctive: line 56
If the initial request already makes the source obvious, skip the question:
- Distinctive: line 68
Keep this question to the source choice only.
- Distinctive: line 75
Ask for the full path if it was not provided.
- Very specific: line 124
Before writing anything, the importer reads the root settings.mcs.yml and requires a root-level, single-line template: value beginning …
- Very specific: line 130
Import writes the skill under behaviors/<name>/: the manifest as SKILL.md and every other payload file (e.g.
- Very specific: line 136
Every component's schema name is prefixed with the agent schemaName read from the workspace settings.mcs.yml.
- Very specific: line 179
If imported: the behaviors/<name>/ path created, the .mcs.yml companions written (or that it fell back to a bare skill, with the reason …
- Very specific: line 193
If the user picks a non-skill catalog entry (a Scout automation or a legacy .zip), download refuses it with a clear message.
“Common” is measured: kept by at least 6 in 10 of the 24 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Add a Copilot Studio Agent Skill
You help the user obtain an Agent Skill to add to a Copilot Studio agent. A skill is either
uploaded from the user's local drive (a SKILL.md file or a .zip bundle) or selected from
the Power CAT "Cat Agent Skills" gallery (https://microsoft.github.io/cat-agent-skills/,
source github.com/microsoft/cat-agent-skills) and downloaded locally.
Flow: first acquire the skill (validate a local file, or download a gallery skill into a local
folder), then optionally import it into a cloned Copilot Studio agent workspace under
behaviors/<name>/. Import is supported only for CLI-agent workspaces whose root
settings.mcs.yml has a versioned template: cliagent-... value. By default the import also writes
the portal-style .mcs.yml companions (an anchor skill.mcs.yml plus per-file sidecars for
bundle skills) so the on-disk layout matches a Copilot Studio portal import. Import only
materializes files on disk; publishing to the cloud is done from the VS Code Copilot Studio
extension (Agent Changes view / sync push) afterward - this skill never pushes.
Initial request: $ARGUMENTS
Authoritative schema — read this before importing
The exact YAML for every skill component, the behaviors/ file layout, anchor/sidecar rules, folder
naming, and schema-name conventions live in a single shared reference —
reference/skill-schema.md. It is the source of truth; the copilot-studio-architect agent and
scripts/add-skill.js use the same file, so the three never drift. Read it before step 5 and
follow it exactly.
Resolve its path via the plugin root: read
path.join(os.homedir(), '.copilot-studio-cli', 'plugin-paths.json') to get pluginRoot for the
current mcs-assistant plugin, then read path.join(pluginRoot, 'reference', 'skill-schema.md').
If plugin-paths.json cannot be read, fall back to locating reference/skill-schema.md under the
installed plugin directory.
1. Locate the helper script (non-blocking)
Resolve scripts/add-skill.js inside this installed plugin. In order:
- Read
path.join(os.homedir(), '.copilot-studio-cli', 'plugin-paths.json')and use itspluginRoot->path.join(pluginRoot, 'scripts', 'add-skill.js'). - If that file is unavailable, fall back to
${CLAUDE_PLUGIN_ROOT}/scripts/add-skill.jswhen the env var is set. - Otherwise
Glob: **/scripts/add-skill.jsunder the plugin directory.
Use this absolute path for every node invocation below.
2. Choose the source (blocking)
If the initial request already makes the source obvious, skip the question:
- A path ending in
.mdor.zip, or an existing file path -> local upload (step 3). - A skill name/slug that is not a path -> treat as a gallery pick (step 4), matching it against the listed skills.
Otherwise ask the user to choose the source as a single, standalone question with exactly two options:
- Upload from local drive - they already have a
SKILL.mdor a.zip. - Select from the gallery - browse the Cat Agent Skills catalog.
Keep this question to the source choice only. Do not bundle any other field into it - in particular, never add an upload-path field with "leave blank if downloading from the gallery" (or similar) wording. Ask for a local path only after the user picks Upload (step 3); ask nothing about paths on the gallery branch until it is time to pick a destination (step 4).
3. Local upload
- Ask for the full path if it was not provided.
- Validate it exists and is a single
SKILL.md(Markdown) or a.zip. If it is neither, tell the user what is accepted and stop. - Confirm the resolved absolute path. For a
SKILL.md, its containing folder is the--srcfor import (step 5). For a.zip, you cannot extract it yourself - the only shell command available here is theadd-skill.jsscript. Ask the user to extract it and give you the path to the extracted folder (the one holdingSKILL.md), then use that as--src.
4. Select from the gallery
List the available skills as a table (box structure), which is the format to show the user:
node "<scriptPath>" list --prettyThis renders a table with columns
#,◆(bundle marker),Name,Description, andSlug, already sorted by display name and limited to skills whoseplatformsinclude Copilot Studio. The layout is deterministic - a fixed render width and stable sort mean the same gallery data always produces the exact same table, regardless of terminal size. The◆marks a bundle skill (ships extrascripts/,references/, orassets/); an empty cell is a singleSKILL.md. Add--allonly if the user explicitly wants every platform. For programmatic use, plainnode "<scriptPath>" liststill emits JSON{ ok, count, skills: [{ slug, name, description, platforms, tags, hasBundle }] }.- Present that table to the user (do not flatten it into a plain list), then ask them to pick one by
number or name. Map their choice to the exact
slugfrom the table'sSlugcolumn for the download. If the initial request already named a skill, resolve it to aslugand confirm the match. Download the chosen skill. Do not ask the user where to save it - omit
--destso it lands in a temporary user folder automatically (<os-tmp>/mcs-add-skill/<slug>):node "<scriptPath>" download --slug "<slug>"The result JSON is
{ ok, slug, name, hasBundle, dir, zip, files }. Use the returneddiras the--srcwhen importing (step 5) - do not prompt for a location. The unpacked payload (SKILL.mdplus anyscripts/,references/,assets/) is written todir, and when a prebuilt bundle exists,<os-tmp>/mcs-add-skill/<slug>.zipis saved too.
5. Import into a cloned agent workspace (optional)
Offer to import the acquired skill into a cloned Copilot Studio CLI-agent workspace (a folder
that contains settings.mcs.yml + agent.sync.yaml, produced by the extension's Clone Agent
command). If the user does not have one yet, tell them to clone/attach a CLI agent first, and stop
after acquiring.
Before writing anything, the importer reads the root settings.mcs.yml and requires a root-level,
single-line template: value beginning cliagent- (for example,
template: cliagent-1.0.0; plain and quoted values are accepted). If the file is missing, the key is
missing, or the value is not a CLI-agent template, import stops with an unsupported-workspace error.
Relay that error and do not create or replace any behaviors/<name>/ folder.
Import writes the skill under behaviors/<name>/: the manifest as SKILL.md and every other payload
file (e.g. scripts/) copied verbatim. By default it then also emits the portal-style .mcs.yml
companions — an anchor skill.mcs.yml plus, for bundle skills, one sidecar per non-manifest
payload file — so the on-disk layout matches a Copilot Studio portal import. The script owns those
shapes; reference/skill-schema.md documents them.
Every component's schema name is prefixed with the agent schemaName read from the workspace
settings.mcs.yml. If that value is missing, or is not a usable Dataverse prefix - or you pass
--no-sidecars - the import falls back to a bare behaviors/<name>/ folder and the extension
synthesizes the companions on the next workspace read / sync. A warning explains the fallback
and the accepted single-line plain or quoted schemaName: syntax, except when you asked for it with
--no-sidecars. If the agent schemaName is so
long that it leaves no room for a component name under the 100-character Dataverse limit, the import
fails before writing anything - relay that error and suggest a shorter agent schema name.
node "<scriptPath>" import --src "<skill-folder>" --workspace "<cloned-agent-folder>" [--name "<folder>"] [--force] [--no-sidecars]--srcis the unpacked skill folder (<dest>/<slug>/from step 4, or the folder holding an uploadedSKILL.md). It must contain a top-levelSKILL.md(case-insensitive; written asSKILL.md).--workspaceis the cloned agent root.--nameoverrides thebehaviors/folder name (defaults to the source folder name, sanitized).--forceoverwrites an existingbehaviors/<name>/.--no-sidecarsskips companion generation and writes a bare skill (the pre-existing behavior).- Gallery sidecars (
metadata.json,metadata.yaml,metadata.yml,README.md) are excluded by default, matched case-insensitively at the skill root; pass--include-sidecarsto keep them. Any.mcs.ymlfiles already in--srcare ignored and regenerated. - Archives inside the payload (e.g.
assets/templates.zip) are copied like any other file. A root-level<name>.zipis skipped, because it would collide with the bundle archive the extension mints for the skill; the import reports that inwarnings.
The result JSON is { ok, folder, workspace, behaviorsDir, manifest, files, companions, schemaPrefix, warnings, next }.
companions lists the .mcs.yml files written (empty when bare) and schemaPrefix is the agent
schema used. Relay any warnings (for example, that the workspace layout marker or schema prefix
could not be read). An unsupported non-CLI workspace is an error, not a warning, and receives no
files.
For a .zip upload, --src must point at the folder the user extracted it to (see step 3), so
that it holds the SKILL.md plus any payload files.
6. Report
Tell the user, concisely:
- The skill name and slug.
- Where it was saved - the unpacked folder path (for a gallery skill this is the temporary
<os-tmp>/mcs-add-skill/<slug>folder), and the.zippath when one was produced. - Whether it is a single-
SKILL.mdskill or a bundle with extra files. - If imported: the
behaviors/<name>/path created, the.mcs.ymlcompanions written (or that it fell back to a bare skill, with the reason fromwarnings), and any other warnings; and that publishing to the cloud is the next step, done from the VS Code Copilot Studio extension (Agent Changes view / sync push) - this skill does not push.
Error handling
- The script prints
{ "ok": false, "error": "..." }and exits non-zero on failure. Surface theerrormessage. - An unsupported-workspace error means the selected folder is not a CLI agent with a root
template: cliagent-<version>value insettings.mcs.yml. Stop; do not retry with--force. - A GitHub tree "truncated" error, rate-limit, or network failure from
list/downloadis transient - report it and offer to retry. SettingGITHUB_TOKENraises the API limit for the one tree call, but is not normally required. - If the user picks a non-skill catalog entry (a Scout automation or a legacy
.zip),downloadrefuses it with a clear message; relay that and suggest picking an actual skill.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

