How this skill is triggered — by the user, by Claude, or both
Slash command
/easy-hwp:hwp-fillThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
$ARGUMENTS
$ARGUMENTS
Windows + 한글 프로그램이 설치된 환경에서는 pyhwpx를 사용합니다.
from pyhwpx import Hwp
hwp = Hwp()
hwp.open("서식.hwp") # .hwp, .hwpx 모두 지원
# 필드에 값 채우기
hwp.put_field_text("연구과제명", "AI 기반 진단 시스템")
hwp.put_field_text("연구책임자", "홍길동")
# 저장
hwp.save_as("결과.hwp")
hwp.quit()
pyhwpx 설치: pip install pyhwpx
참고: pyhwpx는 한글 문서의 "누름틀" 필드를 사용합니다. 서식에 누름틀이 없으면 표 셀을 직접 찾아서 수정해야 합니다.
mkdir -p {임시디렉토리}
unzip -o {서식}.hwpx -d {임시디렉토리}/
{임시디렉토리}/Contents/section0.xml 파일을 읽어서:
<hp:tbl>) 찾기MD 파일 또는 사용자 제공 내용에서 필드-값 추출:
# 연구과제명
AI 기반 진단 시스템
## 연구책임자
홍길동
→ {"연구과제명": "AI 기반 진단 시스템", "연구책임자": "홍길동"}
필드명이 정확히 일치하지 않아도 유연하게 매칭:
과제명 → 연구과제명 (부분 포함)책임자 → 연구책임자 (유사어)연구 기간 → 연구기간 (띄어쓰기 무시)애매하면 반드시 사용자에게 확인:
사용자에게 매칭 결과를 보여주고 확인 받기:
매칭 결과:
- 연구과제명 ← "AI 기반 진단 시스템"
- 연구책임자 ← "홍길동"
- 연구기간 ← (내용 없음)
진행하시겠습니까?
Edit 도구를 사용하여 section0.xml의 해당 셀 내용을 수정:
수정 전:
<hp:tc><hp:p><hp:t></hp:t></hp:p></hp:tc>
수정 후:
<hp:tc><hp:p><hp:t>홍길동</hp:t></hp:p></hp:tc>
주의: 빈 <hp:t> 태그나 <hp:t/> 를 찾아서 값을 채웁니다.
cd {임시디렉토리}
zip -r {출력파일}.hwpx *
중요: 압축 시 반드시 임시디렉토리 안에서 실행해야 합니다.
rm -rf {임시디렉토리}
{원본}_filled.hwpx (또는 .hwp).hwp는 지원 안 됨 → 한글에서 .hwpx로 다시 저장하라고 안내.hwp, .hwpx 모두 지원& → &, < → <, > → ><hp:p> 태그 사용npx claudepluginhub nathankim0/easy-hwp --plugin easy-hwpGenerates HWPX documents from user-uploaded or default templates using ZIP-level XML text replacement and ObjectFinder surveys. Use for quick report and official document creation.
Edits, extracts, and automates Korean HWPX/OWPML documents. Handles template placeholder replacement, document creation, and operating plan generation.
Edits HWP documents (insert/delete text, replace-all, create tables, set cell text) via the k-skill-rhwp CLI wrapping @rhwp/core WASM engine. Use for round-trip safe binary HWP editing without format conversion.