Check if a marimo notebook is compatible with WebAssembly (WASM) and report any issues.
Ships in research-engineering-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Check whether a marimo notebook can run in a WebAssembly (WASM) environment — the marimo playground, community cloud, or exported WASM HTML.
Read the target notebook file. If the user doesn't specify one, ask which notebook to check.
Collect every package the notebook depends on from both sources:
PEP 723 metadata — the # /// script block at the top:
# /// script
# dependencies = [
# "marimo",
# "torch>=2.0.0",
# ]
# ///
Import statements — scan all cells for import foo and from foo import bar. Map import names to their PyPI distribution name using this table:
| Import name | Distribution name |
|---|---|
sklearn | scikit-learn |
skimage | scikit-image |
cv2 | opencv-python |
PIL | Pillow |
bs4 | beautifulsoup4 |
yaml | pyyaml |
dateutil | python-dateutil |
attr / attrs | attrs |
gi | PyGObject |
serial | pyserial |
usb | pyusb |
wx | wxPython |
For most other packages, the import name matches the distribution name.
For each dependency, determine if it can run in WASM:
Is it in the Python standard library? Most stdlib modules work, but these do not:
multiprocessing — browser sandbox has no process spawningsubprocess — same reasonthreading — emulated, no real parallelism (WARN, not a hard fail)sqlite3 — use apsw instead (available in Pyodide)pdb — not supportedtkinter — no GUI toolkit in browserreadline — no terminal in browserIs it a Pyodide built-in package? See pyodide-packages.md for the full list. These work out of the box.
Is it a pure-Python package? Packages with only .py files (no compiled C/Rust extensions) can be installed at runtime via micropip and will work. To check: look for a py3-none-any.whl wheel on PyPI (e.g. visit https://pypi.org/project/<package>/#files). If the only wheels are platform-specific (e.g. cp312-cp312-manylinux), the package has native extensions and likely won't work.
Common pure-Python packages that work (not in Pyodide built-ins but installable via micropip):
plotly, seaborn, humanize, pendulum, arrow, tabulatedataclasses-json, marshmallow, cattrs, pydantic (built-in)httpx (built-in), tenacity, backoff, wrapt (built-in)Does it have C/native extensions not built for Pyodide? These will not work. Common culprits:
torch / pytorchtensorflowjax / jaxlibpsycopg2 (suggest psycopg with pure-Python mode)mysqlclient (suggest pymysql)uvloopgrpciopsutilScan the notebook code for patterns that won't work in WASM:
| Pattern | Why it fails | Suggestion |
|---|---|---|
subprocess.run(...), os.system(...), os.popen(...) | No process spawning in browser | Remove or gate behind a non-WASM check |
multiprocessing.Pool(...), ProcessPoolExecutor | No process forking | Use single-threaded approach |
threading.Thread(...), ThreadPoolExecutor | Emulated threads, no real parallelism | WARN only — works but no speedup; use asyncio for I/O |
open("/absolute/path/..."), hard-coded local file paths | No real filesystem; only in-memory fs | Fetch data via URL (httpx, urllib) or embed in notebook |
sqlite3.connect(...) | stdlib sqlite3 unavailable | Use apsw or duckdb |
pdb.set_trace(), breakpoint() | No debugger in WASM | Remove breakpoints |
Reading env vars (os.environ[...], os.getenv(...)) | Environment variables not available in browser | Use mo.ui.text for user input or hardcode defaults |
Path.home(), Path.cwd() with real file expectations | Virtual filesystem only | Use URLs or embedded data |
| Large dataset loads (>100 MB) | 2 GB total memory cap | Use smaller samples or remote APIs |
WASM notebooks should list all dependencies in the PEP 723 # /// script block so they are automatically installed when the notebook starts. Check for these issues:
# /// script block, emit a WARN recommending one. Listing dependencies ensures they are auto-installed when the notebook starts in WASM — without it, users may see import errors.Output a clear, actionable report with these sections:
Compatibility: PASS / FAIL / WARN
Use these verdicts:
Package Report — table with columns: Package, Status (OK / WARN / FAIL), Notes
Example:
| Package | Status | Notes |
|---|---|---|
| marimo | OK | Available in WASM runtime |
| numpy | OK | Pyodide built-in |
| pandas | OK | Pyodide built-in |
| torch | FAIL | No WASM build — requires native C++/CUDA extensions |
| my-niche-lib | WARN | Not in Pyodide; verify it is pure-Python |
Code Issues — list each problematic code pattern found, with the cell or line and a suggested fix.
Recommendations — if the notebook fails, suggest concrete fixes:
micropip can install any pure-Python wheel from PyPI at runtimeWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
16 skills in this plugin
/add-molab-badgeAdd "Open in molab" badge(s) linking to marimo notebooks. Works with READMEs, docs, websites, or any markdown/HTML target./anywidget-generatorGenerate anywidget components for marimo notebooks./auto-paper-demoMake a demo of a research paper in a marimo notebook fully automatically without extra user input./consult-referencesBefore non-trivial changes, consult the project's references/ directory — vendored repos and paper notes — to ground the work in primary sources instead of guessing. Trigger when about to design, implement, or modify code that involves an algorithm, formula, or API that's covered by a paper or reference repo in references/; when the user mentions a concept that matches a reference (e.g. "DSR", "CPCV", "GEPA", "Pareto selection"); or when the user explicitly says "check references", "consult the literature", "look up X in the repos". Also use to bootstrap references/ structure in a new project./implement-paperImplement a research paper as an interactive marimo notebook together with the user. Start by understanding what the user wants to explore, fetch the paper via alphaxiv, then build a focused notebook./implement-paper-autoImplement a research paper in a marimo notebook fully automatically without extra user input./research-engineering-skills:wasm-compatibilityfrom research-engineering-skills
npx claudepluginhub 0x0f0f0f/research-engineering-skills --plugin research-engineering-skills