Token导航 LogoToken导航

Agent Skill · 开发

wasm-compatibility(wasm 兼容性)

wasm-compatibility 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

wasm-compatibility 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有提醒项,按安装量在开发类的 21,746 个 Skill 里排第 1,996。

总安装 21,550周安装 907GitHub Stars 126下载 7,546核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:wasm-compatibility(wasm 兼容性)
来源仓库:https://github.com/marimo-team/skills
仓库路径:skills/wasm-compatibility
安装命令:
npx skills add https://github.com/marimo-team/skills --skill wasm-compatibility
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/marimo-team/skills --skill wasm-compatibility

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

验证 marimo 笔记本与 WebAssembly 环境的兼容性并识别不兼容的依赖项或代码模式。

分析 PEP 723 元数据和导入语句以提取所有笔记本依赖项,然后交叉引用 Pyodide 的内置包和纯 Python 可用性 检测与本机 C/Rust 扩展(torch、tensorflow、psycopg2 等)不兼容的软件包,并建议 WASM 友好的替代方案 扫描代码以查找 WASM 阻塞模式,包括子进程调用、多处理、硬编码文件路径、sqlite3 和环境变量访问 生成详细报告,其中包含程序包兼容性状态、单元位置的代码问题以及故障笔记本的具体修复步骤

来源仓库内路径:skills/wasm-compatibility

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/marimo-team/skills --skill wasm-compatibility;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

wasm-compatibility 怎么安装?

在终端执行 npx skills add https://github.com/marimo-team/skills --skill wasm-compatibility。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

wasm-compatibility 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

wasm-compatibility 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

wasm-compatibility 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

wasm-compatibility 用的人多吗?

公开数据是累计安装 21,550 次,近一周安装 907 次,下载 7,546 次,GitHub 126 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

wasm-compatibility 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
wasm-compatibility

wasm 兼容性 · 本页

21,550126接触敏感数据未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

WASM Compatibility Checker for marimo Notebooks

Check whether a marimo notebook can run in a WebAssembly (WASM) environment — the marimo playground, community cloud, or exported WASM HTML.

Instructions

1. Read the notebook

Read the target notebook file. If the user doesn't specify one, ask which notebook to check.

2. Extract dependencies

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.

3. Check each package against Pyodide

For each dependency, determine if it can run in WASM:

  1. Is it in the Python standard library? Most stdlib modules work, but these do not:

- multiprocessing — browser sandbox has no process spawning - subprocess — same reason - threading — emulated, no real parallelism (WARN, not a hard fail) - sqlite3 — use apsw instead (available in Pyodide) - pdb — not supported - tkinter — no GUI toolkit in browser - readline — no terminal in browser

  1. Is it a Pyodide built-in package? See pyodide-packages.md for the full list. These work out of the box.
  2. 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, tabulate - dataclasses-json, marshmallow, cattrs, pydantic (built-in) - httpx (built-in), tenacity, backoff, wrapt (built-in)

  1. Does it have C/native extensions not built for Pyodide? These will not work. Common culprits:

- torch / pytorch - tensorflow - jax / jaxlib - psycopg2 (suggest psycopg with pure-Python mode) - mysqlclient (suggest pymysql) - uvloop - grpcio - psutil

4. Check for WASM-incompatible patterns

Scan the notebook code for patterns that won't work in WASM:

PatternWhy it failsSuggestion
subprocess.run(...), os.system(...), os.popen(...)No process spawning in browserRemove or gate behind a non-WASM check
multiprocessing.Pool(...), ProcessPoolExecutorNo process forkingUse single-threaded approach
threading.Thread(...), ThreadPoolExecutorEmulated threads, no real parallelismWARN only — works but no speedup; use asyncio for I/O
open("/absolute/path/..."), hard-coded local file pathsNo real filesystem; only in-memory fsFetch data via URL (httpx, urllib) or embed in notebook
sqlite3.connect(...)stdlib sqlite3 unavailableUse apsw or duckdb
pdb.set_trace(), breakpoint()No debugger in WASMRemove breakpoints
Reading env vars (os.environ[...], os.getenv(...))Environment variables not available in browserUse mo.ui.text for user input or hardcode defaults
Path.home(), Path.cwd() with real file expectationsVirtual filesystem onlyUse URLs or embedded data
Large dataset loads (>100 MB)2 GB total memory capUse smaller samples or remote APIs

5. Check PEP 723 metadata

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:

  • Missing metadata: If the notebook has no # /// 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.
  • Missing packages: If a package is imported but not listed in the dependencies, emit a WARN suggesting it be added. Note: version pins and lower bounds in PEP 723 metadata are fine — marimo strips version constraints when running in WASM.

6. Produce the report

Output a clear, actionable report with these sections:

Compatibility: PASS / FAIL / WARN

Use these verdicts:

  • PASS — all packages and patterns are WASM-compatible
  • WARN — likely compatible, but some packages could not be verified as pure-Python (list them so the user can check)
  • FAIL — one or more packages or patterns are definitely incompatible

Package Report — table with columns: Package, Status (OK / WARN / FAIL), Notes

Example:

PackageStatusNotes
marimoOKAvailable in WASM runtime
numpyOKPyodide built-in
pandasOKPyodide built-in
torchFAILNo WASM build — requires native C++/CUDA extensions
my-niche-libWARNNot 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:

  • Replace incompatible packages with WASM-friendly alternatives
  • Rewrite incompatible code patterns
  • Suggest moving heavy computation to a hosted API and fetching results

Additional context

  • WASM notebooks run via Pyodide in the browser
  • Memory is capped at 2 GB
  • Network requests work but may need CORS-compatible endpoints
  • Chrome has the best WASM performance; Firefox, Edge, Safari also supported
  • micropip can install any pure-Python wheel from PyPI at runtime
  • For the full Pyodide built-in package list, see pyodide-packages.md

平台分布

Codex

35.07%
按下载量换算2,646

Claude

30.35%
按下载量换算2,290

Cursor

17.7%
按下载量换算1,336

Gemini CLI

8.72%
按下载量换算658

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills