docx-contracts
Fill Word document templates (contracts, forms) with structured data using docxtpl. Use when user uploads a .docx template with {{variables}} and provides data to fill it, or requests contract/form generation from template.
How do I install this agent skill?
npx skills add https://github.com/artwist-polyakov/polyakov-claude-skills --skill docx-contractsIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill is a utility for automating the filling of Word document templates. It includes scripts to extract variables and render documents using the docxtpl library. It has a minor security surface related to processing user-uploaded templates which could contain indirect prompt injections.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerpass
2/3 files flagged
What does this agent skill do?
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
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/artwist-polyakov/polyakov-claude-skills/docx-contracts">View docx-contracts on skillZs</a>