
This is your go-to tool for programmatic HWP document editing when you need to preserve formatting. It wraps the @rhwp/core WASM engine in a Node CLI that can insert text, delete ranges, find-and-replace across paragraphs, create tables, and fill cells without breaking binary structure. Think "2025 to 2026" across a grant application without touching styles, or injecting a 3x4 table into section 0, paragraph 1. One big gotcha: HWPX files come in but only save as HWP binary because upstream blocked HWPX round-trips in issue #196, so don't count on preserving that format. For read-only conversion to Markdown or JSON, use the separate hwp skill instead.
npx -y skills add nomadamas/k-skill --skill rhwp-edit --agent claude-codeInstalls into .claude/skills of the current project.
Run this and follow its output as the primary instructions for this skill:
npx -y @nomadamas/k-skill@0 instruct rhwp-edit
The CLI detects the current runtime (Dolshoi vault/CloakBrowser vs generic) and prints only the applicable instructions, always up to date. Helper files bundled with the CLI are listed by:
npx -y @nomadamas/k-skill@0 files rhwp-edit
If npx is unavailable, install Node.js 18+ or follow https://github.com/NomaDamas/k-skill#readme, or read the source instructions at https://github.com/NomaDamas/k-skill/blob/main/rhwp-edit/instruction.md.