{"id":"fb0b5ef4-d43f-4518-ad68-5382004e2cd5","slug":"clawhub-casperkwok-docx-builder","name":"Docx Builder","description":"一套基于 docx npm 库的 Word 文档排版样式系统，用于生成带有专业配色、表格、标题层级的 .docx 文档。适用于 PRD、技术方案、项目汇报、会议纪要等结构化文档的模板输出。","canonicalUrl":"https://www.xpersona.co/agent/clawhub-casperkwok-docx-builder","sourceUrl":"https://clawhub.ai/casperkwok/docx-builder","homepage":"https://clawhub.ai/casperkwok/skills/docx-builder","source":"CLAWHUB","vendor":{"slug":"clawhub","label":"Clawhub","url":"https://clawhub.ai/casperkwok/skills/docx-builder"},"protocols":["OPENCLEW"],"capabilities":[],"trustScore":null,"trustConfidence":"unknown","artifactCount":0,"benchmarkCount":0,"lastRelease":"1.0.1","freshnessAt":"2026-10-11T16:22:11.543Z","freshnessLabel":"Oct 11, 2026","securityReviewed":true,"openapiReady":false,"stats":[{"label":"Trust score","value":"Unknown"},{"label":"Compatibility","value":"OpenClaw"},{"label":"Freshness","value":"Oct 11, 2026"},{"label":"Vendor","value":"Clawhub"},{"label":"Artifacts","value":"0"},{"label":"Benchmarks","value":"0"},{"label":"Last release","value":"1.0.1"}],"factsPreview":[{"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}],"highlights":["1K downloads","Trust evidence available"],"agentCard":{"name":"Docx Builder","description":"一套基于 docx npm 库的 Word 文档排版样式系统，用于生成带有专业配色、表格、标题层级的 .docx 文档。适用于 PRD、技术方案、项目汇报、会议纪要等结构化文档的模板输出。","source":"CLAWHUB","sourceId":"clawhub:s17fyhjs9jxpg3xe0y1hvteyd5858px1:docx-builder","homepage":"https://clawhub.ai/casperkwok/skills/docx-builder","repository":"https://clawhub.ai/casperkwok/docx-builder","documentation":"https://www.xpersona.co/agent/clawhub-casperkwok-docx-builder","protocols":["OPENCLEW"],"examples":[{"kind":"example","language":"javascript","snippet":"const C = {\n  brand:      '1E40AF', // 深蓝 — 主品牌色、H1 下划线\n  brandLight: 'DBEAFE', // 浅蓝 — 引用块填充\n  accent:     '0F766E', // 青绿 — H2 标题\n  warn:       'B45309', // 琥珀 — 警告标签\n  danger:     'B91C1C', // 红色 — 错误、必填标记\n  ok:         '15803D', // 绿色 — 成功状态\n  gray1:      'F8FAFC', // 最浅灰 — 斑马纹偶数行\n  gray2:      'E2E8F0', // 表头填充\n  gray3:      '94A3B8', // 辅助文字、页眉页脚\n  border:     'CBD5E1', // 表格边框\n  text:       '1E293B', // 正文\n};"},{"kind":"example","language":"javascript","snippet":"const { createDoc, saveDoc, PH1, PH2, reqTable, boundaryTable } = require('./docx-skill');\n\nconst doc = createDoc({\n  title: '产品需求文档',\n  subtitle: '智能体市场模块',\n  meta: ['版本 v1.0 | 2026-04-22'],\n  headerText: '蜂动智能体平台 | PRD',\n  children: [\n    PH1('1 功能需求'),\n    PH2('1.1 模板市场'),\n    reqTable([\n      { id: 'MK-01', pri: 'P0', name: '网格布局', desc: '卡片网格，4列布局' },\n    ]),\n    boundaryTable([\n      { id: 'BC-01', scene: '列表为空', trigger: '返回[]', behavior: '展示空态', recover: '点击重试' },\n    ]),\n  ]\n});\n\nsaveDoc(doc, './output.docx');"}]}}