/workflows:plugin-creatorfrom workflows
Creates and audits Claude Code plugins with enforcement pattern awareness. Wraps built-in plugin-dev commands to add an enforcement audit layer for plugin.json, hooks, and marketplace.json.
Ships in workflows. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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>.
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 |
!cat ${CLAUDE_SKILL_DIR}/../../references/creator-anti-patterns.md
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.
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 | fix the name; it suppresses nothing while reading as a suppression |
NOT CHECKED note | a check that did not run. Establish it or state it; never read it as a pass |
SUPPRESSED note | a declared exemption was applied. Every one prints on every run |
Use the Skill tool to invoke the built-in plugin creator:
Skill(skill="plugin-dev:create-plugin")
Follow its full process. The built-in creator handles the workflow — do not reimplement it.
After writing or revising plugin components (and before final validation), audit against the superpowers enforcement patterns. Read the enforcement checklist:
!cat ${CLAUDE_SKILL_DIR}/../../references/enforcement-checklist.md
Then score the draft using the appropriate template:
Score against all 12 patterns from the checklist. Focus especially on:
Run the authoring judgement rules over the change first — the authoring workflow's. A work dispatch
for a plugin change carries this line; by hand, run its command without --plan:
ruleChecks: { name: "jev-authoring-rules", cmd: `bun ${CLAUDE_PLUGIN_ROOT}/skills/work/scripts/rule-check.ts --workflow authoring --project-dir ${projectDir} --plan ${planPath}` },
Exit 2 names each rule at p >= 0.85; exit 1 is Jev unavailable, never a pass. It decides the quality clauses below, so score only presence by hand.
Verify:
${CLAUDE_SKILL_DIR}/../.. (not ${CLAUDE_SKILL_DIR})?Verify:
Tension resolution: Enforcement patterns go in skill body (not description), implementation code goes in scripts/, names are descriptive but descriptions are trigger-only.
Return to the built-in plugin creator's process for validation and testing. After each iteration's revision, re-run the enforcement audit (Step 3).
During iteration, watch for enforcement iteration signals (see "Enforcement Iteration Signals" in the anti-patterns reference loaded above).
${CLAUDE_PLUGIN_ROOT}/references/enforcement-checklist.md (loaded above via bang injection)${CLAUDE_PLUGIN_ROOT}/references/creator-anti-patterns.md (loaded above via bang injection)${CLAUDE_PLUGIN_ROOT}/PHILOSOPHY.mdplugin-dev:create-pluginWhat SKILL.md sets; muted values are Claude Code's defaults
Claude Code refuses to install this plugin
As a github or url source: Failed to clone repository: fatal: clone of '[email protected]:edwinhu/bmll-skill.git' into submodule path 'skills/bmll' failed
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
86 skills in this plugin
/afkUse when the user says '/afk', 'afk', 'going to bed', 'I'm going to sleep', 'work autonomously', 'work on this overnight', 'don't ask me questions', 'while I'm away', or 'do whatever you think is best'. NOT for questions about overnight returns, rates or anything financial; NOT for asking how the mode works./ai-anti-patternsALWAYS load before finalizing ANY written prose, and whenever text is suspected of being machine-written - "does this sound like AI", "make this sound human", "clean up the AI-isms", "did a bot write this", "check this draft before I send it", "review this for AI tells", "this reads like ChatGPT", "review this for mannered prose", "is this too writerly", "is this student paper AI-generated", or before handing back any draft, memo, email, or article you wrote. Use proactively even if the user never mentions AI writing./Other plugins' skills for the same job