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.
npx agentmods add skills/airmang/python-hwpx-automation/template-generationnpx skills add airmang/python-hwpx-automation --skill template-generationgit clone --depth 1 https://github.com/airmang/python-hwpx-automationWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00044 | $0.00383 |
| Opus 5 | $0.00022 | $0.00192 |
| Sonnet 5 | $0.00009 | $0.00077 |
| Haiku 4.5 | $0.00004 | $0.00038 |
Grade A, and why
template-generation scanned grade A with 0 findings 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 2d ago.
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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Template Generation
Use this workflow when the output should follow a reusable template or a controlled document structure.
Tool Order
- If a template file already exists, start with
copy_document. - Replace placeholders with
batch_replaceorsearch_and_replace. - Update structured tables with
set_table_cell_text,merge_table_cells,split_table_cell, andformat_table. - Add controlled narrative content with
add_heading,add_paragraph, andinsert_paragraph. - Use
create_custom_styleonly when repeated new content needs a reusable named style. - In advanced mode, run
validate_structurebefore handoff.
Blank-Document Fallback
When no template exists, use:
create_documentadd_headingadd_paragraph/insert_paragraphadd_tableformat_text/format_table
Minimize Layout Drift
- Prefer approved templates over rebuilding layout from scratch.
- Use named styles consistently for repeated inserted content.
- Keep placeholder replacement bounded and predictable.
When To Inspect Package Parts
- A template relies on hidden or non-obvious reference content.
- You need to confirm which section XML contains a repeated placeholder.
- The generated result must match a known package structure closely enough to justify advanced inspection.
Honest Limitations
- There is no dedicated template-fill shortcut on the active FastMCP surface.
- There is no explicit delayed-save step; edits persist immediately.
- Full reference-structure comparison still belongs upstream or in future MCP work, not in this example skill.
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.
- 2d ago First seen · 46 lines · 44 tokens per session scan A d121f350140c
template-generation is a skill published in the GitHub repository airmang/python-hwpx-automation (67 stars, last pushed 9d ago), licensed Apache-2.0. It adds 44 tokens to every session and 383 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
hwpx
한글 문서(.hwpx/OWPML) 편집·추출·자동화 스킬. '한글 문서 편집해줘', 가정통신문·공문·한글 양식 작성, HWPX 편집, 한글 파일/OWPML 분석, 플레이스홀더 치환, 문서 자동화 요청이면 이 스킬을 반드시 사용하세요. 줄간격·여백·쪽번호·머리글 등 서식 변경, 그림 삽입/교체, 문서 비교·신구대조표, 메일머지 대량생산(상장·수료증·가정통신문), 사진대지·회의명패·조직도 생성, 표 합계/소계 계산 요청도 모두 이 스킬의 대상입니다.
hwpx
한글 문서(.hwpx/OWPML) 편집·추출·자동화 스킬. '한글 문서 편집해줘', 가정통신문·공문·한글 양식 작성, HWPX 편집, 한글 파일/OWPML 분석, 플레이스홀더 치환, 문서 자동화 요청이면 이 스킬을 반드시 사용하세요. 줄간격·여백·쪽번호·머리글 등 서식 변경, 그림 삽입/교체, 문서 비교·신구대조표, 메일머지 대량생산(상장·수료증·가정통신문), 사진대지·회의명패·조직도 생성, 표 합계/소계 계산 요청도 모두 이 스킬의 대상입니다.
kordoc
Use this skill whenever the user wants to read, create, fill, edit, compare, validate, or preview Korean Hangul/official documents — .hwp (HWP 3.x/5.x), .hwpx, .hml (HWPML) — or convert Korean-office PDF/DOCX/XLS/XLSX to Markdown. Triggers include any mention of 'hwp', 'hwpx', 'hml', '한글 문서', '아래한글', '한컴', '공문서'…
gongmunseo
내용을 받아 한국 행정 공문서(기안문·시행문·보고서·계획서·통지·회의록) 표준 서식의 HWPX로 뽑아주는 오케스트레이터 스킬. 행정안전부 「행정업무운영편람」·시행규칙에 근거한 항목부호 8단계(1. 가. 1) 가) (1) (가) ① ㉮), 둘째 줄 내어쓰기 정렬, 공식 여백(위20·아래10·좌우20mm), 명조 15pt, 줄간격, 날짜·붙임·끝·금액 표기법을 적용해 kordoc의 공문서 모드로 변환한다. 트리거 — "보고서 작성해줘", "기안문 만들어", "공문서로 뽑아줘", "계획서 써줘", "회의록 정리해서 hwpx", "공문 양식으로", "통지문 만들어"…
ai-hwp-reader
한글 문서(.hwp·.hwpx)나 그 문서가 든 .zip을 읽어야 할 때 쓴다. 한컴 없이 본문·표(병합 셀, 2·3단 헤더, 표 안의 표)·숨은 메모·변경추적·각주·수식·링크·이미지 참조를 보존해 마크다운으로 뽑는다. "hwp 읽어줘"·"아래아한글 문서 요약"·hwpx 파싱·한글 첨부문서 검토·표 추출 요청에서 발동한다. PDF·docx·xlsx에는 쓰지 않는다.
ai-hwp-reader
이 파일은 사람이 읽는 설명서가 아니라 AI 실행 스킬이다. 사용자가 이 SKILL.md와 .hwp / .hwpx / .zip 파일을 함께 첨부하면 아래 지시를 우선해 실제 문서를 파싱하고, 그 결과를 근거로 사용자가 요청한 일을 끝내라.