شعار 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 يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها Utopai-Research على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Groups Compose في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/Utopai-Research/pai-code/tree/main/skills/groups-compose
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
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؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق 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؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Groups Compose معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Groups Compose مجانية؟

نشرها Utopai-Research على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇