docx-official
하는 일
이 스킬은 Microsoft Word 파일을 다룹니다. 새 문서 작성부터 기존 파일의 읽기와 변경까지 포함합니다. 보고서, 계약서, 편지, 템플릿을 다루는 사람을 위한 스킬입니다.
사용하는 경우
- ✓보고서, 편지, 제안서처럼 새 Word 문서가 필요할 때.
- ✓Word 템플릿에 값을 채워 넣어야 할 때.
- ✓Word 파일에서 텍스트나 구조를 뽑아내야 하는 경우.
스킬 링크
https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/docx-official/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 템플릿에 고객 이름과 오늘 날짜를 채워 넣은 공식 편지를 Word 형식으로 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 처음부터 만들기, 템플릿 채우기, 파일 구조 편집, 텍스트 읽기 중 경로를 고릅니다. 그다음 문서를 점검하고, 검토용 PDF 미리 보기를 만들 수도 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
DOCX Skill
An Apache-2.0 toolkit for producing, editing, and reading Microsoft Word (.docx) files. Written from scratch against the public ECMA-376 / ISO/IEC 29500 specification and built on permissively-licensed tooling (python-docx MIT, lxml BSD-3-Clause, optional external binaries pandoc and soffice) so it can be reused in commercial projects without restriction.
Decision matrix
| Situation | Path | Read first |
|---|---|---|
| No source file — build a document from a prompt / data | Author from scratch with python-docx |
create.md |
You have a .docx template to fill in or lightly modify |
Placeholder replacement via python-docx, keeps styles |
edit.md → Workflow A — python-docx in-place edit |
| Deep structural edits, new sections, custom XML, unusual layouts | Explode → edit XML → assemble | edit.md → Workflow B — Explode → edit XML → assemble |
You only need the text / structure / metadata out of a .docx |
Extraction pipeline | read.md |
| Need a PDF preview for QA | scripts/render_pdf.py via LibreOffice |
see QA below |
If the task mixes several of these, do them in this order: read → plan → edit/create → validate.
One-time environment setup
Bundled runtime: when the
MIMO_PYTHONenvironment variable is set, skipuv/python3and pip installs entirely — run every command below withuv runreplaced by"$MIMO_PYTHON"(e.g."$MIMO_PYTHON" scripts/extract_text.py input.docx). This skill's Python dependencies are preinstalled in that interpreter; pip console scripts are unavailable, so always go through"$MIMO_PYTHON" -m <module>. A bundled LibreOffice is exposed asMIMO_SOFFICEand picked up automatically by the scripts here.
All scripts include PEP 723 inline metadata, so uv run resolves dependencies automatically — no manual install step needed. Just run:
uv run scripts/extract_text.py input.docx
If you don't use uv, install dependencies once:
python3 -m pip install --upgrade python-docx lxml
# Optional but recommended:
# LibreOffice (for docx → pdf preview): brew install --cask libreoffice (macOS)
# apt-get install -y libreoffice (Debian/Ubuntu)
# Poppler (for pdf → image, QA loop): brew install poppler
Alternatively, if this skill lives in a persistent workspace you can uv init a project, uv add python-docx lxml, and run scripts with uv run scripts/... from the project root — this gives you a lockfile and reproducible environment.
All scripts here use the standard library plus python-docx. No proprietary dependencies.
Common commands
# 1. Extract plain text (best for "what does this file say?" questions)
uv run scripts/extract_text.py input.docx > input.txt
# 2. Explode a .docx into readable XML for structural surgery
uv run scripts/explode.py input.docx exploded/
# 3. Assemble an exploded directory into a fresh .docx
uv run scripts/assemble.py exploded/ output.docx
# 4. Render a .docx as PDF (used for visual QA)
uv run scripts/render_pdf.py output.docx # writes output.pdf next to it
# 5. Well-formedness check (ZIP integrity + parseable XML + python-docx open)
uv run scripts/audit.py output.docx
# 6. Accept every tracked change without needing Word/LibreOffice
uv run scripts/resolve_revisions.py reviewed.docx clean.docx
# 7. Add a comment to an exploded directory
uv run scripts/annotate.py exploded/ "Please check" --author "Reviewer" --anchor "text"
Every script is a small, self-contained Python file. Read the top of the file for full CLI options.
Authoring principles
Word is a flowing document format, not a slide surface. Users expect it to look like something a human wrote in Word — not a design tool trying to reinvent typography. Keep that in mind:
- Rely on named styles. Use
Heading 1,Heading 2,Normal,Title,Quote,List Bullet,List Number,Caption. They are what makes Word's ToC, navigation pane, and cross-references work. - One idea per paragraph. Long paragraphs are fine; run-on paragraphs are not. Break at logical boundaries.
- Structure first, prose second. Draft the heading tree, then write inside it. Reviewers scan headings before words.
- **Tables for tabular data
자주 묻는 질문
Word 파일을 PDF로 변환할 수 있나요?
네. 스킬은 Word 파일을 PDF나 일반 텍스트로 변환하는 기능을 다룹니다.
템플릿의 스타일은 유지되나요?
템플릿 채우기에서는 자리 표시자를 제자리에서 바꾸어 스타일을 유지합니다.
추가 도구가 필요한가요?
pandoc이나 LibreOffice처럼 설치되어 있을 때 쓰는 선택적 외부 도구가 일부 기능에 쓰입니다.
상세 정보
작성자의 원본 설명
Use this skill whenever a Microsoft Word (.docx) file is being produced, opened, transformed, or read. That includes: drafting reports, letters, contracts, RFPs, technical documents, or any long-form written deliverable; extracting text or structure from an existing Word file; filling a Word template with values; converting Word to PDF or plain text; splitting or merging documents; inspecting styles, headings, sections, tables, images, comments, or tracked changes. Trigger on mentions of 'Word doc', 'DOCX', 'Office document', a filename ending in .docx, or requests like 'turn this into a Word
repo: XiaomiMiMo/MiMo-Code
인기도
- GitHub 스타
- 14k
- 순위
- #11326
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
effect
14k에이전트가 기억에 의존하지 않고 소스 코드와 문서를 확인해 Effect TypeScript 프레임워크에 관한 질문에 답하도록 돕습니다.
arxiv
14k에이전트가 arXiv의 학술 논문을 검색하고, 읽고, 인용하고, 추적하도록 돕습니다. 초록, BibTeX 인용, PDF 다운로드, 인용 관계를 포함합니다.
claude-code
14k에이전트가 코딩 작업을 Claude Code 명령줄 도구에 맡기도록 돕습니다. 한 번 실행하거나, 대화형 세션으로 하거나, 백그라운드 작업으로 돌릴 수 있습니다.
codex
14k채팅 창 없이 OpenAI Codex 명령줄 도구를 실행해 코딩 작업, 스크립트, 자동화 파이프라인을 처리하도록 에이전트를 돕습니다.
비슷한 스킬
feishu-doc
394k에이전트가 문서 도구를 사용해 텍스트, 이미지, 표를 포함한 Feishu 클라우드 문서를 읽고, 만들고, 편집하도록 돕습니다.
feishu-drive
394k에이전트가 봇과 공유된 Feishu 클라우드 폴더의 파일을 찾아보고, 정리하고, 댓글을 달도록 돕습니다.
feishu-perm
394k에이전트가 요청을 충족하는 가장 작은 권한을 골라, Feishu 파일에 누가 접근할 수 있는지 확인하고 바꾸도록 돕습니다.