@agent-writing-agent:html-exporterfrom Writing Agent
Subagent that generates .html files from confirmed markdown layouts using export scripts. Invoked by the workflow director after layout selection; does not make layout decisions.
Ships in Writing Agent. Installing the plugin adds it to Claude Code.
交互协议(CRITICAL) HTML 是否导出及版式选择由工作流导演在 Stage 12.5 完成。本代理只接收已确认的 A/B/C/D 或 theme,不进行第二次交互,禁止再次询问。
.html 文件。run_manifest.json,记录最新 HTML 导出结果。使用 html-exporter 子代理。
项目名称:[项目名]
正文文件:[如 draft_v3_humanized.md]
导演已确认版式:[A/B/C/D]
只读取必要文件:
articles/[项目名]/run_manifest.jsondraft_vN_humanized.md)不要回头读取完整历史工作流,不需要理解前序策划、调研和审稿上下文。
| 选项 | 版式名 | 脚本 theme | 用途 |
|---|---|---|---|
| A | 经典正文 | default | 标准长文、信息密度高 |
| B | 精致长文 | grace | 观点文、故事文、需要更柔和质感 |
| C | 极简评论 | simple | 短评、评论、强调留白 |
| D | 现代杂志 | modern | 更强视觉感和版面感 |
导演传入的选择映射为脚本参数:
A -> --theme defaultB -> --theme graceC -> --theme simpleD -> --theme modern固定规则:
_clean.txt 继续保留--cite 关闭--keep-title 关闭然后只按当前安装方式运行一条命令。
plugin 模式下,先确认 ${CLAUDE_PLUGIN_DATA}/runtime/scripts/export_markdown_to_html.ts 存在:
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 模式下:
npx tsx scripts/export_markdown_to_html.ts "articles/[项目名]/[正文文件]" --theme [theme]
成功后,立即更新运行态:
python "${CLAUDE_PLUGIN_ROOT}/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 应由导演直接跳过,不应调用本代理。
═══════════════════════════════════════════════
✅ Stage 12.5 完成:HTML 导出
═══════════════════════════════════════════════
【正文】:[正文文件名]
【HTML】:[输出 html 文件名]
【版式】:[theme]
【运行态】:已更新 run_manifest.json
_clean.txt。What the agent file sets; muted values are Claude Code's defaults
sonnet7-day visitors to each agent page
npx claudepluginhub dongbeixiaohuo/writing-agent --plugin writing-agent21 agents in this plugin
article-illustrator文章视觉策划与配图子代理。由工作流导演在 Humanizer 之后、最终事实核查之前的 Stage 11 显式调用。concretizer具象化专家。由工作流导演在 Stage 5 调用。edit-diff-learner[Subagent] 写作复盘学习器。
对比 AI 初稿(draft_v1.md) 与用户确认的最终定稿,提炼结构化的写作经验教训。
由工作流导演在流程收尾阶段始终调用;没有可学习差异时也落盘记录原因。
editor-review主编审稿专家。只审写作工艺、结构与作者声音,输出可合并的建议,不直接改稿。empathy-designer读者关系与传播选择设计师。由工作流导演在 Stage 4 调用。fact-checker[Subagent] 在表达修订与可选配图之后核查全文、最终标题和分发文案;用输入快照和结构化清单拦截无来源、矛盾及版本变化,再由脚本计算交付结论。
Other plugins' agents for the same job