/hwpx-docs:hwpx-from-imagefrom hwpx-docs
Reproduces a form exactly from an image as an HWPX/HWP file using pixel measurement, overlay comparison, and iterative refinement to sub-millimeter accuracy.
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.
Read when SKILL.md points to them.
hd = python "${CLAUDE_PLUGIN_ROOT}/lib/hd.py" (if ${CLAUDE_PLUGIN_ROOT} is unset, use ../../ relative to this SKILL.md). Full procedure, checklist template and lessons:
${CLAUDE_SKILL_DIR}/references/image-to-hwpx.md (or references/image-to-hwpx.md relative to this SKILL.md). Read it before you start.
Short form:
hd render topng target.jpg target.png); find the paper size (default A4 portrait).hd measure target.png --page-mm 210 -> H/V lines, GRID, COLS/ROWS (table widths, heights), INK (margins),
text bands. Font size from a line of N Korean characters L mm long: size_pt = L / N / 0.3528.ko-writing (공문: gongmun-style).hd check out.hwpx checklist.md reads it.hd build form.json form.hwpx, hd check, hd render hwpx form.hwpx out/, then
hd render side side.png target.png out/form_p1.png and hd img overlay ov.png target.png out/form_p1.png.
Fix the spec where red/blue pairs show an offset; repeat.hd readability form.hwpx: report the findings to the user; do not change the target's look.Rules from tests: match glyph height first (font size), then line width with 자간/장평, never by smaller cell
margins; copy every visible line break; never add a fill that you cannot see; a gradient bar = its mean colour.
No per-form templates: every form uses the same spec primitives (docs/spec.md); an element with no spec key ->
closest primitives, or hd read an HWPX that has it (raw XML passes through), and note the gap.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
11 skills in this plugin
/gongmun-style공문 글쓰기 규칙(어투·단어·문장·표기). 공문·기안문·시행문·회신·보고서·보도자료·안내문·공고문 문장 쓰기, 공문체·공문 어투, 개조식, 행정 용어 순화, 날짜·시간·금액 표기, 띄어쓰기. Use whenever Korean official text is written, checked or replied to in 공문 tone./hwpx-coreMake, read and check HWPX (OWPML, KS X 6101) and HWP (HWP 5.0) documents that 한컴오피스 한글 opens — JSON spec to HWPX or HWP builder, HWPX/HWP to spec reader, build-check loop, page renders. Use for 한글 문서/hwpx/hwp 만들기, hwp 파일, 한글 양식, reading or editing an HWPX or .hwp as data. Other hwpx-* skills add text, tables, objects, page, forms from images, 공문./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 받은 양식 채우기, 신청서 작성, 기존 한글 문서 수정, 문구 바꾸기, 한글 문서 텍스트 추출.npx claudepluginhub blackbuddle/hwpx-docs --plugin hwpx-docsOther plugins' skills for the same job