- Home
- Skills
- Workflow Automation
- docx format transfer
docx format transfer
by 李李王
Extracts formatting rules from a template Word document and applies them to target files with automated verification.
Free
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.docxlook like Headings but have no style assigned.
Formatting Audit & Plan
| Dimension | Template Rule | Target Status | Action |
|---|---|---|---|
| Page Layout | A4, Mirror Margins | Custom | Update Section Properties |
| Headings | Level 1-3 defined | Mixed manual styling | Map to Template Styles |
| Captions | Figure X: Below item | Missing standard | Apply to detected figure text |
| Tables | Three-line style | Grid style | Convert to borderless + 3 lines |
| Paragraphs | First line indent 0.75cm | No indent | Apply 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
- Open
draft.formatted.docxand pressCtrl+AthenF9to refresh the Table of Contents. - Review the 3 ambiguous headings I flagged in the
changes.mdreport. - If you want to change the "Three-line table" line width, tell me to update the profile and re-run.
template.docx
PDF · document
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
- Analyze Template by running
extract_format.pyon the reference document to generate a formatting profile and human-readable report. - Confirm Rules by reviewing the extracted summary, resolving any flagged inconsistencies or "best guess" parameters.
- Map Target by scanning the user document for structure, resolving ambiguities like non-standard headings or captions.
- 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
Allowed Hosts
What's inside
Creator
李李王
Frequently Asked Questions
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.