docx-contracts

Fill .docx templates with structured data via {{VARIABLE}} placeholders.

178|44|Updated Nov 7, 2025
One-click install
npx skills add https://github.com/artwist-polyakov/polyakov-claude-skills --skill docx-contracts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx-contracts
Source: https://github.com/artwist-polyakov/polyakov-claude-skills/tree/main/docx-contracts
Command: npx skills add https://github.com/artwist-polyakov/polyakov-claude-skills --skill docx-contracts

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docxtpl, and includes scripts (resource) components.

What problem does it solve?

This Skill eliminates the tedious, manual process of filling out Word document templates like contracts, invoices, and forms. It automates data insertion, saving significant time and reducing errors in repetitive document generation tasks.

Core Features & Use Cases

  • Automated Template Filling: Automatically populates .docx templates using Jinja2-style {{variables}} with structured data.
  • Schema-Guided Data Extraction: Can extract required data from user input, guided by the template's variable schema, ensuring all necessary fields are captured.
  • Dynamic Document Generation: Creates ready-to-use .docx files by merging templates with provided data.
  • Use Case: Quickly generate personalized contracts for new employees, create batches of invoices, or produce standardized legal forms by simply providing a template and the relevant data.

Quick Start

Fill the attached 'employment_contract_template.docx' with the employee name 'Alice Smith', position 'Marketing Manager', and start date '2024-01-15'.

Frequently Asked Questions about docx-contracts

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

FAQPage Schema
How do I automate filling Word document templates with data?

Automate filling Word templates by using a Skill that merges .docx files containing {{VARIABLE}} placeholders with structured data. The Skill extracts the template schema, collects your data, validates required fields, and generates a completed document ready for download.

Can I use Jinja2 variables in my .docx templates?

Yes, .docx templates support Jinja2-style {{variable}} placeholders. The Skill parses these placeholders, maps them to your data, and populates the document automatically without manual field entry.

What's the best way to generate contracts or forms in bulk?

Bulk contract and form generation works by defining a .docx template once with {{placeholders}}, then providing structured datasets. The Skill validates all required fields are present, merges data into the template, and outputs completed documents to a designated folder.

Do I need to manually specify which fields are required in my template?

No. The Skill automatically extracts the schema from your template's {{VARIABLE}} placeholders and guides data collection based on detected variables, ensuring all required fields are completed before document generation.

What happens if I don't provide all the data needed to fill the template?

The Skill enforces completion of all required fields without guessing or substituting missing values. It validates your input against the template schema and returns the document only when every placeholder has corresponding data.

Where does the generated .docx file end up after processing?

Completed .docx files are delivered to /mnt/user-data/outputs with a download link provided, making it easy to retrieve and distribute filled contracts or forms immediately after generation.