A robust technical skill for automating Word document generation and template manipulation using python-docx while solving common XML run issues.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install offer-letter-generator-docx
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install offer-letter-generator-docx using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The docx skill provides a comprehensive framework for programmatic Word document manipulation. It specifically addresses the notorious split placeholder problem where Word divides template tags across multiple XML runs, rendering standard string replacement ineffective. By utilizing a paragraph-level search and rebuild strategy, this skill ensures reliable data injection into complex templates.
Beyond basic text replacement, this Openclaw Skills resource covers deep document structures including nested tables, headers, and footers. It provides developers with the logic needed to maintain document formatting while dynamically populating fields from JSON data sources, making it an essential tool for automated reporting and document generation workflows.
To get started with this Openclaw Skills implementation, ensure you have the necessary library installed in your environment:
pip install python-docx
Prepare your template with placeholders like {{VARIABLE_NAME}} and ensure your data is structured in a standard JSON format for the fill_template function to process.
The skill expects a mapping of uppercase keys to their corresponding string or numeric values. It also handles document structural data as follows:
| Element | Handling Method |
|---|---|
| Main Body | Iterates through doc.paragraphs |
| Tables | Recursive iteration through table.rows and cell.tables |
| Headers/Footers | Accessed via doc.sections |
| Placeholders | Regex pattern \\{\\{([A-Z_]+)\\}\\} |
| Conditionals | Block markers {{IF_KEY}} and {{END_IF_KEY}} |
Loading
NotiLens is a real-time notification engine that delivers instant task lifecycle events, error alerts, and performance metrics from your AI agents directly to your phone.

An automated tool for generating and burning AI-powered subtitles into video files using cloud GPU acceleration.

An academic-grade proofreading skill for Central Kurdish that enforces professional linguistic standards through a strict five-pillar auditing process.

A high-performance AI skill that transforms text prompts into high-definition 1080p videos using free cloud-based models.

A professional-grade workflow for refining synthetic text-to-speech audio into production-ready assets through cleanup, normalization, and timing alignment.

An autonomous engine for programmatic SEO and AEO content generation that automates the full lifecycle from keyword research to WordPress publishing.








































