officecli
하는 일
이 스킬은 officecli 명령줄 도구로 .docx, .xlsx, .pptx 파일을 다루도록 AI 에이전트를 안내합니다. Office 문서를 만들거나 수정하면서 편집을 에이전트에게 맡기려는 사람을 위한 스킬입니다.
사용하는 경우
- ✓내 내용으로 새 Word, Excel, PowerPoint 파일을 만들고 싶을 때.
- ✓기존 Office 파일의 서식 문제를 확인해야 할 때.
- ✓Office 문서에 차트를 추가하거나 텍스트를 바꾸고 싶을 때.
스킬 링크
https://github.com/iOfficeAI/OfficeCLI/blob/main/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 Word 보고서의 서식 문제를 확인하고 제목을 고쳐 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 필요하면 officecli를 설치하고, 문서 구조를 읽은 뒤, officecli 명령으로 변경하고 결과를 확인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
officecli
AI-friendly CLI for .docx, .xlsx, .pptx. Single binary, no dependencies, no Office installation needed.
Install
If officecli is not installed:
# macOS / Linux
curl -fsSL https://d.officecli.ai/install.sh | bash
# Windows (PowerShell)
irm https://d.officecli.ai/install.ps1 | iex
Verify with officecli --version. If still not found after install, open a new terminal.
Strategy
L1 (read) → L2 (DOM edit) → L3 (raw XML). Always prefer higher layers. Add --json for structured output.
Before doc work, check Specialized Skills (bottom of this file). Fundraising decks, academic papers, financial models, dashboards, and Morph animations need their own skill loaded first — load_skill once, then proceed.
Help System (IMPORTANT)
When unsure about property names, value formats, or command syntax, ALWAYS run help instead of guessing. One help query beats guess-fail-retry loops.
officecli help ≡ officecli --help, and officecli <cmd> --help ≡ officecli help <cmd> — same content.
officecli help # All commands + global options + schema entry points
officecli help docx # List all docx elements
officecli help docx paragraph # Full schema: properties, aliases, examples, readbacks
officecli help docx set paragraph # Verb-filtered: only props usable with `set`
officecli help docx paragraph --json # Structured schema (machine-readable)
Format aliases: word→docx, excel→xlsx, ppt/powerpoint→pptx. Verbs: add, set, get, query, remove. MCP exposes the same schema via the single command string param: {"command":"help docx paragraph"} (not a structured {"format":...,"type":...} object — the MCP tool has exactly one param, command, and passes it through to the CLI verbatim).
Performance: Resident Mode
Every command auto-starts a resident on first access (60s idle timeout) — file-lock conflicts are automatically avoided. Explicit open/close is still recommended for longer sessions (12min idle):
officecli open report.docx # explicitly keep in memory
officecli set report.docx ... # no file I/O overhead
officecli close report.docx # save and release
Opt out of auto-start: OFFICECLI_NO_AUTO_RESIDENT=1.
Flush only at the non-officecli boundary. officecli's own reads (get/query/view/dump) always see your latest edits, so you never need to save mid-workflow. Run save (keeps the resident) or close (flush + release) only before a non-officecli program reads the file — python-docx/openpyxl, Word, a renderer, delivery/upload. (Idle sessions auto-flush within seconds; OFFICECLI_RESIDENT_FLUSH=each makes every mutation flush before returning.)
Quick Start
PPT:
officecli create slides.pptx
officecli add slides.pptx / --type slide --prop title="Q4 Report" --prop background=1A1A2E
officecli add slides.pptx '/slide[1]' --type shape --prop text="Revenue grew 25%" --prop x=2cm --prop y=5cm --prop font=Arial --prop size=24 --prop color=FFFFFF
Word:
officecli create report.docx
officecli add report.docx /body --type paragraph --prop text="Executive Summary" --prop style=Heading1
officecli add report.docx /body --type paragraph --prop text="Revenue increased by 25% year-over-year."
Excel:
officecli create data.xlsx
officecli set data.xlsx /Sheet1/A1 --prop value="Name" --prop bold=true
officecli set data.xlsx /Sheet1/A2 --prop value="Alice"
L1: Create, Read & Inspect
officecli create <file> # Create blank .docx/.xlsx/.pptx (type from extension)
officecli view <file> <mode> # outline | stats | issues | text | annotated | html
officecli get <file> <path> --depth N # Get a node and its children [--json]
officecli query <file> <selector> # CSS-like query
officecli validate <file> # Validate against OpenXML schema
view modes
| Mode | Description | Useful flags |
|---|---|---|
outline |
Document structure | |
stats |
Statistics (pages, words, shapes) | |
issues |
Formatting/content/structure problems | --type format|content|structure, --limit N |
text |
Plain text extraction | --start N --end N, --max-lines N |
annotated |
Text with formatting annotations | |
html |
Static HTML snapshot — same renderer |
자주 묻는 질문
Microsoft Office가 설치되어 있어야 하나요?
아닙니다. 스킬에 따르면 officecli는 Office 설치 없이 작동합니다.
설치는 어떻게 하나요?
스킬은 macOS, Linux, Windows용 설치 명령을 안내합니다.
특수한 문서 유형도 다루나요?
네. 대시보드나 재무 모델 같은 일부 유형은 관련 스킬이 따로 있습니다.
상세 정보
작성자의 원본 설명
Create, analyze, proofread, and modify Office documents (.docx, .xlsx, .pptx) using the officecli CLI tool. Use when the user wants to create, inspect, check formatting, find issues, add charts, or modify Office documents.
repo: iOfficeAI/OfficeCLI
인기도
- GitHub 스타
- 33k
- 순위
- #9127
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 10. 30.
댓글
- …
이 저장소의 다른 스킬
morph-ppt-3d
33k에이전트가 3D GLB 모델과 슬라이드 사이의 부드러운 Morph 전환 효과를 넣은 PowerPoint 발표 자료를 만들도록 돕습니다.
morph-ppt
33k에이전트가 슬라이드 사이에서 도형이 움직이거나 커지거나 회전하는 부드러운 Morph 전환 효과가 있는 PowerPoint 파일을 만들도록 돕습니다.
officecli-academic-paper
33k에이전트가 인용, 수식, 저널 스타일 레이아웃을 갖춘 연구 논문, 학위논문, 원고를 Word 파일로 서식 지정하도록 돕습니다.
officecli-data-dashboard
33k에이전트가 CSV나 표 데이터를 KPI 카드, 차트, 먼저 열리는 시트가 있는 Excel 대시보드로 바꾸도록 돕습니다.
비슷한 스킬
feishu-doc
394k에이전트가 문서 도구를 사용해 텍스트, 이미지, 표를 포함한 Feishu 클라우드 문서를 읽고, 만들고, 편집하도록 돕습니다.
feishu-drive
394k에이전트가 봇과 공유된 Feishu 클라우드 폴더의 파일을 찾아보고, 정리하고, 댓글을 달도록 돕습니다.
feishu-perm
394k에이전트가 요청을 충족하는 가장 작은 권한을 골라, Feishu 파일에 누가 접근할 수 있는지 확인하고 바꾸도록 돕습니다.