docx-contracts_skill

This skill fills Word templates (contracts or forms) with structured data using docxtpl, generating ready-to-download outputs.
  • Python

30

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill artwist-polyakov/polyakov-claude-skills --skill docx-contracts

  • SKILL.md1.3 KB

Overview

This skill automates filling Word (.docx) templates (contracts, forms) with structured data using the docxtpl engine. It extracts the template variable schema, collects required field values, fills the template, and produces a completed .docx output. It enforces that all required fields are provided and never invents missing values.

How this skill works

First, extract the template variable list and JSON schema from the uploaded .docx template using the provided extraction tool. Next, gather data matching the schema from the user message or by asking clarifying questions for any missing or uncertain fields. Create a JSON data file and run the template-filling tool to generate the completed .docx, then place the result in the output folder and share a download link.

When to use it

  • User uploads a .docx template containing Jinja2-style variables like {{name}} and requests a filled contract or form
  • You need to generate multiple contracts or forms from the same template using structured data
  • You want a reproducible, data-driven process for creating legal or business documents
  • You must ensure all required fields are explicitly confirmed and no placeholder values remain

Best practices

  • Require the template to use Jinja2-style variables ({{variable_name}}) and validate the extracted schema before filling
  • Extract the schema first; do not attempt to parse .docx XML manually in conversation
  • Collect all required fields from the user and ask direct questions for any missing or ambiguous values
  • Keep submitted data in JSON matching the schema to ensure deterministic fills
  • Install and use docxtpl in the execution environment to avoid runtime errors

Example use cases

  • Fill employment contracts by supplying employee details, salary, and start date to the template
  • Generate customer-facing service agreements from a standard template and a JSON dataset
  • Produce regulatory or compliance forms where every required field must be completed and confirmed
  • Batch-generate leases or vendor agreements by iterating over a list of tenant or vendor records

FAQ

Templates must use Jinja2-style variables like {{variable_name}} so the schema extractor can identify fields.

What if a required field is missing?

Ask the user for the missing value directly; do not guess or fabricate information. The template will not be filled until all required fields are provided.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational