SkillsGrove
SkillsGrove/문서 작업/RUC-NLPIR/CoworkOS/office-documents

office-documents

설치

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

요약

원문 설명 · MITCreate, inspect, edit, render, and validate Word and Excel files (.docx, .xlsx). Use for reports, spreadsheets and conversions; use presentations for PowerPoint work.
아래 SKILL.md는 RUC-NLPIR/CoworkOS(커밋 baf03c3)에서 MIT 라이선스에 따라 게시한 것입니다. 본문은 변경하지 않았으며, 파일 상단의 메타데이터만 생략하고 이미지는 링크로 표시하며 매우 긴 파일은 일부만 표시합니다. Copyright 2026 CoworkOS contributors. 라이선스: LICENSE. 지침 파일만 표시되며 스크립트 등은 원본 저장소를 참고하세요.

Office documents

Use this skill for DOCX and XLSX files. For PowerPoint, load presentations; a bound editor also uses pptist. The skill supplies workflow and format knowledge; the runtime stays generic.

Workflow

  1. Load this skill with load_skill and run node <absolute-script-path> using its returned scripts["check_backend.mjs"]. When loaded by read, resolve scripts/check_backend.mjs against the actual parent directory of the SKILL.md you read. Never guess a location under ~/.agents/skills. Prefer the local officecli executable when it is available. If it is absent, use the detected Python format library for structured editing. Do not install packages or upload files without an explicit user request.
  2. Work on a copy in the current Agent's workspace. Preserve the user's original. Subagents keep candidate results under their private deliverables/; Main keeps scripts and intermediate previews under work/ and writes or copies accepted final files into the Task's artifacts/ with ordinary file/command tools. Only Task artifacts/ files appear as user deliverables.
  3. Inspect before editing. Use OfficeCLI view/get/query for structure and text; use render for a visual preview. Read the relevant reference in references/ only when the operation needs format-specific details.
  4. Make the smallest reliable change. Group independent OfficeCLI changes in one batch when possible, then validate and inspect issues.
  5. Render the result again and review the preview. Fix layout, missing content, invalid references, and accidental template changes before delivery.
  6. Return a concise conclusion with the output path, preview/validation evidence, and any backend limitation. Do not claim success when only a plan was produced.

Backend rules

  • @officecli/officecli from iOfficeAI/OfficeCLI is the preferred structured local backend when installed. It supports inspection, JSON-shaped operations, validation, and rendering for common Office formats.
  • Python fallbacks are format-specific: python-pptx can create and edit PPTX structure, python-docx handles DOCX structure, and openpyxl handles XLSX structure. These libraries do not render Office files, so a visual preview requires LibreOffice/soffice or another renderer.
  • LibreOffice/soffice is a useful conversion or rendering fallback, but it is not a substitute for structured editing. If no backend is available, explain the blocker instead of silently producing a fake file.
  • Keep Office-specific command knowledge in the references and load it on demand. Do not add a permanent Office tool or put the full workflow into the global Main prompt.

The generic read_file tool is restricted to the Agent's own working directory. The load_skill result already contains this skill's main instructions; to inspect a referenced file or run a bundled script outside that directory, use run_command with the absolute directory returned by load_skill (for example, cat <skill-directory>/references/format-checklist.md or node <skill-directory>/scripts/check_backend.mjs).

Ownership and evidence

Main remains responsible for task decomposition, decisions, and the final judgment. A Subagent may execute a focused Office artifact task, but must report the actual commands, output paths, and validation/render evidence in its final message. Prefer one artifact-focused task per Subagent.

See references/officecli.md for command patterns and references/format-checklist.md for format-specific acceptance checks.

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

Copyright (c) 2026 CoworkOS contributors

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.