Multi Agent Imageのロゴ

Multi Agent Image

コミュニティ
kangarooking
multi-agent-image

Hermes向けの独立したマルチエージェント画像生成スキルです。内部デザインコンパイラ、apimart.ai経由のGPT-Image-2生成、事例ライブラリの再利用、参考画像の対話型選択、一括処理、スタイルに一貫性のあるシリーズ生成を備えています。

Add to TypingMind

概要

公開者kangarooking
リポジトリkangarooking-skills
スキル名multi-agent-image
スター
662
フォーク
110
同梱ファイル
17
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 17個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kangarooking/kangarooking-skills.git /tmp/kangarooking-skills
mkdir -p .claude/skills
cp -r /tmp/kangarooking-skills/multi-agent-image .claude/skills/multi-agent-image
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

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

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

スキルの指示

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

Multi-Agent Image

multi-agent-image is a standalone Hermes skill for image generation workflows.

It is designed for cases where a simple one-line prompt is not enough. Instead of sending raw user input directly to an image model, this skill:

  1. analyzes the request,
  2. compiles it into a design-aware prompt,
  3. generates through gpt-image-2,
  4. archives the result,
  5. and optionally reuses successful outputs as future style references.

This skill is independent at runtime. The design compiler is built into this repository and does not require an external skill.

When to Use

Use this skill when the user wants one or more of the following:

  • Design-oriented poster generation
  • Product images or ad visuals
  • PPT cover visuals or chapter art
  • Infographic-like or teaching/demo visuals
  • Style reference reuse from prior generations
  • Interactive “show examples first, then generate” flow
  • Batch generation for multiple directions or aspect ratios
  • Series generation where multiple images should share one visual language

Do not use this skill for:

  • pixel-accurate UI recreation
  • editable charts
  • exact typography output inside the image
  • tasks that require vector, HTML, or PPT-native assets rather than raster images

Architecture

text
User Request
    ↓
[Prompt Engineer]
    ↓
[Style Scout]
    ↓
[Internal Design Compiler]
    ↓
[GPT-Image-2 Generation]
    ↓
[QA + Archive]
    ↓
[Case Library]

Optional layers on top of the main path:

  • Interactive reference selection
  • Batch generation
  • Series generation

Setup

1. Deploy the skill

The skill source lives in:

bash
~/.hermes/skills/multi-agent-image/

Install runtime files into the working directory:

bash
python3 ~/.hermes/skills/multi-agent-image/scripts/install.py

This prepares:

  • ~/.hermes/agents/multi-agent-image/output/
  • ~/.hermes/agents/multi-agent-image/case_library/
  • agent role folders and memory files
  • local runtime scripts copied from the skill

2. Install Python dependencies

bash
pip install openai requests

3. Set API key

bash
export OPENAI_API_KEY="sk-..."

This key is used with the apimart-compatible GPT-Image-2 endpoints in this skill.

Core Components

scripts/design_compiler.py

Internal prompt compiler.

Responsibilities:

  • detect task type
  • choose defaults for aspect and quality
  • build design_reasoning
  • compress it into compiled_brief
  • produce the final generation prompt

This is the core logic that makes the skill independent.

scripts/design_image.py

CLI entrypoint for the internal compiler.

Use it when you want:

  • prompt-only output
  • a local design compilation test
  • direct generation without the full multi-agent workflow

Example:

bash
cd ~/.hermes/agents/multi-agent-image
python3 design_image.py \
  --task poster \
  --brief "AI训练营招生海报,强调速度、增长、实战" \
  --direction balanced \
  --aspect 3:4 \
  --prompt-only

It prints:

  • design_reasoning
  • compiled_brief
  • prompt
  • settings

scripts/orchestrator_v2.py

Main workflow entrypoint.

Responsibilities:

  • run prompt analysis
  • choose task and generation parameters
  • optionally select a reference from the case library
  • call the internal compiler
  • call GPT-Image-2
  • archive outputs
  • auto-save successful results into the case library

scripts/gpt_image2_generator.py

Low-level GPT-Image-2 client.

Responsibilities:

  • submit async generation tasks
  • poll task status
  • download image results

Use this when you want direct API access without the full workflow.

scripts/case_library.py

Persistent library of past generations.

Responsibilities:

  • save outputs by task type
  • store metadata and rating
  • search by brief, prompt, or tags
  • return image paths for reuse as references

scripts/case_selector.py

Interactive helper for Hermes dialogue flows.

Responsibilities:

  • render user-facing selection text
  • parse replies like 1, n, case_001, or 搜索蓝色

scripts/interactive_run.py

Two-phase dialogue wrapper.

Use it when the workflow needs to ask the user before generating.

scripts/batch_generator_v2.py

Batch generation entrypoint.

Supports:

  • same brief, multiple directions
  • same brief, multiple aspect ratios
  • multiple briefs in one run

scripts/series_generator.py

Style-consistent series generator.

Workflow:

  1. generate a master image
  2. extract style signals from its compiled brief
  3. generate child images that follow the same visual system

templates/linear_batch.py

Editable template for resumable sequential runs.

Useful when you want:

  • explicit scene lists
  • filesystem-based progress monitoring
  • style propagation from the first generated image

Internal Design Compiler

The internal compiler produces three layers:

1. design_reasoning

This captures design intent before generation.

Typical fields:

  • task
  • communication_goal
  • audience
  • channel
  • visual_system
  • hierarchy_strategy
  • safe_zone_strategy
  • lighting_strategy
  • palette_strategy
  • anti_filler_rules
  • anti_slop_rules

2. compiled_brief

This is a compressed design brief for generation.

It includes:

  • what the image is for
  • what should dominate visually
  • what space should remain available
  • what to avoid

3. prompt

Final model-facing prompt used for GPT-Image-2.

The prompt is generated from design logic, not just from a list of style keywords.

Supported Tasks

The built-in compiler understands these task classes:

  • poster
  • product
  • ppt
  • infographic
  • teaching
  • auto

Default aspect assumptions:

  • poster → 3:4
  • product → 1:1
  • ppt → 16:9
  • infographic → 4:3
  • teaching → 16:9

Direction modes:

  • conservative
  • balanced
  • bold

Quality modes:

  • draft
  • final
  • premium

Current generation channel:

  • gpt-image-2

Usage

Quick start

bash
cd ~/.hermes/agents/multi-agent-image
python3 quick_start.py "AI训练营招生海报,强调速度、增长、实战"

Prompt-only compilation

bash
cd ~/.hermes/agents/multi-agent-image
python3 design_image.py \
  --task product \
  --brief "高端陶瓷咖啡杯电商首图,温暖晨光,突出釉面质感" \
  --prompt-only

Full orchestrated generation

python
from orchestrator_v2 import run

run("AI训练营招生海报,强调速度增长实战")

Force task and visual settings

python
from orchestrator_v2 import run

run(
    "高端咖啡杯商品图",
    task="product",
    direction="balanced",
    aspect="1:1",
    quality="final",
    use_reference=False,
)

Interactive Workflow

Use the two-phase pattern when Hermes should ask before generating.

Phase 1: prepare text for the user

python
from interactive_run import prepare

text = prepare("帮我做张 AI 训练营海报", task="poster")
print(text)

Phase 2: execute after the user chooses

python
from interactive_run import execute

result = execute("帮我做张 AI 训练营海报", user_choice="1", task="poster")

Supported reply patterns:

  • 1, 2, 3
  • n
  • y
  • case_001
  • 搜索蓝色

Batch Generation

Same brief, multiple directions

python
from batch_generator_v2 import batch_styles

batch_styles("AI训练营海报", task="poster")

Same brief, multiple aspect ratios

python
from batch_generator_v2 import batch_aspects

batch_aspects("AI训练营海报", task="poster", aspects=["1:1", "16:9", "9:16"])

Multiple briefs

python
from batch_generator_v2 import batch_briefs

batch_briefs(["海报A", "海报B", "海报C"], task="poster")

Series Generation

Use this when several outputs should feel like the same campaign or product family.

python
from series_generator import SeriesGenerator

sg = SeriesGenerator()
sg.create_series(
    master_brief="AI训练营系列视觉,科技蓝,专业商务感",
    items=[
        {"name": "主海报", "brief": "AI训练营招生主海报", "aspect": "3:4"},
        {"name": "Banner", "brief": "官网 Banner", "aspect": "16:9"},
        {"name": "朋友圈", "brief": "朋友圈推广方形图", "aspect": "1:1"},
    ],
    task="poster",
    direction="balanced",
)

Case Library

Case library directory:

text
~/.hermes/agents/multi-agent-image/case_library/

Output directory:

text
~/.hermes/agents/multi-agent-image/output/

Typical case structure:

text
case_library/
├── poster/
│   └── case_001_example/
│       ├── image.png
│       └── metadata.json

Typical metadata fields:

  • case_id
  • task
  • brief
  • prompt
  • params
  • tags
  • rating

Validation Guidance

Before generating at scale, test prompt quality first:

bash
python3 design_image.py \
  --task poster \
  --brief "AI训练营招生海报,强调速度、增长、实战" \
  --direction balanced \
  --aspect 3:4 \
  --prompt-only

What to check:

  • Does design_reasoning state a clear communication goal?
  • Is there an explicit safe zone?
  • Is hierarchy obvious?
  • Do anti_slop_rules remove HUD overlays, fog, and generic clutter?
  • Does the prompt describe a single strong visual idea rather than a pile of elements?

Current Limits

  • Current image provider is centered on gpt-image-2
  • QA scoring is intentionally lightweight
  • Series generation is heavier than one-off generation
  • The skill is optimized for raster outputs, not editable assets
  • Some reference documents remain longer than necessary, but the main runtime path is consistent

Version History

  • v1.0.0 Initial multi-agent workflow for GPT-Image-2 generation
  • v2.0.0 Added case library, interactive reference selection, and image-to-image style reuse
  • v2.1.0 Added stronger download retry logic, batch workflows, and series generation
  • v2.2.0 Packaged as a reusable Hermes skill with install script and runtime layout
  • v3.0.0 Internalized the design compiler and removed external runtime dependency

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Multi Agent Image」では何ができますか?

Hermes向けの独立したマルチエージェント画像生成スキルです。内部デザインコンパイラ、apimart.ai経由のGPT-Image-2生成、事例ライブラリの再利用、参考画像の対話型選択、一括処理、スタイルに一貫性のあるシリーズ生成を備えています。

TypingMindでMulti Agent Imageを使うメリットは何ですか?

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

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

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

Multi Agent Imageを使えるAIモデルはどれですか?

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

Multi Agent Imageで使えるAIモデルの数に制限はありますか?

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

AIスキル「Multi Agent Image」は無料ですか?

はい。kangarookingがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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