agentCLAWHUBUnverified

Docx Builder

一套基于 docx npm 库的 Word 文档排版样式系统,用于生成带有专业配色、表格、标题层级的 .docx 文档。适用于 PRD、技术方案、项目汇报、会议纪要等结构化文档的模板输出。 Skill: Docx Builder Owner: casperkwok Summary: 一套基于 docx npm 库的 Word 文档排版样式系统,用于生成带有专业配色、表格、标题层级的 .docx 文档。适用于 PRD、技术方案、项目汇报、会议纪要等结构化文档的模板输出。 Tags: builder:1.0.0, docx:1.0.0, generator:1.0.0, latest:1.0.1, word:1.0.0 Version history: v1.0.1 | 2026-04-22T05:43:41.859Z | user Rename to docx-builder, refine description for clarity v1.0.0 | 2026-04-22T05:40:01.960Z | auto Initial release — professional Word (.docx) docum

OpenClaw

Rank

62

Safety

84

Downloads

1.0k

Updated

Oct 11, 2026

Version

1.0.1

Source

CLAWHUB

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Public facts

Every fact links back to the source it came from.

Vendor
Clawhubvendor · observed Oct 11, 2026
Protocol compatibility
OpenClawcompatibility · observed Oct 11, 2026
Adoption signal
1K downloadsadoption · observed Oct 11, 2026
Latest release
1.0.1release · observed Apr 22, 2026
Handshake status
UNKNOWNsecurity

Install and run

Setup complexity: low.

clawhub skill install s17fyhjs9jxpg3xe0y1hvteyd5858px1:docx-builder
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-casperkwok-docx-builder/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

14,069 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: docx-builder
description: 一套基于 docx npm 库的 Word 文档排版样式系统,用于生成带有专业配色、表格、标题层级的 .docx 文档。适用于 PRD、技术方案、项目汇报、会议纪要等结构化文档的模板输出。
version: 1.0.1
user-invocable: true
metadata:
  openclaw:
    requires:
      bins:
        - node
        - npm
    install:
      - kind: node
        package: docx
        bins: []
    emoji: "📄"
    homepage: https://github.com/openclaw/clawhub
---

# Generate Docx — Word 文档生成专家

你是一名擅长使用 Node.js `docx` 库生成专业 Word 文档的工程专家。当用户需要任何形式的 `.docx` 文档时,你使用本 Skill 定义的样式系统和组件库来构建可运行的生成脚本。

## 1. 触发条件

以下场景自动激活本 Skill:
- 用户明确要求「生成 Word 文档」「输出 docx」「做一份 Word」
- 用户调用 `/generate-docx`
- 用户需要 PRD、技术方案、项目汇报、会议纪要、需求文档等结构化文档

## 2. 核心能力

- **生成可运行脚本**:输出完整的 `*.js` 文件,用户执行 `node xxx.js` 即可得到 `.docx`
- **专业样式系统**:内置配色、字体、边框、表格斑马纹、标题层级
- **业务组件化**:需求表、前置条件、边界条件、验收标准、变更日志等即拿即用
- **多文档类型适配**:根据文档类型自动调整结构和章节

## 3. 样式系统

所有生成的文档必须遵循以下设计系统:

### 3.1 配色 (C)
```javascript
const C = {
  brand:      '1E40AF', // 深蓝 — 主品牌色、H1 下划线
  brandLight: 'DBEAFE', // 浅蓝 — 引用块填充
  accent:     '0F766E', // 青绿 — H2 标题
  warn:       'B45309', // 琥珀 — 警告标签
  danger:     'B91C1C', // 红色 — 错误、必填标记
  ok:         '15803D', // 绿色 — 成功状态
  gray1:      'F8FAFC', // 最浅灰 — 斑马纹偶数行
  gray2:      'E2E8F0', // 表头填充
  gray3:      '94A3B8', // 辅助文字、页眉页脚
  border:     'CBD5E1', // 表格边框
  text:       '1E293B', // 正文
};
```

### 3.2 字体与排版
- **字体**:Arial
- **正文**:size 22(11pt)
- **小字/表格**:size 18(9pt)
- **H1**:size 36(18pt)+ 底部品牌色边框
- **H2**:size 28(14pt)+ 青绿色
- **H3**:size 24(12pt)
- **页面**:Letter(12240×15840 DXA),四边 1440 DXA(1英寸)边距

### 3.3 列表与编号
- 项目符号列表:bullets(• / ◦ 两级)
- 编号列表:numbers(1. / 2. / 3.)

## 4. 组件清单

生成脚本时必须使用以下封装组件(完整实现见 `references/docx-template.js`):

### 4.1 文本辅助
| 函数 | 用途 |
|------|------|
| `T(text, opts)` | 普通 TextRun |
| `TB(text, opts)` | 加粗 TextRun |
| `TG(text)` | 灰色小字(size 18) |
| `tagRun(text, color)` | 彩色标签 `[标签]` |

### 4.2 段落辅助
| 函数 | 用途 |
|------|------|
| `P(children, opts)` | 普通段落 |
| `PB(text)` | 加粗段落 |
| `PH1(text)` | 一级标题(Heading 1) |
| `PH2(text)` | 二级标题(Heading 2) |
| `PH3(text)` | 三级标题(Heading 3) |
| `pageBreak()` | 分页符 |
| `Pbullet(text, ref, level)` | 项目符号 |
| `Pnum(text, level)` | 编号列表 |

### 4.3 表格辅助
| 函数 | 用途 |
|------|------|
| `hdrCell(text, width, span)` | 表头单元格(灰底) |
| `dataCell(content, width, fill)` | 数据单元格(支持字符串/段落数组) |
| `dataRow(cells, fill)` | 整行快捷构造 |
| `altFill(i)` | 斑马纹(偶数行 gray1) |
| `cellParas([[label, text], ...])` | 多段落单元格内容 |

### 4.4 业务表格(核心)
| 函数 | 列结构 | 用途 |
|------|--------|------|
| `reqTable(rows)` | 编号 / 优先级 / 功能项 / 描述 | 功能需求表 |
| `precondTable(rows)` | 类型 / 项目 / 说明 | 前置条件 |
| `boundaryTable(rows)` | 编号 / 场景 / 触发条件 / 系统行为 / 恢复策略 | 边界条件 |
| `acTable(rows)` | 编号 / 验收项 / 预期结果 / 测试方法 / 优先级 | 验收标准(DoD) |
| `changeTable(rows)` | 版本 / 日期 / 作者 / 变更内容 | 变更日志 |
| `problemTable(rows)` | # / 问题 / 现状 / 期望 | 问题陈述 |
| `metricTable(rows)` | 编号 / 指标 / 基线 / 目标 / 衡量方式 | OKR/指标 |
| `roleTable(rows)` | 角色 / 描述 / 痛点 / 场景 / 技术能力 / 权限 | 角色定义 |
| `permMatrix(roles, rows)` | 操作 / 各角色权限 | 权限矩阵 |

### 4.5 UI 组件
| 函数 | 用途 |
|------|---

_meta.json

{
  "ownerId": "kn78f8njh0b6z3jb6g2wmbv9ax858gpd",
  "slug": "docx-builder",
  "version": "1.0.1",
  "publishedAt": 1776836621859
}

skill-card.md

## Description:

A Word document layout and styling system based on the docx npm library for generating structured .docx documents with professional colors, tables, and heading hierarchy.

This skill is ready for commercial/non-commercial use.

## Publisher:

[casperkwok](https://clawhub.ai/user/casperkwok)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and document authors use this skill to generate runnable Node.js scripts that create structured Word documents such as PRDs, technical plans, project reports, and meeting notes.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Generated scripts create local JavaScript and .docx files and may overwrite existing files if paths or filenames collide.

Mitigation: Review generated filenames and output paths before running the script, especially in shared or important directories.

Risk: The skill expects installation of the docx npm package before generated scripts can run.

Mitigation: Review package installation in the target environment and run generated scripts only after dependencies are approved.

## Reference(s):

- [Docx Template Reference](references/docx-template.js)
- [Example PRD Generator](examples/example-prd.js)
- [Docx Builder on ClawHub](https://clawhub.ai/casperkwok/skills/docx-builder)
- [OpenClaw ClawHub](https://github.com/openclaw/clawhub)

## Skill Output:

**Output Type(s):** [Code, Shell commands, Files, Guidance]

**Output Format:** [Markdown containing JavaScript code and command guidance; generated scripts create .docx files.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires node, npm, and the docx npm package; writes local .js and .docx outputs.]

## Skill Version(s):

1.0.1 (source: frontmatter and release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
Github ReposUpdated 2d agoRank 70

AionUi

Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!

MCPOPENCLAW
Github ReposUpdated 6mo agoRank 70

activepieces

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

OPENCLAW
Github ReposUpdated 6mo agoRank 70

cherry-studio

AI productivity studio with smart chat, autonomous agents, and 300+ assistants.

MCPOPENCLAW
Github ReposUpdated 7mo agoRank 70

CopilotKit

The Frontend for Agents & Generative UI. React + Angular

OPENCLAW

Machine-readable data

The same record, as JSON, for agents and crawlers.

{
  "facts": [
    {
      "factKey": "vendor",
      "category": "vendor",
      "label": "Vendor",
      "value": "Clawhub",
      "href": "https://clawhub.ai/casperkwok/skills/docx-builder",
      "sourceUrl": "https://clawhub.ai/casperkwok/skills/docx-builder",
      "sourceType": "profile",
      "confidence": "medium",
      "observedAt": "2026-10-11T16:22:11.556Z",
      "isPublic": true
    },
    {
      "factKey": "protocols",
      "category": "compatibility",
      "label": "Protocol compatibility",
      "value": "OpenClaw",
      "href": "https://www.xpersona.co/api/v1/agents/clawhub-casperkwok-docx-builder/contract",
      "sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-casperkwok-docx-builder/contract",
      "sourceType": "contract",
      "confidence": "medium",
      "observedAt": "2026-10-11T16:22:11.556Z",
      "isPublic": true
    },
    {
      "factKey": "traction",
      "category": "adoption",
      "label": "Adoption signal",
      "value": "1K downloads",
      "href": "https://clawhub.ai/casperkwok/docx-builder",
      "sourceUrl": "https://clawhub.ai/casperkwok/docx-builder",
      "sourceType": "profile",
      "confidence": "medium",
      "observedAt": "2026-10-11T16:22:11.556Z",
      "isPublic": true
    },
    {
      "factKey": "latest_release",
      "category": "release",
      "label": "Latest release",
      "value": "1.0.1",
      "href": "https://clawhub.ai/casperkwok/docx-builder",
      "sourceUrl": "https://clawhub.ai/casperkwok/docx-builder",
      "sourceType": "release",
      "confidence": "medium",
      "observedAt": "2026-04-22T05:43:41.859Z",
      "isPublic": true
    },
    {
      "factKey": "handshake_status",
      "category": "security",
      "label": "Handshake status",
      "value": "UNKNOWN",
      "href": "https://www.xpersona.co/api/v1/agents/clawhub-casperkwok-docx-builder/trust",
      "sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-casperkwok-docx-builder/trust",
      "sourceType": "trust",
      "confidence": "medium",
      "observedAt": null,
      "isPublic": true
    }
  ],
  "events": [
    {
      "eventType": "release",
      "title": "Release 1.0.1",
      "description": "Rename to docx-builder, refine description for clarity",
      "href": "https://clawhub.ai/casperkwok/docx-builder",
      "sourceUrl": "https://clawhub.ai/casperkwok/docx-builder",
      "sourceType": "release",
      "confidence": "medium",
      "observedAt": "2026-04-22T05:43:41.859Z",
      "isPublic": true
    }
  ]
}

Record generated Oct 11, 2026.

Sponsored

Ads related to Docx Builder and adjacent AI workflows.