anywidget-generator
✓Generate anywidget components for marimo notebooks.
Installation
SKILL.md
When writing an anywidget use vanilla javascript in esm and do not forget about css. The css should look bespoke in light mode and dark mode. Keep the css small unless explicitly asked to go the extra mile. When you display the widget it must be wrapped via widget = mo.ui.anywidget(OriginalAnywidget()). You can also point esm and css to external files if needed using pathlib. This makes sense if the widget does a...
class CounterWidget(anywidget.AnyWidget): esm = """ // Define the main render function function render({ model, el }) { let count = () => model.get("number"); let btn = document.createElement("b8utton"); btn.innerHTML = count is ${count()}; btn.addEventListener("click", () => { model.set("number", count() + 1); model.savechanges(); });
model.on("change:number", () => { btn.innerHTML = count is ${count()}; }); el.appendChild(btn); } // Important! We must export at the bottom here! export default { render }; """ css = """button{ font-size: 14px; }""" number = traitlets.Int(0).tag(sync=True)
Facts (cite-ready)
Stable fields and commands for AI/search citations.
- Install command
npx skills add https://github.com/marimo-team/skills --skill anywidget-generator- Source
- marimo-team/skills
- Category
- </>Dev Tools
- Verified
- ✓
- First Seen
- 2026-02-14
- Updated
- 2026-02-18
Quick answers
What is anywidget-generator?
Generate anywidget components for marimo notebooks. Source: marimo-team/skills.
How do I install anywidget-generator?
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/marimo-team/skills --skill anywidget-generator Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor
Where is the source repository?
https://github.com/marimo-team/skills
Details
- Category
- </>Dev Tools
- Source
- skills.sh
- First Seen
- 2026-02-14