← 返回 Skills 市场
binyuli

doc-export

作者 binyuli · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
298
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install doc-export
功能描述
将对话中解决的问题整理成方案文档,部署到 web 服务器供用户下载
使用说明 (SKILL.md)

doc-export Skill

将对话中解决的问题整理成方案文档,部署到 web 服务器供用户下载。

触发条件

当用户说类似以下内容时触发:

  • "整理成文档给我下载"
  • "把解决方案整理成md我下载"
  • "导出文档"
  • "整理成方案文档"
  • "生成文档并给我下载链接"

执行流程

1. 整理文档

  • 根据对话内容整理解决方案
  • 使用 Markdown 格式
  • 包含:问题背景、解决步骤、配置示例、常见问题等
  • 保存到 /root/.openclaw/workspace/docs/ 目录
  • 文件命名:\x3C主题>-guide.md\x3C主题>.md

2. 部署到 Web

  • 复制文件到 nginx web 目录:/www/wwwroot/ucloud.demo.binyuli.top/
  • 用户的域名:ucloud.demo.binyuli.top(已配置 HTTPS)
  • 下载链接格式:https://ucloud.demo.binyuli.top/\x3C文件名>

3. 告知用户

  • 提供下载链接
  • 必须提醒用户:下载完告诉我要清理文件

示例回复:

文档准备好了!

下载链接: https://ucloud.demo.binyuli.top/xxx-guide.md

下载完告诉我,我帮你清理文件。

4. 清理文件

用户确认下载完成后:

  • 删除 /www/wwwroot/ucloud.demo.binyuli.top/ 下的临时文档
  • 保留 /root/.openclaw/workspace/docs/ 下的原始文档(作为归档)

相关配置

  • Web 根目录:/www/wwwroot/ucloud.demo.binyuli.top/
  • 文档归档目录:/root/.openclaw/workspace/docs/
  • 用户域名:ucloud.demo.binyuli.top(HTTPS)

注意事项

  • 文件名使用英文,避免中文和空格
  • 使用 kebab-case 命名(如 whatsapp-setup-guide.md
  • 清理时只删 web 目录的文件,保留归档
安全使用建议
This skill will publish conversation-derived documents to a web root and keep a local archive, but it hardcodes the domain and filesystem paths and does not declare credentials or require explicit publishing confirmation. Before installing: verify who controls ucloud.demo.binyuli.top and the /www/wwwroot path (do you trust this host?), do not upload sensitive or private conversation content, and ask the author to make the target domain/path configurable (preferably an environment variable you control). Request the skill be changed so it: (1) asks for explicit, per-file user confirmation before publishing; (2) allows the user to specify the web host and path; (3) offers secure deletion of both web and archive copies or encrypts archives; and (4) documents who controls the remote server. If you do not control the indicated webserver, do not use the skill as-is — it could publish data to a third party.
功能分析
Type: OpenClaw Skill Name: doc-export Version: 1.0.0 The skill 'doc-export' (SKILL.md) instructs the agent to move conversation summaries from a private workspace to a public-facing web directory (`/www/wwwroot/ucloud.demo.binyuli.top/`) to facilitate user downloads. This behavior is high-risk as it hardcodes a specific external domain (ucloud.demo.binyuli.top) and potentially exposes sensitive conversation data or secrets to the public internet. While the instructions include a cleanup step, the initial exposure and the use of a specific, non-generic endpoint are significant indicators of potential data exfiltration or insecure data handling.
能力评估
Purpose & Capability
The skill says it will generate docs and deploy them to a web server, which is coherent with the instructions; however the SKILL.md hardcodes a specific domain (ucloud.demo.binyuli.top) and a specific webroot path (/www/wwwroot/...) without declaring or justifying access to that host or path. The metadata lists no required config/credentials despite the instructions assuming write access to system webroot and /root, which is disproportionate and unexplained.
Instruction Scope
Instructions explicitly tell the agent to create files under /root/.openclaw/workspace/docs/ and copy them into /www/wwwroot/ucloud.demo.binyuli.top/, then to delete only the web-exposed copy on user confirmation while retaining an archive. That means the agent will write potentially sensitive conversation content to local filesystem and to a public webroot. The SKILL.md does not require explicit user confirmation before publishing, nor does it offer configuration to change the hardcoded domain/paths.
Install Mechanism
This is an instruction-only skill with no install spec and no code files, so there is no installer download or third-party package risk. The surface risk comes from the runtime file operations described in SKILL.md rather than from an installation step.
Credentials
No environment variables or credentials are declared even though the skill assumes the agent has permission to write into /root and a webserver root. The hardcoded public domain implies the files may be hosted by an external/demo host rather than a user-controlled server, which could lead to inadvertent data exfiltration. Retaining archived copies in /root while only removing the public copy increases persistent exposure.
Persistence & Privilege
The skill is not set to always:true and does not request platform-level persistence, but it instructs the agent to keep an archive copy under /root/.openclaw/workspace/docs/ after deleting the web-exposed file — this creates persistent local storage of conversation content. The default ability for the agent to invoke the skill autonomously is unchanged (normal), but combined with the noted file operations it increases blast radius.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install doc-export
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /doc-export 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Export solution documents from conversations for user download via web link. - Summarizes conversation solutions into Markdown documents with background, steps, and examples. - Saves documents in a designated local directory and deploys them to a web server with HTTPS. - Provides users with a direct download link and reminds them to confirm for file cleanup. - Cleans up temporary web files on user request, preserving original archives.
元数据
Slug doc-export
版本 1.0.0
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 1
常见问题

doc-export 是什么?

将对话中解决的问题整理成方案文档,部署到 web 服务器供用户下载. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 298 次。

如何安装 doc-export?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install doc-export」即可一键安装,无需额外配置。

doc-export 是免费的吗?

是的,doc-export 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

doc-export 支持哪些平台?

doc-export 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 doc-export?

由 binyuli(@binyuli)开发并维护,当前版本 v1.0.0。

💬 留言讨论