doc-templates

doc-templates is a skill for Claude Code, Codex from allcolor/PawFlow-Agents. It costs 44 tokens per session (713 once invoked), scanned A, original, MIT.

A guide for filling text templates with values from structured data, such as client or case information.

In plain words
What is it for?
Use it to create draft documents from templates, check which data is missing, and present the result for human review before saving or sending it.
Why use it?
It prevents missing values from being silently overlooked by showing unresolved placeholders and listing every missing field.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create draft documents from templates, check which data is missing, and present the result for human review before saving or sending it.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/allcolor/pawflow-agents/doc-templates
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add allcolor/PawFlow-Agents --skill doc-templates
Clone the repo
git clone --depth 1 https://github.com/allcolor/PawFlow-Agents

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for doc-templates

README.md
[![agentmods](https://agentmods.dev/badge/skills/allcolor/pawflow-agents/doc-templates/github.svg)](https://agentmods.dev/skills/allcolor/pawflow-agents/doc-templates)
Your own site
<a href="https://agentmods.dev/skills/allcolor/pawflow-agents/doc-templates"><img src="https://agentmods.dev/badge/skills/allcolor/pawflow-agents/doc-templates/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for doc-templates

Your own site · 80×15
<a href="https://agentmods.dev/skills/allcolor/pawflow-agents/doc-templates"><img src="https://agentmods.dev/badge/skills/allcolor/pawflow-agents/doc-templates.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 713 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.00713
Opus 5 $0.00022 $0.00357
Sonnet 5 $0.00009 $0.00143
Haiku 4.5 $0.00004 $0.00071

Measured 9d ago against content hash 7d59e7648feb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

doc-templates scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

lawassist/platform.doc-templates.pfpdir/content/skills/doc-templates/SKILL.md · 63 lines

How it starts

The opening of the file, as written. The whole thing — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Document templating

Using render_template

Call the render_template tool with:

  • template — the template text, containing ${path.to.var} placeholders (same ${...} syntax already used elsewhere in PawFlow for flow parameters and secret references — nothing new to learn).
  • variables — a nested JSON object resolved by dotted path, e.g. {"dossier": {"client": "...", "type_affaire": "..."}, "delai": {"date_butoir": "..."}}.

The tool never guesses a missing value: any placeholder whose path is not found in variables is left as an explicit [path manquant] marker in the rendered text, and the tool's result also lists every missing path separately (missing_variables). Always surface unresolved placeholders to the user before presenting the draft as ready — a document with a silent gap is worse than one that visibly flags it.

The tool only transforms text; it never writes a file itself. Present the rendered draft to the user, or write it yourself with your own tool grants if asked to save it — always as a draft, never as a sent/filed document without explicit human validation.

Bundled starter templates

Three starter templates ship bundled with this skill, under templates/ (sibling files of this SKILL.md, mounted alongside it wherever the skill is mounted): mise_en_demeure.md, accuse_reception.md, convocation_rdv.md. These are examples to copy and adapt, not fixed content — a firm using this package should customize them (letterhead, standard clauses, tone) rather than send them as-is. Treat the shipped copies as a starting point that becomes the firm's own editable version after first use, never re-render the signed package content directly for every use if the firm has since edited its own copy.

Importing an existing .docx/.pdf as a starting point

When a user wants to turn an existing document into a template:

  • Content-only import (a .pdf, or a .docx where only the text matters): extract the text, drop it into a new template draft, then the user marks variable spots themselves by typing ${...} placeholders into the extracted text.
  • Formatting-preserving import (a .docx with letterhead/layout worth keeping): keep the original .docx as the template file; placeholders are inserted directly into its text runs, and rendering substitutes those runs in place rather than rebuilding the document from markdown. Never target a .pdf for formatting-preserving rendering — a PDF has no reliable editable structure for in-place substitution.
  • Suggesting variable spots is assisted, never automatic. You may propose likely variable locations (names, dates, amounts detected in imported text) as highlighted suggestions to validate one by one — never insert them directly. Guessing that a name is a variable is not different from guessing a variable's value: both remain a proposal for the user to validate, never an applied fact.

Read the full file on GitHub · 63 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 63 lines · 44 tokens per session scan A 7d59e7648feb

Subscribe to this mod's changes

doc-templates is a skill published in the GitHub repository allcolor/PawFlow-Agents (25 stars, last pushed yesterday), licensed MIT. It adds 44 tokens to every session and 713 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.