Token导航 LogoToken导航TokenDH.com
效率需要联网clawhub未标认证来源可访问clear审计通过

office-editor办公室编辑

Agent Skill

office-editor 用于整理文档、README、Markdown 和说明材料,适合在 OpenClaw 中需要把零散信息整理成结构清晰的文档时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

25,966

周安装

1,104

GitHub Stars

公开资料未说明

下载量

9,097
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:office-editor(办公室编辑)
来源仓库:https://github.com/noah-wu66/office-editor
安装命令:
openclaw skills install office-editor
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install office-editor

简介

创建或修改 .docx、.xlsx、.pptx 等 Office 文件格式。

  • 响应涉及 Office 组件的所有编辑与创建请求。
  • 支持基础排版、图表插入与样式统一操作。office-editor 属于效率类 Skill,可作为该场景下的辅助能力补充。
  • 操作前应确认目标文件未被其他进程占用。
  • 批量处理时需注意内存占用与超时风险控制。

SKILL.md

name
office-editor
description
Create or modify Word (.docx), Excel (.xlsx), and PowerPoint (.pptx) files. Use when the user mentions Office, Word, Excel, PowerPoint, docx, xlsx, pptx, spreadsheets, presentations, or document export. Check dependencies first, and if a core library is missing, report it directly instead of installing anything automatically.
user-invocable
true
metadata
{"openclaw":{"emoji":"📄"}}

Office Document Handling

Use this skill for .docx, .xlsx, and .pptx files. Identify the file type first, check the required dependencies next, and then decide whether to create a new file or modify an existing one.

Follow These Rules First

  1. Confirm the target format first: Word uses python-docx, Excel uses openpyxl, and PowerPoint uses python-pptx.
  2. Check whether the required dependency can be imported. If something is missing, tell the user exactly which package is required. Do not run pip, pip3, python -m pip, sudo, or similar install commands automatically.
  3. When editing an existing file, preserve the original by default and save the result as a new file. Only overwrite the original if the user explicitly asks for that.
  4. Do structural edits before visual fine-tuning. Avoid writing a large amount of low-value formatting code upfront.
  5. Only open the matching document in references/ when an advanced API is needed. Do not load every reference file into context at once.

Dependency Tiers

Core Dependencies

  • python-docx: for Word documents.
  • openpyxl: for Excel workbooks.
  • python-pptx: for PowerPoint presentations.

Optional Dependencies

  • pandas: only needed when converting between DataFrames and Excel.
  • pillow: only needed when inserting images into Excel.

Check Dependencies

Use a read-only import check like this. If the check fails, stop implementation and report the missing package(s) directly.

import importlib

PACKAGE_MAP = {
    "docx": "python-docx",
    "openpyxl": "openpyxl",
    "pptx": "python-pptx",
    "pandas": "pandas",
    "PIL": "pillow",
}

missing = []
for module_name, package_name in PACKAGE_MAP.items():
    try:
        importlib.import_module(module_name)
    except ModuleNotFoundError:
        missing.append(package_name)

print(missing)

Choose what to check based on the task:

  • .docx tasks: check docx
  • .xlsx tasks: check openpyxl
  • .pptx tasks: check pptx
  • DataFrame-related Excel tasks: also check pandas
  • Excel image tasks: also check PIL

Handle Word Documents

Use python-docx for .docx files.

Create a New File

from docx import Document

document = Document()
document.add_heading("Document Title", level=1)
document.add_paragraph("This is a paragraph.")
document.save("new_doc.docx")

Modify an Existing File

from docx import Document

document = Document("existing_doc.docx")
document.add_paragraph("Appended content")
document.save("updated_doc.docx")

Read These Resources First

  • Core API summary: {baseDir}/references/docx_api_summary.md
  • Create example: {baseDir}/scripts/create_basic_doc.py
  • Edit example: {baseDir}/scripts/edit_existing_doc.py

Handle Excel Workbooks

Use openpyxl for .xlsx files.

Create a New File

from openpyxl import Workbook

wb = Workbook()
ws = wb.active
ws.title = "Data"
ws["A1"] = "Hello"
ws.append(["Data 1", "Data 2", "Data 3"])
wb.save("new_workbook.xlsx")

Modify an Existing File

from openpyxl import load_workbook

wb = load_workbook("existing_workbook.xlsx")
ws = wb["Sheet1"]
ws["A1"] = "Updated value"
wb.save("updated_workbook.xlsx")

Read These Resources First

  • Create example: {baseDir}/scripts/create_basic_workbook.py
  • Charts: {baseDir}/references/xlsx_charts.md
  • Advanced features: {baseDir}/references/xlsx_features.md
  • DataFrame integration: {baseDir}/references/xlsx_pandas.md

Handle PowerPoint Presentations

Use python-pptx for .pptx files.

Create a New File

from pptx import Presentation

prs = Presentation()
slide = prs.slides.add_slide(prs.slide_layouts[1])
slide.shapes.title.text = "Slide Title"
slide.placeholders[1].text = "This is the content placeholder."
prs.save("new_presentation.pptx")

Modify an Existing File

from pptx import Presentation

prs = Presentation("existing_presentation.pptx")
slide = prs.slides.add_slide(prs.slide_layouts[1])
slide.shapes.title.text = "New Slide"
slide.placeholders[1].text = "Additional content"
prs.save("updated_presentation.pptx")

Read These Resources First

  • API quick reference: {baseDir}/references/pptx_api_reference.md
  • Chart guide: {baseDir}/references/pptx_chart_guide.md
  • Full example: {baseDir}/scripts/create_presentation.py

Resource Selection Rules

  • Basic Word file creation only: start with {baseDir}/scripts/create_basic_doc.py
  • Modify an existing Word file: start with {baseDir}/scripts/edit_existing_doc.py
  • Basic Excel creation only: start with {baseDir}/scripts/create_basic_workbook.py
  • Excel charts or conditional formatting: read {baseDir}/references/xlsx_charts.md or {baseDir}/references/xlsx_features.md first
  • DataFrame, CSV to Excel, or worksheet analysis: confirm pandas is available, then read {baseDir}/references/xlsx_pandas.md
  • Basic PowerPoint generation only: start with {baseDir}/scripts/create_presentation.py
  • PowerPoint charts: read {baseDir}/references/pptx_chart_guide.md first

Output Rules

  • Always save to a concrete target filename. Do not leave changes only in memory.
  • If the user does not provide a filename, use a clear default such as report.docx, budget.xlsx, or deck.pptx.
  • For edits to existing files, default to updated_*.ext to avoid accidental overwrites.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

78.37%
按下载量换算7,129

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills