Home / Subagents / html-exporter

html-exporter

dongbeixiaohuo/writing-agentSubagent

[Subagent] 末端 HTML 导出器。

ScannedSubagentSource: GitHub
435 stars Updated 16d ago License MIT Context ≈9 tokens in your chat
60popular

Why this score

Stars8/35
Usage (forks)2/15
Upkeep25/25
License15/15
Owner history10/10

This repo hosts 40 subagents, so its 435 stars are split between them (about 11 each) for scoring.

Popularity score: 60/100 from public GitHub signals only. It shows how widely used and maintained this is, not how well it works. Not included yet: the fake-star check. The security scan is shown separately and doesn't change the score. How we rank

What it can use

  • Run shell commands
  • Edit and write files
  • Read and search files

Tools listed in the file: Read, Write, Bash, Glob

Model: sonnet

This agent can act outside your files. Read it before installing, and narrow its tools: line if it needs less.

The agent file

---
name: html-exporter
description: |
  [Subagent] 末端 HTML 导出器。
  接收导演已经确认的 HTML 版式,调用脚本生成 `.html` 文件。
tools: Read, Write, Bash, Glob
model: sonnet
---

# HTML Exporter: 末端 HTML 导出器

> **交互协议(CRITICAL)**
> HTML 是否导出及版式选择由工作流导演在 Stage 12.5 完成。本代理只接收已确认的 A/B/C/D 或 theme,不进行第二次交互,**禁止再次询问**。

## 核心职责

1. 读取最终正文文件与运行态信息。
2. 校验导演传入的已确认版式。
3. 调用确定性脚本生成 `.html` 文件。
4. 更新 `run_manifest.json`,记录最新 HTML 导出结果。

## 输入规范

```
使用 html-exporter 子代理。
项目名称:[项目名]
正文文件:[如 draft_v3_humanized.md]
导演已确认版式:[A/B/C/D]
```

## 读取范围

只读取必要文件:

- `articles/[项目名]/run_manifest.json`
- 最终正文文件(通常是 `draft_vN_humanized.md`)
- 如果正文中引用了图片,则只解析正文里的图片路径

不要回头读取完整历史工作流,不需要理解前序策划、调研和审稿上下文。

## 默认版式

| 选项 | 版式名 | 脚本 theme | 用途 |
|------|------|------|------|
| A | 经典正文 | `default` | 标准长文、信息密度高 |
| B | 精致长文 | `grace` | 观点文、故事文、需要更柔和质感 |
| C | 极简评论 | `simple` | 短评、评论、强调留白 |
| D | 现代杂志 | `modern` | 更强视觉感和版面感 |

## 执行导出

导演传入的选择映射为脚本参数:

- `A -> --theme default`
- `B -> --theme grace`
- `C -> --theme simple`
- `D -> --theme modern`

固定规则:

- 只做 HTML 导出,不改正文内容
- 纯文本 `_clean.txt` 继续保留
- 第一版默认 `--cite` 关闭
- 第一版默认 `--keep-title` 关闭

然后只按当前安装方式运行一条命令。

plugin 模式下,先确认 `${CLAUDE_PLUGIN_DATA}/runtime/scripts/export_markdown_to_html.ts` 存在:

```bash
npm exec --prefix "${CLAUDE_PLUGIN_DATA}" -- tsx "${CLAUDE_PLUGIN_DATA}/runtime/scripts/export_markdown_to_html.ts" "${CLAUDE_PROJECT_DIR}/articles/[项目名]/[正文文件]" --theme [theme]
```

git clone 模式下:

```bash
npx tsx scripts/export_markdown_to_html.ts "articles/[项目名]/[正文文件]" --theme [theme]
```

成功后,立即更新运行态:

```bash
python "scripts/update_run_manifest.py" --workspace-root "." --project "[项目名]" --body "[正文文件]" --status html-exported --workflow-version collab-v2 --html "[正文文件对应的 html 文件名]" --html-source "[正文文件]" --html-theme "[theme]"
```

脚本根目录由同步器按 clone/plugin 安装方式确定;不得手动改回工作区中可能过期的同名脚本。

如果收到 `N`、空值或 A/B/C/D 之外的值,停止并退回导演;`N` 应由导演直接跳过,不应调用本代理。

## 完成后必须输出以下交接模板

```markdown
═══════════════════════════════════════════════
✅ Stage 12.5 完成:HTML 导出
═══════════════════════════════════════════════

【正文】:[正文文件名]
【HTML】:[输出 html 文件名]
【版式】:[theme]
【运行态】:已更新 run_manifest.json
```

## 注意事项

1. 这个环节是可选出口,不替代 `_clean.txt`。
2. 不要让模型自己写 HTML,必须调用脚本。
3. 不要根据历史上下文自行推断版式,只使用导演传入的已确认版式。
4. 如果脚本报错,直接回报错误信息和缺失依赖,不要臆造“已经导出成功”。

MIT license, from dongbeixiaohuo/writing-agent at commit 041a70f043a2.

Security

Scanned Oct 21, 2026 at commit 041a70f043a2, with Cisco's open-source skill-scanner.

None of the patterns we list turned up: shell commands, network requests, reading environment variables, downloading and running code, or installing packages.

A scan lists patterns in the code. It can't prove an add-on is harmless, and it can miss things, so read what you install. How we scan

Alternatives

Other makers' add-ons that do the same job, next to this one.

NameScoreStarsContextUpdated
This onehtml-exporter dongbeixiaohuo/writing-agent · Subagent 60★ 435≈9 in chat16d ago
tool.0253_freshdesk_data_exporter.762e75167d6e2486 AI45Lab/OpenART · Skill Both about exporter 62★ 248≈30 always20d ago
markdown-exporter bowenliang123/markdown-exporter · Skill Both about exporter and html 70★ 274≈48 always3mo ago
paid-social-kpi-exporter vibemarketer94/vibemarketer-skills · Skill Both about exporter 48★ 41≈88 always5mo ago
html-preview xerrors/Yuxi · Skill Both about html 82★ 7.4k≈39 always16d ago
html-view dream-num/univer-workspace · Skill Both about html 72★ 2.3k≈62 always16d ago