본문으로 건너뛰기
cccskills
무료GitHub에 공개한국어 소개

markdown-to-word-mermaid

Mermaid 다이어그램이 포함된 Markdown을 DOCX로 변환합니다. 확대와 인쇄에 선명한 SVG와 호환성을 위한 PNG를 함께 넣고, 일반적인 문서 구조와 긴 다이어그램의 페이지 배치를 반영합니다. Word 도형을 개별 편집 가능한 형태로 만들지는 않습니다.

원문원문 설명 보기

Export Markdown containing Mermaid code fences to Word (.docx) with embedded SVG diagrams and PNG fallbacks. Use when diagram sharpness, Office-compatible labels, or page-aware placement matters. Not for Word-to-Markdown conversion, editable Office shapes, or general slide creation.

github/awesome-copilot스타 40,567(GitHub 40,567 + cccskills 0)
연동 도구Word

실행 점수 미검증

설치 방법 보기

이럴 때 유용합니다

  • Mermaid 절차서를 Word로 변환
  • 인쇄해도 선명한 다이어그램 넣기
  • 세로로 긴 그림의 페이지 배치
  • SVG와 PNG가 포함된 DOCX 만들기

한국어 소개

할 수 있는 일

Mermaid 코드 펜스가 포함된 Markdown 파일을 Word(.docx) 문서로 변환합니다. 각 다이어그램은 SVG로 삽입하고 3배 해상도의 PNG 대체 이미지도 보관하므로, 확대하거나 인쇄할 때의 선명도와 보기 환경의 호환성을 함께 고려합니다. 제목, 문단, 목록, 표, 인용문, 코드 블록도 Word 내용으로 변환합니다. 세로로 긴 다이어그램은 페이지 안에 맞도록 배치합니다. 변환은 함께 제공되는 스크립트로 로컬에서 수행합니다.

이럴 때 유용합니다

Mermaid 다이어그램이 있는 설계 문서, 작업 절차서, 보고서를 Word 형식으로 제출할 때 적합합니다. 인쇄할 때 다이어그램의 글자를 읽기 쉽게 유지하거나 긴 그림이 페이지 경계에서 나뉘는 것을 피하고 싶을 때도 사용할 수 있습니다. 다이어그램을 Word에서 개별 도형이나 연결선으로 편집할 수 있게 만들지는 않습니다.

사용 예시

  • “이 Markdown을 다이어그램 글자가 선명한 Word 문서로 변환해 주세요.”
  • “출력 파일을 report.docx로 지정하고 Mermaid 다이어그램을 넣어 주세요.”
  • “일본어 글꼴을 지정해 이 절차서를 DOCX로 만들어 주세요.”

주의 사항

Python 3.10 이상, 지정 패키지, Node.js, Mermaid CLI, Puppeteer가 사용할 수 있는 로컬 브라우저, 문서 문자를 지원하는 설치 글꼴이 필요합니다. 파일 생성에는 Word가 필요하지 않지만 벡터 표시를 확인하려면 SVG를 지원하는 Word 버전이 필요합니다. 기존 출력 파일은 덮어쓰지 않으며 Mermaid 문법이 잘못되었거나 렌더링에 실패하면 변환을 중단합니다. 글꼴 대체와 최종 페이지 나눔은 문서를 볼 환경에서 확인해야 합니다.

이 소개문은 공개된 SKILL.md를 바탕으로 AI(OpenAI Codex)가 작성했습니다. 정확한 사양은 아래 원문을 확인하세요.

문서 점검

AI가 SKILL.md의 내용에서 주의가 필요한 작업과 도입 전제를 확인했습니다. 점수는 실제로 실행한 결과(실행 검증)만으로 매깁니다.

안전성전송·삭제·명령 실행 등을 명시하고 있는가
A양호기존 파일 덮어쓰기를 막고 의존 항목 설치 전 동의와 신뢰할 수 없는 그림 검토를 요구합니다.
도입의 용이성필요한 도구나 API 키가 적고 적혀 있는가
B일부 부족Python 패키지, Node.js, Mermaid CLI, 로컬 브라우저, 적합한 글꼴이 필요합니다.

점수에는 넣지 않았습니다. 2026년 10월 26일 기준으로 AI(OpenAI Codex)가 판정했습니다. 참고용이므로 설치 전에 원문도 확인해 주세요.

평가가 다르다고 생각되면 재검토를 요청하기

어느 항목이 왜 다르다고 생각하는지 적어 주세요. 로그인은 필요 없습니다. SKILL.md와 대조해 평가를 다시 만들고 이곳에 반영합니다.

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

포함된 파일(6)

  • SKILL.md8.1 KB
  • assets/example.md1.3 KB
  • references/publication.md2.3 KB
  • scripts/markdown_to_word.py25.9 KB
  • scripts/requirements.txt73 B
  • tests/test_markdown_to_word.py25.5 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Markdown to Word with Mermaid

Export technical documents without manually replacing Mermaid fences with screenshots. The bundled converter renders each diagram locally, embeds the SVG through Office OOXML relationships, and retains a 3x PNG fallback. Word is not required to generate the file; an SVG-capable Word version is needed to inspect vector rendering.

When to use

  • A design document, runbook, or report contains Mermaid code fences and must be delivered as DOCX.
  • Diagram labels must remain sharp when zoomed or printed.
  • A tall diagram needs page-aware placement rather than being split across pages.

For general Markdown-to-DOCX conversion with existing PNG images, a general converter such as md-to-docx may be simpler. This skill focuses on rendering and packaging Mermaid diagrams. SVG embedding does not create editable Word shapes, connectors, or text boxes.

Requirements and setup

  • Python 3.10+ and the packages in scripts/requirements.txt.
  • Node.js compatible with the chosen Mermaid CLI release, plus @mermaid-js/mermaid-cli.
  • A local browser usable by Puppeteer and an installed font covering the document's characters.
  • Default font: Noto Sans JP. Use --font-family to select another installed family.

Resolve paths relative to this skill's installation directory, not an assumed repository name. The examples below run from the skill directory. Use the user's selected Python environment (python, python3, or its absolute path).

Before installing dependencies, confirm the environment and obtain permission if required. Reuse an existing Mermaid CLI when available. Otherwise install it into a user-approved local tools directory, not globally:

python -m pip install -r scripts/requirements.txt
npm install --prefix ./run/mermaid-cli @mermaid-js/mermaid-cli

The local executable is ./run/mermaid-cli/node_modules/.bin/mmdc on POSIX and ./run/mermaid-cli/node_modules/.bin/mmdc.cmd on Windows. Keep installed dependencies out of the submitted skill package. Lock the selected dependency versions in the consuming project for reproducible installations.

On Windows the converter detects standard Chrome and Edge paths. For another browser location, set MERMAID_BROWSER_PATH to its absolute executable path:

$env:MERMAID_BROWSER_PATH = "C:\Program Files\Google\Chrome\Application\chrome.exe"

On POSIX, use export MERMAID_BROWSER_PATH=/absolute/path/to/browser, or use Puppeteer's installed browser. Do not disable the browser sandbox just to make a conversion pass.

Workflow

  1. Confirm the input Markdown file, output destination, and font. If no destination is provided, use the input path with a .docx extension.
  2. Check that the output does not exist. Never delete or overwrite an existing document; ask for a different destination.
  3. Run scripts/markdown_to_word.py. Preserve the user's diagram source and meaning. Do not silently repair invalid Mermaid.
  4. Check the generated package and, when Word is available, inspect the document visually. Report package checks and visual checks separately.

With mmdc on PATH:

python scripts/markdown_to_word.py input.md --output output.docx

Using a workspace-local CLI on Windows:

python scripts/markdown_to_word.py input.md --output output.docx --mermaid-cli ./run/mermaid-cli/node_modules/.bin/mmdc.cmd

Selecting an installed font:

python scripts/markdown_to_word.py input.md --output output.docx --font-family "Noto Sans JP" --timeout 120

For a reproducible example, convert assets/example.md to a new output path. It includes English and Japanese labels, multiple diagrams, and a tall diagram.

Conversion behavior

  • Headings, paragraphs, emphasis, lists (preserving ordered list start numbers and separate list boundaries), blockquotes, tables, and code blocks become Word content.
  • Each Mermaid fence renders to SVG and a 3x PNG with a per-command timeout (default: 120 seconds). Office SVG extensions reference the SVG; the normal image reference retains the PNG fallback, and drawing metadata (title and descr) includes the section heading or Mermaid accTitle/accDescr plus the diagram type.
  • Output DOCX files are staged and SVG-injected inside a temporary directory before moving to the destination path so failed runs never leave partial files behind.
  • The selected font is applied to Word paragraph styles and Mermaid's font configuration. Code runs use Consolas. Fonts are not embedded; unavailable fonts may be substituted.
  • htmlLabels: false is set globally and for flowcharts to avoid HTML foreignObject labels that Office may not display. Check actual SVG output for unsupported constructs.
  • Diagrams are centered, keep their aspect ratio, and use a non-splitting paragraph. Diagrams occupying at least 70% of the page body height start on a new page. Oversized diagrams are scaled to the page body height. Large diagrams generate a readability warning.
  • A simple single-line frontmatter title becomes the document title; other frontmatter fields are removed from the body. This is not a full YAML metadata parser.
  • Ordinary Markdown image links remain alt text and a source path or URL; they are not embedded. Raw HTML is reduced to text, not executed.

Stop conditions and limitations

  • Missing input, wrong extensions, an existing output, missing CLI, invalid Mermaid, rendering failure, or unusable SVG dimensions stop the conversion with an error.
  • The converter does not call an external rendering service or a separate AI API. Dependency installation and browser execution are not an offline sandbox. Review untrusted diagram content, including external resources, before rendering it.
  • Diagrams are not semantically editable Office objects. Word rendering, font substitution, and final pagination depend on the viewer and must be checked there.
  • A successfully created DOCX is not proof that every diagram label is readable. Split large diagrams in the source only with the user's approval.

Verification

Run the test suite from the skill directory:

python -m unittest discover -s tests -v

The ordinary suite mocks Mermaid rendering. To run the real-renderer test as well, set MERMAID_CLI to the CLI executable's absolute path, then run the command again. On Windows PowerShell:

$env:MERMAID_CLI = (Join-Path $env:APPDATA "npm\mmdc.cmd")
python -m unittest discover -s tests -v

That test renders the bundled sample and checks the resulting DOCX's SVG references, PNG fallbacks, labels, and drawing dimensions. It does not automate Word visual inspection.

Before reporting completion:

  • Count Mermaid fences and verify the same number of SVG parts and SVG image references in the DOCX.
  • Confirm PNG fallback references exist and no label foreignObject remains in the sample's SVGs.
  • In Word, inspect node names, branch labels, font, diagram placement, and page boundaries; check zoomed or printed output when sharpness matters.
  • If Word or the actual renderer was unavailable, state which checks were not performed.

For contribution scope, evaluation cases, and a draft submission description, see references/publication.md. That file is maintainer guidance, not permission to publish.

Gotchas

  • mmdc.cmd needs Windows command handling; pass its path with --mermaid-cli rather than rewriting the script.
  • A missing font can affect both PNG rendering and SVG display. Use a family installed on the rendering and viewing machines.
  • Keep the SVG and PNG paired. Replacing SVG with a screenshot defeats the vector-preserving workflow.
  • Package validation, renderer tests, agent-selection evaluation, and human visual acceptance are different checks.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

acquire-codebase-knowledge

무료요약 있음

기존 프로젝트의 코드와 설정을 조사해 기술 구성, 구조, 아키텍처, 규칙, 연동, 테스트, 우려 사항을 다루는 문서 7개를 작성합니다. 근거 파일을 연결하고 미확인 항목을 표시하며, 계획과 실제 구현의 차이를 드러냅니다.

  • 익숙하지 않은 코드베이스 파악하기
  • 프로젝트 인수인계 문서 준비하기
  • 설계 문서와 실제 구현 비교하기
github/awesome-copilot4.1만2026년 10월 29일 업데이트

acreadiness-assess

무료요약 있음

AgentRC로 저장소의 AI 에이전트 활용 준비도를 평가하고 독립 실행형 HTML 보고서를 생성합니다. 9개 영역의 점수와 우선순위별 개선안을 확인하고, 조직에 맞춘 채점 정책도 적용할 수 있습니다.

  • AI 에이전트 도입 전 준비도 확인
  • 평가 결과에 따라 개선 우선순위 결정
  • 조직별 정책으로 점수 산정
github/awesome-copilot4.1만2026년 10월 29일 업데이트

프로젝트의 실제 코드에서 언어, 프레임워크, 개발 관례를 파악해 AI 코딩 에이전트용 지침 파일을 생성하거나 갱신합니다. 하나의 파일에 모으거나 주제와 프로젝트 영역별로 나누며, 쓰기 전에 변경 내용을 미리 볼 수 있습니다.

  • VS Code Copilot용 지침 만들기
  • 바뀐 개발 규칙을 지침에 반영
  • 모노레포 영역별 규칙 정리
github/awesome-copilot4.1만2026년 10월 29일 업데이트

acreadiness-policy

무료요약 있음

AgentRC 준비도 평가를 팀이나 조직의 기준에 맞게 조정합니다. JSON 정책에서 검사 중요도와 수준을 바꾸고, 불필요한 검사를 끄며, 통과율을 설정해 CI 자동 검사에도 적용할 수 있습니다.

  • 조직 공통 평가 기준 만들기
  • AI 관련 준비 상태만 평가
  • 검사 항목의 중요도 조정
github/awesome-copilot4.1만2026년 10월 29일 업데이트

ad-campaign-analyzer

무료요약 있음

제공한 광고 성과 데이터를 분석해 낭비되는 지출과 성과가 좋은 광고를 찾고, 중단·예산 증액·추가 테스트 후보를 정리합니다. 여러 플랫폼을 비교하고 A/B 테스트의 차이를 평가해 예산 재배분 방안도 제시합니다.

  • 중단할 광고나 키워드 찾기
  • 예산을 늘릴 캠페인과 대상 찾기
  • A/B 테스트 결과의 유의성 확인
github/awesome-copilot4.1만2026년 10월 29일 업데이트

add-educational-comments

무료요약 있음

지정한 코드 파일에 학습용 주석을 추가해 문법, 프로그래밍 개념, 설계 선택의 이유를 설명합니다. 독자의 지식에 맞춰 설명의 깊이와 반복 정도를 조절하며 파일 구조와 형식을 유지합니다.

  • 기존 코드에 초보자용 설명 추가
  • 문법이나 설계 방식을 선택한 이유 설명
  • 독자의 경험에 맞춰 주석 조정
github/awesome-copilot4.1만2026년 10월 29일 업데이트

github의 스킬 모두 보기

이 스킬의 문제 신고