Логотип 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

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

    Усе потрібне моделі міститься в інструкціях — жодних додаткових файлів для синхронізації.

  • Відкритий вихідний код

    Видавець на GitHub: Utopai-Research. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Groups Compose у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/Utopai-Research/pai-code/tree/main/skills/groups-compose
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

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

Увімкніть навичку Groups Compose в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Groups Compose, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Groups Compose не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл 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.

Поширені запитання

Що робить навичка ШІ 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.

Навіщо використовувати Groups Compose у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Groups Compose — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Groups Compose у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/Utopai-Research/pai-code/tree/main/skills/groups-compose. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Groups Compose?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Groups Compose?

Зі скількома забажаєте. У TypingMind ви можете використовувати Groups Compose із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Groups Compose?

На GitHub цю навичку публікує Utopai-Research. Умови ліцензування дивіться в репозиторії. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇