← 返回 Skills 市场
pufanuzhu-hash

腾讯文档链接解析归档

作者 pufanuzhu-hash · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
37
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install tencent-doc-link-archiver
功能描述
腾讯文档链接解析、下载、归档入库。当用户输入包含 docs.qq.com 链接的文本,自动提取腾讯文档链接→逐个导出下载→保存至桌面/腾讯文档/目录→更新Excel台账。触发词:下载腾讯文档、归档腾讯文档、保存腾讯文档、备份腾讯文档、批量下载腾讯文档、解析腾讯文档链接。只处理 docs.qq.com 域名链接,忽...
使用说明 (SKILL.md)

腾讯文档链接解析、下载、归档入库

流水线总览

用户输入文本 → 识别过滤腾讯文档链接 → 逐个导出下载 → 写入归档Excel台账 → 输出反馈报告。严格分步执行,不可跳步。


步骤1:识别过滤腾讯文档链接

  1. 从用户输入全文提取全部 http/https 链接(正则:https?://[^\s\x3C>"')】]+
  2. 筛选域名匹配 docs.qq.com 的链接,剔除其他外链
  3. 若无有效腾讯文档链接,立刻回复"未识别到任何腾讯文档链接",终止任务
  4. 输出提取清单:本次待下载腾讯文档链接列表

步骤2:文件存储路径

  • 根目录:桌面/腾讯文档/(即 $env:USERPROFILE\Desktop\腾讯文档\
  • 不存在则自动创建
  • 文件命名:YYYYMMDD_原文档名称.后缀(后缀随原文档类型:docx/xlsx/pptx/pdf等)

步骤3:逐个下载腾讯文档

3.1 下载能力优先级

优先调用可用能力:腾讯文档 MCP(mcporter)> 腾讯文档 API > CLI 工具

使用 mcporter 下载流程:

  1. 通过 mcporter 搜索或直接访问文档,获取 file_id
  2. 调用 mcporter 的导出/下载功能获取文件
  3. 保存至指定路径,套用 YYYYMMDD 日期前缀命名

3.2 下载规则

  • 对每条 docs.qq.com 链接串行逐个处理,不并发
  • 下载保存至 桌面/腾讯文档/,严格套用命名规则
  • 单条下载失败记录失败原因,不中断整体批量任务
  • 每条下载完成标记:链接 → 保存文件名

3.3 获取文档名称与类型

通过 mcporter 读取文档信息获取标题和文件类型;若无法获取,从 URL 或页面标题推断。

步骤4:写入归档Excel台账

  • 位置:桌面/腾讯文档/腾讯文档链接台账.xlsx
  • 固定两列:A列=下载日期(YYYYMMDD),B列=完整腾讯文档链接
  • 已有表格则追加新行,不覆盖历史数据
  • 首次生成自动创建表头

使用 openpyxl 操作 Excel(脚本见 scripts/update_ledger.py)。


输出反馈模板

执行完毕后,按以下格式输出:

📋 归档报告
- 提取到有效链接:X 条
- 成功下载:
  ✅ YYYYMMDD_文档名.docx
  ✅ YYYYMMDD_文档名.xlsx
- 下载失败(如有):
  ❌ 链接 → 失败原因
- 台账已更新至:桌面/腾讯文档/腾讯文档链接台账.xlsx

约束规则

  1. 只处理 docs.qq.com 腾讯文档,微信/企业微信/外部网页链接全部忽略
  2. 日期统一 YYYYMMDD 格式(取系统当前日期)
  3. 所有文件、Excel台账统一存放在 桌面/腾讯文档/ 目录
  4. 批量多条链接串行依次处理,不并发乱序
  5. 权限不足、接口限流、文档无导出权限时如实标注失败,不崩溃终止
  6. 全程不篡改链接、不修改原文档内容,仅做下载归档与台账记录
安全使用建议
Install this only if you want the agent to export Tencent Docs you provide, save local copies on your Desktop, and keep a spreadsheet of the document links. Review documents first if they contain business, personal, or regulated data, because the saved files and ledger remain on disk until you remove them.
能力评估
Purpose & Capability
The stated purpose is Tencent Docs link extraction, download, and archiving; the SKILL.md and helper script match that purpose and restrict the workflow to docs.qq.com links.
Instruction Scope
The instructions disclose automatic extraction, serial downloading, local saving, and ledger updates, but they do not require a separate confirmation or dry-run step before writing files.
Install Mechanism
The artifact contains a markdown skill and one small Python helper script; there is no installer, hidden setup hook, package installation, or background service.
Credentials
Using Tencent Docs MCP/API/CLI access and openpyxl is proportionate for exporting and archiving documents, but downloaded document contents and URLs may be sensitive.
Persistence & Privilege
Persistence is limited to a disclosed Desktop/腾讯文档 folder and an Excel ledger; there is no evidence of privilege escalation, credential harvesting, deletion, or hidden long-running execution.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install tencent-doc-link-archiver
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /tencent-doc-link-archiver 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release with full Tencent Docs link extraction, download, and archiving pipeline: - Automatically extracts docs.qq.com links from user input and filters out all other links. - Downloads each Tencent Doc one by one, saving files to Desktop/腾讯文档/ with date-prefixed filenames. - Supports batch processing with failure logging; does not stop the process if some downloads fail. - Updates or creates an Excel ledger at Desktop/腾讯文档/腾讯文档链接台账.xlsx, recording download date and link. - Only processes Tencent Docs links; robust error handling and clear feedback report provided.
元数据
Slug tencent-doc-link-archiver
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

腾讯文档链接解析归档 是什么?

腾讯文档链接解析、下载、归档入库。当用户输入包含 docs.qq.com 链接的文本,自动提取腾讯文档链接→逐个导出下载→保存至桌面/腾讯文档/目录→更新Excel台账。触发词:下载腾讯文档、归档腾讯文档、保存腾讯文档、备份腾讯文档、批量下载腾讯文档、解析腾讯文档链接。只处理 docs.qq.com 域名链接,忽... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 37 次。

如何安装 腾讯文档链接解析归档?

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

腾讯文档链接解析归档 是免费的吗?

是的,腾讯文档链接解析归档 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

腾讯文档链接解析归档 支持哪些平台?

腾讯文档链接解析归档 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 腾讯文档链接解析归档?

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

💬 留言讨论