agentCLAWHUBUnverified

WPS Word Document

创建或编辑 Word (.docx) 文档。当用户要求生成、导出、下载 Word 文档,或对现有 .docx 编辑时使用本技能。当最终交付物是"文档"且用户未指定格式时(如"生成文档"、"写一份文档"、"帮我做个文档"),默认使用本技能生成 .docx。仅适用于最终交付物,中间生成物的格式不受此约束。 Skill: WPS Word Document Owner: xixihaha123123123123 Summary: 创建或编辑 Word (.docx) 文档。当用户要求生成、导出、下载 Word 文档,或对现有 .docx 编辑时使用本技能。当最终交付物是"文档"且用户未指定格式时(如"生成文档"、"写一份文档"、"帮我做个文档"),默认使用本技能生成 .docx。仅适用于最终交付物,中间生成物的格式不受此约束。 Tags: document:1.0.0, docx:1.0.0, latest:1.0.0, word:1.0.0 Version history: v1.0.0 | 2026-04-18T12:33:05.817Z | user Initial release Archive index: Archive v1.0.0: 11 files, 65958 bytes Files: scripts/__ini

OpenClaw

Rank

62

Safety

84

Downloads

1.1k

Updated

Oct 11, 2026

Version

1.0.0

Source

CLAWHUB

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.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
1.1K downloadsadoption · observed Oct 11, 2026
Latest release
1.0.0release · observed Apr 18, 2026
Handshake status
UNKNOWNsecurity

Install and run

Setup complexity: low.

clawhub skill install s172gcva854bewaha4hwd8xj4s852cyf:wps-docx
  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-xixihaha123123123123-wps-docx/snapshot"

Documentation

CLAWHUB

12,518 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: docx
description: 创建或编辑 Word (.docx) 文档。当用户要求生成、导出、下载 Word 文档,或对现有 .docx 编辑时使用本技能。当最终交付物是"文档"且用户未指定格式时(如"生成文档"、"写一份文档"、"帮我做个文档"),默认使用本技能生成 .docx。仅适用于最终交付物,中间生成物的格式不受此约束。
---

# DOCX 文档创建与编辑

## 何时使用

- **最终交付物**为文档且用户未指定格式时,默认生成 `.docx`
- 用户明确要求生成、导出、下载 Word 文档
- 对现有 `.docx` 做文本替换(正文、页眉、页脚)
- 解包查看 Word XML 结构并重新打包

注意:任务过程中的中间生成物(如临时数据文件、处理脚本等)不需要使用本技能,格式自由选择。

## 何时不要使用

- 批注、回复批注
- 接受修订或保留修订
- 大规模样式重构、复杂目录修复、复杂域代码处理

---

## 快速参考

| 任务             | 推荐方式                             |
| ---------------- | ------------------------------------ |
| 创建新 `.docx`   | 写 HTML → `html2docx()` → 见工作流 A |
| 编辑现有 `.docx` | `edit_docx()` → 见工作流 B           |
| 检查 XML 结构    | `unpack_docx()`                      |
| 重新打包         | `pack_docx()`(默认含校验)          |

---

## 工作流 A:创建新文档

流程分三步:根据内容基调设计视觉风格 → 用 `start_write_file` / `end_write_file` 编写语义化 HTML → 通过 `jupyter_cell_exec`工具 执行转换脚本输出 .docx。

### 第 1 步:分析内容基调,推演视觉风格

在编写 HTML 前,先完成意图识别与风格推演,并将结果直接落实到后续 CSS 中:

- **色板**:根据内容基调设定主标题颜色、正文颜色和弱化文本颜色。轻量级高亮可使用浅色背景。公文、法律声明、严肃通知、学术论文等严肃场景禁止使用彩色,仅使用 `#000000` 和 `#333333`
- **字体**:正式报告优先使用衬线体(宋体、仿宋);现代文档或技术文档优先使用无衬线体(微软雅黑、黑体);代码部分使用等宽字体(Consolas);公文场景禁止使用非衬线字体,默认全用宋体或黑体
- **节奏**:设定符合打印和离线阅读的行高(如 `1.5` 到 `1.8`)、统一段落间距(如 `12pt`)及章节留白

### 第 2 步:用 start_write_file / end_write_file 编写 HTML 文件

> **强制规则:必须使用 `start_write_file` + `end_write_file` 写入 HTML 文件。禁止通过 Python 代码生成 HTML 内容。** HTML 内容应由你直接以文本形式输出,以充分发挥 LLM 的长文本生成能力和排版能力。

1. 调用 `start_write_file(path="<OUTPUT_ROOT>/<文档名>.html")` 开启写作模式
2. 直接以 `<!DOCTYPE html>` 开头输出完整 HTML(禁止使用 ` ```html ` 等 markdown 代码围栏包裹,直接输出原始 HTML 内容)
3. 输出完毕后调用 `end_write_file()` 保存文件

生成 HTML 时,提示词正文按以下约束执行:

- **适用范围**:本规范仅适用于经 `html2docx()` 转为 Word 文档的 HTML 源文件,不适用于其他场景的 HTML 写作
- **角色目标**:根据用户输入指令,生成专门用于转换为 `.docx` 文件的单文件 HTML 源文件,要求结构严谨、内容生动、具备专业美感,并适配 Word 离线阅读场景
- **核心目标**:深入理解用户输入内容的意图、受众和情感基调,量身定制符合 Word 渲染逻辑的视觉呈现方案;排版兼顾信息层级秩序与文档正式感,确保转换为 `.docx` 后仍具备良好阅读体验

_Technical Constraints(Word 渲染限制,必须绝对遵守):_

- 禁用现代布局:绝对不可使用 Flexbox(`display: flex`)、CSS Grid(`display: grid`)、`float`、`position: absolute`、`position: fixed`;若需左右分栏或复杂对齐,必须且只能使用无边框表格:`<table border="0" cellpadding="0" cellspacing="0">`
- 禁用现代 CSS 特性:绝对不可使用 CSS 变量(`var(--xxx)`)、`calc()`、`clamp()`、伪类(如 `:hover`)、`transition`、媒体查询(`@media`)
- 安全单位与颜色:字体大小和行高必须使用 `pt` 或 `px`,缩进和间距可使用 `em`;颜色值必须使用确定的 Hex 值,如 `#000000`,不可使用 `rgba()` 或 `hsla()`
- 字体声明机制:必须使用标准 CSS 的字体回退机制,并严格遵守“先英文字体,后中文字体”的声明顺序,例如 `font-family: Arial, "Microsoft YaHei", SimSun, sans-serif;`

_语义化重组与内容强化:_

- HTML 必须包含完整 `<!DOCTYPE html><html><head><body>` 结构,且头部必须声明 `<meta charset="UTF-8">`
- 严格按信息层级分配 `h1` 到 `h6`,为 Word 自动目录做好结构化准备
- 在不改变核心原意的前提下优化可读性:长段落中的关键结论可独立抽取并使用 `<blockquote>` 包裹,配合左侧粗边框(`border-left`)和极浅背景色强调;公文等严肃文档不宜使用此样式
- 将松散短句归纳为 `<ol>` 或 `<ul>` 列表,并保持列表项间距适中
- 识别专业术语、代码片段、按键,使用 `<code>` 标签包裹,并设置浅灰背景、圆角及等宽字体

_Word 兼容 CSS 构建:_

- CSS 仅允许写在 `<head>` 的 `<style>` 标签内,尽量使用标签选择器或单层类选择器,避免复杂嵌套
- 如内容基调需要传统中文排版,可使用 `text-indent: 2em;` 处理首行缩进
- 如需使用表格,必须通过 CSS 设置 `border-collapse: collapse;`,并为 `th`、`td

_meta.json

{
  "ownerId": "kn75sj7ng3atr0ybce5905vm85853fbc",
  "slug": "wps-docx",
  "version": "1.0.0",
  "publishedAt": 1776515585817
}

skill-card.md

## Description:

WPS Word Document helps agents create or edit Word .docx documents, including HTML-to-DOCX generation, targeted text replacement, DOCX unpacking, validation, and repacking.

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

## Publisher:

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

### License/Terms of Use:

MIT-0

## Use Case:

External users and developers use this skill when an agent needs to deliver a Word document or make targeted edits to an existing DOCX file. It is most useful for generating DOCX files from Word-compatible HTML, replacing text in document bodies, headers, and footers, and inspecting or repacking DOCX XML structures.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The security evidence reports under-disclosed network fetching during HTML-to-DOCX conversion.

Mitigation: Run the skill in a sandbox with limited network access and avoid converting HTML that contains remote images or other attacker-controlled remote resources.

Risk: The security evidence reports unsafe file and archive handling around DOCX unpacking and output paths.

Mitigation: Process only trusted DOCX files, write unpacked content to disposable directories, and avoid pointing outputs at existing important directories.

Risk: The security verdict is suspicious for this release.

Mitigation: Review the skill before deployment and install it only in environments with limited filesystem and network access.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/xixihaha123123123123/skills/wps-docx)
- [Publisher profile](https://clawhub.ai/user/xixihaha123123123123)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]

**Output Format:** [Markdown instructions with Python snippets and generated DOCX files as the intended artifact]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [The skill directs agents to create HTML, convert it to DOCX, edit DOCX XML content, and report structured success or validation results.]

## Skill Version(s):

1.0.0 (source: server 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/xixihaha123123123123/skills/wps-docx",
      "sourceUrl": "https://clawhub.ai/xixihaha123123123123/skills/wps-docx",
      "sourceType": "profile",
      "confidence": "medium",
      "observedAt": "2026-10-11T12:34:40.912Z",
      "isPublic": true
    },
    {
      "factKey": "protocols",
      "category": "compatibility",
      "label": "Protocol compatibility",
      "value": "OpenClaw",
      "href": "https://www.xpersona.co/api/v1/agents/clawhub-xixihaha123123123123-wps-docx/contract",
      "sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-xixihaha123123123123-wps-docx/contract",
      "sourceType": "contract",
      "confidence": "medium",
      "observedAt": "2026-10-11T12:34:40.912Z",
      "isPublic": true
    },
    {
      "factKey": "traction",
      "category": "adoption",
      "label": "Adoption signal",
      "value": "1.1K downloads",
      "href": "https://clawhub.ai/xixihaha123123123123/wps-docx",
      "sourceUrl": "https://clawhub.ai/xixihaha123123123123/wps-docx",
      "sourceType": "profile",
      "confidence": "medium",
      "observedAt": "2026-10-11T12:34:40.912Z",
      "isPublic": true
    },
    {
      "factKey": "latest_release",
      "category": "release",
      "label": "Latest release",
      "value": "1.0.0",
      "href": "https://clawhub.ai/xixihaha123123123123/wps-docx",
      "sourceUrl": "https://clawhub.ai/xixihaha123123123123/wps-docx",
      "sourceType": "release",
      "confidence": "medium",
      "observedAt": "2026-04-18T12:33:05.817Z",
      "isPublic": true
    },
    {
      "factKey": "handshake_status",
      "category": "security",
      "label": "Handshake status",
      "value": "UNKNOWN",
      "href": "https://www.xpersona.co/api/v1/agents/clawhub-xixihaha123123123123-wps-docx/trust",
      "sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-xixihaha123123123123-wps-docx/trust",
      "sourceType": "trust",
      "confidence": "medium",
      "observedAt": null,
      "isPublic": true
    }
  ],
  "events": [
    {
      "eventType": "release",
      "title": "Release 1.0.0",
      "description": "Initial release",
      "href": "https://clawhub.ai/xixihaha123123123123/wps-docx",
      "sourceUrl": "https://clawhub.ai/xixihaha123123123123/wps-docx",
      "sourceType": "release",
      "confidence": "medium",
      "observedAt": "2026-04-18T12:33:05.817Z",
      "isPublic": true
    }
  ]
}

Record generated Oct 11, 2026.

Sponsored

Ads related to WPS Word Document and adjacent AI workflows.