بنقرة واحدة
max-critic
Orchestrates the generate-review-revise loop using Python critic modules for quality assurance
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Orchestrates the generate-review-revise loop using Python critic modules for quality assurance
التثبيت باستخدام 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
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)
RNBO export-aware patch generation, target validation, and param mapping
| name | max-critic |
| description | Orchestrates the generate-review-revise loop using Python critic modules for quality assurance |
| allowed-tools | ["Read","Write","Bash"] |
| preconditions | ["Generator agent has produced output (patch_dict and/or code)"] |
The critic agent runs the generate-review-revise loop on generated output before the user sees it. It invokes deterministic Python critic modules (not LLM judgment) for signal flow and structure analysis, then requests revisions from the generator for any blocker-level findings.
Before running the critic loop:
src/maxpat/critics/__init__.py for review_patch() and CriticResultreview_patch(patch_dict, code_context=None, ext_code=None, ext_archetype="message") from src.maxpat.criticslist[CriticResult] for severity levels: blocker, warning, notereview_rnbo) auto-invokes when rnbo~ boxes are detected in the patchreview_packages) auto-invokes when package objects (BEAP, Bach, community) are detected in the patchreview_external) invokes when ext_code is providedSee references/critic-protocol.md for the full loop specification.
Summary:
review_patch() on the output (RNBO and package critics are conditionally included based on detected objects)The critic loop applies equally to edited patches. After edits, validate_patch() runs, then review_patch() on patcher.to_dict(). The save path is save_patch_roundtrip(). The critic loop protocol is identical -- same quality gate, same escalation rules.
| Severity | Action | Blocks Output? |
|---|---|---|
| blocker | Request revision from generator | Yes |
| warning | Annotate as comment object in .maxpat or code comment | No |
| note | Annotate as comment object in .maxpat or code comment | No |
| Check | Severity | Trigger |
|---|---|---|
| BEAP missing output termination | warning | BEAP source with no path to bp.Stereo/bp.Mono |
| BEAP missing VCA gain staging | warning | BEAP oscillator directly to output without bp.VCA |
| Bach llll type mismatch | blocker | Non-bach outlet connected to bach llll inlet |
| Community package not extracted | warning | Community package object used without local extraction |
review_patch() on generator output/max-verify is invoked on existing outputvalidate_file() from src.maxpat instead)