Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

creating-plugins

БесплатноБез исполняемых скриптовНе проверен

Packages repository skills as installable Copilot plugins: marketplace registration, `plugin.json` manifests, generated skill copies, and the sync check CI…

jaktestowacот jaktestowac★ 124 звезды на GitHub

Об этом скилле

Creating Plugins

Use this skill when a skill or a small group of skills should be installable as a unit rather than copied by hand.

The rule that governs everything here: skills/ at the repository root is the source of truth, and everything under plugins/*/skills/ is generated output that happens to be committed. The generator is npm run plugin:materialize; the guard is scripts/check-plugin-sync.js, which CI runs as part of npm run lint. Editing a plugin copy directly produces a drift error and loses the edit on the next materialize.

When to Use

  • a skill is mature enough to install rather than copy
  • several related skills should ship together
  • a new plugin needs registering in the marketplace
  • npm run lint reports a plugin copy that does not match its source skill
  • a plugin's description or keywords need updating

Operating Principles

  • The root skill is the source of truth. Every change starts in skills/<name>/ and flows outward.
  • Plugin skill copies are generated. Never hand-edited, always regenerated.
  • A plugin is self-contained. The plugin format resolves skill paths relative to the plugin root, so a plugin cannot reference skills/ at the repository root. That is why the copies exist.
  • The marketplace entry comes first. The scaffolder builds the plugin directory from it, and rewrites the generated fields from it on every run - edits flow downstream, never back up.
  • A bundle is justified by use together. Two skills in one plugin because a user reaching for one reaches for the other, not because they share a topic.
  • The description is the install decision. It is what a user reads in a marketplace listing, and it is the only thing they read.

Workflow

Phase 0: Decide the bundle

A plugin ships one skill, or a small group used together.

Shape Justified when
One skill It stands alone, and nothing else is needed to use it
A skill plus its quick variant The pair covers routine and deep use of the same capability, like writing-unit-tests
Several cooperating skills A user reaching for one reliably reaches for the others in the same session

Not justified: grouping by topic. "All the testing skills" is a directory listing, not a plugin. The user installs it, gets fifteen descriptions competing for the same triggers, and picks worse than they would have with three.

Before bundling, confirm the skills are distinct enough to coexist. Two skills whose descriptions overlap will collide harder inside one plugin than they do in a repository, because the user installed both deliberately.

Phase 1: Register in the marketplace

npm run plugin:generate -- planning-exploratory-testing

scripts/generate-plugins.js writes the entry into .github/plugin/marketplace.json, taking the description from plugins/<name>/.github/plugin/plugin.json if the plugin folder already exists, otherwise from the frontmatter of skills/<name>/SKILL.md. Entry order is preserved and new entries are appended, so the file stays readable in diffs.

Command Does
npm run plugin:generate -- <name> add the entry for one plugin or root skill
npm run plugin:generate -- <name> --description='...' add it with a written description instead of the skill's
npm run plugin:generate backfill entries for every plugin folder missing one
npm run plugin:generate:all register every root skill, refreshing existing entries from their SKILL.md
npm run plugin:generate -- --dry-run print what would change, write nothing
npm run plugin:generate -- --no-overwrite report drift instead of rewriting an entry
npm run plugin:generate -- --verbose list every item instead of a count
node scripts/generate-plugins.js --check fail if a plugin folder has no entry (CI, part of npm run lint)

Which file wins. The pipeline flows one way, and each step overwrites what is downstream of it:

skills/<name>/SKILL.md  →  marketplace.json  →  plugins/<name>/  →  README.md
   (frontmatter)            (the registry)      (plugin.json,        (the tables)
                                                 README description)

plugin:generate:all therefore rewrites an existing entry's description from the skill's frontmatter - a marketplace description edited by hand does not survive it. Write the listing description in the skill's frontmatter, or use --description= per plugin, or pass --no-overwrite to keep what is there and have the drift reported instead. A version somebody bumped is never reset by a refresh; only --version= changes it.

plugin:generate:all packages the repository in bulk. It skips a skill another plugin already ships, and it skips <name>-quick when skills/<name>/ exists, printing the plugin.json line that bundles the quick variant with its parent instead. Pair it with --dry-run first, and read Phase 0 before accepting the re

Полный SKILL.md на GitHub

Установить creating-plugins в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

resources/plugin-manifest.template.mdresources/plugin-packaging-checklist.mdresources/plugin-readme.template.md

FAQ

Что делает скилл creating-plugins?

Packages repository skills as installable Copilot plugins: marketplace registration, `plugin.json` manifests, generated skill copies, and the sync check CI enforces. Use when bundling one or more skills for installation, when adding a plugin to the marketplace, or when `npm run lint` reports that a plugin copy has drifted from its source skill.

Как установить скилл creating-plugins?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл creating-plugins запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить creating-plugins с