docx-to-hlz skillA
docx-to-hlz is agent-read markdown (skill) from lsj4232/kr_patent_skill: 한국 특허 명세서 워드(.docx)를 특허청 전자출원 편집기(통합명세서작성기 NKEditor / 신형 "지식재산처 전자문서 작성 S/W")가 여는 .hlz 파일로 변환한다. .hlz는 표준 ZIP = KIPO application-body XML(1개) + patNNNNN 도면 이미지. 워드의 【식별항목】 섹션 (【발명의 명칭】【기술분야】【배경기술】【해결하고자 하는 과제】【과제의 해결 수단】【발명의 효과】 【도면의 간단한 설명】【발명을 실시하기 위한 구체적인 내용】【청구범위】【요약】【대표도】【도면】)을 KIPO XML 요소로 매핑하고, 청구항은 <claim-text> + <br/>로, 도면 이미지는 표시크기(EMU→mm)와 함께 <drawings>로 패키징. 편집기 호환을 위한 하드 규칙을 자동 적용 — (1) ZIP 엔트리 파일명을 CP949 인코딩 + UTF-8 플래그(0x800) 제거(안 하면 편집기가 압축해제 실패 "…SGM 찾을 수 없습니다"), (2) img-format을.
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# docx-to-hlz — 워드 명세서 → 특허청 편집기(.hlz) 변환
완성된 한국 특허 명세서 `.docx`를 특허청 전자출원 편집기가 여는 **`.hlz`**(ZIP: KIPO XML + 도면)로 변환한다.
## 사용법
```bash
python "<skill>/scripts/docx2hlz.py" "명세서.docx" # → 같은 폴더에 명세서.hlz
python "<skill>/scripts/docx2hlz.py" "명세서.docx" -o out.hlz
```
의존성: `python-docx`, `Pillow`(png/tiff 재인코딩·크기추정용).
변환 후 사용자가 편집기에서 **[파일 > 열기]로 .hlz 선택**(또는 창에 드래그&드롭). 편집기 GUI 클릭은
자동화 불가이므로 여는 것은 사용자가 한다.
## 입력 워드 전제
- KIPO 별지 서식 **【식별항목】 태그**로 섹션이 구분돼 있어야 한다(위 description의 12개 태그).
- 래퍼 태그(【발명의 설명】【발명의 내용】【요약서】)는 자식만 쓰고 자신은 버린다.
- 비표준 소제목(예 【1. 용어의 정의…】 탐색창용 챕터)은 본문 문단으로 흡수(대괄호 제거).
- 표(table)는 미지원(현재 대상 명세서에 표가 없어 미구현) — 표 있는 건은 확장 필요.
## 산출 포맷 핵심 (application-body DTD)
```
<KIPO keapsVersion="5.6" editorKind="K" pageCount wi imgApply="N" xmlns="http://www.kipo.go.kr">
<PatentCAFDOC docflag="1.0" documentID="숫자">
<description>
<invention-title>한글{ENGLISH}</invention-title>
<technical-field><p num="0001">…</p></technical-field>
<background-art>…</background-art>
<summary-of-invention><tech-problem/><tech-solution/><advantageous-effects/></summary-of-invention>
<description-of-drawings><p>도 1은…<br/>도 2는…</p></description-of-drawings>
…Read the whole file at its exact version.
How to install
mdr add lsj4232/kr_patent_skill/docx-to-hlz@git:20260921.87394c3mdr add lsj4232/kr_patent_skill/docx-to-hlz@sha256:94d1a3ca8707260ePin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_ildyoh5nf5dskrps)
1 badge views in 30 days
Versions
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (8916 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
lsj4232/kr_patent_skill · 23 stars · license MIT · pushed 2026-09-21 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_ildyoh5nf5dskrps GET https://markdownregistry.com/api/v1/resolve?ref=lsj4232/kr_patent_skill/docx-to-hlz GET https://markdownregistry.com/api/v1/blob/94d1a3ca8707260e99993f2507bb10833f3561e803a910e0cf5af226c5d3cb91
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.