← Back to Skills Marketplace
zhaobod1

Huo15 Office Doc

by Job Zhao · GitHub ↗ · v3.1.0 · MIT-0
cross-platform ⚠ suspicious
98
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install huo15-office-doc
Description
【青岛火一五信息科技有限公司】企业级 Word 文档生成技能,支持两种模式:规则模式(默认)和模板模式。触发词:写word、写文档、生成word、生成文档、创建文档、.docx、Word文档、写合同、写方案、写报告、写会议纪要、按模板生成。
README (SKILL.md)

火一五文档技能 v3.0

企业级 Word 文档生成 — 青岛火一五信息科技有限公司

本技能支持两种生成模式,AI 根据用户输入自动选择。


核心原则

  1. 企业文档三要素:编号 + 版本 + 密级
  2. 格式统一:GB/T 9704-2012 简化企业版
  3. 可追溯:版本历史、审批记录、修改说明

文档元数据(自动生成)

每份企业文档必须包含以下元数据:

字段 说明 示例
文档编号 企业编号规则 HG-HY-2026-001
版本 V1.0 格式 V1.0
密级 内部/秘密/机密 内部
日期 YYYY-MM-DD 2026-04-09
页数 自动统计 共 5 页

编号规则:

[公司缩写]-[部门缩写]-[年份]-[序号]
例如:HG-HY-2026-001
  HG = 火一五公司
  HY = 海洋/会议/合同/报告(取拼音首字母)

版本规则:

  • V1.0 首次发布
  • V1.1 小幅修订
  • V2.0 重大修订
  • V2.1-V2.9 功能迭代
  • V3.0 正式版本

密级规则:

  • 公开 — 对外公开文件
  • 内部 — 公司内部使用
  • 秘密 — 涉及商业机密
  • 机密 — 核心机密文件

模式一:规则模式(默认)

用户只提供内容文本,没有提供模板文件时使用。

标准格式(GB/T 9704-2012 简化企业版)

要素 标准
页面边距 上 3.7cm,下 3.5cm,左 2.8cm,右 2.6cm
正文字体 仿宋,小四(12pt),1.5 倍行距,首行缩进 2 字符
标题字体 标题以「一、」「二、」或「第X章」开头,黑体/楷体
页眉 左对齐,LOGO + 公司名称 + 文档编号 + 密级,底边细线
页脚 居中,「第 X 页 / 共 Y 页」
内容格式 纯文本,自动识别标题/正文,清除所有 markdown 符号

段落类型识别规则

开头文字 识别为 字体
第X章 / 第X节 / 第X款 一级标题 黑体 16pt 加粗
一、二、三、 或 一,二,... 二级标题 楷体 14pt 加粗
(一) (二)... 三级标题 仿宋 12pt 加粗
1. 2. 3. 或 一、二、三 编号正文 仿宋 12pt
其他文字 普通正文 仿宋 12pt,首行缩进

分隔符说明

  • 顿号(、):一、二、三、
  • 逗号(,):一,二,三,
  • 英文逗号(,):一,二,三,
  • 三种均可作为二级标题的分隔符

版本历史表(自动生成)

文档开头自动插入版本历史表:

【版本历史】
| 版本 | 日期 | 作者 | 修改内容 |
|------|------|------|----------|
| V1.0 | 2026-04-09 | 赵博 | 首次创建 |

审批签字区(可选)

文档末尾自动插入审批区:

【审批记录】
| 角色 | 姓名 | 日期 | 签字 |
|------|------|------|------|
| 编制 | 赵博 | 2026-04-09 | __________ |
| 审核 | 张三 | 2026-04-10 | __________ |
| 批准 | 李四 | 2026-04-11 | __________ |

表格支持

| 分隔,例:

| 列1 | 列2 | 列3 |
|------|------|------|
| 内容 | 内容 | 内容 |

第一行自动识别为表头,黑体居中,斑马条纹(隔行变色)。


模式二:模板模式(高精度)

用户提供了 .docx 模板文件时使用。AI 会先分析模板,再生成匹配模板风格的内容。

触发条件

用户发送了 .docx 文件,或明确说"按这个模板生成"。

模板分析流程

读取模板文件后,按以下步骤分析并输出:

A. 结构分析

【模板结构】
- 封面:有/无,内容包括...
- 目录:有/无,层级深度...
- 密级标识:有/无,位置...
- 版本历史表:有/无,格式...
- 审批签字区:有/无,格式...
- 正文章节:X 层标题结构
- 附件/附录:有/无

B. 样式分析

【字体样式】
- 标题字体:X号,颜色,是否加粗
- 正文字体:X号,颜色,是否加粗
- 特殊文字(强调/引用):...

【段落样式】
- 行距:固定值 X 磅 / 倍行距
- 首行缩进:是/否,X 字符
- 段前段后间距:X pt
- 对齐方式:标题居中/正文两端对齐

【页面设置】
- 边距:上下左右各多少
- 方向:纵向/横向
- 纸型:A4/Letter

C. 内容写法分析

【写作风格】
- 语言风格:正式/半正式/简洁
- 段落长度:长段落为主/短句为主
- 常用表达:...
- 固定套话:...

【固定元素】
- 页眉内容:...
- 页脚内容:...
- 表格样式:...

D. 生成规则

【必须遵循】
1. 保持与模板完全一致的字体、字号、颜色
2. 保持与模板完全一致的段落结构
3. 保持与模板一致的页面设置
4. 保持与模板一致的页眉页脚
5. 如模板有图表,保持图表位置和编号
6. 保留模板中的占位符注释

模板模式输出

在分析完模板后,直接输出完整文档内容(纯文本),格式如下:

【文档元数据】
编号:HG-HY-2026-001
版本:V1.0
密级:内部
日期:2026-04-09

【文档内容】

一、章节标题
正文内容...

二、章节标题
正文内容...

【版本历史】
| 版本 | 日期 | 作者 | 修改内容 |
|------|------|------|----------|
| V1.0 | 2026-04-09 | 赵博 | 首次创建 |

【审批记录】
| 角色 | 姓名 | 日期 | 签字 |
|------|------|------|------|
| 编制 | 赵博 | 2026-04-09 | __________ |
| 审核 | | | |
| 批准 | | | |

Word 生成脚本

无论哪种模式,最终都调用以下脚本生成 .docx 文件:

from create_word_doc import create_word_doc

# 完整参数
create_word_doc(
    output_path="文档名.docx",      # 输出路径(必需)
    title="文档标题",                # 标题(可选)
    content="正文内容...",           # 纯文本内容(可选)
    doc_number="HG-HY-2026-001",    # 文档编号(可选,自动生成)
    version="V1.0",                 # 版本(可选,默认 V1.0)
    classification="内部",          # 密级(可选,默认内部)
    author="赵博",                  # 作者(可选)
    company_name="公司名",           # 公司名(可选,默认自动获取)
    logo_path="/path/to/logo.png",  # LOGO 路径(可选)
    approval=[                      # 审批人列表(可选)
        {"role": "编制", "name": "赵博"},
        {"role": "审核", "name": ""},
        {"role": "批准", "name": ""},
    ],
    footer_page=True,              # 页脚显示页码(默认 True)
    header_doc_number=True,        # 页眉显示文档编号(默认 True)
)

命令行调用

python create-word-doc.py \x3C输出文件> [标题] [正文] [编号] [版本] [密级]
python create-word-doc.py 合同.docx "销售合同" "一、甲方信息\
甲方名称..." "HG-HT-2026-001" "V1.0" "秘密"

页眉格式

[LOGO] 公司名称    文档编号    密级
───────────────────(底边细线)

示例:

[LOGO] 青岛火一五信息科技有限公司  HG-HY-2026-001  内部
─────────────────────────────────────────────────────

页脚格式

第 X 页 / 共 Y 页

输出文件命名规范

[文档类型简称]_[客户名]_[版本]_[日期].docx

例:合同_阿里巴巴_V1.0_20260408.docx


触发词

写word、写文档、写个文档、生成word、生成文档、创建文档、导出word、下载word、.docx、Word文档、Word生成、生成Word、写合同、写方案、写报告、写会议纪要、按模板生成、参照模板


快速参考

需求 操作
简单文档 直接描述内容,AI 自动处理格式
带模板 上传 .docx 文件,说"按此模板生成"
指定编号 在内容中注明:编号 HG-XX-2026-XXX
指定版本 在内容中注明:版本 V1.0
需要审批区 说"带审批签字区"
Usage Guidance
Before installing, be aware this skill will run local Python scripts that: (1) read OpenClaw agent config and credential files (~/.openclaw/.../odoo_creds.json and ~/.openclaw/openclaw.json) even though SKILL.md doesn't declare that, (2) may transmit those Odoo credentials to an external Odoo server (the code performs XML-RPC authentication and disables SSL verification), (3) download a logo from tools.huo15.com and write to ~/.huo15/assets/logo.png, and (4) depend on node being present for the included shell script. If you store sensitive credentials in ~/.openclaw, do not install this skill until the author removes or documents that behavior, or until you audit/modify the script to remove remote authentication and to request explicit permission before accessing other skills' credentials. Recommended actions: review the full create-word-doc.py and generate-config.sh, run them in a sandbox, ask the author to (a) explicitly declare required files/envs in SKILL.md, (b) make remote Odoo access opt-in with clear prompts, and (c) enable proper SSL verification and not read unrelated credential files by default.
Capability Analysis
Type: OpenClaw Skill Name: huo15-office-doc Version: 3.1.0 The skill bundle contains a Python script (create-word-doc.py) that performs high-risk operations, including reading sensitive Odoo credentials from the local filesystem (~/.openclaw/agents/.../odoo_creds.json) to authenticate against a remote vendor-controlled server (huihuoyun.huo15.com). Additionally, the script explicitly disables SSL certificate verification (ssl.CERT_NONE), creating a significant vulnerability to Man-in-the-Middle (MITM) attacks. While these behaviors are ostensibly for fetching company branding, the unauthorized cross-skill credential access and poor security practices warrant a suspicious classification.
Capability Assessment
Purpose & Capability
The skill claims to generate Word documents and includes a Python generator — that matches the name. However, the bundled create-word-doc.py also attempts to read OpenClaw agent files (~/.openclaw/...) and an odoo_creds.json to fetch company info/logo from an external Odoo server. Those accesses are not declared in requirements or SKILL.md and are not necessary for basic document generation, so they are disproportionate to the stated purpose.
Instruction Scope
SKILL.md describes generation and template analysis but does not disclose that the runtime script will (a) read ~/.openclaw/openclaw.json and ~/.openclaw/agents/.../odoo_creds.json, (b) use any OC_AGENT_ID env var, or (c) perform XML-RPC authentication to an external Odoo URL and download a logo. Those are hidden side-effects beyond the described doc-generation scope.
Install Mechanism
There is no install spec (instruction-only) which reduces installation-level risk, but the skill includes two executable scripts shipped in the bundle. Running them will execute code on disk and perform network calls (logo download, XML-RPC). No external archive download/installers are used, but bundled code still performs I/O and network activity.
Credentials
The skill declares no required environment variables or credentials, yet create-word-doc.py reads the OC_AGENT_ID env var and specific OpenClaw config/credential files to obtain Odoo credentials (user/password) and then sends them to a configured Odoo server. Accessing other skills' credential files is disproportionate and not documented.
Persistence & Privilege
The script creates and writes assets under the user's home (~/.huo15/assets/logo.png) and reads/writes multiple files under ~/.openclaw. While it does not set always:true, it nevertheless accesses other agent configuration and credentials and contacts external endpoints — this cross-skill file access and network transmission is a privilege concern.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install huo15-office-doc
  3. After installation, invoke the skill by name or use /huo15-office-doc
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v3.1.0
v3.1.0 - No file changes detected in this version. - Documentation and SKILL metadata remain the same. - No new features, bug fixes, or modifications introduced.
v1.0.0
Initial release with comprehensive enterprise Word document generation capabilities. - Supports two modes: Rule-based (default) and Template-based generation. - Automatically generates enterprise metadata, version history, and approval signature area. - Applies standardized formatting (GB/T 9704-2012 simplified) in rule-based mode. - Analyzes and strictly matches styles and structure when a user provides a .docx template. - Supports Markdown-like tables and typical document needs (contracts, plans, reports).
Metadata
Slug huo15-office-doc
Version 3.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is Huo15 Office Doc?

【青岛火一五信息科技有限公司】企业级 Word 文档生成技能,支持两种模式:规则模式(默认)和模板模式。触发词:写word、写文档、生成word、生成文档、创建文档、.docx、Word文档、写合同、写方案、写报告、写会议纪要、按模板生成。 It is an AI Agent Skill for Claude Code / OpenClaw, with 98 downloads so far.

How do I install Huo15 Office Doc?

Run "/install huo15-office-doc" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Huo15 Office Doc free?

Yes, Huo15 Office Doc is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Huo15 Office Doc support?

Huo15 Office Doc is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Huo15 Office Doc?

It is built and maintained by Job Zhao (@zhaobod1); the current version is v3.1.0.

💬 Comments