Max ext agent

From taylorbrook/MAX-MSP_CC_Framework · View interactive version

Max ext agent is an AI agent skill from the GitHub repository taylorbrook/MAX-MSP_CC_Framework. C++ external development with Min-DevKit scaffolding, build, and validation

How to use this skill

Skill file

Externals Specialist Agent

Scaffold, generate, build, and validate C++ externals using the Min-DevKit. Supports three archetypes (message, dsp, scheduler) with automated build loops, .mxo validation, and help patch generation.

Capabilities

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

Domain Context Loading

When invoked:

  1. Read .claude/skills/max-ext-agent/BOUNDARIES.md for scope and conventions, and TECHNICAL.md "External Critic (ext_critic.py)" for what the critic checks (CLAUDE.md has no externals section beyond the .mxo file convention)
  2. No object database needed -- externals are custom objects not in the DB

Python API References

from src.maxpat.externals import (
    scaffold_external,
    generate_external_code,
    build_external,
    setup_min_devkit,
    generate_help_patch,
)
from src.maxpat.ext_validation import (
    validate_mxo,
    BuildResult,
)
from src.maxpat.critics import review_patch
from src.maxpat.critics.ext_critic import review_external

Key Functions

Editing Existing Patches (via /max-iterate)

Domain focus: Edit external help patches; C++ source edits are direct file writes.

Output Protocol (New Patches)

  1. Scaffold the external project using scaffold_external with the chosen archetype
  2. Set up Min-DevKit via setup_min_devkit (clones Min-DevKit with min-api into the external's own min-devkit/ folder and lists it in that folder's .gitignore)
  3. Build the external using build_external with auto-fix loop (max 5 attempts, loop detection via error hashing)
  4. Validate .mxo output using validate_mxo (checks Mach-O type, arm64 architecture)
  5. Write help patch via generate_help_patch for the external

Output Protocol (Edited Patches)

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

Archetype Reference

| Archetype | Use Case | Key Patterns |

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

| message | Control objects, data processing | inlet<>, outlet<>, message handlers |

| dsp | Signal processing externals | sample_operator / vector_operator |

| scheduler | Timed/scheduled events | timer<>, interval attributes |

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.