xmr-widget

Implement and modify xmris interactive widgets across Python, JavaScript, CSS, and notebook tests.

5|1|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/andrewendlinger/xmris --skill xmr-widget
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xmr-widget
Source: https://github.com/andrewendlinger/xmris/tree/main/.claude/skills/xmr-widget
Command: npx skills add https://github.com/andrewendlinger/xmris --skill xmr-widget

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you safely add or modify xmris interactive widgets without breaking the Python backend, JavaScript rendering, docs export, or accessor wiring.

Core Features & Use Cases

  • Widget implementation changes: Update an existing widget’s traits, defaults, canvas drawing, theming, or emitted reproducible snippet.
  • Accessor and factory synchronization: Keep the widget factory, XmrisWidgetAccessor method, and re-exported package surface aligned.
  • Docs and notebook integration: Add the widget notebook to the docs TOC and use the notebook as the real test for rendering and exported static behavior.
  • Guardrailed development: Follow the canonical widget reference, size limits, naming conventions, and validation steps specific to xmris widgets.

Quick Start

Ask for a safe, step-by-step plan to modify the xmris widget, update its accessor and docs notebook, and verify the emitted static export.

Frequently Asked Questions about xmr-widget

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I modify an anywidget notebook widget without breaking the JavaScript rendering?

To modify an anywidget notebook widget safely, you must maintain strict parity between Python traits, JavaScript canvas rendering, accessor defaults, and the static export behavior to ensure reproducible widget changes.

What is the best way to synchronize a widget factory with its accessor method?

Synchronizing a widget factory with its accessor method requires aligning the factory signatures, accessor defaults, and re-exported package surface so the widget implementation and accessor wiring stay perfectly matched.

How do I update documentation tests for interactive JavaScript widgets?

Updating documentation tests for interactive JavaScript widgets involves adding the widget notebook to the docs TOC and using that notebook as the real test for rendering and verifying the emitted static export behavior.

Does xmr-widget support updating widget theming and emitted reproducible snippets?

Yes, widget implementation changes include updating an existing widget's traits, defaults, canvas drawing, theming, and the emitted reproducible snippet while following the canonical widget reference and validation steps.

What are the limitations when building static export widgets with anywidget?

When building static export widgets with anywidget, limitations include enforcing strict size limits, following naming conventions, and requiring notebook verification to guarantee reproducible widget changes and static export behavior.

Do I need a specific environment setup to build and ship xmris widgets faster?

Building and shipping xmris widgets faster requires an environment supporting Python, JavaScript, and CSS development to implement widget factories, canvas rendering, theming, and notebook-based documentation tests.