Command Palette

Search for a command to run...

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

plugin-creator

БесплатноЗапускает вложенные скриптыНе проверен

This skill should be used when the user asks to 'create a plugin', 'scaffold a plugin', 'set up plugin structure', 'new plugin', 'edit the plugin manifest'…

edwinhuот edwinhu★ 28 звёзд на GitHub

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

Plugin Creator (with Superpowers Enforcement)

What this skill carries — grep references/ for any subject the names below miss: !d=${CLAUDE_SKILL_DIR}; command -v skill-toc >/dev/null 2>&1 && exec skill-toc "$d"; s=$HOME/.claude/skills/plugin-utils/bin/skill-toc; [ -x "$s" ] && exec "$s" "$d"; echo "(skill-toc unavailable: references and scripts are NOT listed here — install the plugin-utils plugin, or start a new session so its bin/ reaches PATH)"

Shared references this plugin ships — the plugin-root corpus, indexed so an added document needs no edit here; grep it for any subject the names miss: !r=${CLAUDE_PLUGIN_ROOT}; command -v skill-toc >/dev/null 2>&1 && exec skill-toc "$r" refs; s=$HOME/.claude/skills/plugin-utils/bin/skill-toc; [ -x "$s" ] && exec "$s" "$r" refs; echo "(shared-reference index unavailable: the plugin-root references/ are NOT listed here)"

This skill wraps the built-in plugin-dev:create-plugin with enforcement pattern awareness from the superpowers framework. It adds an enforcement audit layer that the built-in version lacks.

hooks/guards/skill-paths.ts runs after every Edit/Write (in-process, in the plugin's mod) and reports any ${CLAUDE_SKILL_DIR} / ${CLAUDE_PLUGIN_ROOT} reference that resolves to a missing file. hooks/plugin-validate.ts is not registered — its only finding on this repo is a constant symlink warning identical for 91 of 92 firing files. Run manifest validation by hand: claude plugin validate <plugin-dir>.

Process

Step 1: Classify the Plugin

Before drafting, classify what's being created or edited:

Type Description Enforcement Needs
Full plugin New plugin with skills, hooks, commands, agents High — needs enforcement across all components
Skill addition Adding a skill to an existing plugin Medium — needs skill-level enforcement audit
Hook addition Adding hooks to an existing plugin Medium — needs path validation, matcher coverage
Component edit Substantial edit to existing plugin component Medium — needs re-audit of affected enforcement

Anti-Patterns: Read Before Drafting

!cat ${CLAUDE_SKILL_DIR}/../../references/creator-anti-patterns.md

Step 1b: Check for Mechanical Enforcement Opportunities

Before drafting, identify constraints that should be mechanically enforced rather than prompt-enforced. Four mechanisms are available:

Mechanism Resolves at Use for
${CLAUDE_SKILL_DIR} Skill load Script paths in Bash templates (use directly, never wrap in $())
!command`` (bang) Skill load Injecting reference file content, environment state
Scoped hooks (Pre/PostToolUse) Each tool call Mechanically checkable constraints (lint, path guards)
SessionStart hook (once: true) Session start Expensive computations (API calls, index builds) — not paths or content

The principle: if a constraint is mechanically checkable, enforce it with a hook. If it requires judgment, keep it as prompt text.

Step 1c: Run the Checker-Shape Probe

bun ${CLAUDE_SKILL_DIR}/scripts/pc-probe.ts --target <plugin-dir>

Exit 0 clean, 1 findings, 2 argument error, 3 the probe crashed — 2 and 3 are not the same, and neither is a pass. Re-run it after Step 3 and before final validation.

Output Do
I1 two engines in one domain delete one, or make it spawn the other
I2 two lenses quoting one literal one lens owns the claim, the other routes to it
I3 engine with no live caller wire it or delete it
I4 computed path does not resolve fix the level count — it is inert now
I5 suppression entry matches no label repoint or delete it; whatever it covered is reported twice
I6 lens prompt quotes a decided rule narrow the lens to the undecidable residue, point it at the table through refs
advisory I7 the pattern fires on a phrase the corpus recorded as human — check it through ai-tic before shipping
I8 a <stem>.md beside a <stem>.py a RULE is markdown a model judges; a CONSTRAINT is code that decides. Never the same rule in two forms — retire the prose, or declare <!-- pc-probe: ignore-two-representations --> when it carries the checker's only written rationale
I9 checker outside every enumerated directory move it under a directory a discovery runner globs, or widen the runner. Named-only reach is one rename from silence
I10 rule with no applies-to: scope it, or move it out of the checker directory — unscoped, it governs zero workflows
I3/I9 engine a sibling plugin calls declare <!-- pc-probe: ignore-external-caller ~/projects/<repo>/path/caller.py --> naming the caller (honoured by I3 and I9 only; printed SUPPRESSED; a named caller missing from a repo present here is I11, an absent repo prints NOT CHECKED)
I11 unknown exemption marker fi
Полный SKILL.md на GitHub

Установить plugin-creator в Claude Code и Claude Desktop

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

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

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

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

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

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

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

scripts/pc-probe.test.tsscripts/pc-probe.ts

FAQ

Что делает скилл plugin-creator?

This skill should be used when the user asks to 'create a plugin', 'scaffold a plugin', 'set up plugin structure', 'new plugin', 'edit the plugin manifest', 'wire plugin hooks', 'validate plugin structure', 'audit my plugin's enforcement', or needs plugin-level work spanning multiple components. Use proactively whenever plugin.json, marketplace.json or hooks/hooks.json is being edited, even if the user never says 'plugin'. NEGATIVE ROUTING: never invoke plugin-dev:create-plugin, plugin-dev:plugin-structure or plugin-dev:plugin-validator directly — this skill is the wrapper that adds the enforcement audit they lack. Creating or editing a single skill, even inside a plugin, goes to skill-creator; designing, repairing or auditing a multi-phase workflow goes to workflow-creator.

Как установить скилл plugin-creator?

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

Скилл plugin-creator запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить plugin-creator с