Command Palette

Search for a command to run...

Назад к скиллам
скилл № 18649

wf-compose

Propose a weft workflow from conversation context. Scans skills, identifies gaps, builds template with loops.

БесплатноБез исполняемых скриптов
dioptxот dioptx★ 31 звезда на GitHub

Установить wf-compose в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

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:
    git branch --show-current 2>/dev/null
    git diff --stat 2>/dev/null | tail -5
    
  3. Check if a weft workflow is already active:
    python3 "${CLAUDE_PLUGIN_ROOT}/core/cli.py" status 2>/dev/null
    
  4. If --from <template> was provided, load it as the starting point:
    python3 "${CLAUDE_PLUGIN_ROOT}/core/cli.py" preview <template>
    

Step 2: Scan Skill Registry

Build a map of what skills are available:

  1. Read the local skills registry, if any (path varies by setup):
    cat "${CLAUDE_SKILLS_REGISTRY:-$HOME/.claude/skills-registry.json}" 2>/dev/null
    
  2. List weft templates:
    python3 "${CLAUDE_PLUGIN_ROOT}/core/cli.py" start
    
  3. Categorize skills by function (examples — substitute what you have available):
    • Review: staff-review, arch-review, code-review, differential-review
    • Fix/Polish: fix-polish, refactor, simplify
    • Test: infra-test, webapp-testing
    • Plan: aot-plan, spec-first
    • Research: perplexity, context7, research-loop
    • Deploy: deploy-service, pr-ready

Step 3: Gap Analysis

Compare what the user described against available skills:

  1. Extract skill references from the user's description (explicit names like "/staff-review" or implicit like "review code", "test it", "deploy").
  2. For each referenced skill, check if it exists in the registry.
  3. For missing skills, present options:
    Missing skill: /devils-advocate
    Options:
    1. Create a stub skill (I'll generate a skeleton)
    2. Use /staff-review instead (similar purpose)
    3. Skip this step
    
  4. Wait for user choice on each gap before proceeding.

Step 4: Generate Template

Build a v2 template JSON:

  1. Map each step in the user's described workflow to a template step.

  2. For each step, set:

    • name: kebab-case identifier
    • skill: the matching skill name (e.g., "/staff-review"), or null if manual
    • on_fail: "retry" for review/test steps, "block" for critical gates, "continue" for optional steps
    • guards: add logical guards (e.g., no git push before review); guards also match commands inside MCP tool inputs, so set mcp_input: false on a dict guard for MCP tool-name-only matching or mcp_fields to add server-specific command keys for that guard.
    • description: one-line summary of what the step does
  3. For iterative segments (user said "until", "repeat", "loop", "iterate"):

    • Identify the loop boundary (which steps repeat)
    • Set loop_back_to on the last step of the loop, pointing to the first
    • Set max_iterations (default 3, or what the user specified)
    • Set exit_condition from the user's description (natural language)
  4. Add schema_version: 2 to the template root.

Step 5: Present to User

Show the proposed workflow in two formats:

ASCII Diagram

Draw the workflow as a flow diagram showing loops:

  ┌────────────┐     ┌───────────────┐     ┌─────────────┐
  │   review    │────>│  fix-issues   │────>│  run-tests   │
  │ /staff-rev  │     │ /fix-polish   │     │              │
  └────────────┘     └───────────────┘     └──────┬──────┘
        ^                                         │
        │        ↻ until clean (max 3)            │
        └─────────────────────────────────────────┘
                          │ done
                          v
                   ┌─────────────┐
                   │    ship     │
                   │  /pr-ready  │
                   └─────────────┘

For linear segments, use a simple arrow chain:

  setup ──> plan ──> implement ──> verify

JSON Preview

Show the full template JSON, formatted for readability.

Prompt

Ask the user:

Approve this workflow? (approve / edit / cancel)
- approve: Save template and optionally start it
- edit: Describe what to change
- cancel: Discard

Step 6: Save and Start

On approve:

  1. Save the template:
    echo '<json>' | python3 "${CLAUDE_PLUGIN_ROOT}/core/cli.py" save-template
    
  2. Ask: "Start this workflow now? (y/n)"
  3. If yes: invoke /wf-start <template-name>

On edit:

  1. Ask what to change
  2. Modify the template
  3. Go back to Step 5 (re-present)

On cancel:

  1. Discard and confirm

Design Rules

  • Every step with a matching skill
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Bash
  2. 02Read
  3. 03Write
  4. 04Glob
  5. 05Grep

FAQ

Что делает скилл wf-compose?

Propose a weft workflow from conversation context. Scans skills, identifies gaps, builds template with loops.

Как установить скилл wf-compose?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл wf-compose запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить wf-compose с