一键导入
adding-pane
Step-by-step guide for adding a new visualization pane type to Visdom (client, server, frontend, tests)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Step-by-step guide for adding a new visualization pane type to Visdom (client, server, frontend, tests)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Diagnose and fix GitHub Actions workflow failures. Use when CI jobs fail for lint, tests, JS build updates, or release automation.
Safely modify environment serialization, reload data, and view layout persistence. Use when changing env save/load formats or storage behavior.
Build and debug pane lifecycle behavior in the React frontend. Use when adding pane actions, layout behavior, rendering updates, or pane-level interactions.
Keep feature behavior identical across WebSocket and polling transport modes. Use when adding socket commands, event flows, or transport-sensitive UI updates.
Modify login/authentication paths safely for browser and Python client flows
Implement and debug browser-to-Python callback routing for clicks, key presses, property updates, and close events
| name | adding-pane |
| description | Step-by-step guide for adding a new visualization pane type to Visdom (client, server, frontend, tests) |
Use this skill when adding a new visualization type (e.g., a new chart, widget, or media pane) to Visdom.
Python Client (py/visdom/__init__.py):
Visdom class with @pytorch_wrap{"data": [{"type": "my_type", "content": ...}], ...}self._send(msg) to POST to /eventsServer (py/visdom/utils/server_utils.py):
elif ptype == "my_type": branch in the window() function (around line 202)Frontend (js/panes/):
MyPane.js following the pattern in TextPane.js or ImagePane.jsforwardRef + React.memo pattern from Pane.jsRegistration (js/settings.js):
my_type: MyPane to the PANES objectPANE_SIZE: my_type: [width, height]Type stubs (py/visdom/__init__.pyi):
Demo (example/components/):
example/demo.pyTests (cypress/integration/):
@pytorch_wrap decorator on new client methodsforwardRef + React.memo pattern for pane componentsjs/settings.jspy/visdom/static/py/visdom/__init__.pypy/visdom/utils/server_utils.pyjs/settings.jsjs/panes/AGENTS.mdCONTRIBUTING.mdassets/README.md and store templates/resources in assets/.references/TESTS.md.