--- name: wf-compose description: "Propose a weft workflow from conversation context. Scans skills, identifies gaps, builds template with loops." argument-hint: "[description] [--from template-name]" allowed-tools: [Bash, Read, Write, Glob, Grep] --- # Compose a Weft Workflow Read the conversation context, scan available skills, identify gaps, and propose a v2 workflow template with loops and skill blocks. ## Arguments $ARGUMENTS ## Modes | Usage | Behavior | |-------|----------| | `/wf-compose "review, fix, iterate until clean"` | One-shot: propose from description | | `/wf-compose` (no args) | Interactive: ask "What are you trying to accomplish?" | | `/wf-compose --from feature-workflow` | Start from existing template, modify based on context | ## Step 1: Gather Context Understand what the user is trying to do: 1. Review the recent conversation for intent (what task, what repo, what outcome). 2. Check git state: ```bash git branch --show-current 2>/dev/null git diff --stat 2>/dev/null | tail -5 ``` 3. Check if a weft workflow is already active: ```bash python3 "${CLAUDE_PLUGIN_ROOT}/core/cli.py" status 2>/dev/null ``` 4. If `--from