/workflow-engineering:zx-workflow-authorfrom workflow-engineering
Generate or improve a standalone zx workflow that prepares bounded runtime context and relevant tool routes for a recurring code-assistant task. Use for context handoff to the current agent or autonomous Codex, Copilot, pi, OpenCode, or other agent executions coordinated through validation, justified repair loops, and gated delivery.
Ships in workflow-engineering. 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.
Prepare what a capable agent needs; orchestrate execution and acceptance when autonomy is requested. Generate for a class of runtime problems, never encode an example answer.
Read the target repository instructions, architecture, tests, available CLIs, and relevant ADRs.
Read references/context-first.md. Choose context handoff with zero nested agent calls, one autonomous execution with checks, or justified multi-execution orchestration. Classify the requested problem type. Read references/problem-types.md for issue triage, issue resolution, or code review; otherwise derive the same boundaries from observable acceptance evidence.
Give each observable acceptance criterion a unique lowercase slug ID. Define the optional problem-family slug, runtime problem identifier, permitted mutations, unavailable capabilities, global limits for agent calls, metered tokens, and wall time, and digest-bound policy controls before choosing agents. Keep controls outside every producer mutation scope.
For autonomy, read references/agents.md and inspect each selected agent's local non-interactive help. Record shell-free argv, model, prompt transport, authentication names, and timeout.
Prepare mandatory rules, bounded relevant evidence, gaps, and verified or explicitly unverified tool routes once. Use static stages for collection, listing, pagination, parsing, ranking, and checks. Let the current agent consume the packet or pass it to the autonomous producer. Partition only when needed.
Read references/gates.md. Route every criterion to ordered deterministic
gate leaves or independent review with explicit inputs. Use all for fail-fast conjunction;
add review only for important correctness properties executable evidence cannot establish.
If the user supplies a skill-library path, read references/skill-libraries.md. Route zero to three relevant skills independently to each producer or reviewer context.
Read references/workflow-spec.md, author workflow.plan.json, and
scaffold into an empty target:
node <skill-directory>/scripts/scaffold-workflow.mjs <workflow.plan.json> <target-directory> \
--skill-library <optional-directory>
Run npm install, npm run check, and a dry run. Then execute a safe representative problem and
inspect outputs, gates, reviews, rollback, events.jsonl, and model-calls.jsonl.
Keep only a standalone workflow that prepares new runtime problems or solves them through its declared acceptance path. A passing preparation run does not mean the problem is solved:
npx --no-install zx solve.mjs --problem "<problem>"
npx --no-install zx solve.mjs --problem-file <repository-relative-file>
solve.mjs entrypoint must accept the problem at runtime. Never bake evaluation
prompts, expected patches, verifier internals, or example answers into the bundle.maxContextBytes for every criteria-mode producer and reviewer. Reject existing unsafe,
missing, or oversized context artifacts before state creation; recheck generated inputs before use.{prompt};
stdin mode has none in argv. Never interpolate dynamic data into a shell command.budget_exhausted. Missing usage under a
token budget is terminal budget_accounting_incomplete evidence, never retry feedback.skills/ contains only this skill and one SKILL.md.solve.mjs.--problem or --problem-file, except planning-only dry runs.--dry-run --json losslessly exposes the authored complete plan and canonical digest, recursive authority,
protected controls, effective contexts and projections, exact ordered happy path, and call bounds;
it is deterministic across run IDs, working directories, option order, and prior state.maxAgentCalls can complete the one-attempt producer-plus-reviewer happy path.agents/openai.yaml (opens in a new tab)assets/runtime/solve.mjs (opens in a new tab)assets/runtime/tsconfig.json (opens in a new tab)assets/runtime/workflow.ts (opens in a new tab)references/agents.md (opens in a new tab)references/context-first.md (opens in a new tab)references/evolution.md (opens in a new tab)references/gates.md (opens in a new tab)references/problem-types.md (opens in a new tab)references/skill-libraries.md (opens in a new tab)references/workflow-spec.md (opens in a new tab)scripts/fixtures/context-handoff.json (opens in a new tab)scripts/fixtures/fake-codex-jsonl.mjs (opens in a new tab)scripts/fixtures/offline-retry-responses.json (opens in a new tab)scripts/fixtures/offline-retry.json (opens in a new tab)scripts/fixtures/offline-rollback.json (opens in a new tab)scripts/fixtures/problem-types.json (opens in a new tab)scripts/fixtures/skill-routing-responses.json (opens in a new tab)scripts/fixtures/skill-routing.json (opens in a new tab)scripts/inspect-skill-library.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gvillarroel/plugins --plugin workflow-engineering5 skills in this plugin
/jev-batch-decisionsSplits large text documents and record collections into bounded batches, evaluates typed decisions with TypeSafe Jev through OpenRouter, and aggregates the results with deterministic reducers or a recursive Jev decision tree. Use for bulk classification, evidence screening, rubric scoring, and document-wide decision questions./pi-durableBuilds independent Pi Durable applications with persistent event services, reconnectable chat, bounded specialist subagents, and requested trace, population or Pareto evolution. Use for PR agents, durable queues, recovery, Windows/macOS services, or evidence-based improvement of prompts, tools and scripts./