Wf Compose logo

Wf Compose

Community
dioptx
wf-compose

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

Overview

Publisherdioptx
Repositoryweft
Skill namewf-compose
Stars
28
Forks
3
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by dioptx on GitHub. Read the source before you install it.

Installation

Install the Wf Compose AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/dioptx/weft/tree/main/skills/wf-compose
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dioptx/weft.git /tmp/weft
mkdir -p .claude/skills
cp -r /tmp/weft/skills/wf-compose .claude/skills/wf-compose
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Wf Compose in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Wf Compose on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Wf Compose is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

UsageBehavior
/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-workflowStart 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 <template> was provided, load it as the starting point:
    bash
    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):
    bash
    cat "${CLAUDE_SKILLS_REGISTRY:-$HOME/.claude/skills-registry.json}" 2>/dev/null
  2. List weft templates:
    bash
    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)
    • 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:
    bash
    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 gets a skill field. This is metadata — Claude reads it from context.md and knows which skill to invoke.
  • Loops are defined by loop_back_to on the last step of the repeating segment. The state machine handles the rest.
  • exit_condition is evaluated by Claude (natural language), not by scripts. Keep conditions specific and observable: "no MEDIUM+ issues" not "code is good enough".
  • max_iterations defaults to 3. If the user says "until done" without a cap, set it to 5 and note the cap.
  • Guards should prevent premature actions: no git push before review, no deploy before tests.
  • Template names are kebab-case. If the user doesn't name it, derive from the description.

Frequently asked questions

What does the Wf Compose AI skill do?

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

Why use Wf Compose on TypingMind?

Because you install it once and use it with any model. Wf Compose is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Wf Compose in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/dioptx/weft/tree/main/skills/wf-compose. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Wf Compose?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Wf Compose?

As many as you like. As long as a model supports skills, you can use Wf Compose with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Wf Compose AI skill free?

Yes. It is published on GitHub by dioptx under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇