hwpx-editing

hwpx-editing is a skill for Claude Code from kangdacool/hwpx-editing-skill. It costs 262 tokens per session (3,322 once invoked), scanned A, original, MIT.

A set of procedures for reading, editing, and converting HWPX files, which are Hangul word-processor documents stored as XML inside a ZIP archive. It uses Python and XML tools while preserving the file structure needed by Hancom Office.

In plain words
What is it for?
Use it to extract text or images, edit HWPX documents, convert legacy HWP files first, and repack and verify the result.
Why use it?
HWPX files can become unreadable if their archive entries are repacked incorrectly, and older HWP files use a different format. These procedures identify the format and provide safer editing and verification steps.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the hwpx-editing plugin — 1 skill, 1 command shipped together

Good fit Use it to extract text or images, edit HWPX documents, convert legacy HWP files first, and repack and verify the result.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kangdacool/hwpx-editing-skill/hwpx-editing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kangdacool/hwpx-editing-skill --skill hwpx-editing
Clone the repo
git clone --depth 1 https://github.com/kangdacool/hwpx-editing-skill

Made for: Claude Code.

Or install hwpx-editing, the plugin that ships this one along with the rest of its 1 skill, 1 command.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hwpx-editing

README.md
[![agentmods](https://agentmods.dev/badge/skills/kangdacool/hwpx-editing-skill/hwpx-editing.svg)](https://agentmods.dev/skills/kangdacool/hwpx-editing-skill/hwpx-editing)
Your own site
<a href="https://agentmods.dev/skills/kangdacool/hwpx-editing-skill/hwpx-editing"><img src="https://agentmods.dev/badge/skills/kangdacool/hwpx-editing-skill/hwpx-editing.svg" alt="Measured on agentmods" height="20"></a>
Per session 262 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,322 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00262 $0.03322
Opus 5 $0.00131 $0.01661
Sonnet 5 $0.00052 $0.00664
Haiku 4.5 $0.00026 $0.00332

Measured 8d ago against content hash 2cc6221c0465, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

hwpx-editing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 14 executable files (scripts/audit_layout.py, scripts/audit_typography.py, scripts/crossref_check.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/hwpx-editing/SKILL.md · 168 lines

How it starts

The opening of the file, as written. The whole thing — 168 lines — stays where its author put it; the contents beside it link to each section on GitHub.

HWPX Editing

HWPX is a zip of XML (HWPML). The traps that corrupt a file aren't obvious from the outside, so read the relevant section of references/hwpx-guide.md before editing, and run the scripts in scripts/ to repack and verify — don't hand-roll the zip or eyeball correctness.

HWPX only. This handles .hwpx (zip + XML) exclusively. A legacy .hwp (OLE binary, signature D0CF11E0) must be converted first. The scripts detect .hwp and say so. For one file, 한글의 다른 이름으로 저장 → HWPX; for a folder, scripts/hwp_to_hwpx.py FOLDER converts in batch (needs Windows + 한글 + pywin32), including password-protected files — see "Legacy .hwp" below. Read-only text/image extraction from .hwp doesn't need conversion at all: use the hwp5-reading skill.

The one rule that matters most

Never re-zip an HWPX with a normal zip writer. 한글 rejects a file whose unchanged entries were re-deflated. Use the raw-preserving repacker (scripts/hwpxlib.py:repack_preserve): it byte-copies every entry you didn't touch and re-deflates only what you changed, so a no-op repack is byte-identical to the source — meaning "if the original opens in 한글, your edit opens too."

Workflow

  1. Inspect first. python scripts/inspect_hwpx.py FILE.hwpx --breaks — see per-section counts (paragraphs, tables, pic, equation, fields) and, crucially, which paragraphs carry a hidden pageBreak/columnBreak. If a heading is split from its content or a page/column is blank, hunt those breaks first (§6-A) — don't reach for keepWithNext. Body-paragraph breaks are usually leftover cruft.
  2. Read the matching guide section in references/hwpx-guide.md (map below). The XML ids/refs (charPrIDRef, paraPrIDRef, borderFillIDRef, …) differ per file — always read them from the actual file, never assume.
  3. Edit the XML with lxml, following the invariants:
    • After editing or creating any paragraph, remove its <hp:linesegarray> (cached line layout goes stale → broken spacing). After structural edits, strip linesegarray from the whole section so 한글 fully re-lays-out. Use hwpxlib.strip_linesegarray.
    • When you clone a node (endnote, table, equation, image), it inherits the original's id/instId → duplicates → instability. Reassign fresh ids with hwpxlib.make_uid, including nested subList>p / tbl/tc/p ids.
    • Reuse existing charPr/paraPr definitions instead of adding new ones; if you must add, update the itemCnt or 한글 rejects the file.
  4. Repack with hwpxlib.repack_preserve(src, changed, out, added): changed = edited entries (keep the XML declaration on top), added = new entries like BinData/imageN.png or a new sectionN.xml (also register these in content.hpf).
  5. Verify every build: python scripts/verify.py EDITED.hwpx --orig ORIG.hwpx. All hard checks must pass (byte-identity self-check, well-formed XML incl. content.hpf, zero duplicate ids, IDRef/itemCnt integrity, table cell widths, no 각주/미주 nested inside another 주석, zip integrity + mimetype first/STORED). It also prints a minimal-change diff so you can confirm only intended changes are present.
  6. Render, then lookpython scripts/audit_layout.py FILE.hwpx. Steps 1–5 all pass on defects that only a render shows: a number broken across two lines because its column got one character wider, a table footnote stranded alone on the next page, a table-of-contents number that no longer matches. Any change to a table's values, widths, or footnote length needs this step — the earlier checks cannot see layout.
  7. Round-trip in 한글. LibreOffice can't render HWPX, so render-dependent judgments (which heading orphans, whether spacing looks right) need the user to open the file in 한글 and, for equations/TOC, run 도구→차례 새로 고침 or double-click→close to finalize. Say so.

Read the full file on GitHub · 168 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 168 lines · 262 tokens per session scan A 2cc6221c0465

Subscribe to this mod's changes

hwpx-editing is a skill published in the GitHub repository kangdacool/hwpx-editing-skill (8 stars, last pushed 7d ago), licensed MIT. It adds 262 tokens to every session and 3,322 once invoked, about $0.0013 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

ai-hwp-reader

A read-only tool for opening Korean HWP and HWPX word-processing files, or ZIP archives containing them, without Hancom Office. It converts the contents to Markdown while preserving document structure.

renovys/ai-hwp-reader · 154 tokens

ai-hwp-reader

An AI skill that tells a coding agent how to read Korean HWP and HWPX word-processing files, including files inside ZIP archives. It extracts the content and then uses it to complete the user's requested task.

renovys/ai-hwp-reader · 0 tokens

kordoc

A command-line and server tool for reading and creating Korean official documents, including HWP, HWPX, PDF, DOCX, and spreadsheet files. It can convert documents to Markdown and create or update HWPX files.

chrisryugj/kordoc · 253 tokens

slides

Create and edit presentation slide decks (.pptx) with PptxGenJS, bundled layout helpers, and render/validation utilities. Use when tasks involve building a new PowerPoint deck, recreating slides from screenshots/PDFs/reference decks, modifying slide content while preserving editable output, adding…

fcakyon/claude-codex-settings · 83 tokens

honey-px

Read huge read-only text as PNG pages; big input cut.

Green-PT/honey-for-devs · 18 tokens

lov-bp-deck

Turn an approved investor BP outline into a clean, professional slide deck with deliberate style selection, real product evidence, charts, branding, PPTX/PDF, and a full-deck preview. Use when the narrative already exists and the user wants PPT production, visual style exploration, slide regeneration, or export.…

lovstudio/skills · 116 tokens