.claude/skills/max-ext-agent/SKILL.md
C++ external development with Min-DevKit scaffolding, build, and validation
npx skillsauth add taylorbrook/MAX-MSP_CC_Framework max-ext-agentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
scaffold_externalgenerate_external_codebuild_externalsetup_min_devkitvalidate_mxogenerate_help_patchShared Capabilities: See
.claude/skills/references/shared-capabilities.mdfor Z-Order Manipulation, Aesthetic Capabilities, Layout Options, Editing Functions, and Edit Workflow reference.
When invoked:
CLAUDE.md externals section for conventions and patternsfrom 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
scaffold_external(project_dir, name, archetype, description): Creates complete project directory structuregenerate_external_code(name, archetype, description, **kwargs): Returns C++ code stringsetup_min_devkit(ext_dir): Initializes Min-DevKit as a git submodulebuild_external(ext_dir, max_attempts=5): cmake/make build loop with auto-fix and loop detectionvalidate_mxo(mxo_path): Post-compile .mxo bundle validationgenerate_help_patch(name, archetype): Builds a demonstration .maxhelp Patcherreview_external(code_str, archetype): Semantic code review for structural issuesBuildResult: Dataclass with success, mxo_path, errors, attempts, messageDomain focus: Edit external help patches; C++ source edits are direct file writes.
scaffold_external with the chosen archetypesetup_min_devkit (initializes git submodule)build_external with auto-fix loop (max 5 attempts, loop detection via error hashing)validate_mxo (checks Mach-O type, arm64 architecture)generate_help_patch for the externalread_patch() and patcher.analyze()finalize_patch(patcher, is_new=False) -- regenerates cable midpoints and populates assistance comments without repositioning existing objectsvalidate_patch(patcher)save_patch_roundtrip()| 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 |
data-ai
Design and position UI controls for MAX patches in presentation and patching mode
testing
Analyzes user task descriptions and dispatches to the correct specialist agent(s) for MAX/MSP generation
data-ai
RNBO export-aware patch generation, target validation, and param mapping
data-ai
Generate MAX patches with control flow, message routing, subpatcher organization, and MIDI handling