Td Network Cleanupのロゴ

Td Network Cleanup

組織
TouchDesigner
td-network-cleanup

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

概要

公開者TouchDesigner
リポジトリTDMCPSkills
スキル名td-network-cleanup
スター
42
フォーク
1
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    TouchDesignerがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルTd Network CleanupをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/TouchDesigner/TDMCPSkills/tree/main/skills/td-network-cleanup
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでTd Network Cleanupを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にTd Network Cleanupを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Td Network Cleanupは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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

よくある質問

AIスキル「Td Network Cleanup」では何ができますか?

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

TypingMindでTd Network Cleanupを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Td Network Cleanupはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにTd Network Cleanupをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/TouchDesigner/TDMCPSkills/tree/main/skills/td-network-cleanupを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Td Network Cleanupを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Td Network Cleanupは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもTd Network Cleanupを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Td Network Cleanup」は無料ですか?

TouchDesignerがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇