debug-operator
Skill213 starsChanged 2 months agoMITView on GitHub
TRIGGER when operator errors appear or user reports broken behavior. Systematic diagnosis workflow.
In this repository30 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- web/llms-full.txtllms.txt
- web/llms.txtllms.txt
- add-mcp-toolSkill
- agent-testsSkill
- briefSkill
- build-uiSkill
- collabSkill
- create-extensionSkill
- create-operatorSkill
- externalize-operatorSkill
- glsl-shadersSkill
- manage-annotationsSkill
- mcp-tools-referenceSkill
- merge-divergent-toxSkill
- movie-exportSkill
- multi-instanceSkill
- multi-session-etiquetteSkill
- operator-gotchasSkill
- parameter-designSkill
- pop-networksSkill
- publish-specimenSkill
- releaseSkill
- run-testsSkill
- specimen-authoringSkill
- td-api-referenceSkill
- td-recoverySkill
- testingSkill
- visual-aestheticsSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are 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.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Script error in DAT: Read the DAT content and fix the Python/expression
- Distinctive: line 22
Parameter out of range: Check parameter values against valid ranges
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
<!-- Generated by Embody/Envoy - Do not remove this comment - sha:c1677e9a9be6b4da -->Debug Operator Workflow
Systematic approach to diagnosing TD operator errors:
- Get errors and warnings:
get_op_errorswithrecurse=trueon the suspected operator and its children. It covers all three surfaces TD paints red: cook errors, Python tracebacks (kind: 'script'entries), and GLSL compile failures (shaderErrors) - Inspect the operator:
get_opto see type, family, parameters, inputs, outputs, children - Check connections:
get_connectionsto verify input/output wiring is correct - Read DAT content:
get_dat_contentif the operator is a DAT with script errors - Check parameters:
get_parameteron specific parameters that might be misconfigured - Check performance:
get_op_performanceif the issue is cook-time related
Common Error Patterns
- Missing input: Operator requires a specific input type -- check connections
- Script error in DAT: Read the DAT content and fix the Python/expression
- Parameter out of range: Check parameter values against valid ranges
- Missing operator reference: An expression or parameter references a non-existent operator
- Script error (Python traceback): A raising callback, DAT script, or expression shows a red X but is NOT a cook error -- TD keeps it on a separate surface (
OP.scriptErrors()), andop.errors()reports the op as perfectly clean. Two consequences: read the traceback fromget_op_errors'kind: 'script'entries, and remember these errors PERSIST until cleared. An error thrown during an extension re-init window (the extension object is briefly the old one, so a method added later is missing) stays red long after the code is correct again -- re-cook the owning op, confirm it runs clean, thenclearScriptErrors(recurse=True, error='*')to clear the stale badge. Field case 2026-08-22: Embody's own manager list sat red on'EmbodyExt' object has no attribute 'DirtyState'while the live extension had the method all along. ASyntaxError ... Context:(Extension 1)here with aNoneextension means the Extension Object par was set via.exprinstead of.val(see /create-extension). - Cook error: The operator can't process its inputs -- check input data types match expectations
- Black or empty render: Use
capture_topon the intended output TOP, then check display/render flags on the output and upstream ops; missing light or camera (a 3D scene renders black without both); no cooking Null terminating the chain; a bypass flag left on; resolution is 0; alpha is premultiplied/zero so the image is present but invisible; and whether the op is cooking (checkcookedThisFrameviaget_op_performance, or force a cook). After each fix, usecapture_topagain to confirm the frame renders correctly. - Stale content after a file change (cooks clean, shows old pixels): An op can cook with NO errors and the RIGHT resolution yet still hold STALE content. A Movie File In whose
par.filechanged serves its previous cached texture until it cooks on a real frame advance --cook(force=True)in the same frame is not enough. And when a TOP chain's output looks exactly ONE frame stale, suspect same-pass reload propagation: a reload applied mid-pass may not reach downstream ops until the next real frame, even under forced cooks in dependency order. Verify CONTENT, not cook state -- read pixels back (numpyArray()/capture_top) at the POINT OF CAPTURE (the chain's output, not the source) and confirm they actually changed across a real frame advance. See rules/td-python.md (Cook Model) and rules/performance.md (Movie Export).
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.

