Install
openclaw skills install @shiyan521/markdown-bundle-browser将多个 Markdown 文件打包成自包含的单页 HTML 文档浏览器(v2:离线渲染/搜索/目录树)。当用户需要浏览/查看多个 .md 文件、 或反馈 .md 链接无法打开时触发。适用于项目文档集合、研究系统输出、知识库浏览等场景。 生成的 HTML 内嵌所有文档内容和内置渲染器,不依赖任何 CDN,断网也能用,浏览器直接打开即可。
openclaw skills install @shiyan521/markdown-bundle-browserGenerate a single self-contained HTML file that embeds all markdown files from a directory. The result is a dark-themed document browser with a real directory tree, global search, offline markdown rendering and cross-document links — no server, no CDN, no network needed.
Trigger when:
| Feature | What it does |
|---|---|
| 离线渲染 | 内置轻量 GFM 渲染器,零 CDN 依赖,断网可用 |
| 真实目录树 | 按目录嵌套展开/折叠,层级结构清晰 |
| 全局搜索 | 按标题+正文实时过滤文件 |
| 配置分组 | 可选 YAML 配置自定义分组/徽章/顺序 |
| 文档互链 | md 内部相对链接自动可点跳转 |
| 懒加载 | 点开文件才渲染正文,大文档集不卡 |
| 自动目录 | 文档内 h2/h3 自动生成页内目录 |
| 自动打开 | 打开即显示第一篇,无需手动点选 |
Identify the root directory containing markdown files. This is usually the project root or a docs/ directory. If the user specifies a specific folder, use that.
Execute the bundled Python script:
python3 scripts/bundle.py <directory> [--output index.html] [--title "My Title"]
Parameters:
directory (required): Path to the root directory containing .md files. Recursively finds all .md files.--output (optional): Output HTML path. Defaults to index.html in the source directory.--title (optional): Browser page title. Defaults to "文档浏览".The script:
.md files (excluding hidden directories)After generation, use preview_url / present_files to open the HTML file for the user.
Attach both the generated HTML and the original markdown files if the user wants them.
.md links in content become clickable jumpstitle: "My Knowledge Base"
order: ["入口", "研究数据", "公司档案", "其他"]
group_rules:
- match: "data/company_profiles"
group: "公司档案"
icon: "🏢"
badges:
- match: "财报"
label: "财报"
Run with: python3 bundle.py <dir> --config bundle.yaml
data/ directorydata/company_profiles/ or containing "公司"tasks/ or agents/templates/ or containing "template".)