hwp
Installation
SKILL.md
HWP/HWPX Document Skill
Scope: HWP/HWPX only. Do NOT reference or load skills for other formats (DOCX, PPTX, XLSX, PDF). If the task involves a non-HWP format, stop and tell the user.
OfficeCLI routing and consent rule:
- First check whether
officecliis available withcommand -v officecli. - If installed, recommend OfficeCLI first for HWPX work and experimental rhwp-backed binary HWP read/edit.
- If missing, do not auto-install. Present choices before proceeding:
- Install forked OfficeCLI from
https://github.com/lidge-jun/OfficeCLIviabash "$(npm root -g)/cli-jaw/scripts/install-officecli.sh". - Continue only with lightweight HWP/HWPX fallback scripts for the current task, with limitations stated.
- Stop or cancel.
- Install forked OfficeCLI from
- Before taking a lightweight fallback path, ask the user again and state what HWP/HWPX features may be lost.
- If the user chooses lightweight mode, save that preference to memory for future Office work.
- Use upstream/vanilla
iOfficeAI/OfficeCLIonly when the user explicitly asks for upstream behavior.
OfficeCLI is the recommended advanced backend for HWPX work and experimental rhwp-backed binary HWP read/edit.
Lightweight fallback: Python OOXML/OWPML scripts (scripts/*.py) for what OfficeCLI cannot cover, or when the user chooses lightweight mode: HWP→HWPX conversion, template assembly, pattern-match editing, direct XML edits. See §3.
Triggers: "한글", ".hwpx", ".hwp", "HWP", "HWPX", Korean documents, 한컴오피스, OWPML.