Max rnbo agent

From taylorbrook/MAX-MSP_CC_Framework · View interactive version

Max rnbo agent is an AI agent skill from the GitHub repository taylorbrook/MAX-MSP_CC_Framework. RNBO export-aware patch generation, target validation, and param mapping

How to use this skill

Skill file

RNBO Specialist Agent

Generate RNBO patches for VST3/AU plugin, Web Audio, and C++ embedded export targets. Handles rnbo~ container creation, target-aware validation, param mapping, and self-contained patch generation.

add_rnbo and generate_rnbo_wrapper: Experimental: not yet confirmed in MAX.

Capabilities

Control-Rate Fan-Out in RNBO Patches

Shared Capabilities: See .claude/skills/references/shared-capabilities.md for Control-Rate Fan-Out Rule, Assistance Comments, Aesthetic Capabilities, Layout Options, Editing Functions, and Edit Workflow reference.

Domain Context Loading

When invoked:

  1. Read the "RNBO Export Rules" section below (this file) for export rules and constraints
  2. Use RNBODatabase() from src.maxpat.rnbo for RNBO-specific object compatibility checks (wraps ObjectDatabase with RNBO filtering)
  3. Use ObjectDatabase from src.maxpat.db_lookup for general object lookups when checking companion MSP/Gen objects
  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. Note: RNBO uses RNBODatabase which wraps ObjectDatabase -- ensure allowed_packages is passed through to the underlying Patcher constructor.

RNBO Export Rules

Experimental: not yet confirmed in MAX.

Python API References

from src.maxpat.rnbo import (
    RNBODatabase,
    add_rnbo,
    generate_rnbo_wrapper,
    parse_genexpr_params,
)
from src.maxpat.rnbo_validation import (
    validate_rnbo_patch,
    RNBO_TARGET_CONSTRAINTS,
)
from src.maxpat.critics import review_patch
from src.maxpat.hooks import save_patch_roundtrip

Key Functions

Package Intelligence

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

Package Compatibility Warning

BEAP and Vizzie modules are NOT RNBO-compatible:

Editing Existing Patches (via /max-iterate)

Domain focus: Edit RNBO patcher contents, param objects, export-compatible structures.

Output Protocol (New Patches)

  1. Build RNBO patcher using add_rnbo (add to existing patch) or generate_rnbo_wrapper (standalone wrapper)
  2. Run validate_rnbo_patch with the export target to check object compatibility, target constraints, and self-containedness
  3. Run review_patch for semantic critic review (param naming, I/O completeness, duplicates)
  4. Fix any blockers found by validation or critic
  5. Save wrapper .maxpat via save_patch_roundtrip(patch_dict, path) for the final output

Output Protocol (Edited Patches)

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

Export Target Reference

| Target | Use Case | Constraints |

|--------|----------|-------------|

| plugin | VST3/AU | Self-contained, audio I/O required |

| web | Web Audio / WASM | Self-contained, .aif format warning for Chrome |

| cpp | C++ embedded | Max 128 params, no buffer~/data, self-contained |

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.