본문으로 건너뛰기
Skillpedia
PDF, Word, 슬라이드5.1k · #15052

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/Fei2411/DS-Bot/blob/main/ds-bot/src/office/skills/office-tools/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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 runs check against the original.
  • check <file|dir> [--against <original>] [--fix] — only defects that make Office refuse a file or show a repair prompt. --against reports just the issues the original lacks. --fix repairs what is safe (xml:space, duplicate ids, content-type rows, dangling relationships).
  • docx read <file> [--changes] — body blocks as p1…, 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; --changes marks 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 from docx read of 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. --autofit sets a:normAutofit on 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬