Wf Composeのロゴ

Wf Compose

コミュニティ
dioptx
wf-compose

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

概要

公開者dioptx
リポジトリweft
スキル名wf-compose
スター
28
フォーク
3
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    dioptxがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルWf ComposeをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/dioptx/weft/tree/main/skills/wf-compose
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでWf Composeを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にWf Composeを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Wf Composeは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

よくある質問

AIスキル「Wf Compose」では何ができますか?

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

TypingMindでWf Composeを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Wf Composeはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにWf Composeをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/dioptx/weft/tree/main/skills/wf-composeを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Wf Composeを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Wf Composeは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもWf Composeを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Wf Compose」は無料ですか?

はい。dioptxがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇