docx-contracts
Installation
SKILL.md
docx-contracts
Automated contract and form filling using docxtpl library.
Workflow
Be shure, that you recieve docx file. Don't try to read it.
- Extract schema: Run
scripts/extract_schema.py <template.docx>to get variables list and JSON schema. Don't read file. Just launch script. - Gather data: Extract values from user message context, matching schema fields. Use Claude completion for extraction if needed
- Handle missing data: If any required field is missing or uncertain, ask user directly. Do not guess
- Fill template: Create JSON file with data, then run
scripts/fill_template.py <template.docx> <data.json> <output.docx> - Deliver: Move result to
/mnt/user-data/outputs/and provide download link. Please don't read output file.
Key Points
- Template must use Jinja2 syntax:
{{VARIABLE_NAME}} - All required fields from schema must be filled
- Ask user for missing data - never invent values
- Install docxtpl if needed:
pip install docxtpl --break-system-packages
Related skills
More from artwist-polyakov/polyakov-claude-skills
ssh-remote-connection
SSH connection to remote servers. Use when you need to execute commands on a remote server, check logs, restart services, or manage Docker containers.
130yandex-wordstat
|
82yandex-search-api
|
33scrapedo-web-scraper
|
32yandex-webmaster
|
31fal-ai-image
Generate/edit images via fal.ai. Supports Google Nano Banana Pro and OpenAI GPT Image 2 selected from config/.env. Supports reference images and strong text rendering. ALWAYS read SKILL.md before first use.
25