agentleFS
PantaniPantani/tdmcp/.claude/skills/tdmcp-raytk-integration/SKILL.md

tdmcp-raytk-integration

Skill46 starsChanged 5 months agoMITView on GitHub

Plan and implement native RayTK (t3kt/raytk) raymarching/SDF toolkit integration into tdmcp — beyond the existing package-manager staging, into AI-driven RayTK operator (ROP) node graphs. Use whenever the user wants to build, plan, design, implement, continue, fix, QA, or ship RayTK support: create/wire RayTK ROPs, a RayTK operator knowledge catalog, a RayTK-native raymarch/SDF scene tool, RayTK recipes, or the RayTK setup/doctor flow — including follow-ups (re-run, continue, refresh after a new RayTK release, re-QA, docs). Also triggers on 'raytk', 'raymarching toolkit', 'SDF toolkit', 't3kt', 'montar um build para o raytk', 'integrar o raytk'. This owns RayTK integration specifically; use it before the generic tdmcp-pipeline for this feature. Simple questions about RayTK can be answered directly.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read before changing code:

    line 46
  2. Distinctive:

    Run mode: no workspace → fresh run.

    line 61
  3. Very specific:

    Check the bridge with get_td_info before any live claim.

    line 64

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

tdmcp-raytk-integration — orchestrator

Coordinate the dedicated team that integrates the external RayTK toolkit into tdmcp as native operators. tdmcp already stages RayTK's .tox (the raytk manifest in src/packages/registry.ts, via manage_packages) and ships its own GLSL raymarching (createRaymarchScene/createSdfField/createSdfText). This harness builds the missing layer: driving RayTK's ~300 ROPs as an editable node graph (SDF primitives → combine → material → camera → render TOP) so the artist gets a RayTK-native network, not another opaque GLSL string. The GLSL tools stay complementary — never overwrite or shadow them.

Execution mode

Sub-agents, not TeamCreate (this repo's convention). Hybrid:

PhaseModeReason
Mapraytk-cartographer sub-agentexternal toolkit facts must be researched + cited before design
Planraytk-integration-lead (or local lead)dependency-order the waves, set write scopes
Buildparallel td-builder sub-agents (disjoint new files)one ROP tool + msw test each
Bridgetdmcp-bridge-engineer, sequentialonly if exec→REST is justified; bridge slices share files
Integrate/docsraytk-integration-lead single-writerregistries, CLI, registry manifest, recipes, docs are shared
QA/fixtd-qa fan-inoffline gates + live TD PASS/UNVERIFIED accounting

Spawned agents use the inherited model unless the user asks otherwise.

Agent roster

AgentRoleSkillsOutput
raytk-cartographermap RayTK release, TD version gate, ROP taxonomy, wiring mechanismweb research_workspace/raytk-integration/01_map.md
raytk-integration-leadwave plan, briefs, single-writer integration, live validationthis skill, td-feature-integrate_workspace/raytk-integration/00_plan.md + final report
td-architectLayer 1 scene spec (schema, topology, test plan)td-feature-design_workspace/raytk-integration/spec_*.md
td-builderone isolated ROP/scene tool file + msw testtd-feature-buildnew files only
tdmcp-bridge-engineerREST endpoint + client + validator, only if neededtdmcp-bridge-endpointbridge slice
td-qagates, boundary QA, live TD validationtd-feature-qa_workspace/raytk-integration/04_qa.md
td-releaserCHANGELOG/version/tag — only when user asks to shiptd-feature-releaserelease commit

Source of truth

Read before changing code:

  1. _workspace/raytk-integration/01_map.md (cartographer). If absent, run W0 first.
  2. src/packages/registry.ts (raytk manifest) + src/tools/layer3/managePackages.ts.
  3. src/tools/layer1/createRaymarchScene.ts, createSdfField.ts, createSdfText.ts, recipes/raymarch_*.json — the complementary GLSL surface, to avoid collisions.
  4. The builder contract lives in the td-feature-build skill, which each td-builder loads itself — brief builders to it rather than reading other skills' files here.

Workflow

Phase 0 — context check

  1. git status --short.
  2. Check _workspace/raytk-integration/.
  3. Run mode: no workspace → fresh run; workspace + "continue/fix/update" → resume the affected wave only; workspace + a new RayTK release or new direction → re-run W0 (cartographer) first, then diff downstream.
  4. Check the bridge with get_td_info before any live claim; note the TD build so the RayTK version gate can be evaluated.

Phase 1 — map (W0)

Spawn raytk-cartographer. It pins the release, the TD version gate (e.g. 0.46 → TD 2025.30770+, not the 2023 builds), the ROP taxonomy, the instancing/wiring mechanism, and the gap vs. what tdmcp already ships. Gate: 01_map.md written with cited facts.

Phase 2 — plan (W1 scope)

raytk-integration-lead writes 00_plan.md: waves W1–W5 (setup/doctor → knowledge import → ROP instancing → Layer 1 scene + recipes → docs), owners, write scopes, gates, PASS/UNVERIFIED criteria. Checkpoint with the user after the plan before large build waves, unless they said to run autonomously.

Phase 3 — implement, wave by wave

For each wave: spawn the owner(s) — parallel for disjoint new files, sequential for bridge slices — then the lead integrates as single writer and runs the gates (typecheck, build, ./node_modules/.bin/biome check ., test, validate:recipes / import:bottobot when relevant). Do not start a wave whose dependency wave is not green.

Phase 4 — QA + fix loop

Spawn td-qa incrementally after each integration: schema↔CLI↔docs↔registry coherence, offline synthetic behavior, then live TD validation only when a compatible TD build + staged RayTK .tox are present — wait for the async shader compile, check get_td_node_errors after the cook, get_preview the output. Cap fix loops at 2–3 rounds, then report the blocker. Live checks without a compatible TD stay UNVERIFIED.

Phase 5 — report + optional release

Report: files changed, commands + outcomes, PASS/FAIL/UNVERIFIED buckets, whether a real RayTK node graph rendered, and what remains. Release (td-releaser) only when the user explicitly asks; honor the no-premature-tag rule.

Data flow

RayTK docs/release  ->  raytk-cartographer (01_map)
  ->  raytk-integration-lead (00_plan)
  ->  td-architect spec ->  td-builder(s) [+ tdmcp-bridge-engineer]
  ->  raytk-integration-lead single-writer integration + gates
  ->  td-qa (offline + live) -> fixes -> final report

Error handling

SituationStrategy
TD offlineBuild/test offline; mark live checks UNVERIFIED pending bridge.
TD build predates RayTK version gateFeature builds offline; live validation UNVERIFIED; state the required TD build.
RayTK .tox not staged/loadedRun manage_packages install raytk; if still absent, surface the exact stage/load step.
Async shader still compilingWait/retry preview; never claim a green raymarch from a black frame.
ROP connector/master name varies by releaseProbe live; keep both candidates with source in the report, don't guess.
Overlap with existing GLSL raymarch toolsKeep RayTK tools distinct (name + scope); document the complementary split.
Shared-file conflictOnly the lead edits shared files; stop and reconcile.
QA fail after 3 roundsHold the slice; report evidence + next fix.

Test scenarios

Normal flow

User: "montar um build para integrar o RayTK." Orchestrator runs the cartographer, writes the plan, checkpoints, then builds create_raytk_op + create_raytk_scene + knowledge catalog wave by wave, integrates + gates each, QAs offline, and reports live RayTK render as PASS or UNVERIFIED depending on the TD build.

Error flow

TD build is a 2023 release (below the 0.46 gate). Orchestrator still ships the offline tools + knowledge catalog + recipes with green gates, QA marks live RayTK checks UNVERIFIED, and the report names the required TD build to validate on.

Trigger validation

Should trigger:

  • "montar um build para o raytk" / "integrar o raytk no tdmcp"
  • "implementa suporte a RayTK / operadores de raymarching nativos"
  • "cria a ferramenta create_raytk_scene" / "catálogo de ROPs do RayTK"
  • "continua a integração do raytk" / "atualiza depois do novo release do RayTK"
  • "QA da integração RayTK" / "documenta o RayTK"
  • "t3kt raytk SDF toolkit no tdmcp"

Should not trigger:

  • generic "instala um pacote do TD" with no RayTK intent (that's manage_packages)
  • work on the existing GLSL createRaymarchScene unrelated to RayTK
  • Shader Park / MediaPipe / other package integrations
  • broad feature discovery or backlog campaigns across many features
  • Kinect wall harp, mixer, or directory-submission work

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.