add-molab-badge by marimo-team/skills
npx skills add https://github.com/marimo-team/skills --skill add-molab-badge添加指向 marimo 笔记本的“在 molab 中打开”徽章。该徽章可以添加到任何目标:GitHub README、文档站点、博客文章、网页或任何其他 Markdown/HTML 文件。
如果 GitHub 仓库中包含会话信息,molab 预览的渲染效果会好得多。可以通过以下方式添加:
uvx marimo export session notebook.py
uvx marimo export session folder/
这将执行笔记本并导出其会话快照,molab 使用这些快照来提供预渲染的笔记本。
关键标志:
--sandbox — 使用 PEP 723 依赖项在隔离环境中运行每个笔记本--continue-on-error — 如果一个笔记本失败,继续处理其他笔记本--force-overwrite — 覆盖所有现有快照,即使是最新的用户可以通过以下两种方式之一提供笔记本链接:
.py 文件)。使用 和模式如 ,然后检查 marimo 头部( 或 )以确认它们是 marimo 笔记本。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
Glob**/*.pyimport marimoapp = marimo.Appmarimo.app 链接或现有徽章),则替换它们。对于每个笔记本,使用以下格式构建 molab URL:
https://molab.marimo.io/github/{owner}/{repo}/blob/{branch}/{path_to_notebook}
{owner}/{repo}:GitHub 所有者和仓库名称。从 git 远程(git remote get-url origin)、用户提供的 URL 或通过询问用户来确定。{branch}:通常是 main。根据仓库的默认分支确认。{path_to_notebook}:笔记本 .py 文件相对于仓库根目录的路径。/wasm 后缀规则marimo.app 链接,请在 molab URL 后附加 /wasm。这是因为 marimo.app 在客户端(WASM)运行笔记本,因此等效的 molab 链接需要 /wasm 后缀以保持该行为。marimo.app 链接),则不要附加 /wasm,除非用户明确要求。使用以下 Markdown 徽章格式:
[](URL)
其中 URL 是构建的 molab URL(根据上述规则,带或不带 /wasm)。
对于 HTML 目标,使用:
<a href="URL"><img src="https://marimo.io/molab-shield.svg" alt="Open in molab" /></a>
marimo.app URL 替换为等效的 molab.marimo.io URL。https://marimo.io/shield.svg 或 camo 代理版本)替换为 https://marimo.io/molab-shield.svg。Open in molab。替换 README 中的 marimo.app 徽章:
替换前:
[](https://marimo.app/github.com/owner/repo/blob/main/notebook.py)
替换后:
[](https://molab.marimo.io/github/owner/repo/blob/main/notebook.py/wasm)
注意:附加了 /wasm,因为这是替换 marimo.app 链接。
根据用户提供的链接添加新徽章:
用户说:“为这些笔记本添加 molab 徽章:https://github.com/owner/repo/blob/main/demo.py, https://github.com/owner/repo/blob/main/tutorial.py”
输出:
[](https://molab.marimo.io/github/owner/repo/blob/main/demo.py)
[](https://molab.marimo.io/github/owner/repo/blob/main/tutorial.py)
注意:对于新徽章,默认情况下没有 /wasm 后缀。
每周安装量
282
仓库
GitHub 星标数
77
首次出现
2026年2月27日
安全审计
安装于
claude-code227
opencode151
codex148
github-copilot144
gemini-cli143
kimi-cli143
Add "Open in molab" badge(s) linking to marimo notebooks. The badge can be added to any target: a GitHub README, documentation site, blog post, webpage, or any other markdown/HTML file.
molab previews render much nicer if the github repository has session information around. This can be added via:
uvx marimo export session notebook.py
uvx marimo export session folder/
This executes notebooks and exports their session snapshots, which molab uses to serve pre-rendered notebooks.
Key flags:
--sandbox — run each notebook in an isolated environment using PEP 723 dependencies--continue-on-error — keep processing other notebooks if one fails--force-overwrite — overwrite all existing snapshots, even if up-to-dateThe user may provide notebook links in one of two ways:
.py files) in the repository. Use Glob with patterns like **/*.py and then check for the marimo header (import marimo or app = marimo.App) to confirm they are marimo notebooks.marimo.app links or existing badges), replace those.For each notebook, construct the molab URL using this format:
https://molab.marimo.io/github/{owner}/{repo}/blob/{branch}/{path_to_notebook}
{owner}/{repo}: the GitHub owner and repository name. Determine from the git remote (git remote get-url origin), the user-provided URL, or by asking the user.{branch}: typically main. Confirm from the repository's default branch.{path_to_notebook}: the path to the .py notebook file relative to the repository root./wasm suffix rulesmarimo.app link, append /wasm to the molab URL. This is because marimo.app runs notebooks client-side (WASM), so the molab equivalent needs the /wasm suffix to preserve that behavior.marimo.app link), do not append /wasm unless the user explicitly requests it.Use the following markdown badge format:
[](URL)
Where URL is the constructed molab URL (with or without /wasm per the rules above).
For HTML targets, use:
<a href="URL"><img src="https://marimo.io/molab-shield.svg" alt="Open in molab" /></a>
marimo.app URLs with the equivalent molab.marimo.io URLs.https://marimo.io/shield.svg or camo-proxied versions) with https://marimo.io/molab-shield.svg.Open in molab.Replacing a marimo.app badge in a README:
Before:
[](https://marimo.app/github.com/owner/repo/blob/main/notebook.py)
After:
[](https://molab.marimo.io/github/owner/repo/blob/main/notebook.py/wasm)
Note: /wasm is appended because this replaces a marimo.app link.
Adding a new badge from user-provided links:
User says: "Add molab badges for these notebooks: https://github.com/owner/repo/blob/main/demo.py, https://github.com/owner/repo/blob/main/tutorial.py"
Output:
[](https://molab.marimo.io/github/owner/repo/blob/main/demo.py)
[](https://molab.marimo.io/github/owner/repo/blob/main/tutorial.py)
Note: no /wasm suffix by default for new badges.
Weekly Installs
282
Repository
GitHub Stars
77
First Seen
Feb 27, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code227
opencode151
codex148
github-copilot144
gemini-cli143
kimi-cli143
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
140,500 周安装