Td Comp Architecture logo

Td Comp Architecture

Organization
TouchDesigner
td-comp-architecture

Component design — baseCOMPs, extensions, custom parameters, parent shortcuts, modularity. Use when creating COMPs or structuring projects.

Overview

PublisherTouchDesigner
RepositoryTDMCPSkills
Skill nametd-comp-architecture
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 Comp Architecture 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-comp-architecture
  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-comp-architecture .claude/skills/td-comp-architecture
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Td Comp Architecture 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 Comp Architecture 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 Comp Architecture 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.

Component Architecture

How to structure COMPs for modularity, reusability, and clean hierarchy.

COMP Types

  • baseCOMP — general container, extensions, custom pars. Most common for modules. Always set display=true after creating
  • containerCOMP — has a UI panel, use for anything with a visual interface
  • geometryCOMP — renders geometry, contains SOPs/POPs + MATs, has instancing support

Parent Shortcuts

Every COMP that others reference should have a parentshortcut. Set on the COMP itself.

  • CamelCase, capital first: Project, Render, Camera, MyModule
  • Depth-independent — parent.Project works from any nesting level
  • Refactor-safe — reparenting doesn't break references
  • Always prefer over ../../ or parent(2)

In/Out Operators

COMPs use in/out ops to define their boundaries:

  • inTOP/outTOP, inCHOP/outCHOP, inSOP/outSOP, inDAT/outDAT
  • in* receives data from external wires into the COMP
  • out* sends data out of the COMP
  • Create the in op before wiring* — a fresh baseCOMP has no input connectors until an in* op exists inside
  • Default input — wire a default source to any in* operator's input 0. When nothing is connected externally to the parent COMP, the in* outputs this default instead. Works for all in* types (inTOP, inCHOP, inSOP, inDAT)

Custom Parameters

Use edit_custom_parameters tool — add, edit, delete, sort, rename, delete_page. Name = code identifier, Label = human-readable display. Custom pars persist in .tox — never create via init scripts.

  • enableExpr — grey out conditionally: par.enableExpr = 'me.par.SomeToggle'
  • startSection — visual divider above a parameter
  • Pulse from Python: comp.par.PulseName.pulse(), not comp.pulse('PulseName')

State Output Pattern

Expose computed state as readonly custom pars with expressions to extension @property methods. Downstream ops reference pars, never extension properties directly. Visible in UI, linkable, accessible via parameterCHOP.

Extensions

For Python-driven components, see the td-python-extension skill. Use get_operator_info(path, include_extensions=true) to inspect existing COMPs — returns extension classes, promoted method signatures, clone sources, and config COMP contents.

Network Size

  • Create sub-baseCOMPs whenever a functional group feels self-contained — like splitting code into functions. Don't wait until a network is too big; decompose early when a group of operators has a clear purpose (e.g. "bat collision", "score detection")
  • Each sub-COMP is self-contained: inCHOP → processing → outCHOP
  • Parent COMP wires sub-COMPs in sequence, handles state/switching logic
  • ~20 operators per COMP is a practical guideline, but the real signal is "does this group have a clear single responsibility?"

Clone Pattern

When two sub-COMPs have identical networks but different parameter values (e.g. bat1/bat2 detection), use clones:

  • Build the master baseCOMP with custom parameters for all variable values
  • Internal network references parent().par.Paramname
  • Set clone parameter on the copy to point at the master
  • The clone inherits the master's internal network; only custom par values differ

Self-Contained Components

  • Keep everything inside one parent COMP — processing chain, materials, utilities
  • Don't spill operators up to the parent level
  • Use nulls at chain endpoints for stable internal references
  • Use ./operatorName for child references, operatorName for siblings

geometryCOMP Specifics

  • Delete auto-created torus immediately after creating
  • Output nullPOP needs display=true render=true
  • Material pattern: materialMAT → null_material, reference as ./null_material
  • For instancing: see td-geometry-instancing skill

Pitfalls

  • No in op before wiring* — baseCOMP has no connectors until you create one inside
  • ext0object as expression — must be constant mode string, not expression
  • Forgetting reinitextensions — edited extension code doesn't reload automatically
  • Editing clone-controlled internals — changes silently revert, customize via external ops only
  • Relative paths across COMPs — use parent shortcuts instead
  • Custom par naming — uppercase first letter, then lowercase + digits only. Campadding not camPadding or CAMpadding

Frequently asked questions

What does the Td Comp Architecture AI skill do?

Component design — baseCOMPs, extensions, custom parameters, parent shortcuts, modularity. Use when creating COMPs or structuring projects.

Why use Td Comp Architecture on TypingMind?

Because you install it once and use it with any model. Td Comp Architecture 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 Comp Architecture in TypingMind?

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

Which AI models can use Td Comp Architecture?

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 Comp Architecture?

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

Is the Td Comp Architecture 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 👇