Update Patching
Developmentupdate-patchingUpdate Patching is an Agent Skill for development published in the fossasia/visdom repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Safely evolve incremental updates, jsonpatch generation, and pane update semantics
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/fossasia/visdom/blob/HEAD/.agents/skills/update-patching/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/update-patching, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Skill: Update and Patching System
When to Use
Use this skill for changes around /update, incremental plot updates, or patch payloads.
Core Workflow
- Keep update entry points aligned (
update='append'|'replace'|'remove'and heatmap update modes). - Update server patch generation logic in
py/visdom/utils/server_utils.py. - Preserve
windowvswindow_updatemessage compatibility. - Ensure frontend patch application correctly updates pane content and
contentID. - Validate behavior for line/scatter and heatmap row/column update paths.
Guardrails
- Prefer patch payloads when smaller; do not force full-payload updates for small diffs.
- Keep update behavior deterministic across repeated calls.
- Do not break existing win-targeted update semantics.
Documentation
- Skill reference
py/visdom/utils/server_utils.pypy/visdom/server/handlers/web_handlers.pyjs/api/ApiProvider.jsAGENTS.mdCONTRIBUTING.md
Assets
- See
assets/README.mdand store templates/resources inassets/.
Tests
- Follow the default flow in
references/TESTS.md.