docx-generation
하는 일
이 스킬은 Markdown 텍스트를 일관된 스타일의 Word 보고서로 바꾸는 방법을 에이전트에게 가르칩니다. 표와 목록을 실제 Word 구조로 유지하며, 기존 Word 파일을 편집하는 데도 도울 수 있습니다.
사용하는 경우
- ✓사용자가 Markdown이나 메모에서 Word 보고서를 만들고 싶을 때.
- ✓사용자가 Markdown 표와 목록을 깔끔한 Word 문서로 바꿔야 하는 경우.
- ✓사용자가 기존 Word 파일을 구조와 스타일을 유지한 채 편집하고 싶을 때.
스킬 링크
https://github.com/aipoch/open-science/blob/main/resources/skills/docx-generation/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 Markdown 연구 메모를 적절한 표와 제목이 있는 Word 보고서로 바꿔 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 일반 변환 명령 대신 고정된 보고서 템플릿과 함께 번들된 변환기를 씁니다. 그래야 글꼴과 표 레이아웃이 일관되게 유지됩니다. 제목, 목록, 표는 실제 Word 구조로 남깁니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
DOCX generation and editing
Choose a workflow that preserves the user's requested content, structure, and presentation. User requirements take precedence over defaults. Keep tables, headings, and lists as native document structures.
Markdown to a new DOCX
For ordinary reports, use the bundled converter with an existing Pandoc 3.12.1 executable and Python 3.9 or newer. It uses a versioned reference document, separates ordinary table paragraphs from the Compact style shared by lists, and records converter/template provenance inside the DOCX. It does not install software. Run this converter rather than a bare pandoc source.md -o output.docx command: that command bypasses the report template and its typography, page geometry, table spacing, and provenance.
In Open Science, first prepare the workflow through the registered Notebook helper:
{
"kernelSkillIds": ["docx-generation"],
"code": "docx_workflow = prepare_docx_conversion('.')\nprint(docx_workflow)"
}
Call the function directly, without importing it. Repeat kernelSkillIds in every cell using this function. The helper writes the fixed converter and reference into a new directory inside the authorized Notebook working directory and returns script_path, reference_path, and workflow_directory. This uses the registered skill transport; the Notebook and shell cannot necessarily read the framework's skill directory.
Then run the returned script_path through the session's approved shell tool:
python "<returned-script_path>" "<source.md>" "<output.docx>"
Use the interpreter configured for the session. If the helper is unavailable, report that prerequisite through the normal execution recovery flow; do not probe or copy from the isolated framework skill directory. In environments outside Open Science that already allow reading this package, the original scripts/convert.py is also a standalone CLI.
Optional arguments:
--reference-doc "<template.docx>": use the user's template. Its styles and page settings take precedence; the bundled TableBody normalization is not applied.--from gfmor--from markdown+pipe_tables: select the dialect that matches the source. The default is Pandoc Markdown.--pandoc "<absolute-executable-path>": select an existing executable.
The bundled report profile uses A4 with 2 cm margins, 10.5 pt body text with approximately 1.33 line spacing, coordinated heading sizes (17/14/11.5 pt), and tighter list spacing. Tables use 9.5 pt text, 3 pt vertical and 4 pt horizontal cell padding, visible outer and internal grid lines, and bold headers without background shading. Top-level tables with automatic width fill the text area; explicit widths and column proportions remain intact. The default faces are Arial and PingFang SC for East Asian text; fonts are not embedded, and viewers substitute missing fonts. For a specific viewing platform or font requirement, use a reference with appropriate available fonts. A reference document's body content is not copied into the output. Use another workflow when the task requires filling a template's existing content.
Do not substitute the bundled template when the user supplied a template or requested a different design. For special page layouts or table widths, use an appropriate reference or targeted document editing; do not impose fixed page/column dimensions on every document.
For Pandoc Markdown pipe tables, retain intentional delimiter-row widths. Padding or reformatting a wide Markdown table can change the column proportions inferred by Pandoc.
The converter emits one JSON receipt with the output path, MIME type, versions, and template hash. It requires a new output filename and leaves existing files intact. If the supported Pandoc version is unavailable, report the missing prerequisite or use another suitable document-generation workflow under the session's normal environment rules. This skill does not require Pandoc for every DOCX task.
Editing existing DOCX files
Modify the existing package with an appropriate document library or narrowly scoped OOXML edits. Preserve unrelated styles, numbering, relationships, sections, and embedded objects. Avoid rebuilding a richly formatted source through Markdown when the task requires preserving its layout. For complex tables and precise forms, choose a library suited to that structure; library choice alone does not guarantee style preservation.
Artifact delivery
Pass the generated file's loc
자주 묻는 질문
간단한 명령을 쓰지 않는 이유는 무엇인가요?
스킬은 단순 변환은 보고서 템플릿, 타이포그래피, 표 간격을 건너뛴다고 설명합니다.
변환기에 무엇이 필요한가요?
이미 설치된 Pandoc 3.12.1과 Python 3.9 이상이 필요하며, 변환기가 소프트웨어를 설치하지는 않습니다.
이미 있는 Word 파일을 편집할 수 있나요?
네. 스킬은 기존 파일의 스타일을 유지하며 편집하는 별도의 흐름을 가지고 있습니다.
상세 정보
작성자의 원본 설명
Use when creating a Word DOCX report from Markdown, converting Markdown tables and lists to DOCX, or choosing a workflow for editing an existing DOCX while preserving its structure and styles. Use this workflow before running Markdown-to-DOCX shell commands. Includes report typography, table layout, a reusable reference document, and a Python converter.
repo: aipoch/open-science
인기도
- GitHub 스타
- 5.4k
- 순위
- #14856
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
alphafold2
5.4k에이전트가 ColabFold 러너를 통해 AlphaFold2로 단백질 서열의 3차원 구조를 예측하고, 단백질 복합체도 다루도록 돕습니다.
boltz
5.4k에이전트가 오픈 소스 Boltz-2 모델로 단백질, DNA, RNA, 저분자 복합체의 구조를 예측하도록 돕고, 선택적으로 결합 친화도 추정도 제공합니다.
borzoi
5.4k에이전트가 DNA 서열로부터 발현과 접근성 같은 게놈 전체의 활성 트랙을 예측하고, 예측된 효과로 변이를 비교하도록 돕습니다.
chai1
5.4k에이전트가 Apache 라이선스의 Chai-1 모델을 사용해, 하나의 FASTA 파일로 단백질, 핵산, 리간드 복합체의 구조를 예측하도록 돕습니다.
비슷한 스킬
feishu-doc
394k에이전트가 문서 도구를 사용해 텍스트, 이미지, 표를 포함한 Feishu 클라우드 문서를 읽고, 만들고, 편집하도록 돕습니다.
feishu-drive
394k에이전트가 봇과 공유된 Feishu 클라우드 폴더의 파일을 찾아보고, 정리하고, 댓글을 달도록 돕습니다.
feishu-perm
394k에이전트가 요청을 충족하는 가장 작은 권한을 골라, Feishu 파일에 누가 접근할 수 있는지 확인하고 바꾸도록 돕습니다.