| name | wf-preview |
| description | Preview a weft workflow template with full step details. Use only when user types /wf-preview. |
| argument-hint | <template-name> |
| allowed-tools | ["Bash","Read"] |
Preview Weft Template
Show a detailed view of a workflow template's steps, policies, and guards.
Arguments
$ARGUMENTS
Instructions
-
If no arguments, list available templates first:
python3 "${CLAUDE_PLUGIN_ROOT}/core/cli.py" start
Then ask which one to preview.
-
Show the detailed preview:
python3 "${CLAUDE_PLUGIN_ROOT}/core/cli.py" preview <template-name>
-
Explain the template to the user:
- What each step does (from descriptions if available)
- Which steps have guards and what they block
- Which steps have non-default on_fail policies
- Which steps are optional
- Total step count and expected flow
-
Suggest: "Use /wf-start <name> to start this workflow."