{
  "schemaVersion": "1.0",
  "item": {
    "slug": "tiangong-wps-word-automation",
    "name": "Word Automation",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Fadeloo/tiangong-wps-word-automation",
    "canonicalUrl": "https://clawhub.ai/Fadeloo/tiangong-wps-word-automation",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/tiangong-wps-word-automation",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=tiangong-wps-word-automation",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "scripts/wps_word_automation.py"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/tiangong-wps-word-automation"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/tiangong-wps-word-automation",
    "agentPageUrl": "https://openagent3.xyz/skills/tiangong-wps-word-automation/agent",
    "manifestUrl": "https://openagent3.xyz/skills/tiangong-wps-word-automation/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/tiangong-wps-word-automation/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "WPS/Word Automation (Windows)",
        "body": "Use the bundled Python script to control Word or WPS via COM."
      },
      {
        "title": "Requirements",
        "body": "Windows with Microsoft Word or WPS Writer installed.\nPython + pywin32 (python -m pip install pywin32)."
      },
      {
        "title": "Quick start",
        "body": "python {baseDir}/scripts/wps_word_automation.py read --input \"C:\\path\\file.docx\"\npython {baseDir}/scripts/wps_word_automation.py replace --input \"C:\\path\\file.docx\" --find \"旧\" --replace \"新\" --save \"C:\\path\\out.docx\"\npython {baseDir}/scripts/wps_word_automation.py export --input \"C:\\path\\file.docx\" --format pdf --output \"C:\\path\\out.pdf\""
      },
      {
        "title": "read",
        "body": "Extract plain text.\n\npython {baseDir}/scripts/wps_word_automation.py read --input \"C:\\path\\file.docx\" --output \"C:\\path\\out.txt\""
      },
      {
        "title": "replace",
        "body": "Find/replace text.\n\npython {baseDir}/scripts/wps_word_automation.py replace --input \"C:\\path\\file.docx\" --find \"old\" --replace \"new\" --save \"C:\\path\\out.docx\""
      },
      {
        "title": "insert",
        "body": "Insert text at start/end.\n\npython {baseDir}/scripts/wps_word_automation.py insert --input \"C:\\path\\file.docx\" --text \"Hello\" --where start --save \"C:\\path\\out.docx\""
      },
      {
        "title": "headings",
        "body": "Apply Heading 1/2/3 to matching lines.\n\npython {baseDir}/scripts/wps_word_automation.py headings --input \"C:\\path\\file.docx\" --level 1 --prefix \"# \" --save \"C:\\path\\out.docx\""
      },
      {
        "title": "header-footer",
        "body": "Set header/footer text.\n\npython {baseDir}/scripts/wps_word_automation.py header-footer --input \"C:\\path\\file.docx\" --header \"标题\" --footer \"页脚\" --save \"C:\\path\\out.docx\""
      },
      {
        "title": "page-break",
        "body": "Insert a page break at the end.\n\npython {baseDir}/scripts/wps_word_automation.py page-break --input \"C:\\path\\file.docx\" --save \"C:\\path\\out.docx\""
      },
      {
        "title": "merge",
        "body": "Merge multiple docs into one.\n\npython {baseDir}/scripts/wps_word_automation.py merge --inputs \"a.docx\" \"b.docx\" --output \"merged.docx\""
      },
      {
        "title": "split",
        "body": "Split by page ranges (e.g., \"1-3,4-6\").\n\npython {baseDir}/scripts/wps_word_automation.py split --input \"C:\\path\\file.docx\" --pages \"1-3,4-6\" --outdir \"C:\\out\""
      },
      {
        "title": "export",
        "body": "Export to PDF or TXT.\n\npython {baseDir}/scripts/wps_word_automation.py export --input \"C:\\path\\file.docx\" --format pdf --output \"C:\\path\\out.pdf\"\npython {baseDir}/scripts/wps_word_automation.py export --input \"C:\\path\\file.docx\" --format txt --output \"C:\\path\\out.txt\""
      },
      {
        "title": "image",
        "body": "Add or replace image at the end.\n\npython {baseDir}/scripts/wps_word_automation.py image --input \"C:\\path\\file.docx\" --image \"C:\\path\\img.png\" --save \"C:\\path\\out.docx\""
      },
      {
        "title": "Notes",
        "body": "If WPS is installed, try --app wps; otherwise default uses Word.\nUse --visible true if you need to watch the UI.\nAvoid batch usage; this skill is for single-document operations."
      }
    ],
    "body": "WPS/Word Automation (Windows)\n\nUse the bundled Python script to control Word or WPS via COM.\n\nRequirements\nWindows with Microsoft Word or WPS Writer installed.\nPython + pywin32 (python -m pip install pywin32).\nQuick start\npython {baseDir}/scripts/wps_word_automation.py read --input \"C:\\path\\file.docx\"\npython {baseDir}/scripts/wps_word_automation.py replace --input \"C:\\path\\file.docx\" --find \"旧\" --replace \"新\" --save \"C:\\path\\out.docx\"\npython {baseDir}/scripts/wps_word_automation.py export --input \"C:\\path\\file.docx\" --format pdf --output \"C:\\path\\out.pdf\"\n\nCommands\nread\n\nExtract plain text.\n\npython {baseDir}/scripts/wps_word_automation.py read --input \"C:\\path\\file.docx\" --output \"C:\\path\\out.txt\"\n\nreplace\n\nFind/replace text.\n\npython {baseDir}/scripts/wps_word_automation.py replace --input \"C:\\path\\file.docx\" --find \"old\" --replace \"new\" --save \"C:\\path\\out.docx\"\n\ninsert\n\nInsert text at start/end.\n\npython {baseDir}/scripts/wps_word_automation.py insert --input \"C:\\path\\file.docx\" --text \"Hello\" --where start --save \"C:\\path\\out.docx\"\n\nheadings\n\nApply Heading 1/2/3 to matching lines.\n\npython {baseDir}/scripts/wps_word_automation.py headings --input \"C:\\path\\file.docx\" --level 1 --prefix \"# \" --save \"C:\\path\\out.docx\"\n\nheader-footer\n\nSet header/footer text.\n\npython {baseDir}/scripts/wps_word_automation.py header-footer --input \"C:\\path\\file.docx\" --header \"标题\" --footer \"页脚\" --save \"C:\\path\\out.docx\"\n\npage-break\n\nInsert a page break at the end.\n\npython {baseDir}/scripts/wps_word_automation.py page-break --input \"C:\\path\\file.docx\" --save \"C:\\path\\out.docx\"\n\nmerge\n\nMerge multiple docs into one.\n\npython {baseDir}/scripts/wps_word_automation.py merge --inputs \"a.docx\" \"b.docx\" --output \"merged.docx\"\n\nsplit\n\nSplit by page ranges (e.g., \"1-3,4-6\").\n\npython {baseDir}/scripts/wps_word_automation.py split --input \"C:\\path\\file.docx\" --pages \"1-3,4-6\" --outdir \"C:\\out\"\n\nexport\n\nExport to PDF or TXT.\n\npython {baseDir}/scripts/wps_word_automation.py export --input \"C:\\path\\file.docx\" --format pdf --output \"C:\\path\\out.pdf\"\npython {baseDir}/scripts/wps_word_automation.py export --input \"C:\\path\\file.docx\" --format txt --output \"C:\\path\\out.txt\"\n\nimage\n\nAdd or replace image at the end.\n\npython {baseDir}/scripts/wps_word_automation.py image --input \"C:\\path\\file.docx\" --image \"C:\\path\\img.png\" --save \"C:\\path\\out.docx\"\n\nNotes\nIf WPS is installed, try --app wps; otherwise default uses Word.\nUse --visible true if you need to watch the UI.\nAvoid batch usage; this skill is for single-document operations."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Fadeloo/tiangong-wps-word-automation",
    "publisherUrl": "https://clawhub.ai/Fadeloo/tiangong-wps-word-automation",
    "owner": "Fadeloo",
    "version": "0.1.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/tiangong-wps-word-automation",
    "downloadUrl": "https://openagent3.xyz/downloads/tiangong-wps-word-automation",
    "agentUrl": "https://openagent3.xyz/skills/tiangong-wps-word-automation/agent",
    "manifestUrl": "https://openagent3.xyz/skills/tiangong-wps-word-automation/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/tiangong-wps-word-automation/agent.md"
  }
}