/weft:wf-template [template-name] (new name to create, or existing name to edit)from weft
Creates or edits weft workflow templates interactively. Guides through naming, steps, policies, and guards.
Ships in weft. 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.
None: SKILL.md is the whole skill.
Build a new workflow template through conversation, or load an existing one and modify it. Both paths end by piping the template JSON to save-template.
$ARGUMENTS
First decide the mode. If the named template already exists, edit it; otherwise create a new one. List templates if unsure:
python3 "${CLAUDE_PLUGIN_ROOT}/core/cli.py" start
If no name in arguments, ask: "What should this workflow be called? (lowercase, hyphens ok)"
Ask: "One-line description of what this workflow does?"
Ask: "List the steps in order. You can describe them naturally and I'll structure them."
Example: "first plan the work, then implement it, run tests, do a code review, then push" → Parse into: plan, implement, test, review, push
For each step, confirm the default on_fail: block, or pick:
retry — auto-retry once on failurecontinue — skip failed step and move onblock — halt until manual retry (default)Suggest sensible defaults: test steps → retry, optional steps → continue.
Ask: "Should any steps block certain commands? For example, blocking git push until tests pass."
If yes, collect: which step, the regex pattern (e.g. git push, git commit), and the message to show when blocked.
Guards also match commands inside MCP tool inputs; set mcp_input: false on a dict guard for MCP tool-name-only matching, or mcp_fields to add command keys used by a server for that guard.
python3 "${CLAUDE_PLUGIN_ROOT}/core/cli.py" preview <name>
Display the current template with all step details, guards, and policies.
Ask: "What would you like to change?" Supported modifications:
If the original is a plugin-bundled template, always save as a project-local override (don't modify plugin files). Ask whether to overwrite or save under a new name.
Show the full template and ask: "Look good? Save it?" Then save:
echo '<template_json>' | python3 "${CLAUDE_PLUGIN_ROOT}/core/cli.py" save-template
The template is saved to .claude/weft/templates/<name>.json in the project directory.
Tell the user: "Template saved! Start it with /wf-start <name>"
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dioptx/weft --plugin weft13 skills in this plugin
/ev-queryQuery the weft event log with filters. Use only when user types /ev-query./wf-abortAbort the current weft workflow. Use only when user types /wf-abort./wf-analyzeAnalyze weft workflow runs for timing and friction. Use only when user types /wf-analyze./wf-composePropose a weft workflow from conversation context. Scans skills, identifies gaps, builds template with loops./wf-doctorCheck weft template currency — drift of working copies vs the bundled canonical, and whether the plugin clone is behind upstream. Use only when user types /wf-doctor./wf-previewPreview a weft workflow template with full step details. Use only when user types /wf-preview.Other plugins' skills for the same job