SkillsGrove
SkillsGrove/문서 작업/TencentCloud/Octop/office-documents

office-documents

설치

$npx skills add https://github.com/TencentCloud/Octop --skill office-documents
$git clone --depth 1 https://github.com/TencentCloud/Octop.git /tmp/Octop && mkdir -p ~/.claude/skills && cp -r /tmp/Octop/src/octop/infra/agents/builtin_skills/office-documents ~/.claude/skills/office-documents
이 Agent Skill을 설치해 주세요: https://github.com/TencentCloud/Octop/tree/3935f8438b3d9c0e7eb5c690516e52e3d97cd1fe/src/octop/infra/agents/builtin_skills/office-documents — 먼저 SKILL.md와 스크립트를 읽고, 안전하다고 확인한 뒤에만 제 skills 폴더에 설치해 주세요.

요약

Word, Excel, PowerPoint 문서를 하나의 작업 공간에서 만들고, 편집하고, 렌더링합니다.

편집자 요약

원문 설명 · MITCreate, edit, inspect and render Word documents, Excel workbooks and PowerPoint presentations in this Octop workspace. 创建、检查、修改和渲染 Word、Excel、PowerPoint 文件。
아래 SKILL.md는 TencentCloud/Octop(커밋 3935f84)에서 MIT 라이선스에 따라 게시한 것입니다. 본문은 변경하지 않았으며, 파일 상단의 메타데이터만 생략하고 이미지는 링크로 표시하며 매우 긴 파일은 일부만 표시합니다. Copyright 2026 Octop. 라이선스: LICENSE. 지침 파일만 표시되며 스크립트 등은 원본 저장소를 참고하세요.

Office documents

Work inside {{OCTOP_WORKSPACE}} using the active expert's file and execution tools. Find uploaded originals under inbound/. Use a descriptive output filename and preserve the original when editing. Use the execution environment's Python with the Octop Office dependencies. Check the exact input and the intended output before reporting success.

Requirements and fallback

This skill is off by default; the expert's owner turns it on in the skills panel. Before the first task in a conversation, check what the execution environment has:

python -c "import docx, openpyxl, pptx" && echo office-python-ok
python "{{OCTOP_BUILTIN_SKILLS}}/office-documents/scripts/render.py" --check
  • Editing needs python-docx, openpyxl and python-pptx in the execution environment's Python. If the import fails, tell the user which package is missing and do not hand over a file you could not reopen.
  • Page preview also needs LibreOffice (soffice) and Poppler (pdftoppm). --check prints what is missing. Remote and sandboxed environments often lack them.
  • When preview is unavailable, still reopen and validate the saved file as described below, and say plainly that the layout was not checked visually. Never claim a page-by-page review that did not happen.
Format Create Load and edit Check before delivery
Word from docx import Document and doc = Document() Open with Document(input_path). Edit the affected paragraphs, runs or table cells and call doc.save(output_path). Editing individual runs preserves their formatting. Reopen with Document(output_path) and check headings, tables and the requested text.
Excel from openpyxl import Workbook and book = Workbook() Use openpyxl.load_workbook(input_path, data_only=False). Change the target sheets or cells, retain formulas and save to the output path. Reopen the file, verify sheet names, target cell values and formulas. Recalculate using a spreadsheet application if computed values are part of the deliverable.
PowerPoint from pptx import Presentation and deck = Presentation() Open with Presentation(input_path). Update shapes, runs or charts on the requested slides and save via deck.save(output_path). Reopen the output, check slide count, titles and target shape content.

Page preview

Only when --check reports the renderer as available: for a visual check or when the user requests page images, run the following command inside the same workspace. The helper converts the document to PDF with LibreOffice and renders every page to PNG using Poppler. In Excel it respects the workbook's print areas and page setup.

python "{{OCTOP_BUILTIN_SKILLS}}/office-documents/scripts/render.py" "output/report.docx" "output/report-pages"

Choose a new preview directory on each run. Its document.pdf and page-*.png files come from the saved Office file. Open the images and inspect tables, wrapping and overflows before handing over the finished file. If the command fails, report the missing renderer and keep document validation separate from a visual check. The Octop chat file preview also opens Word, Excel and PowerPoint files, so the user can look at the layout themselves.

Use the platform's file delivery tool when available to attach the final workspace file to the conversation. Include preview images when requested.

라이선스 전문 보기(MIT)
MIT License

Copyright (c) 2026 Octop

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.