spreadsheets
Create, read, and make basic normalized edits to Excel .xlsx files with Artemis's built-in office_document tool.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- spreadsheets
- description
- Create, read, and make basic normalized edits to Excel .xlsx files with Artemis's built-in office_document tool.
03 SKILL.md 正文
Spreadsheets
Use this Skill for basic Excel workbook work that does not require a Codex primary runtime or a spreadsheet Connector.
Tool and mode
- Use the built-in
office_documenttool for every spreadsheet operation. - The tool requires the installed Office suite and Work or Codemode. If it is unavailable, ask the user to install the Office suite in Resources → Plugins and use Work or Codemode.
- Do not call
load_workspace_dependencies, install packages, look for a Codex runtime, or require an Excel Connector. - Use workspace-relative
.xlsxpaths and provide the required model approval decision truthfully.
Supported workflow
- Create or overwrite a workbook from named sheets and primitive cell values.
- Read sheets as normalized rows and cells.
- Modify one cell with a
set-cellpatch using one-based row and column numbers. - Delete a workbook when the user explicitly requests it.
Before overwriting or deleting, confirm that the request identifies the intended file. After a write, report the resulting path and any warnings returned by the tool.
Content limitations
This workflow preserves normalized sheet names and primitive cell values. It does not promise fidelity for formulas, charts, pivot tables, macros, external links, conditional formatting, merged cells, or advanced styling. Explain that limitation before changing an existing workbook when it matters to the request.
Native Office sessions
The Office suite must be installed and active before any document operation. Install it once from Resources → Plugins → Office. Never install the runtime through bash, npm or an extension.
-
Every operation requires the installed Office suite. Imported originals and externally modified files cannot be overwritten through normalized
writeormodify. Preserve the original and create a separate file when a normalized copy is wanted. -
For continuous edits with an installed, accepted capability, call
office_documentwithoperation: "open". Reuse the returnedsessionIdassession_id. -
Send
operation: "apply", a stable uniqueoperation_id, the lastexpected_version, and a structuredchange. Word uses paragraph UTF-16 offsets (replace-text); slides use page/object indices (set-object-text); sheets useset-cellsor explicitset-formula. -
Retry uncertain operations with the identical operation ID and body. Read
operation: "snapshot"after a version conflict. Never guess selection indices from an older version. -
Each acknowledged operation is an unsaved live draft. The host renders it before saving. Only
operation: "save"with the expected version writes the original. Report saved, draft and preview versions separately. -
If compatibility validation blocks save, keep the draft and original and report the exact reason. Do not fall back to normalized writes, bash or rebuilding the original. This development branch has not yet accepted the native compatibility matrix.
-
operation: "close"refuses unsaved changes. Only setdiscard: truewhen the user explicitly wants to discard them. Closing a preview tab does not discard the draft. -
An external-change event is a file-level update, not evidence of paragraph/cell-level edits. Preserve the live draft before reopening an externally changed original.
-
User annotations include
sourceVersionand a selection. Check the version before acting on an annotation; do not apply old offsets to new content. -
Region annotations use page-relative coordinates from 0 to 1 with the origin at the top-left. Their optional
quotecontains visible PDF text runs as context, not native paragraph or cell offsets. Verify that context against the current snapshot and rendered page; do not guess a paragraph, object or cell from page coordinates. If the target is ambiguous, ask for a more precise selection before editing.
04 同仓库更多 Skills
hello
Explain this project in plain language.
computer-use
Use when a task needs a website or desktop application's visible interface, such as filling a form, changing app settings, reading a screen, clicking a control, or moving information between apps. Prefer an available direct API, connector, or file tool when it fully supports the task. The user does not need to mention this skill or plugin.
presentations
Create, read, and make basic normalized edits to PowerPoint .pptx files with Artemis's built-in office_document tool.
Create, read, and make basic normalized text edits to PDF files with Artemis's built-in office_document tool.
documents
Create, read, and make basic normalized edits to Word .docx files with Artemis's built-in office_document tool.