doc-templates

Render legal document templates with explicit variable substitution and missing-value markers.

26|3|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/allcolor/PawFlow-Agents --skill doc-templates-allcolor
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: doc-templates
Source: https://github.com/allcolor/PawFlow-Agents/tree/main/lawassist/platform.doc-templates.pfpdir/content/skills/doc-templates
Command: npx skills add https://github.com/allcolor/PawFlow-Agents --skill doc-templates-allcolor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Drafting recurring legal correspondence (formal notices, acknowledgments, meeting invitations) by hand is repetitive and error-prone, and automated tools often silently guess missing values. This Skill renders document templates with explicit ${...} placeholders, flags every unresolved variable instead of inventing content, and keeps every output as a draft pending human validation. ## Core Features & Use Cases - Explicit variable substitution: Call the render_template tool with template text and a nested JSON variables object; placeholders resolve by dotted path, and missing values become visible [path manquant] markers listed in missing_variables. - Bundled starter templates: Three French legal letter templates ship with the Skill — mise_en_demeure.md (formal notice), accuse_reception.md (acknowledgment of receipt), and convocation_rdv.md (meeting invitation) — meant to be copied and customized with the firm's letterhead and clauses. - Assisted template import: Convert existing .docx or .pdf documents into templates, with content-only import for PDFs and formatting-preserving in-place substitution for .docx; variable-spot suggestions are proposed for validation, never inserted automatically. - Use Case: A law firm needs to send a mise en demeure for a client matter. The agent renders the bundled template with dossier and demande variables, surfaces any unresolved placeholders, and presents the result as a draft for explicit human review before sending. ## Quick Start Render the mise_en_demeure template with my dossier and demande details, and show me any missing variables before I review the draft.

Frequently Asked Questions about doc-templates

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

FAQPage Schema
How do I render a document template with variables?▼

Call the render_template tool with the template text containing ${path.to.var} placeholders and a nested JSON variables object resolved by dotted path. The tool returns the rendered text plus a missing_variables list for any unresolved placeholders.

How to convert an existing docx or pdf into a reusable template?▼

For a PDF or text-only docx, extract the text into a new template draft and mark variable spots with ${...} placeholders. For a docx with letterhead worth keeping, insert placeholders directly into its text runs so rendering substitutes them in place.

What happens when a template variable has no value?▼

The render_template tool never guesses missing values. Any placeholder whose path is absent from the variables object is left as an explicit [path manquant] marker, and every missing path is listed separately in the tool result.

Can variable spots be detected automatically in imported documents?▼

Variable-spot detection is assisted but never automatic. The agent may propose likely variable locations such as names, dates, and amounts as suggestions, but each one must be validated by the user before any placeholder is inserted.

Does template rendering work with PDF files for formatting preservation?▼

No, formatting-preserving rendering only targets .docx files, where placeholders are substituted within existing text runs. A PDF has no reliable editable structure for in-place substitution, so PDFs are limited to content-only text import.

Are rendered documents sent automatically after generation?▼

No, rendered output is always a draft. The tool only transforms text and never writes or sends files; saving or sending requires explicit human validation, and the bundled templates carry a BROUILLON draft notice.