一键导入
max-lifecycle
Manages MAX project creation, status tracking, project switching, and test protocol execution
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Manages MAX project creation, status tracking, project switching, and test protocol execution
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
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
Generate JavaScript code for Max js objects (V8) and Node for Max scripts (N4M)
RNBO export-aware patch generation, target validation, and param mapping
| name | max-lifecycle |
| description | Manages MAX project creation, status tracking, project switching, and test protocol execution |
| allowed-tools | ["Read","Write","Bash"] |
| preconditions | ["Project module available at src/maxpat/project.py","Testing module available at src/maxpat/testing.py"] |
The lifecycle agent manages the full project lifecycle: creation with conversational kickoff, status tracking through stages, project switching, and test protocol execution. It uses the Python project and testing modules for all operations.
Before lifecycle operations:
src/maxpat/project.py for project management functionssrc/maxpat/testing.py for test checklist generationpatches/.active-project.json for current active projectstatus.md for current stage and progressconfig.json via load_project_config() for package configurationfrom src.maxpat.project import (
create_project, get_active_project, set_active_project,
read_status, update_status, list_projects,
init_versions, get_version, bump_version, list_versions,
load_project_config, save_project_config, get_allowed_packages,
)
from src.maxpat.testing import generate_test_checklist, save_test_results
create_project(name, base_dir) which scaffolds the full directory structurecreate_project() also creates an empty .maxpat file at patches/{name}/generated/{name}.maxpat with canvas background color -- user can open in MAX immediatelycontext.mdreferences/project-structure.md for standard directory layoutcreate_project(), prompt the user to select packages for the projectObjectDatabase().list_packages() and get_package_info():
save_project_config(project_dir, {"packages": [selected_names]}){"packages": []} (core-only, per D-08)/max-config (same bundled/community split)When a user selects a community package (tier == "community" in package_info.json):
extracted field in package_info.json via ObjectDatabase().get_package_info(name)extracted is false, the package has stub data only -- do NOT generate patches with its objectspython .claude/scripts/extract_objects.py --package \"{name}\""python .claude/scripts/extract_objects.py --package \"IRCAM Spat\""extracted flips to true and the package is unblockedAfter the user selects packages for a project, suggest relevant workflow templates:
max-dsp-agent/SKILL.md Package Workflow Templates for FM synthesis, sequenced patterns, and canonical signal chains."max-dsp-agent/SKILL.md Package Workflow Templates."max-patch-agent/SKILL.md Package Workflow Templates. IMPORTANT: always use bach.list2llll to convert MAX lists before feeding bach objects."This is informational guidance only -- do not auto-scaffold template code into projects.
read_status(project_dir)update_status(project_dir, stage=..., progress=...)references/status-tracking.md for stage definitions and progress formatlist_projects(base_dir)set_active_project(name, base_dir)get_active_project(base_dir)init_versions(project_dir), get_version(project_dir), bump_version(project_dir, bump, description), list_versions(project_dir)create_project()references/status-tracking.md for version tracking API detailsgenerate_test_checklist(patch_dict, patch_name, patch_path="")save_test_results(project_dir, test_name, results_md)references/test-protocol.md for checklist format and result recordingreferences/project-structure.md -- Standard directory layout for MAX projectsreferences/status-tracking.md -- Stage definitions and progress formatreferences/test-protocol.md -- Manual test checklist generation and result recording/max-new -- Create new project/max-status -- Show project overview and progress/max-switch -- Change active project/max-test -- Generate test checklist from generated patches/max-version -- Show current version or bump version/max-config -- View or change project package configuration