template-generation

template-generation is a skill for Claude Code, Codex from airmang/python-hwpx-automation. It costs 44 tokens per session (383 once invoked), scanned A, original, Apache-2.0.

A workflow for creating HWPX documents, a document format used by Hancom Office, from an approved template or a blank file. It combines text, table, style, and copy operations in a defined order.

In plain words
What is it for?
Use it to copy templates, replace placeholders, edit table cells, add headings and paragraphs, apply styles, and check document structure before delivery.
Why use it?
It reduces layout changes and inconsistent formatting when generating structured documents programmatically.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to copy templates, replace placeholders, edit table cells, add headings and paragraphs, apply styles, and check document structure before delivery.

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

Made for: Claude Code, 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 template-generation

README.md
[![agentmods](https://agentmods.dev/badge/skills/airmang/python-hwpx-automation/template-generation/github.svg)](https://agentmods.dev/skills/airmang/python-hwpx-automation/template-generation)
Your own site
<a href="https://agentmods.dev/skills/airmang/python-hwpx-automation/template-generation"><img src="https://agentmods.dev/badge/skills/airmang/python-hwpx-automation/template-generation/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 template-generation

Your own site · 80×15
<a href="https://agentmods.dev/skills/airmang/python-hwpx-automation/template-generation"><img src="https://agentmods.dev/badge/skills/airmang/python-hwpx-automation/template-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 383 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00044 $0.00383
Opus 5.5 $0.00018 $0.00153
Sonnet 5.5 $0.00009 $0.00077
Haiku 4.5 $0.00004 $0.00038

Measured 1mo ago against content hash d121f350140c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 1mo 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.

examples/skills/template-generation/SKILL.md · 46 lines

What it actually says

Template Generation

Use this workflow when the output should follow a reusable template or a controlled document structure.

Tool Order

  1. If a template file already exists, start with copy_document.
  2. Replace placeholders with batch_replace or search_and_replace.
  3. Update structured tables with set_table_cell_text, merge_table_cells, split_table_cell, and format_table.
  4. Add controlled narrative content with add_heading, add_paragraph, and insert_paragraph.
  5. Use create_custom_style only when repeated new content needs a reusable named style.
  6. In advanced mode, run validate_structure before handoff.

Blank-Document Fallback

When no template exists, use:

  1. create_document
  2. add_heading
  3. add_paragraph / insert_paragraph
  4. add_table
  5. format_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.
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. 1mo ago First seen · 46 lines · 44 tokens per session scan A d121f350140c

Subscribe to this mod's changes

template-generation is a skill published in the GitHub repository airmang/python-hwpx-automation (68 stars, last pushed 4d ago), licensed Apache-2.0. It adds 44 tokens to every session and 383 once invoked, about $0.0002 per session on Opus 5.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.