docx format transfer

    by 李李王

    2

    Extracts formatting rules from a template Word document and applies them to target files with automated verification.

    Free

    Security scanned

    Works with the AI Agents you already use

    docx format transfer

    Example session with this skill installed

    I have a thesis template (template.docx) and my draft (draft.docx). Please extract the styles from the template and apply them to my draft. Keep the text exactly the same.

    • Read your context and instructions
    • Compiled the docx format transfer
    • Generated the document

    I have analyzed template.docx and extracted the formatting profile. I also scanned draft.docx to map its structure.

    Template Extraction Summary:

    • Margins: Top 2.54cm, Bottom 2.54cm, Left 3.18cm, Right 3.18cm.
    • Styles Identified: Heading 1 (Arial 14pt, Bold), Body Text (Times New Roman 12pt, 1.5 line spacing).
    • Table Specs: Identified "Three-line table" style for all tabular data.
    • Ambiguities: 3 paragraphs in draft.docx look like Headings but have no style assigned.

    Formatting Audit & Plan

    DimensionTemplate RuleTarget StatusAction
    Page LayoutA4, Mirror MarginsCustomUpdate Section Properties
    HeadingsLevel 1-3 definedMixed manual stylingMap to Template Styles
    CaptionsFigure X: Below itemMissing standardApply to detected figure text
    TablesThree-line styleGrid styleConvert to borderless + 3 lines
    ParagraphsFirst line indent 0.75cmNo indentApply to all 'Normal' nodes

    Verification Report (verify.md):

    • Content Integrity: PASSED (0 characters changed).
    • Style Alignment: 98% Match (2 manual overrides detected).
    • File Generated: draft.formatted.docx

    Next steps

    1. Open draft.formatted.docx and press Ctrl+A then F9 to refresh the Table of Contents.
    2. Review the 3 ambiguous headings I flagged in the changes.md report.
    3. If you want to change the "Three-line table" line width, tell me to update the profile and re-run.

    template.docx

    PDF · document

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Formatting documents to match strict templates is a tedious, error-prone manual task. This skill automates the detection of formatting rules from a template Word document and applies them to a target file with high precision.

    What it does

    • Template Extraction scans a reference docx to build a detailed JSON profile of styles, margins, and layouts.
    • Ambiguity Detection identifies unstyled headings or caption-like text in the target document for user confirmation.
    • Rule-Based Application executes a 25-step transformation covering containers, style definitions, content elements, and pagination.
    • Dry-run Validation provides a summary of planned changes and confidence levels before modifying any files.
    • Integrity Verification runs a post-process audit to ensure text content remains unchanged while styles are perfectly aligned.

    How it works

    1. Analyze Template by running extract_format.py on the reference document to generate a formatting profile and human-readable report.
    2. Confirm Rules by reviewing the extracted summary, resolving any flagged inconsistencies or "best guess" parameters.
    3. Map Target by scanning the user document for structure, resolving ambiguities like non-standard headings or captions.
    4. Apply & Verify by running the transformation script on a copy of the target, followed by an automated verification pass to ensure zero data loss.

    Frameworks & tools

    Python scripts utilizing docx manipulation libraries. Includes a local web UI (serve_ui.py) for users who prefer visual sorting and toggling of formatting rules.

    Why this beats prompting it yourself

    Standard LLM prompting often hallucinates formatting details or fails to maintain document integrity in large files. This skill uses structured JSON profiles and idempotent scripts to ensure every heading, table, and margin meets the specification without risking the original text.

    Use cases

    • Aligning a research paper to a specific journal or conference template.
    • Standardizing disparate team reports into a unified corporate branding style.
    • Converting "flat" documents with manual styling into proper hierarchical Word styles.
    • Batch-checking document sets for compliance against a master formatting guide.

    Known limitations

    Does not support .doc legacy formats or encrypted files. Cannot modify text inside images, OLE objects, or complex internal formula editors.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 13 days ago

    • Free with an Agensi account

    Accounts
    GitHub
    Software
    Python

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Network Access
    Environment Variables

    Allowed Hosts

    cdn.jsdelivr.net
    github.com
    Listed13 days ago

    What's inside

    Creator

    李李王

    李李王

    Frequently Asked Questions

    The skill uses a 25-step rule-based transformation engine and an automated 'Integrity Verification' pass to ensure that only the styles change while the underlying text remains 100% identical to your source file.

    While it is a Python-based automation, the included 'serve_ui.py' script provides a local web interface, allowing you to visually review, toggle, and confirm formatting rules without writing any code.

    This skill is designed for modern .docx files; it does not support legacy .doc formats, encrypted files, or formatting text contained within embedded images and complex formula editors.

    Your purchase includes the template extraction engine, the rule-based transformation scripts, the local web UI for configuration, and a comprehensive guide on how to integrate these tools with your existing AI agent workflows.

    Unlike LLM prompting, which often hallucinates styling or fails on large files, this skill uses structured JSON profiles to apply precise, idempotent changes that guarantee consistency across documents of any length.

    New in Workflow Automation

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.

    Free