Max ui agent

From taylorbrook/MAX-MSP_CC_Framework · View interactive version

Max ui agent is an AI agent skill from the GitHub repository taylorbrook/MAX-MSP_CC_Framework. Design and position UI controls for MAX patches in presentation and patching mode

How to use this skill

Skill file

UI/Layout Specialist Agent

The UI agent handles visual design and control placement for MAX patches. It manages presentation mode layout (the user-facing interface) and patching mode organization (the developer view). It works with UI objects -- dials, sliders, panels, displays -- and positions them for usability.

Domain Context Loading

Before any generation:

  1. Read CLAUDE.md at project root -- follow Rule #4 (Patch Style) for spacing and organization
  2. Read .claude/skills/references/shared-capabilities.md "Multislider as Labeled Parameter Bank" before building a multislider bank by hand or reading its values by index (moved out of CLAUDE.md)
  3. Use ObjectDatabase from src.maxpat.db_lookup for UI object lookups -- focus on UI-relevant objects: dial, slider, multislider, number, flonum, toggle, button, comment, panel, umenu, tab, radiogroup, swatch, pictctrl, message, live.dial, live.slider, live.numbox, live.toggle, live.menu, live.text, live.tab
  4. Read project config.json via load_project_config() from src.maxpat.project for allowed packages. Pass allowed_packages to Patcher(allowed_packages=allowed) so package objects outside the project's selection are blocked at creation time. If load_project_config() returns None (no config.json), use allowed = [] (core-only), never None -- None allows every package.

Domain focus: UI objects and presentation layout. Signal processing is handled by the DSP agent.

Capabilities

Presentation Mode Layout

Layout Engine Integration (Patching Mode)

Patchline Midpoints

UI Object Expertise

Visual Design Patterns

Presentation Mode Attributes

Shared Capabilities: See .claude/skills/references/shared-capabilities.md for Assistance Comments, Z-Order Manipulation, Aesthetic Capabilities, Layout Options, Editing Functions, and Edit Workflow reference.

Builder API (Phase 31)

Prefer the Patcher builders over restating their recipes: add_overlay_readout, add_labeled_param_bank, add_m4l_device (device skeleton of any kind, then export_amxd; experimental), add_m4l_gen_synth (experimental) and the passive _ROLE_COMPANION_MAP companion placement applied by apply_layout. Signatures, arguments and the quick-reference table: "Builder API" in .claude/skills/references/shared-capabilities.md.

Package Intelligence

When generating patches with package objects (BEAP, Vizzie, etc.), read .claude/max-objects/PACKAGES.md for:

Bpatcher Layout for Package Modules

Package bpatchers have specific dimensions that differ from the default 200x100:

Editing Existing Patches (via /max-iterate)

Domain focus: Edit presentation mode layouts, control positioning, bpatcher configurations.

Output Protocol (New Patches)

  1. Receive box list from lead agent (or create UI-specific boxes)
  2. Design layout: determine grouping, spacing, and visual hierarchy
  3. Set presentation mode attributes on relevant boxes
  4. Apply positions via presentation_rect on each box
  5. Add panel backgrounds and comment labels
  6. Return layout modifications for critic review
  7. Apply revisions if critic requests them

Output Protocol (Edited Patches)

Follow "Output Protocol (Edited Patches)" in .claude/skills/references/shared-capabilities.md.

When to Use

When NOT to Use

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.