Td Network Cleanup logo

Td Network Cleanup

Organization
TouchDesigner
td-network-cleanup

Clean up TouchDesigner network layout — alignment, spacing, annotations, colors. Use after builds to organize operators.

Overview

PublisherTouchDesigner
RepositoryTDMCPSkills
Skill nametd-network-cleanup
Stars
42
Forks
1
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by TouchDesigner on GitHub. Read the source before you install it.

Installation

Install the Td Network Cleanup AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/TouchDesigner/TDMCPSkills/tree/main/skills/td-network-cleanup
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/TouchDesigner/TDMCPSkills.git /tmp/TDMCPSkills
mkdir -p .claude/skills
cp -r /tmp/TDMCPSkills/skills/td-network-cleanup .claude/skills/td-network-cleanup
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Td Network Cleanup in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Td Network Cleanup on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Td Network Cleanup is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Cleanup

Organize operator networks into clean, readable layouts. Only moves, resizes, colors, and annotates — never creates functional operators or changes parameters.

Process

  1. Load td-node-layout skill — required for spacing, padding formulas, and containment checks. Do not skip this step
  2. Survey — list_operators(path, depth=2) for positions, sizes, overlaps, and existing annotations. Use get_connections(path, graph=true) for full signal flow topology in execution order
  3. Delete old annotations — destroy any existing annotateCOMP ops before reorganizing
  4. Plan layout — identify functional groups, chains, parallel branches. Independent groups go side-by-side when they have similar vertical extent (saves space vs stacking). Use actual nodeWidth/nodeHeight to compute bounding boxes. Replace long cross-network wires with selectCHOP chop parameter references — especially for merge inputs and fan-out patterns
  5. Apply layout — use reposition_operators to batch-move operators (see Positioning below)
  6. Check vertical spacing — ensure enough Y gap between groups for annotation headers (60px top padding) + 20px gap between annotations. If groups are too close, move ops down before annotating
  7. Compute annotation bounds — for each group, find min/max X/Y from actual operator positions + sizes, then add padding (25px sides/bottom, 60px top). Don't guess dimensions — calculate them
  8. Add annotations — annotation(parent_path=..., comment=...) around every functional group. All groups get annotated, not just complex ones
  9. Verify containment — for each annotation, confirm all ops in the group satisfy: op.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 op
  10. Verify no annotation overlaps — check that no two annotations share any area. For each pair: ann1.nodeY + ann1.nodeHeight + 20 <= ann2.nodeY (vertically stacked) or ann1.nodeX + ann1.nodeWidth + 20 <= ann2.nodeX (side by side). Fix before proceeding
  11. Apply colors — only for special patterns (see Operator Colors below). Do not color by family
  12. Final verify — list_operators one more time. Check for: ops overlapping annotation headers, excessive margins, misaligned annotations, backward wires. Fix anything found. Repeat until clean

Positioning & Colors

  • Batch reposition — use reposition_operators(parent_path, positions) with a dict of {name: [x, y]}. Preferred over execute_code for moving multiple ops
  • Single op — use edit_operator(path, nodeX, nodeY) for one-off moves
  • Annotation edits — use annotation(path=..., ...) to update position/size/comment/color in place. No need to delete and recreate
  • Operator color — use edit_operator(path, color=[r, g, b])

Annotation Rules

Follow td-node-layout skill for spacing, alignment, and sizing formulas. Additional cleanup-specific rules:

  • Use 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 call
  • Compute bounds from actual nodeWidth/nodeHeight — never guess
  • Every functional group gets an annotation, even small ones
  • Short titles, body for detail — Titletext = single word / short phrase ("Render", "Data Select"). Put explanatory sentences in Bodytext, never the title (font scales down → long titles unreadable)
  • Colors: muted backgrounds (~0.25–0.35 range) — blue-gray [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]
  • Stacked alignment — after computing per-group bounds, unify X and width across all stacked annotations. All should share left edge and width for a clean column

Operator Colors

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.

Layout Reference

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.

Pitfalls

  • Annotations are properties not parameters — nodeX, nodeY, nodeWidth, nodeHeight must be set via execute_code, not set_parameters
  • Text dumped in the title — annotation(comment=...) sets Titletext only; explanation must go in Bodytext via set_parameters (see Annotation Rules)
  • Forgetting to delete old annotations — leftover annotateCOMP ops overlap with new ones
  • Not verifying containment — after creating annotations, check all ops are inside the box and below the header
  • Insufficient vertical spacing — minimum ~105px Y gap between last op in one group and first op in the next (25px bottom padding + 20px gap + 60px top padding)
  • Never use networkbox mode — hides the op from Python, making it undeletable via code

Frequently asked questions

What does the Td Network Cleanup AI skill do?

Clean up TouchDesigner network layout — alignment, spacing, annotations, colors. Use after builds to organize operators.

Why use Td Network Cleanup on TypingMind?

Because you install it once and use it with any model. Td Network Cleanup is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Td Network Cleanup in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/TouchDesigner/TDMCPSkills/tree/main/skills/td-network-cleanup. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Td Network Cleanup?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Td Network Cleanup?

As many as you like. As long as a model supports skills, you can use Td Network Cleanup with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Td Network Cleanup AI skill free?

It is published on GitHub by TouchDesigner. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇