/hwpx-docs:hwpx-corefrom hwpx-docs
Creates, reads, and validates HWPX (OWPML/KS X 6101) and HWP 5.0 documents using a JSON spec. Handles build-check loops, page renders, and format conversion for Hangul-compatible documents.
Ships in hwpx-docs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
hd below = python "${CLAUDE_PLUGIN_ROOT}/lib/hd.py" (Python 3.10+, standard library only; if ${CLAUDE_PLUGIN_ROOT} is unset in Codex/Antigravity, resolve <plugin_root> as two levels up from this SKILL.md: ../../lib/hd.py).
Every document is made from the same primitives (page, paragraphs, runs, tables, shapes, pictures), written by one
builder from a JSON spec. There are no per-form templates in code. The XML forms come from files saved by Hangul
2024 and are checked by round trips. Spec format: ${CLAUDE_PLUGIN_ROOT}/docs/spec.md.
Both formats take the same commands. Name the output .hwp instead of .hwpx (hd build spec.json out.hwp, hd md, hd html) and the
document is written as HWP 5.0 with no Hangul; a received .hwp goes to slots, edit, guard, text, read, preview, pagefit,
readability the same way as a .hwpx. The table of every command and how it reaches a .hwp is ${CLAUDE_PLUGIN_ROOT}/docs/hwp-parity.md.
A .hwp write that meets an object or value it does not know (none of the tested files shows it) stops with UNSUPPORTED <element> and writes nothing: then make the HWPX and
hd convert it with Hangul. Never name a ZIP .hwp.
| input or task | skill |
|---|---|
| fonts, paragraph spacing, links, notes, Markdown or HTML input, readability | hwpx-text |
| tables (merges, lines, fills, sizes) | hwpx-table |
| boxes, lines, text boxes, pictures, charts | hwpx-objects |
| page size, margins, columns, header/footer, page numbers | hwpx-page |
| an image of a form, "make it the same as this" | hwpx-from-image |
| fill or change a received HWPX (keep its look), HWPX to text or Markdown | hwpx-edit |
| 공문 (기안문, 시행문), 개조식 보고서 | hwpx-gongmun (text rules: gongmun-style) |
| Hangul's file-access prompt, passwords | hwpx-security |
| "읽기 좋게", 쪽 넘김 줄이기, 표 안 끊기게, 쪽 꽉 차게 (only when asked) | hwpx-readability |
spec.json (docs/spec.md). Use measured values (mm, pt), not guesses. Repeated looks: styles + class.hd build spec.json out.hwpx — it also prints the readability findings (RDnn ..., READABILITY ...).hd readability spec.json --fix spec.json, then build again) and tell
the user the advice items (RD15 auto-applies multi-level hang/hang_under to lists/bullets, RD16 clamps oversized tables & aligns flow margins, RD10 enables repeat_header on 3+ row marked tables, RD17 trims bottom-border overhang and moves after space to the next block's before/top margin; opt out of hang with "hang": false). hd pipe make also enables widow, normalizes padding/"4pt" gaps, adds bottom-center page numbers on 2+ page docs without a footer (--no-page-num to skip), auto-applies --pagefit gongmun on gongmun Markdown presets (--pagefit none to skip), and prints PAGEFIT WARN whenever an intermediate page fills < 85%. A reproduction: report the findings, change nothing (skill hwpx-text).hd render hwpx out.hwpx pages/ --backend hangul (Hangul opens a safe copy: no macros, no links to outside) -> OPEN OK <file> pages <n> and pages/out_p<N>.png.
Before it, tell the user in one line: how many files, and that Hangul may ask once for file access ("모두 허용").hd render side, hd img overlay), fix, repeat. Give the user the HWPX and a PNG.hd pipe make|fill|run chains build/edit -> check/guard -> preview in a single turn (hd lookup cmd pipe). Use hd lookup spec|rule|gongmun|cmd <query> to read targeted entries instead of full docs, and hd preview ... --no-png for fast intermediate SVG/HTML checks.Read an existing file: hd read in.hwpx spec.json (unknown elements come out as raw {"xml": ...} and are written
back as given). Change the JSON, then hd build. To change only the text of a received file, use skill hwpx-edit
instead: it keeps every other byte.
${CLAUDE_PLUGIN_ROOT}/docs/rules.md)cols/heights are outer cell sizes. A block table starts 1 mm right of the text area (outer margin):
"margin": 0 aligns it with the text.font sets all 7 language fonts, so they follow it.docs/spec.md (spec), docs/rules.md (XML rules + evidence), docs/coverage.md (every Hangul feature C1-C14;
its builder column names the spec key of each feature), docs/interfaces.md (functions of each module). The keys of the
feature packages (master_pages, text_direction, dropcap, named_styles, toc, form, object ...) are in
docs/spec.md section "More keys of the feature packages"; each skill lists the keys of its area.lib/hwpx_docs/ modules core, text, table, objects, page, edit, extract, render, check (a feature package registers
its own commands and self-test: docs/interfaces.md); hd selftest runs every self-test and
the 271 fixture round trips (tests/fixtures).What SKILL.md sets; muted values are Claude Code's defaults
11 skills in this plugin
/gongmun-style공문 글쓰기 규칙(어투·단어·문장·표기). 공문·기안문·시행문·회신·보고서·보도자료·안내문·공고문 문장 쓰기, 공문체·공문 어투, 개조식, 행정 용어 순화, 날짜·시간·금액 표기, 띄어쓰기. Use whenever Korean official text is written, checked or replied to in 공문 tone./hwpx-editChange an existing HWPX or .hwp without breaking it — list its slots (paragraphs, table cells, labels), fill a received form by label, tick check boxes, replace words, then check structure, page drift and leftover text; also HWPX to text or Markdown. Use for 받은 양식 채우기, 신청서 작성, 기존 한글 문서 수정, 문구 바꾸기, 한글 문서 텍스트 추출./hwpx-from-imageReproduce a form exactly from an image or a description as an HWPX or HWP file — measure lines, grid and text bands in mm, write a fidelity checklist, build, render in Hangul, overlay and fix until no offset is over 0.5 mm. Use for 이 양식 그대로 만들어줘, 이미지 보고 한글 문서로, 서식 재현, HWP form from image./hwpx-gongmunKorean official documents as HWPX or HWP — 공문 (기안문, 시행문, 내부결재) from a data template with the 행정업무운영 편람 item levels, and 개조식 보고서 from Markdown. Use for 공문 만들기, 기안문, 시행문, 공고문, 보도자료, 통지서, 개조식 보고서를 한글 파일로. Text rules come from skill gongmun-style./hwpx-objectsDrawing objects in HWPX — rectangles, ellipses, lines and arrows, text boxes, pictures, native Hangul charts (bar, line, pie, combined) and charts drawn with shapes. Use for 한글 도형, 글상자, 그림 넣기, 그래프/차트가 있는 문서./hwpx-pagePage setup in HWPX — paper size, landscape, margins, gutter, columns, header and footer, page numbers, page borders, sections with their own setup, page and column breaks. Use for 한글 쪽 설정, 여백, 가로 방향, 다단, 머리말/꼬리말, 쪽 번호.npx claudepluginhub blackbuddle/hwpx-docs --plugin hwpx-docsOther plugins' skills for the same job