office-tools
하는 일
문서 구조를 읽고, 대상을 정확히 골라 편집하고, 변경 내용 추적을 처리하며, 파일 패키지를 점검하는 명령줄 도구 모음입니다. 위험한 전체 다시 쓰기 없이 Office 파일을 조심스럽게 편집해야 하는 사람을 위한 스킬입니다.
사용하는 경우
- ✓Word, PowerPoint, Excel 파일의 구조를 읽고 싶을 때.
- ✓Word 파일의 변경 내용 추적이나 댓글을 수락하거나 검토하고 싶을 때.
- ✓Office 파일이 열리지 않게 만들 수 있는 문제가 있는지 확인하고 싶을 때.
스킬 링크
https://github.com/Fei2411/DS-Bot/blob/main/ds-bot/src/office/skills/office-tools/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 Word 보고서에서 열리지 않게 만들 문제가 있는지 확인하고, 댓글 목록을 보여 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트가 함께 제공되는 도구를 실행해 파일의 블록을 읽고 패키지를 확인합니다. 편집 결과는 새 파일에 쓰거나, 요청하면 원본 위치에 쓰고, 발견 사항을 보고합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Office tools
A bundled command line for the jobs the format skills cannot do safely: reading a document's structure with stable ids, repairing packages, targeted edits, tracked changes, layout findings, and contact sheets of rendered pages. Run every command through the Node and CLI paths in the runtime block at the end of this skill.
Every command accepts --json and prints {"ok":true,"data":…} for a run that completed, or {"ok":false,"error":{"code","message"}} when it failed. Findings are results, not failures: they land inside data.findings with ok still true, and the exit code carries them — 0 = ok, 1 = findings remain, 2 = usage or failure. Edits write a new file (-o out) or overwrite the input (--in-place); they never touch the input otherwise.
Commands
unpack <file> <dir>/pack <dir> <file>— extract a package to readable XML and repack it.pack --against <original>also runscheckagainst the original.check <file|dir> [--against <original>] [--fix]— only defects that make Office refuse a file or show a repair prompt.--againstreports just the issues the original lacks.--fixrepairs what is safe (xml:space, duplicate ids, content-type rows, dangling relationships).docx read <file> [--changes]— body blocks asp1…,t1…in reading order, with paragraph style, tables as cell rows (merges noted), headers/footers, footnotes/endnotes, comments and the paragraph each anchors to. Text shows tracked changes accepted;--changesmarks them inline ({+inserted (Ana)+},{-deleted (Ana)-}, moves, format changes, deleted paragraph marks).docx fields <file>— simple and complex fields with instruction and current result.docx edit <file> (-o out|--in-place) --ops <json|@file>— one batch of ops, all-or-nothing, ids fromdocx readof the same file:replace(cross-run text/regex, keeps formatting),set_cell,set_field,insert,delete,comment,accept_changes,reject_changes.pptx inventory <file> [--slides N…]— slide size, theme fonts, and every shape per slide: id, name, kind, placeholder, resolved box in inches (group transforms applied, layout/master placeholder inherited), text with run fonts and sizes, picture media.pptx layout <file> [--autofit]— overlapping text boxes and shapes off the slide, from the same resolved boxes.--autofitsetsa:normAutofiton the shapes found. Overflow inside a box still needs a render.pptx slides <file> -o|--in-place --order 3,1,1,5— reorder by current positions; a repeated position duplicates the slide (notes, charts and embedded workbooks copied); positions left out are removed.pptx clean <file|dir> [--dry-run]— drop slides not in the list, unreachable parts, dangling relationships/Overrides, unreferenced media (also works on docx/xlsx).xlsx inventory <file>— sheets (state, dimension, cell/formula counts, merges, tables, charts), defined names, every error cell with its formula, and a note when formulas have no cached value.xlsx read <file> --sheet <name> [--range A1:H40]— a grid of cached values with formulas shown; dates as ISO.sheet <png…|dir> -o <contact.png> [--cols 4] [--width 320]— one contact sheet of rendered pages, labelled with page numbers.
Workflows
Word — docx read for the ids → one docx edit batch over the opened document → docx read again to confirm → check --against <the untouched original> for anything left. Keep the original copy untouched (no --in-place on it).
PowerPoint — pptx inventory → edit (python-pptx through the format skill; pptx slides/pptx clean for structure) → pptx layout for overlap/off-slide findings → when office-render is in the catalog, render → sheet over the rendered images and look at the contact sheet before single slides → fix → recheck.
Excel — xlsx inventory → edit with openpyxl (format skill) → office-recalculate → xlsx inventory again and confirm no error cells and no uncached formulas.
XML edits — only through unpack, a real XML parser, and pack --against. Never sed or string-splice XML.
Finish line — check passes clean, pptx layout findings addressed or explained, the contact sheet looked at when rendering is available, and anything that could not be verified is said in the report.
Design rules for a new deck
One idea and one visual per slide. Titles state the point. One accent colour. A locked type scale. No card behind every paragraph. Draw
자주 묻는 질문
원본 파일을 바꾸나요?
제자리 편집을 요청하지 않는 한 바꾸지 않습니다. 그렇지 않으면 편집 결과는 새 출력 파일로 저장됩니다.
설치가 필요한가요?
아니요. 스킬은 오프라인에서 작동하며 아무것도 설치할 필요가 없다고 말합니다.
발견 사항은 무엇을 뜻하나요?
파일에서 검사가 찾아낸 문제입니다. 실행을 멈추지 않고 함께 보고됩니다.
상세 정보
작성자의 원본 설명
Inspect, check, and edit .docx/.pptx/.xlsx packages in place — block-level reading, comments, tracked changes, slide inventory and layout checks, slide reorder/duplicate/cleanup, workbook errors, package checks, contact sheets. Works offline; nothing to install.
repo: Fei2411/DS-Bot
인기도
- GitHub 스타
- 5.1k
- 순위
- #15052
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
비슷한 스킬
feishu-doc
394k에이전트가 문서 도구를 사용해 텍스트, 이미지, 표를 포함한 Feishu 클라우드 문서를 읽고, 만들고, 편집하도록 돕습니다.
feishu-drive
394k에이전트가 봇과 공유된 Feishu 클라우드 폴더의 파일을 찾아보고, 정리하고, 댓글을 달도록 돕습니다.
feishu-perm
394k에이전트가 요청을 충족하는 가장 작은 권한을 골라, Feishu 파일에 누가 접근할 수 있는지 확인하고 바꾸도록 돕습니다.