wf-run-step
Execute the current weft step via the Claude Code Workflow tool, then auto-transition on the structured verdict. Use only when user types /wf-run-step, or…
от dioptx★ 31 звезда на GitHub
Установить wf-run-step в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Run a Weft Step as a Workflow
For steps whose template declares an executor (a Claude Code Workflow script), this runs the
workflow, captures its structured verdict, and pipes the result to weft run-result — which records
the Workflow runId on the step (for crash-resume) and auto-transitions: complete if the verdict is
non-blocking, fail (per on_fail) if blocking.
Steps with no executor are not for this skill — drive them with /wf-step as normal. The executor
is for mechanical steps (review fan-out, multi-target verification, regression sweeps); judgment gates
stay human-driven.
1. Read the current step's executor
python3 "${CLAUDE_PLUGIN_ROOT}/core/cli.py" status --json
Find the current step (the one with status: running). Read its executor field:
executor.type— currently only"workflow"is supported.executor.script— script name, resolved to~/.claude/weft/workflows/<script>.js(or the project-local.claude/weft/workflows/<script>.jsif present).executor.args— JSON args passed to the workflow.
If executor is null: stop. Tell the user this step has no executor and should be advanced with
/wf-step. Do not invent one.
2. Invoke the Workflow
If --resume was passed AND the step already has a non-null workflow_run_id, re-invoke with
resumeFromRunId so completed sub-agents return cached (this is the crash-resume path):
Workflow({ scriptPath: "<resolved path>", args: <executor.args>, resumeFromRunId: "<workflow_run_id>" })
Otherwise invoke fresh:
Workflow({ scriptPath: "<resolved path>", args: <executor.args> })
The executor script must return an object that includes at least blocking (boolean) and a
human-readable summary. Capture the Run ID from the tool result and the returned object.
3. Record the verdict and auto-transition
Build the payload and pipe it to run-result (it transitions the step — complete if not blocking,
fail if blocking):
echo '{"run_id":"<RUN_ID>","blocking":<true|false>,"reason":"<one-line>","verdict":<the returned object>}' \
| python3 "${CLAUDE_PLUGIN_ROOT}/core/cli.py" run-result
Then report the verdict summary and the new workflow state to the user. If blocking, surface the
findings so the user can decide whether to fix-and-rerun (/wf-run-step again) or override.
Notes
weft run-resultstores the runId on the step; a fresh session resuming the workflow can re-run this skill with--resumeto continue the executor from its last checkpoint.- The verdict is recorded in the event log (
wf.executor_result) and survivesweft rebuild.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash - 02
Read - 03
Workflow
FAQ
Что делает скилл wf-run-step?
Execute the current weft step via the Claude Code Workflow tool, then auto-transition on the structured verdict. Use only when user types /wf-run-step, or when advancing a step whose template declares an executor.
Как установить скилл wf-run-step?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл wf-run-step запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…