hashgraph-online/awesome-codex-plugins / plugins/alpoxdev/hypercore/skills/hyper-hwp
hyper-hwp
VerifiedUse this skill when the document to read, fill, edit, or produce is a Korean HWP or HWPX file - a .hwp/.hwpx report, 기안문, 공문서, 별지 서식, 신청서 with form fields, or a table that has to come out of one. It drives the rhwp CLI: read text and structure, extract tables and form fields, replace or insert text and table cells, fill fields, insert footnotes, scaffold a new document from a JSON spec, convert HWPX to HWP5, and gate the result with roundtrip and layout checks. Do not use for PDF, DOCX, XLSX, or PPTX files, Hangul word-processor automation through its own COM or UI, or scanned-image OCR.
| File | Kind | Size |
|---|---|---|
| SKILL.ko.md | markdown | 18.4 KB |
| SKILL.md | skill md | 16.8 KB |
| assets/evals/hyper-hwp-cases.jsonl | other | 9.7 KB |
| assets/tools/probe_rhwp.pyexecutable | script | 4.5 KB |
| references/research-2026-11-13.ko.md | markdown | 9.4 KB |
| references/research-2026-11-13.md | markdown | 8.8 KB |
| rules/edit-safety.ko.md | markdown | 6.0 KB |
| rules/edit-safety.md | markdown | 5.3 KB |
| rules/gongmunseo.ko.md | markdown | 5.7 KB |
| rules/gongmunseo.md | markdown | 5.2 KB |
| rules/rhwp-command-map.ko.md | markdown | 20.3 KB |
| rules/rhwp-command-map.md | markdown | 18.7 KB |
| rules/verification.ko.md | markdown | 7.0 KB |
| rules/verification.md | markdown | 6.0 KB |
assets/tools/probe_rhwp.py
View on GitHub#!/usr/bin/env python3
"""Probe the rhwp CLI and report whether it can do what this skill requires.
Prints one JSON object on stdout and exits 0 when the binary satisfies the
skill's command set, 1 when it does not, 2 when the probe itself cannot run.
Standard library only; no network access.
"""
import json
import os
import re
import shutil
import subprocess
import sys
MIN_VERSION = (0, 9, 0)
# Commands the workflow calls. A binary without these cannot run the skill.
REQUIRED_COMMANDS = [
"info",
"explain",
"export-text",
"export-structure",
"export-tables",
"fields",
"search",
"scaffold",
"convert",
"export-hwpx",
"verify",
"hwpx-roundtrip",
"hwp5-roundtrip",
"layout-anomaly",
"run",
]
REQUIRED_EDIT = [
"replace-text",
"set-cell",
"insert-text",
"insert-table",
"insert-paragraph",
"fill-fields",
"insert-footnote",
"insert-footnote-text",
"apply-char-format",
"apply-para-format",
"set-column-widths",
"merge-cells",
"set-cell-props",
]
CANDIDATES = [
"rhwp",
os.path.expanduser("~/.cargo/bin/rhwp"),
"/opt/homebrew/bin/rhwp",
"/usr/local/bin/rhwp",
]
def find_binary():
for candidate in CANDIDATES:
found = shutil.which(candidate) if os.sep not in candidate else candidate
if found and os.path.isfile(found) and os.access(found, os.X_OK):
return found
return None
def run(binary, *args):
proc = subprocess.run(
[binary, *args],
capture_output=True,
text=True,
timeout=60,
check=False,
)
return proc.returncode, proc.stdout, proc.stderr
def parse_version(text):
match = re.search(r"(\d+)\.(\d+)\.(\d+)", text)
if not match:
return None
return tuple(int(part) for part in match.groups())
def main():
binary = find_binary()
if binary is None:
print(
json.dumps(
{
"ok": False,
"reason": "rhwp_not_found",
"install": "brew install edwardkim/rhwp/rhwp # or download the v0.9.0+ release tarball",
"searched": CANDIDATES,
},
ensure_ascii=False,
indent=2,
)
)
return 1
code, out, err = run(binary, "--version")
version = parse_version(out + err)
if version is None:
print(
json.dumps(
{
"ok": False,
"reason": "version_unreadable",
"binary": binary,
"stdout": out[:400],
"stderr": err[:400],
},
ensure_ascii=False,
indent=2,
)
)
return 1
code, caps_out, caps_err = run(binary, "capabilities")
commands = []
edits = []
if code == 0:
try:
parsed = json.loads(caps_out)
commands = [entry.get("name", "") for entry in parsed.get("commands", [])]
for entry in parsed.get("commands", []):
if entry.get("name") == "edit":
edits = [sub.get("name", "") for sub in entry.get("subcommands", [])]
except (json.JSONDecodeError, AttributeError):
pass
missing_commands = [name for name in REQUIRED_COMMANDS if name not in commands]
missing_edits = [name for name in REQUIRED_EDIT if name not in edits]
version_ok = version >= MIN_VERSION
ok = version_ok and not missing_commands and not missing_edits
report = {
"ok": ok,
"binary": binary,
"version": ".".join(str(part) for part in version),
"minimum_version": ".".join(str(part) for part in MIN_VERSION),
"version_ok": version_ok,
"capabilities_readable": bool(commands),
"missing_commands": missing_commands,
"missing_edit_subcommands": missing_edits,
}
if not version_ok:
report["reason"] = "version_too_old"
report["upgrade"] = "reinstall from the v0.9.0+ release tarball; older builds have no edit or scaffold"
elif missing_commands or missing_edits:
report["reason"] = "command_set_incomplete"
else:
report["reason"] = "ready"
print(json.dumps(report, ensure_ascii=False, indent=2))
return 0 if ok else 1
if __name__ == "__main__":
try:
sys.exit(main())
except subprocess.TimeoutExpired:
print(json.dumps({"ok": False, "reason": "probe_timeout"}, ensure_ascii=False))
sys.exit(2)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |