touchdesigner-self-debug

touchdesigner-self-debug is a skill for Claude Code from hybridlabor-api/bdb-dev-optimized-agent-skills. It costs 134 tokens per session (2,194 once invoked), scanned A, a copy of touchdesigner-self-debug, Apache-2.0.

A workflow for checking TouchDesigner-side Python code inside a real running TouchDesigner application. It creates or changes something through the real code path, reads back the runtime result, and compares it with the expected behavior.

In plain words
What is it for?
Use after changing code under td/modules or whenever you need to verify a node attribute, cook result, error state, or other TouchDesigner runtime value.
Why use it?
Offline tests may not reveal problems that only occur inside TouchDesigner, so this provides a direct check of the actual application state.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/hybridlabor-api/bdb-dev-optimized-agent-skills/touchdesigner-self-debug
Any agent
npx skills add hybridlabor-api/bdb-dev-optimized-agent-skills --skill touchdesigner-self-debug
Clone the repo
git clone --depth 1 https://github.com/hybridlabor-api/bdb-dev-optimized-agent-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for touchdesigner-self-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/hybridlabor-api/bdb-dev-optimized-agent-skills/touchdesigner-self-debug.svg)](https://agentmods.dev/skills/hybridlabor-api/bdb-dev-optimized-agent-skills/touchdesigner-self-debug)
Your own site
<a href="https://agentmods.dev/skills/hybridlabor-api/bdb-dev-optimized-agent-skills/touchdesigner-self-debug"><img src="https://agentmods.dev/badge/skills/hybridlabor-api/bdb-dev-optimized-agent-skills/touchdesigner-self-debug.svg" alt="Measured on agentmods" height="20"></a>
Per session 134 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,194 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00134 $0.02194
Opus 5 $0.00067 $0.01097
Sonnet 5 $0.00027 $0.00439
Haiku 4.5 $0.00013 $0.00219

Measured 2d ago against content hash 305944d0b671, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

touchdesigner-self-debug scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to touchdesigner-self-debug — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

mcps/touchdesigner-mcp/.claude/skills/touchdesigner-self-debug/SKILL.md · 162 lines

How it starts

The opening of the file, as written. The whole thing — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TouchDesigner Startup + Functional Self-Debugging

A general technique for verifying any TD-side Python change (e.g. anything in td/modules/**) inside real TouchDesigner. Calling functions directly from the Textport, without standing up the HTTP WebServer, is the shortest path.

This skill is feature-agnostic. The worked example in Steps 4–5 happens to verify node auto-alignment (the PR that produced this skill), but that is illustration only. The reusable shape is: create/modify via the real code path → read back the TD runtime value you actually care about → reconcile against an invariant. Swap the alignment-specific bits (grid, overlap area, node_layout.py) for whatever your change touches. Do not assume alignment, grids, or overlap have anything to do with your task.

When to Execute

  • You modified TD-side logic (e.g. td/modules/mcp/services/*.py) and want to check behavior on the real machine.
  • Unit/offline verification is insufficient and you need to reconcile against TD runtime data (any node attribute, cook result, error state, etc.).
  • You are in a fresh worktree that cannot rely on CI or the 9981-dependent integration suite.

Prerequisites and Pitfalls (read first — these are general)

  1. The .tox reads td/modules/ from disk at runtime. Re-authoring the .tox is not required for .py changes; reload modules or restart TD.
  2. loadTox() leaves externaltox emptyimport_modules.setup() fails with No module named 'mcp'. Replicate setup manually (Step 3).
  3. A fresh worktree lacks generated artifacts → empty OpenAPI schema / missing node_modules breaks HTTP routing. Bypass it by calling the Textport directly (Step 4). Only run npm install && npm run gen if you specifically need the HTTP path (e.g. running the vitest integration suite).
  4. Computer-use screenshots go black when TD loses frontmost focus → recover with open_application("TouchDesigner") + switch_display.
  5. Multi-line pastes into the REPL break on line boundaries → always wrap in exec("""...""") to submit as one statement.
  6. To pick up a later .py edit in an already-running TD, drop the module from sys.modules so the next import reloads from disk (Step 3c). If the WebServer is already up you can do this via execute_python_script — no computer-use needed.

Read the full file on GitHub · 162 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 162 lines · 134 tokens per session scan A 305944d0b671

Subscribe to this mod's changes

touchdesigner-self-debug is a skill published in the GitHub repository hybridlabor-api/bdb-dev-optimized-agent-skills (6 stars, last pushed yesterday), licensed Apache-2.0. It adds 134 tokens to every session and 2,194 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to touchdesigner-self-debug, differing in 0 lines, and is treated as a copy.