/skill-dev:workflow-skill-creator [create <process> | rework <skill-dir> | audit <skill-dir>...]from Skill Dev
Create, rework or audit a workflow skill — one that carries a repeatable process through ordered steps, where a step quietly skipped still yields a result that looks fine. Use when someone wants a new skill for a multi-step process, an existing skill reshaped into phases or moved to a lighter or stricter tier, or a flow skill checked against good practice, in any language the user writes in: 'make a skill for this workflow', 'turn this process into a skill', 'split this skill into phases', 'this skill keeps skipping steps', 'enforce the step order', 'audit this workflow skill', 'is this skill tiered right', 'does this skill need a gate'. Also use it when a plain request to create a skill turns out to describe dependent steps, a human decision mid-way, or a write to Jira or GitHub. NOT for skills with no ordering (use a general skill creator), NOT for general authoring review of frontmatter, links or prose (use a skill-audit skill), and NOT for running an existing flow skill — invoke that skill instead.
Ships in Skill Dev. 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.
A workflow skill walks a process through steps that depend on each other. Its typical failure isn't a crash. The model skips a step or merges two, and the output still reads like a good result, so nobody notices.
Two findings shape everything below:
This skill does three jobs: create a workflow skill, rework one, and audit one or several. It is itself a guide, not a gated pipeline. Its output is files the user reads immediately, and the cost of a gate would be paid on every run to protect something that is already being reviewed. It exceeds tier 1's usual step count but stays there for the same reason.
The first argument picks the job. With none: no skill yet → create; an existing skill → audit it first and offer rework from the findings. Never rework a skill that hasn't been audited in this session.
audit.py and the gate engine need Python 3.8+ and nothing else (standard library
only). custom gate checks run through the system shell, so on Windows use Git Bash or
WSL (test_phase.py has one POSIX-only test). Tier 4 additionally needs Claude Code with
dynamic workflows enabled. Check first:
python3 --version
Copy this list into your reply and work down it:
[ ] 1 understand the process → answers to the questions in §1, conventions measured
[ ] 2 choose the tier → one tier named, with the reason
[ ] 3 cut the phases → phase list: name, input artifact, output artifact
[ ] 3b user approved → tier and phase list shown, explicit yes received
[ ] 4 write it → SKILL.md (+ phase files, references)
[ ] 5 machinery → tier 3: scripts/phase.py + phases.json, lint green;
tier 4: saved dynamic workflow, one small run;
otherwise: skipped, with the reason
[ ] 6 check and try it → audit.py clean of blocker/major, one real run, gaps named
Step 3b is a stop: write no file until the user has approved both proposals. A wrong tier or a wrong cut costs far more to undo after step 4 than before it.
Ask only what you can't read from the conversation or the code. Use AskUserQuestion when the answer is a real choice.
Measure conventions before writing them down. When the skill will set fields or follow a format — ticket types, labels, section names — sample what the real system actually contains and cite the counts in the skill. Written documentation of a convention is often stale, and a measured value tells the next reader it wasn't assumed.
| Tier | Shape | Choose it when | Cost |
|---|---|---|---|
| 1 Prose guide | SKILL.md with numbered steps and a checklist the model copies into its reply | A short flow (roughly five to seven steps). A skipped step shows in the output. The deliverable is text or a file the user reads right away | Lowest. Order is advisory |
| 2 Phase files | SKILL.md as contract and router, one phases/NN-*.md per phase read on arrival, each phase ending in a file | Long flow with distinct instructions per phase, or a flow that must survive compaction, but a skipped step is still visible | Low. Nothing forces the next file open |
| 3 Gated pipeline | Tier 2 plus artifacts in the session scratchpad and a gate script that validates each artifact before the next phase opens | A skipped or thin step yields a plausible wrong result. A verdict must trace to evidence. There is an irreversible outward step | Moderate: phases.json and checks to maintain |
| 3+ Stop hook | Tier 3 plus a hook that won't let a turn end quietly with a run open | Only after real runs showed the gate being bypassed | Small, but it runs for the rest of the session |
| 4 Script-orchestrated part | One step hands its work to a saved Claude Code dynamic workflow (a script that runs subagents) and gets back one result | Many independent items (fan-out), or an unattended run. Never for interactive, tightly dependent steps | High: tokens, no mid-run questions, a second artifact to maintain |
Decide with these rules:
NN-name.skipped with a one-line reason. A missing file can't be told apart
from a forgotten one.references/, instead of forking a near-copy skill per
subtype.## Not yet — later steps (do not run) section that says what to answer if the user asks mid-run. Don't
leave them out and don't half-build them.Before writing any file, read references/patterns.md and start from the skeleton for the chosen tier.
Description. Say when to use the skill, list the phrases users actually
type in their languages, and add a NOT for line pointing away from
neighbouring skills. Describe what the skill does in one clause at most.
Never summarise the steps. A model that finds the procedure in the
description follows the summary and skips the body. Keep it within 1,024
characters (a soft limit; the listing cuts descriptions at 1,536).
SKILL.md, in this order:
Keep the contract near the top. After compaction only the first 5,000 tokens of a skill come back, so anything below that line can quietly disappear from a long run. Stay under 500 lines, because past that the body crowds out the conversation it has to steer; 150–250 is a healthy size.
Phase files. Put the exit gate on the first lines. Link each phase from SKILL.md only, never from another phase file, because nested references get read partially. Tell the run to read each file when it reaches that phase and not to read ahead.
Rules that hold in every tier:
<file>:<line> slot
filled from this run's search. Stable identifiers that aren't code (project
slugs, numeric ids, CLI commands) go in references/.Copy the engine with
cp ${CLAUDE_SKILL_DIR}/assets/gate/phase.py <new-skill-dir>/scripts/. Never
read and retype it: every pipeline should share one tested engine, and a
retyped copy is a fork that drifts apart. Read
references/gate.md before writing phases.json; it holds
the schema, the check types and the commands. Then write a phases.json beside
the engine for the flow, starting from
assets/gate/phases.example.json, and run
python3 <new-skill-dir>/scripts/phase.py lint.
Write checks in order of value:
path:line locations exist; an outward
write is read back from the system.Say plainly in the generated skill that the gate is structural. It catches skipping and thinness, never a wrong analysis written up well.
Add the Stop hook only once real runs have shown the gate being bypassed. Copy
it with cp ${CLAUDE_SKILL_DIR}/assets/gate/stop_gate.py <new-skill-dir>/scripts/.
python3 ${CLAUDE_SKILL_DIR}/scripts/audit.py <skill-dir>, fix every
blocker and major finding, and re-run until none remain.python3 ${CLAUDE_SKILL_DIR}/scripts/audit.py <dir> [<dir>...]. It
takes several skills at once for a group audit.file:line and a one-line fix;Copy this list into your reply and work down it:
[ ] 1 audit before → audit.py output + rubric findings
[ ] 2 ownership → the user owns the skill; stop if not
[ ] 3 propose → target tier (same, up, down) and phase cut, approved before any edit
[ ] 4 edit → Create §3–§5 for whatever changed
[ ] 5 audit after → both results side by side
Rules for step 3:
audit.py
cannot judge; read in Create §6, Audit and Rework.scripts/audit.py: structural audit. assets/gate/: the engine, an example
config and the Stop hook. tests/: offline tests for both scripts
(python3 ${CLAUDE_SKILL_DIR}/tests/test_phase.py,
python3 ${CLAUDE_SKILL_DIR}/tests/test_audit.py).assets/gate/__pycache__/phase.cpython-313.pyc (opens in a new tab)assets/gate/phase.py (opens in a new tab)assets/gate/phases.example.json (opens in a new tab)assets/gate/stop_gate.py (opens in a new tab)references/audit-rubric.md (opens in a new tab)references/gate.md (opens in a new tab)references/patterns.md (opens in a new tab)references/sources.md (opens in a new tab)scripts/audit.py (opens in a new tab)tests/test_audit.py (opens in a new tab)tests/test_phase.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub janszewczyk/claude-plugins --plugin skill-dev4 skills in this plugin
/skill-ab-optimizerContinuously tests and improves Claude Code skills using A/B experimentation and Auto Research ML loop. Provides quantitative metrics on skill effectiveness and automatically approves only changes that improve outcomes./skill-auditAudits one Claude Code skill for authoring quality — the frontmatter contract, whether the description will actually trigger, the progressive-disclosure budget, dead links and orphan reference files, prose economy, language consistency, and whether bundled scripts and references earn their cost, and whether a multi-step flow shows its progress in a task list. Use whenever the user asks to review, audit, tighten, trim, or clean up a skill, says a SKILL.md has grown bloated or rambling, wonders whether its reference files are still linked or whether anyone reads them, asks why a skill never fires, or wants to know what to cut before shipping it. Not for auditing a whole marketplace repo's manifests and READMEs — that is marketplace-creator — and not for measuring whether a wording change improved triggering, which is skill-ab-optimizer. This one reads the skill and proposes edits./workflow-creatorCreate, audit or optimize a Claude Code dynamic workflow: the .js script (export const meta + agent()/pipeline()/parallel()) that orchestrates many subagents and is saved as /<name> in .claude/workflows/, ~/.claude/workflows/ or a plugin. Use whenever someone wants such a script written, checked against the official authoring rules, made cheaper or faster, relocated, or carved out of a skill's fan-out step, in any language: 'napisz workflow do migracji', 'zrób z tego dynamic workflow', 'zoptymalizuj ten workflow, za dużo tokenów', 'write a workflow that audits every route', 'review my .claude/workflows script', 'why does /my-workflow not show up', 'this workflow never finishes'. Also when a 'make a skill' request describes dozens of independent items handled the same way: that is a workflow. NOT for a phased SKILL.md process with gates or mid-run human decisions (workflow-skill-creator), NOT for running an existing workflow (invoke /<name>), NOT for CI pipelines.Other plugins' skills for the same job