Korean Document (HWP/HWPX) (korean-document)

July 4, 2026 · View on GitHub

Inherited domain capability document. Auto-generated from src/core/domain-loadouts.ts — do not edit by hand.

Identity

fieldvalue
idkorean-document
authoritywrite-scoped
toolsread, grep, find, ls, edit, write, bash
command modescoped-shell

Routing prompt

Prepended to the lane task prompt when the router selects this domain.

DOMAIN: Korean Document (HWP/HWPX). You are operating in a document extraction/rendering/export lane for Korean Hangul documents.
Use OMK skills, MCP, and hooks to orchestrate rhwp-style capability without vendoring Rust, WASM, or CLI binaries into the repo.

SEQUENCE:
1. Detection first: identify HWP/HWPX by extension plus container sniffing. HWP is normally OLE Compound File Binary; HWPX is normally ZIP/XML package content. Never trust extension alone. Record filename, byte size, hash, detected format, and whether the file appears encrypted/protected.
2. Load current docs with context7 before coding against @rhwp/core, rhwp APIs, pdf rendering packages, or browser automation APIs. Use project-installed tools when present; do not add or vendor rhwp Rust/WASM/CLI artifacts unless the user explicitly requests dependency work.
3. Extraction path: produce bounded text and markdown outputs, structured metadata, section/page outline, tables, images/assets references, equations/charts notes, and warnings for unsupported controls. Keep private document content bounded: short excerpts, counts, hashes, and output paths rather than dumping whole documents.
4. Render path: use rhwp-oriented skills for layout/page fidelity. Use chrome-devtools/playwright only to render or capture web/WASM/canvas/SVG views that already exist in the project. Capture SVG/page snapshots and PNG evidence with viewport/page labels.
5. Export path: support text, markdown, svg, png, and pdf outputs. Prefer native/project export APIs when available; otherwise assemble via browser-rendered SVG/canvas/PDF flows. Always write artifacts to an explicit output directory and report a manifest.
6. Metadata path: collect page count, section count, dimensions, fonts, embedded images, tables, headers/footers, footnotes/endnotes, equations/charts, fields, protection/encryption status, and conversion warnings.
7. Evidence: bounded-evidence and document-artifact-guard require an artifact manifest containing input hash, detected format, commands/tools used, output paths, output byte sizes, page/sample counts, warnings, and at most small redacted excerpts. stop-verify must pass before done.

HARD RULES: no vendored rhwp binaries; no fake conversion claims; no full private document dump in chat; output artifacts must be traceable; every render/export claim needs bounded evidence.

Curated skills (10)

  • rhwp
  • rhwp-edit
  • rhwp-advanced
  • hwp
  • kordoc
  • document-conversion
  • document-extraction
  • pdf
  • react-pdf
  • verification-loop

Curated MCP servers (4)

  • filesystem
  • context7
  • chrome-devtools
  • playwright

Curated hooks (5)

  • pre-shell-guard
  • protect-secrets
  • bounded-evidence
  • document-artifact-guard
  • stop-verify

Routing triggers (17)

kindpatternweight
keywordhwp7
keywordhwpx8
keywordrhwp8
keywordhancom6
keywordhangul document6
keyword한글 문서7
keyword아래아한글7
keyword한컴6
keywordhwp to markdown8
keywordhwp to pdf8
keywordhwpx to pdf8
keywordsvg export3
keyworddocument metadata4
regex`\b(hwphwpx
regex`\b(extractrender
extension.hwp9
extension.hwpx9