mcpbeat Sign in

Groups Compose Agent Skill

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.

2k tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
320
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/Utopai-Research/pai-pro --skill groups-compose

The instruction itself

9 sections, as written by the author

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

  • 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.
  • 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.
  • 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
  • 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.
  • 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
  • Decide title + hue. Default hue 200 if you have no signal.
  • 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":[]}}'
  • Extending an existing frame — same CLI/frameId, full new memberIds, recomputed bbox.
  • 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.

Other skills for the same job

different authors, same section of the catalogue
Legacy Circuit Mockups
by github
vendor ×1

Generate breadboard circuit mockups and visual diagrams using HTML5 Canvas drawing techniques. Use when asked to create circuit layouts, visualize electronic component placements, draw breadboard diagrams, mockup 6502 builds, generate retro computer schematics, or design vintage electronics projects. Supports 555 timers, W65C02S microprocessors, 28C256 EEPROMs, W65C22 VIA chips, 7400-series logic gates, LEDs, resistors, capacitors, switches, buttons, crystals, and wires.

37k tokens
Hyperframes Keyframes
by aiskillstore
×1

> Use when a HyperFrames composition needs seek-safe 2D/3D keyframes, GSAP timelines, CSS keyframes, Anime.js, WAAPI, FLIP, paths, masks, SVG morph/draw, text trails, 3D depth, or `hyperframes keyframes` diagnostics. Don't use for broad scene strategy, brand design, media sourcing, captions, or general video planning.

17k tokens
Anydesign
by uxKero
×1

Analyze images, websites, and Figma files to extract their design and generate a `design.md` with token system, component inventory, and reconstruction notes. Use this skill whenever the user wants to understand, document, replicate, or audit the design of something visual: a screenshot, a URL, a Figma link, a Pinterest reference, a mockup, a competitor's site, a component, a dashboard, a landing page. Also when they ask 'extract the design system from X', 'document the style of Y', 'analyze this visually', 'convert this image into tokens', 'help me replicate this design', 'what palette does this site use', 'how is this built'. Also for single elements: 'copy this navbar', 'recreate this illustration', 'give me a prompt to regenerate this graphic' — element mode outputs a focused element.md, with token-grounded image-model prompts when the element is visual art. If the user brings any visual source and wants to understand it at a design level — this skill should activate.

728k tokens scripts
Brandkit
by lornshrimp
×1

Premium brand-kit image generation skill for creating high-end brand-guidelines boards, logo systems, identity decks, and visual-world presentations. Trained for minimalist, cinematic, editorial, dark-tech, luxury, cultural, security, gaming, developer-tool, and consumer-app brand systems. Optimized for intentional logo concepting, refined composition, sparse typography, strong symbolic meaning, premium mockups, art-directed imagery, and flexible grid layouts.

4k tokens
Imagegen Frontend Mobile
by lornshrimp
×1

Elite mobile app image-generation skill for creating premium, app-native screen concepts and flows. Designed for iOS, Android, and cross-platform mobile products. Prioritizes clean hierarchy, comfortably readable text, strong multi-screen consistency, controlled color palettes, non-generic creative direction, textured surfaces, image-led composition, tasteful custom iconography, and clean phone mockup framing. By default, screens should be shown inside a subtle premium iPhone or similar phone mockup with a visible frame, while the main focus stays on the app content itself. This skill generates images only. It does not write code.

10k tokens
Perf Web Optimization
by christophacham
×1

Optimize web performance: bundle size, images, caching, lazy loading, and overall page speed. Use when site is slow, reducing bundle size, fixing layout shifts, improving Time to Interactive, or optimizing for Lighthouse scores. Triggers on: web performance, bundle size, page speed, slow site, lazy loading. Do NOT use for Core Web Vitals-specific fixes (use core-web-vitals), running Lighthouse audits (use perf-lighthouse), or Astro-specific optimization (use perf-astro).

4k tokens
Brandkit
by nexu-io

| Premium brand-kit image generation skill for creating high-end brand-guidelines boards, logo systems, identity decks, and visual-world presentations. Trained for minimalist, cinematic, editorial, dark-tech, luxury, cultural, security, gaming, developer-tool, and consumer-app brand systems. Optimized for intentional logo concepting, refined composition, sparse typography, strong symbolic meaning, premium mockups, art-directed imagery, and flexible grid layouts.

4k tokens
Gsap Performance
by nexu-io

| Official GSAP skill for performance — prefer transforms, avoid layout thrashing, will-change, batching. Use when optimizing GSAP animations, reducing jank, or when the user asks about animation performance, FPS, or smooth 60fps.

1k tokens

How to use it

Copy the folder

Take utopai-research/groups-compose from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.