跳到正文
cccskills
免费在 GitHub 公开

office-artifacts

Create and edit Office documents, spreadsheets, and presentations for LibreOffice. Update text, cells, and slides, choose suitable file formats, and inspect version history or restore an earlier saved version when needed.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Manage Office files, formats and versions; use Writer, Calc or Impress for content.

查看安装方法

适用场景

  • Creating and revising Office documents
  • Updating spreadsheet cells and adding rows
  • Adding slides to a presentation
  • Reviewing history and restoring an earlier version

包含的文件(1)

  • SKILL.md6.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Office Artifacts

Use office_artifact for deliverables that must be real Office packages in LibreOffice Desktop. Use text_editor for Markdown and plain text. For LibreOffice office files, ODF is first-class: use ODT for Writer, ODS for Spreadsheet/Calc, and ODP for Presentation/Impress. Use DOCX, XLSX, or PPTX only when the user explicitly asks for OOXML compatibility, provides an existing file in that format, or needs that compatibility format.

The Desktop surface is user-owned UI. Creating, reading, or editing an artifact must save the file and update its state, but it must not open Desktop automatically if the user has not asked for that UI. Use the open action, open_in_canvas: true, or open_in_desktop: true only when the user explicitly asks to open the Office document/Desktop. After create/edit, answer briefly with what changed and the saved path when useful; do not write faux UI action labels such as "Open document" or "Download file", and do not add a note saying the canvas was not opened automatically unless the user explicitly asks about UI behavior.

For format-specific work, prefer the matching skill when available:

  • writer-documents for Writer/ODT files and DOCX compatibility files.
  • calc-spreadsheets for Calc/ODS spreadsheets and XLSX compatibility workbooks.
  • impress-presentations for Impress/ODP decks and PPTX compatibility decks.

Workflow

  1. Create or open the Office artifact with tool_name: "office_artifact" and tool_args.action: "create" or "open".
  2. Before content-sensitive edits, call the read action with file_id or path.
  3. Apply saved changes with the edit action.
  4. Use version_history or restore_version when the user asks to audit or roll back.

Office context may list opened files with file_id, path, version, size, and timestamp. It intentionally omits full file contents; use read when the content matters.

Minimal Calls

Create:

{
  "tool_name": "office_artifact",
  "tool_args": {
    "action": "create",
    "kind": "document",
    "title": "Project Brief",
    "format": "odt",
    "content": "Draft text here."
  }
}

For spreadsheets, content can be CSV, TSV, or a Markdown table; the tool writes real cells, not one text blob per row.

Read:

{
  "tool_name": "office_artifact",
  "tool_args": {
    "action": "read",
    "file_id": "abc123"
  }
}

Edit text in an ODT, DOCX, ODP, or PPTX file:

{
  "tool_name": "office_artifact",
  "tool_args": {
    "action": "edit",
    "file_id": "abc123",
    "operation": "replace_text",
    "find": "old phrase",
    "replace": "new phrase"
  }
}

Append text to an ODT or DOCX file:

{
  "tool_name": "office_artifact",
  "tool_args": {
    "action": "edit",
    "file_id": "abc123",
    "operation": "append_text",
    "content": "\nAdded line 1\nAdded line 2"
  }
}

Set spreadsheet cells:

{
  "tool_name": "office_artifact",
  "tool_args": {
    "action": "edit",
    "path": "/a0/usr/workdir/documents/Budget.ods",
    "operation": "set_cells",
    "cells": {
      "Sheet1!B2": 12500,
      "Sheet1!B3": 9800
    }
  }
}

Create an embedded spreadsheet chart:

{
  "tool_name": "office_artifact",
  "tool_args": {
    "action": "edit",
    "file_id": "abc123",
    "operation": "create_chart",
    "sheet": "Sheet1",
    "chart": {
      "type": "line",
      "title": "Monthly Revenue",
      "data_range": "B1:C13",
      "categories": "A2:A13",
      "position": "E1",
      "width": 18,
      "height": 10
    }
  }
}

Edit Operations

  • ODT and DOCX: set_text, append_text, prepend_text, replace_text, delete_text.
  • ODS and XLSX: set_cells, append_rows, set_rows, replace_text, delete_text.
  • XLSX only: create_chart for embedded spreadsheet charts.
  • ODP and PPTX: set_slides, append_slide, replace_text, delete_text.

Arguments:

  • set_text, append_text, and prepend_text use content for the text being written; do not put that text in value, update, or edits.
  • replace_text and delete_text require find; replace_text uses replace.
  • set_cells accepts { "A1": "value", "Sheet2!B3": 42 } or [{"sheet":"Sheet1","cell":"A1","value":"value"}].
  • rows accepts an array of rows. content can also be CSV, TSV, or a Markdown table.
  • create_chart accepts chart as an object or JSON string for XLSX compatibility workbooks. Supported XLSX chart types: line, bar, column, pie, area, scatter, stock, ohlc, candlestick. Use data_range, categories/labels, position, title, width, and height. For stock-style charts only, provide Open/High/Low/Close columns in that order, or rely on a sheet whose headers are Date, Open, High, Low, Close.
  • slides accepts [{"title":"Slide title","bullets":["point"]}]. Text slides can be separated with a line containing ---.
  • count limits text replacements.

Practical Rules

  • Prefer file_id from document context or prior tool output; use path when that is all you have.
  • Use read before editing unless the current saved content is already known.
  • Do not create an artifact for tiny one-shot edits or answers the agent can finish cleanly in chat or by directly editing the file.
  • For document-style writing requests with no requested binary format, use text_editor to create or edit Markdown and let the Editor surface be the primary interactive editor.
  • For spreadsheet or presentation file requests with no OOXML compatibility requirement, create ODS or ODP.
  • The Desktop runtime may be warmed during Agent Zero startup, but visible Desktop surface use remains opt-in. Treat LibreOffice GUI work as appropriate for explicit GUI requests, binary Office visual polish, or final layout inspection.
  • Never open Editor or Desktop automatically from a tool result. If the user has not asked to open it, leave the saved artifact available through the normal UI affordance.
  • Use native create_chart for embedded spreadsheet charts. Reach for Python/code execution only when the requested chart behavior is not supported by the tool.
  • Use edit for precise saved Office changes; use Editor for Markdown polish and Desktop for binary Office visual polish.
  • Direct edits update version history and refresh the document UI on edit/open results.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Create specialized Agent Zero profiles by defining their roles, working methods, and delegation criteria. The skill prepares configuration files and instructions, with optional custom tools, extensions, and model preset selection when needed.

中文简介正在准备中。当前显示英语简介。

  • Create a specialist agent for data analysis
  • Define when to delegate work to an agent
  • Customize an agent's workflow and response format
agent0ai/agent-zero2万2026年10月15日 更新

Build, improve, review, or troubleshoot Agent Zero plugins for local use or community distribution. Follow plugin structure and installation rules, verify behavior in the target runtime, and prepare repository and Plugin Index contributions when requested.

中文简介正在准备中。当前显示英语简介。

  • Building an Agent Zero plugin for local use
  • Reviewing an existing plugin's structure and behavior
  • Investigating plugins that fail to load or run
agent0ai/agent-zero2万2026年10月15日 更新

Operate Agent Zero projects, chats, and tasks, or develop new tools, extensions, and API features. The skill guides work through existing APIs, relevant documentation, current source code, and checks appropriate to the change.

中文简介正在准备中。当前显示英语简介。

  • Manage Agent Zero projects and chats
  • Develop custom tools and extensions
  • Add API endpoints or WebUI features
agent0ai/agent-zero2万2026年10月15日 更新

Find Agent Zero plugins that match a task, compare candidates and their requirements, and manage installation, updates, settings, activation, and removal. It also supports security scans and checks the resulting plugin state through framework management APIs.

中文简介正在准备中。当前显示英语简介。

  • Find and compare plugins for a specific task
  • Review service, credential, and cost requirements before installation
  • Scan, install, or update a plugin
agent0ai/agent-zero2万2026年10月15日 更新

Automate web page tasks such as clicking, filling forms, uploading and downloading files, and taking screenshots. Work across tabs using a browser on the connected host machine or inside a Docker container.

中文简介正在准备中。当前显示英语简介。

  • Filling web forms and selecting options
  • Uploading or downloading files through websites
  • Capturing screenshots to inspect page appearance
agent0ai/agent-zero2万2026年10月15日 更新

Create, edit, and install extensions for Agent Zero Browser, including extensions from Chrome Web Store. It guides permission reviews and checks for suspicious behavior, with new extensions built as readable files that users can inspect.

中文简介正在准备中。当前显示英语简介。

  • Create a browser extension for a specific website
  • Modify an existing extension
  • Install an extension from Chrome Web Store
agent0ai/agent-zero2万2026年10月15日 更新

查看 agent0ai 的全部技能

报告此技能的问题