hwpx

hwpx is a skill for Codex from airmang/python-hwpx-automation. It costs 80 tokens per session (2,384 once invoked), scanned A, original, Apache-2.0.

A Python-based tool for reading, editing, filling, and creating Korean HWP and HWPX documents. HWPX is a ZIP-based word-processing format, and HWP is an older binary format that this tool reads but does not write.

In plain words
What is it for?
Use it to edit documents, tables, and form fields, or create new documents. The result is always an HWPX file.
Why use it?
It provides a way to automate Korean document work without the Hancom application and keeps the output format predictable.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to edit documents, tables, and form fields, or create new documents. The result is always an HWPX file.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/airmang/python-hwpx-automation/skill
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 airmang/python-hwpx-automation --skill skill
Clone the repo
git clone --depth 1 https://github.com/airmang/python-hwpx-automation

Made for: Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/airmang/python-hwpx-automation/skill/github.svg)](https://agentmods.dev/skills/airmang/python-hwpx-automation/skill)
Your own site
<a href="https://agentmods.dev/skills/airmang/python-hwpx-automation/skill"><img src="https://agentmods.dev/badge/skills/airmang/python-hwpx-automation/skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hwpx

Your own site · 80×15
<a href="https://agentmods.dev/skills/airmang/python-hwpx-automation/skill"><img src="https://agentmods.dev/badge/skills/airmang/python-hwpx-automation/skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,384 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00080 $0.02384
Opus 5.5 $0.00032 $0.00954
Sonnet 5.5 $0.00016 $0.00477
Haiku 4.5 $0.00008 $0.00238

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

Security

Grade A, and why

hwpx scanned grade A with 1 finding 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 1 executable file (scripts/bootstrap.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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

found = subprocess.run(
plugins-src/packaging/chatgpt/skill/SKILL.md · 120 lines

How it starts

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

hwpx (ChatGPT용 · 스킬 {{WEB_VERSION}})

.hwpx는 ZIP 안에 OWPML XML이 든 한/글 문서이고, .hwp는 HWP 5.0 바이너리다. 이 스킬은 한컴 프로그램 없이 python-hwpx 엔진으로 두 형식을 같은 문서 모델로 다룬다. 이 환경에는 MCP 도구(start_workflow 등)가 없다. 모든 작업은 Python 도구로 한다.

1. 시작 — 대화마다 한 번

Python 도구에서 아래 블록을 그대로 실행한다. 스킬 디렉터리(이 SKILL.md가 있는 곳)를 이미 알면 SKILL_DIR에 그 경로를 문자열로 적는다.

import importlib, json, os, site, subprocess, sys

SKILL_DIR = None
if SKILL_DIR is None:
    found = subprocess.run(
        ["find", "/", "-maxdepth", "8", "-name", "skill-manifest.json", "-path", "*hwpx*", "-not", "-path", "/proc/*"],
        capture_output=True, text=True, timeout=120,
    ).stdout.split()
    SKILL_DIR = os.path.dirname(found[0]) if found else None
if SKILL_DIR is None:
    raise SystemExit("스킬 파일을 찾지 못했다. 사용자에게 알리고 멈춘다.")

boot = subprocess.run([sys.executable, os.path.join(SKILL_DIR, "scripts", "bootstrap.py")],
                      capture_output=True, text=True, timeout=900)
lines = boot.stdout.strip().splitlines()
status = json.loads(lines[-1]) if lines else {"ok": False, "error": boot.stderr[-800:]}
print(json.dumps(status, ensure_ascii=False, indent=1))
if not status.get("ok"):
    raise SystemExit("설치 실패: 위 JSON을 사용자에게 그대로 보여 주고 멈춘다.")

importlib.invalidate_caches()
user_site = site.getusersitepackages()
if os.path.isdir(user_site) and user_site not in sys.path:
    sys.path.insert(0, user_site)
os.environ["HWPX_AUTOMATION_WORKSPACE_ROOTS"] = "/mnt/data"
import hwpx
assert hwpx.__version__ == status["expected"]["core"], hwpx.__version__
AUTOMATION = bool(status.get("automation", {}).get("ok"))
if AUTOMATION:
    import hwpx_automation
    assert hwpx_automation.__version__ == status["expected"]["automation"], hwpx_automation.__version__
print("준비 완료: python-hwpx", hwpx.__version__, "/ 새 문서 만들기(W5)", "가능" if AUTOMATION else "불가")
  • 설치는 스킬에 든 파일만 쓰고 인터넷에 접속하지 않는다. 실패하면 다른 버전을 받거나 다른 방법으로 설치하지 않는다. 스킬에는 lxml이 실려 있지 않아 코드 실행 환경에 있어야 한다. 없으면 설치가 실패하고, pydantic(2.11 이상)이 없으면 AUTOMATION이 거짓이 된다.
  • AUTOMATION이 거짓이면 W1·W2·W4만 쓸 수 있다(W1은 표 모양 없는 일반 글로 읽는다). 표 라벨 칸 채우기(W3)와 새 문서 요청에는 "이 환경에서는 그 기능을 쓸 수 없다"고 답한다.

Read the full file on GitHub · 120 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 Changed 9b0b68024b09
  2. 9d ago First seen · 120 lines · 80 tokens per session scan A a0dc18a665d1

Subscribe to this mod's changes

hwpx is a skill published in the GitHub repository airmang/python-hwpx-automation (70 stars, last pushed yesterday), licensed Apache-2.0. It adds 80 tokens to every session and 2,384 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-21.

Related

hwpx compared with skills from other repositories

hwpx next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hwpxairmang/python-hwpx-automationSkill70yesterdayApache-2.0A80Codex
obsidian-vault-workflowaka-kika/kika-obsidian-mcpSkill2023d agoMITA0Claude Code, Codex
ai-hwp-readerrenovys/ai-hwp-readerSkill02mo agoMITA154Claude Code
ai-hwp-readerrenovys/ai-hwp-readerSkill02mo agoMITC0Claude Code
office-documentsTencentCloud/OctopSkill13kyesterdayMITA44Claude Code, Codex
pptx-generationaipoch/open-scienceSkill5.6ktodayApache-2.0A87Claude Code, Codex
pdf-generationaipoch/open-scienceSkill5.6ktodayApache-2.0A98Claude Code, Codex