/tdmcp-skills:td-network-cleanupfrom TDMCP Skills
Organizes TouchDesigner operator networks into clean, readable layouts by aligning, spacing, annotating, and coloring operators after builds.
Ships in TDMCP Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Organize operator networks into clean, readable layouts. Only moves, resizes, colors, and annotates — never creates functional operators or changes parameters.
td-node-layout skill — required for spacing, padding formulas, and containment checks. Do not skip this steplist_operators(path, depth=2) for positions, sizes, overlaps, and existing annotations. Use get_connections(path, graph=true) for full signal flow topology in execution orderannotateCOMP ops before reorganizingnodeWidth/nodeHeight to compute bounding boxes. Replace long cross-network wires with selectCHOP chop parameter references — especially for merge inputs and fan-out patternsreposition_operators to batch-move operators (see Positioning below)annotation(parent_path=..., comment=...) around every functional group. All groups get annotated, not just complex onesop.nodeY >= ann.nodeY + 25 (bottom padding) and op.nodeY + op.nodeHeight <= ann.nodeY + ann.nodeHeight - 60 (60px top padding = 25px content gap + ~35px header). If any op fails, fix the annotation or move the opann1.nodeY + ann1.nodeHeight + 20 <= ann2.nodeY (vertically stacked) or ann1.nodeX + ann1.nodeWidth + 20 <= ann2.nodeX (side by side). Fix before proceedinglist_operators one more time. Check for: ops overlapping annotation headers, excessive margins, misaligned annotations, backward wires. Fix anything found. Repeat until cleanreposition_operators(parent_path, positions) with a dict of {name: [x, y]}. Preferred over execute_code for moving multiple opsedit_operator(path, nodeX, nodeY) for one-off movesannotation(path=..., ...) to update position/size/comment/color in place. No need to delete and recreateedit_operator(path, color=[r, g, b])Follow td-node-layout skill for spacing, alignment, and sizing formulas. Additional cleanup-specific rules:
annotation tool with parent_path, comment, nodeX, nodeY, width, height, color (RGB array 0-1)comment writes Titletext ONLY — the heading; it never touches the body. For any explanation longer than a heading, follow up with set_parameters on the annotateCOMP: Titletext = short heading, Bodytext = the explanation. Body pars: Bodyfontsize (def 10), Bodywordwrap (def on), Bodylimitwidth/Bodymaxwidth. Batch in one set_parameters callnodeWidth/nodeHeight — never guessTitletext = single word / short phrase ("Render", "Data Select"). Put explanatory sentences in Bodytext, never the title (font scales down → long titles unreadable)[0.25, 0.28, 0.35], green [0.22, 0.33, 0.22], purple [0.30, 0.22, 0.33], amber [0.35, 0.30, 0.18]Do not color operators by family — that's already visually obvious from operator shape/type. Only color for special patterns where two related ops need to stand out as a pair. E.g. feedback loop: color both feedbackPOP and its target null the same color. Default gray is 0.67, 0.67, 0.67.
Load the td-node-layout skill for full positioning rules (spacing, flow direction, special patterns, annotation layout). Follow naming in td-general when verifying operator names.
nodeX, nodeY, nodeWidth, nodeHeight must be set via execute_code, not set_parametersannotation(comment=...) sets Titletext only; explanation must go in Bodytext via set_parameters (see Annotation Rules)annotateCOMP ops overlap with new onesnetworkbox mode — hides the op from Python, making it undeletable via codeWhat SKILL.md sets; muted values are Claude Code's defaults
19 skills in this plugin
/td-build-planningPlan TouchDesigner builds — scout networks, decide operators, allocate positions, phase work. Use before any multi-operator build./td-chop-familyBuild CHOP chains for audio, LFOs, animation, and data-driven control. Use when creating CHOPs or driving parameters from CHOPs./td-colabCollaborative mode — you're a thinking partner in TouchDesigner, not a builder. Load when you're sliding into auto-building or need to reset the collaborative frame.npx claudepluginhub touchdesigner/tdmcpskills --plugin tdmcp-skillsOther plugins' skills for the same job