Template Based Document Generation

Fill a Word (.docx) template from structured data and return the finished document with its branding intact. Placeholders, blanks and content controls are replaced with values, optional sections are removed, and table rows repeat per input item. Use when the user supplies a .docx template plus data and asks to fill in, populate or complete it.

110 stars 122 forksDocuments & Office FilesOfficial

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add microsoft/cat-agent-skills --skill template-based-document-generation
Manual install
git clone --depth 1 https://github.com/microsoft/cat-agent-skills.git /tmp/cat-agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/cat-agent-skills/submissions/template-based-document-generation ~/.claude/skills/template-based-document-generation

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Template-Based Document Generation

One command inventories the template, you write a plan as data, one command applies and verifies it.

Branding survives: every part the plan does not touch (logo, styles, theme, fonts, numbering, headers and
footers with nothing to fill) stays byte-identical, and in a touched part only the runs holding a replaced
value are rewritten. Nothing is invented silently: a missing value follows the field's absence policy and is
named in the report rather than guessed, every literal, sentinel, empty and unused input is a review item,
and every change is verified against the plan or the run fails and nothing is published.

## Workflow

1. `python scripts/run_job.py inspect --template <file.docx> --workdir <dir> [--profile <profile.json>]`
   creates `<dir>/<job_id>/` with `snapshot.docx`, `manifest.json` (paragraph inventory, candidates,
   findings) and `plan.draft.json`, and prints a listing: every paragraph with its id and text, every
   candidate marked `!` (needs your decision), `?` (optional) or `x` (cannot be filled, reason given).
2. Copy `plan.draft.json` to `plan.json` and complete it. A complete, working pair to copy the shape
   from is [references/examples/plan.json](references/examples/plan.json) and
   [references/examples/values.json](references/examples/values.json): every decision kind, typed and
   formatted fields, a sentinel, a derived `literal`, a repeated row, a range deletion and a multi-paragraph
Read the full skill on GitHub

Details

Skill name
template-based-document-generation
Path
submissions/template-based-document-generation/SKILL.md
License
MIT
Repo updated
15 November 2026

FAQ

What does the Template Based Document Generation skill do?

Fill a Word (.docx) template from structured data and return the finished document with its branding intact. Placeholders, blanks and content controls are replaced with values, optional sections are removed, and table rows repeat per input item. Use when the user supplies a .docx template plus data and asks to fill in, populate or complete it.

How do I install the Template Based Document Generation skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add microsoft/cat-agent-skills --skill template-based-document-generation. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Template Based Document Generation popular?

It lives in microsoft/cat-agent-skills, which has 110 GitHub stars and 122 forks.

Related skills

3 Statements

110

microsoft/cat-agent-skills

Completes existing income statement, balance sheet and cash flow templates while preserving layout, grounding historical inputs and linking forecast formulas with reconciliation checks. Use for "fill in a 3-statement template", "complete an IS/BS/CF framework", "populate my integrated financial model", "link statements in this template", or "finish the forecasts in my three-statement workbook". Do NOT use for blank-slate models or general workbook edits (use xlsx), DCF valuation (use dcf-valuation), or buyout modeling (use lbo-model).

AI, LLMs & Agents122

Accessibility Pass

110

microsoft/cat-agent-skills

Use this skill whenever the user asks to check, review, or fix the accessibility of a PowerPoint deck, Word document, HTML page, or Markdown file, and before handing over any deck or document this agent just generated, so it does not ship with missing alt text, untitled slides, or unreadable colour contrast.

Frontend & Design122

Accessible Learning Materials

110

microsoft/cat-agent-skills

Maintains instructionally equivalent, accessible variants of a set of learning materials — lessons, readings, slides, and handouts — with parity checks against the original learning goals and recorded approvals. Use when the user asks to "make these materials accessible", "audit this lesson set for accessibility", "create an accessible version of this reading", "check reading level and alt text", or "keep my accessible variants in sync". Do NOT use for individual student accommodation or support-plan decisions (IEP, EHCP, or local equivalent), and do NOT use for generic document formatting (us

Learning & Education122

Tolerance Check

110

microsoft/cat-agent-skills

Computes inspection deviation statistics using a local deterministic engine. Use for "check tolerances", "compare against spec", "any out-of-spec?", "bore exceedance", or "measurement band consumption". Do NOT use for document intake — use spec-ingest; grading — use defect-grade; NCR or review-report Markdown — use ncr-draft. This release does not produce DOCX/PDF or other report formats. No release decisions or operational actions.

Documents & Office Files122

Submission Assemble

110

microsoft/cat-agent-skills

Put the checked CSR or 510(k) sections together in template order with a reviewer-facing open-items register, as a draft package for human sign-off. Use when the user asks "assemble the CSR draft", "put the module together for review", "build the review package with the open items on top", "compile the 510(k) sections in order" or "package this up for the submission lead". Do NOT use for assembling an unchecked draft - use consistency-check instead. Do NOT use for loading protocol, SAP or TLF sources - use source-ingest instead. Do NOT use for compiling general documents or slide decks - use t

Documents & Office Files122

Whiteboard to Infographic

110

microsoft/cat-agent-skills

Convert a hand-drawn whiteboard photo (or sketched process/diagram) from a discovery or working session into a polished, client-ready infographic as an editable PowerPoint slide (.pptx). Use this whenever someone uploads or references a photo of a whiteboard, a hand sketch of a process or system, or session-capture notes and wants it "cleaned up", "made presentable", "turned into a diagram/infographic", "converted for the client", or similar — even if they don't say the word "infographic". Covers two layout archetypes — linear process flows (left-to-right step rails) and network/topology maps

Documents & Office Files122

Browse the most popular Claude skills, all documents & office files skills, or write your own with the skills generator.