docx-format-replicator

docx-format-replicator is a skill for Claude Code, Codex from iamzhihuix/happy-claude-skills. It costs 52 tokens per session (1,747 once invoked), scanned A, original, MIT.

A tool for copying the formatting of an existing Word document into new documents with different content. It can preserve styles and other document-layout details.

In plain words
What is it for?
Use it when working from a Word template or reproducing company, academic, or other established document formatting.
Why use it?
It avoids rebuilding a document's visual format by hand and helps keep related documents consistent.

Skill for Claude CodeCodex

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

Good fit Use it when working from a Word template or reproducing company, academic, or other established document formatting.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/iamzhihuix/happy-claude-skills/docx-format-replicator
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 iamzhihuix/happy-claude-skills --skill docx-format-replicator
Clone the repo
git clone --depth 1 https://github.com/iamzhihuix/happy-claude-skills

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin docx-format-replicator/plugin install docx-format-replicator after adding the marketplace above.

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 docx-format-replicator

README.md
[![agentmods](https://agentmods.dev/badge/skills/iamzhihuix/happy-claude-skills/docx-format-replicator/github.svg)](https://agentmods.dev/skills/iamzhihuix/happy-claude-skills/docx-format-replicator)
Your own site
<a href="https://agentmods.dev/skills/iamzhihuix/happy-claude-skills/docx-format-replicator"><img src="https://agentmods.dev/badge/skills/iamzhihuix/happy-claude-skills/docx-format-replicator/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 docx-format-replicator

Your own site · 80×15
<a href="https://agentmods.dev/skills/iamzhihuix/happy-claude-skills/docx-format-replicator"><img src="https://agentmods.dev/badge/skills/iamzhihuix/happy-claude-skills/docx-format-replicator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,747 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. Third-party audits
  • Socket pass 3 Apr 2026
  • Snyk pass 3 Apr 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.00052 $0.01747
Opus 5 $0.00026 $0.00873
Sonnet 5 $0.00010 $0.00349
Haiku 4.5 $0.00005 $0.00175

Measured 11d ago against content hash df99d8e8a582, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

docx-format-replicator 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 11d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/extract_format.py, scripts/generate_document.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.

subprocess.run([
skills/docx-format-replicator/SKILL.md · 260 lines

How it starts

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

DOCX Format Replicator

Overview

Extract formatting information from existing Word documents (.docx) and use it to generate new documents with identical formatting but different content. This skill enables creating document templates, maintaining consistent formatting across multiple documents, and replicating complex Word document structures.

When to Use This Skill

Use this skill when the user:

  • Wants to extract formatting from an existing Word document
  • Needs to create multiple documents with the same format
  • Has a template document and wants to generate similar documents with new content
  • Asks to "replicate", "copy format", "use the same style", or "create a document like"
  • Mentions document templates, corporate standards, or format consistency

Workflow

Step 1: Extract Format from Template

Extract formatting information from an existing Word document to create a reusable format configuration.

python scripts/extract_format.py <template.docx> <output.json>

Example:

python scripts/extract_format.py "HY研制任务书.docx" format_template.json

What Gets Extracted:

  • Style definitions (fonts, sizes, colors, alignment)
  • Paragraph and character styles
  • Numbering schemes (1, 1.1, 1.1.1, etc.)
  • Table structures and styles
  • Header and footer configurations

Output: JSON file containing all format information (see references/format_config_schema.md for details)

Step 2: Prepare Content Data

Create a JSON file with the actual content for the new document. The content must follow the structure defined in references/content_data_schema.md.

Content Structure:

{
  "metadata": {
    "title": "Document Title",
    "author": "Author Name",
    "version": "1.0",
    "date": "2025-01-15"
  },
  "sections": [
    {
      "type": "heading",
      "content": "Section Title",
      "level": 1,
      "number": "1"
    },
    {
      "type": "paragraph",
      "content": "Paragraph text content."
    },
    {
      "type": "table",
      "rows": 3,
      "cells": [
        ["Header 1", "Header 2"],
        ["Data 1", "Data 2"]
      ]
    }
  ]
}

Read the full file on GitHub · 260 lines

Files

What ships with it

6 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. 11d ago First seen · 260 lines · 52 tokens per session scan A df99d8e8a582

Subscribe to this mod's changes

docx-format-replicator is a skill published in the GitHub repository iamzhihuix/happy-claude-skills (306 stars, last pushed 4mo ago), licensed MIT. It adds 52 tokens to every session and 1,747 once invoked, about $0.0003 per session on Opus 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-08-30.

Related

Other skills, from other repositories

baoyu-youtube-transcript

A tool for downloading the written captions, subtitles, chapter information, speaker labels, and cover image from a YouTube video using its URL or ID.

JimLiu/baoyu-skills · 107 tokens

orbit-notion

Open Orbit briefing skill — selected by the Orbit pipeline when Notion is the user's only connected connector, or when the user explicitly scopes their daily digest to Notion. Pulls the past 24 hours of document edits, comments, mentions, and database row changes from the user's authenticated Notion connection and…

nexu-io/open-design · 117 tokens

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

feishu

Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.

Hmbown/CodeWhale · 33 tokens

read

Reads URLs and PDFs by fetching source content, defaulting to concise summaries for plain read requests and clean Markdown when asked to convert, save, quote, cite, or feed downstream work. Use when users ask in any language to read, fetch, check, summarize, quote, cite, convert, or save a URL or PDF. Not for local…

tw93/Waza · 78 tokens

overleaf-sync

A two-way connection between a local paper folder and Overleaf, a web-based LaTeX editor for writing research papers. It lets you move changes between the local files and the shared Overleaf project.

wanshuiyin/Auto-claude-code-research-in-sleep · 97 tokens