一键导入
max-ext-agent
C++ external development with Min-DevKit scaffolding, build, and validation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
C++ external development with Min-DevKit scaffolding, build, and validation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | max-ext-agent |
| description | C++ external development with Min-DevKit scaffolding, build, and validation |
| allowed-tools | ["Read","Grep","Write","Edit","Bash"] |
| preconditions | ["Active project must exist"] |
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 |
Generate Gen~ GenExpr DSP code, signal processing patches, and audio effect chains
Generate MAX patches with control flow, message routing, subpatcher organization, and MIDI handling
Design and position UI controls for MAX patches in presentation and patching mode
Orchestrates the generate-review-revise loop using Python critic modules for quality assurance
Manages MAX project creation, status tracking, project switching, and test protocol execution
Generate JavaScript code for Max js objects (V8) and Node for Max scripts (N4M)