docx-template

Replace placeholder variables in Word .docx templates across paragraphs and table cells.

4|2|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ataskite/agentscope-demo --skill docx-template
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx-template
Source: https://github.com/ataskite/agentscope-demo/tree/main/src/main/resources/skills/docx-template
Command: npx skills add https://github.com/ataskite/agentscope-demo --skill docx-template

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually editing Word document templates to fill in placeholder variables is time-consuming and prone to errors, especially when handling multiple standardized documents like contracts, invoices, or form letters.

Core Features & Use Cases

  • Placeholder Detection: Automatically identifies common placeholder formats including {{variable}}, $variable, and custom user-specified patterns in uploaded .docx files.
  • Safe Variable Replacement: Replaces all identified placeholders with user-provided values across document paragraphs and table cells, saving the edited file with a _edited suffix without modifying the original template.
  • Use Case: Quickly generate 100 personalized client contracts from a single template by replacing placeholder fields like client name, contract date, and service terms with unique values for each recipient.

Quick Start

Use the docx-template skill to replace all placeholder variables in your uploaded Word document template with the provided values and save the completed edited version.

Frequently Asked Questions about docx-template

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically fill in Word doc template variables with my data?

To fill in Word doc template variables, this skill detects placeholders like double-brace {{variable}} and dollar-prefixed $variable markers, replacing them with your values across paragraphs and tables and saving an edited copy.

What is the best way to replace multiple placeholder variables in a .docx file without altering the original template?

The best way to replace placeholder variables in a .docx file is using an automated template tool that saves the completed document with an _edited suffix, ensuring your original template remains unmodified for future use.

Can I use this to generate personalized contracts from a single Word template?

Yes, you can use this to generate personalized contracts by mapping unique values like client names and dates to the matching placeholders in your standardized Word template, automating the document personalization workflow.

Does the variable replacement process scan both paragraphs and table cells in the Word document?

Yes, the variable replacement process scans both paragraphs and table cells in the Word document, ensuring that all detected {{variable}} and $variable markers receive your provided values before saving the completed file.

What placeholder formats are supported for Word document variable substitution?

Word document variable substitution supports common placeholder formats including double-brace {{variable}} markers, dollar-prefixed $variable markers, and custom user-specified patterns defined in your uploaded .docx files.

Are there limitations when doing automated form filling across multiple Word documents?

A limitation of automated form filling is that it requires consistent placeholder formatting; if your Word documents use non-standard markers not defined as custom patterns, the variable substitution detection may fail.