td-feature-build
Skill46 starsChanged 5 months agoMITView on GitHub
Implement ONE tdmcp tool from a spec — the canonical file pattern (Zod schema + …Impl + register… ToolRegistrar), a bridge Python payload via buildPayloadScript, and an offline msw unit test — touching only new files, never shared registries. Use when coding/implementing/writing a tdmcp tool, generator, effect, control, CHOP/TOP/SOP builder, or Python bridge work, especially when several features are built in parallel.
In this repository64 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- connectors-directory-specSkill
- mcpb-bundleSkill
- submission-qaSkill
- td-feature-buildSkill
- td-feature-designSkill
- td-feature-integrateSkill
- td-feature-qaSkill
- td-feature-releaseSkill
- td-feature-surveySkill
- td-feature-synthesizeSkill
- tdmcp-backlog-campaignSkill
- tdmcp-bridge-endpointSkill
- tdmcp-cookbook-examplesSkill
- tdmcp-coverage-writerSkill
- tdmcp-docs-roadmap-updateSkill
- tdmcp-feature-discoverySkill
- tdmcp-implementation-learningSkill
- tdmcp-kinect-wall-harpSkill
- tdmcp-pipelineSkill
- tdmcp-quality-auditSkill
- tdmcp-submissionSkill
- tdmcp-test-coverageSkill
- tdmcp-tool-builderSkill
- vitepress-bilingual-pageSkill
- ai-party-mixer-runbookSkill
- connectors-directory-specSkill
- mcpb-bundleSkill
- mixer-policy-safetySkill
- mixer-scene-contractSkill
- soundcraft-ui24r-adapterSkill
- submission-qaSkill
- td-feature-designSkill
- td-feature-integrateSkill
- td-feature-qaSkill
- td-feature-releaseSkill
- td-feature-surveySkill
- td-feature-synthesizeSkill
- td-hype-synthesizeSkill
- tdmcp-ai-party-mixer-designSkill
- tdmcp-backlog-campaignSkill
- tdmcp-bridge-endpointSkill
- tdmcp-cookbook-examplesSkill
- tdmcp-coverage-writerSkill
- tdmcp-docs-interactiveSkill
- tdmcp-docs-roadmap-updateSkill
- tdmcp-feature-discoverySkill
- tdmcp-hype-scoutSkill
- tdmcp-implementation-learningSkill
- tdmcp-kinect-wall-harpSkill
- tdmcp-pipelineSkill
- tdmcp-quality-auditSkill
- tdmcp-raytk-integrationSkill
- tdmcp-roadmap-campaignSkill
- tdmcp-submissionSkill
- tdmcp-test-coverageSkill
- tdmcp-tool-builderSkill
- td-trend-scoutSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Every tool file exports a pure …Impl and a register….
- Very specific: line 49
If you edit td/ modules: keep TD-globals (op, app, project) inside functions so modules import cleanly, and run python3 -m py_compile on …
- Very specific: line 61
Run only yours: npx vitest run tests/unit/<feature>.test.ts.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
td-feature-build — implement one tool, new files only
Implement exactly what the spec says, in your own files, green in isolation. The parallel-build contract is simple: new files only; never edit anything shared (layer*/index.ts, tools/index.ts, cli/agent.ts, docs). That isolation is what lets builders run concurrently.
The canonical tool-file pattern
Every tool file exports a pure …Impl and a register…. Mirror a neighbour in the same layer, but the shape is:
import { z } from "zod";
import type { ToolRegistrar } from "../types.js"; // note the .js extension
import { runBuild, errorResult } from "../result.js";
export const fooSchema = z.object({
name: z.string().default("foo"),
intensity: z.number().min(0).max(1).default(0.5),
});
export async function fooImpl(ctx: ToolContext, args: z.infer<typeof fooSchema>) {
// build via the client; never throw — return errorResult / runBuild on failure
}
export const registerFoo: ToolRegistrar = (server, ctx) =>
server.registerTool(
"create_foo",
{ title: "…", description: "…", inputSchema: fooSchema.shape },
(args) => fooImpl(ctx, args),
);ctx is the ToolContext ({ client, knowledge, recipes, logger, vault?, allowRawPython }). …Impl is pure and unit-testable with a mocked client.
Hard rules
- Never throw out of a handler. Validate via the Zod schema; turn TD failures into friendly
isErrorresults witherrorResult/runBuild/friendlyTdError. Return, don't throw. .jsimport extensions on every relative import (ESM/NodeNext).noUncheckedIndexedAccessis on — guard indexed access.- Biome: 2-space, double quotes, semicolons, trailing commas, 100-col. Check with
./node_modules/.bin/biome check <yourfiles>directly —npm run lintfails with a false ESLint parse error under the RTK proxy. - New files only. Your tool file +
tests/unit/<feature>.test.ts. Do not touch shared files; report your export names to the integrator instead.
Bridge / Python work
- Build the script with
buildPayloadScript(encodes args as__PAYLOAD_B64__), execute through the client, parse the reply withparsePythonReport. - An
executePythonScriptpayload must assign aresultvariable — the bridge reads it back. - If you edit
td/modules: keep TD-globals (op,app,project) inside functions so modules import cleanly, and runpython3 -m py_compileon changed files.
TD gotchas that make a "successful" build actually cook
- Many param/connect calls fail silently. Set the parameter that exists: a Level TOP has no
gain— usebrightness1. There is noParMode. - No cross-container wires — route a signal out of a container through a Select TOP/CHOP, not a direct wire.
- GLSL TOPs: declare
out vec4 fragColor;; there is no built-inuTime(add your own uniform); avoid preamble#definecollisions (F1/F2). KB shader snippets are references, not drop-in. - Reactive/time-dependent chains read 0 when the timeline is paused — that's expected, not a bug.
msw unit test
- Mock the bridge with
msw(no live TouchDesigner). Assert the real returned shape — operators created, params set, wiring, andisErrorpaths — not a cast-away generic. - Run only yours:
npx vitest run tests/unit/<feature>.test.ts. Green + biome-clean = done. You do NOT run the full build (the integrator does after wiring).
Output
The new tool file + test file, plus a note at _workspace/02_build_<feature>.md: files created, exported symbols (<feature>Impl, register<Feature>), target layer index, what the test asserts, and any spec deviation + reason. Then tell td-integrator the export names.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

