Groups Composeのロゴ

Groups Compose

組織
Utopai-Research
groups-compose

Designs and maintains semantic groupings and readable layouts on the filmmaking canvas — scenes, character-reference sets, act beats, and other titled visual frames. Use when nodes on the canvas cluster around a shared meaning and would read more clearly if arranged together and wrapped in a frame. Don't force it — groups are a view concern, not an organizing tax.

概要

公開者Utopai-Research
リポジトリpai-code
スキル名groups-compose
スター
352
フォーク
44
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

When to propose

  • 3+ nodes share a clear semantic tie (same scene, same character, same beat)
  • The relationship would be obvious to a reader within 2 seconds of scanning the canvas
  • You can write a ≤ 30-character title that names the tie

Skip if fewer than 3 members or the tie is just generation order.

Contract

  • Use canvas_layout.js to write member positions and groupFrames in one atomic sidecar update.
  • Never write or edit workflow.json; never put x / y into node data.
  • A layout change may move member nodes when that makes the canvas clearer.
  • The frame's geometry (x, y, width, height) is a bounding box computed from the final member positions.
  • A node may appear in at most one frame; evict it from old frames in the same update.
  • No nested frames.
  • frameId: frame_<unix_ms>. Titles ≤30 chars recommended.

Patterns

Pick the one that fits. Grouping is current canvas state; read workflow.json per the project PROJECT_AGENT.md § "Choosing context" to verify ids.

1. Scene grouping

  • Triggers: 3+ prompt/note/image/video nodes around one location, beat, or plot point.
  • Title: Scene <N> — <location or beat>.
  • Typical size: 3–8 members.
  • Members: prompt/shot/image_result/video_result plus scene-scoped notes.
  • Layout: place the script/shot note on the left, then images/videos in reading order to the right. Put attached voice/audio below the source card.

2. Character-reference set

A character card + its reference images.

  • Triggers: ≥2 images of the same character.
  • Title: <Character name> — references.
  • Typical size: 2–6 images.
  • Members: any image_result nodes depicting the same character.
  • Layout: hero/reference card first, variations in a compact grid, attached voice node below.

3. Act / beat grouping

  • Triggers: the user framed the session at act/beat granularity ("everything for act 2", "the whole chase sequence", "opening titles").
  • Title: Act <N> or beat name.
  • Typical size: 8–15 members. If larger, prefer splitting into scene subgroups instead.
  • Members: all nodes that belong to that act/beat, spanning multiple scenes.
  • Layout: arrange scene clusters left-to-right in story order, with enough gutter that frames do not overlap.

4. Production-state grouping (opt-in)

  • Use only when user explicitly sorts by quality/status: approved, draft, rejected, WIP, final.
  • Title: one status word.
  • Typical size: open-ended.

Recipe

  1. Read ./workflow.json + ./canvas_positions.json. workflow.json gives you node ids + labels + subtypes; canvas_positions.json gives you each node's x / y AND the existing groupFrames map. Reads are unrestricted; writes go through canvas_layout.js.

  2. Pick members. Identify which nodes belong in the proposed frame by looking at their ids, labels, prompts, and subtypes. Keep only ids that actually exist in nodes.

  3. Plan positions. Preserve existing positions when they already read well. Otherwise move the selected nodes into a compact layout for the chosen pattern. Use these default gaps:

    • horizontal card gap: 40 px
    • vertical row gap: 36 px
    • frame padding: 24 px
  4. Evict existing frame members in the same layout JSON:

    • If the old frame would still have ≥ 2 members after eviction: include it under groupFrames.upsert with memberIds minus the evictee.
    • If the old frame would have < 2 members: include its id under groupFrames.delete.
  5. Compute frame bboxes from final member positions with 24px padding. Fallback sizes:

    • note: 280 × 420 (width hardcoded; height = NOTE_CARD_FALLBACK_HEIGHT for first paint)
    • image_result: 290 × 220 (16:9 default; if data.metadata.aspect_ratio is present, scale accordingly)
    • video_result: 290 × 220 (same caveat; check data.aspect or data.metadata.aspect_ratio)
    • audio_result: 240 × 64
    • pending / pending_generation / pending_attachment: 260 × 200

    If measured heights appear in canvas_positions.json, prefer them.

    minX = min(node.x for each member)
    minY = min(node.y for each member)
    maxX = max(node.x + node.w for each member)
    maxY = max(node.y + node.h for each member)
    x = minX - 24
    y = minY - 24
    width  = (maxX - minX) + 48
    height = (maxY - minY) + 48
  6. Decide title + hue. Default hue 200 if you have no signal.

  7. Apply one layout update with all node moves and frame changes:

    node "$PAI_REPO_ROOT/server/cli/canvas_layout.js" \
      --layout-json '{"positions":{"note_2":{"x":120,"y":80},"image_3":{"x":440,"y":80},"video_1":{"x":760,"y":80}},"groupFrames":{"upsert":{"frame_1716579123456":{"memberIds":["note_2","image_3","video_1"],"x":96,"y":56,"width":978,"height":468,"hue":200,"title":"Scene 1 — Causeway"}},"delete":[]}}'
  8. Extending an existing frame — same CLI/frameId, full new memberIds, recomputed bbox.

  9. Confirm to the user in one sentence. Example: "Grouped the three Morris reference shots under their own frame."

What not to do

  • Don't propose groupings proactively when there's no clear semantic tie — wait until grouping earns the frame.
  • Don't use grouping as a generic tidy operation when there is no semantic tie.
  • Don't write canvas_positions.json directly. Use canvas_layout.js so positions and frames apply together.
  • Don't call removed workflow group ops (addGroup, updateGroup, deleteGroup).
  • Don't nest (put one frame's id inside another frame's memberIds).
  • Don't assign a node to two frames. Include any eviction in the same layout update.

よくある質問

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

Designs and maintains semantic groupings and readable layouts on the filmmaking canvas — scenes, character-reference sets, act beats, and other titled visual frames. Use when nodes on the canvas cluster around a shared meaning and would read more clearly if arranged together and wrapped in a frame. Don't force it — groups are a view concern, not an organizing tax.

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

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

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

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

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

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

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

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

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

Utopai-ResearchがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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