Community recipe · Tool workflows
Generate reviewed document batches from a master
Source-backed example. Practical decision guidance is proposed and untested; this is not a full implementation guide.
The problem
Repeating a master document across many recipients invites mapping mistakes and makes missing information difficult to spot.
Agent job
Propose variable mappings, obtain confirmation and generate a draft file for each spreadsheet row while flagging missing values.
Expected output
A confirmed mapping and a batch of draft documents with visible missing-value reports.
Where this framing comes from
- Core problem: Editorial purpose framing
- Agent job: Editorial purpose framing
- Expected output: Editorial purpose framing
- Relevant job roles: Editorial purpose framing
- Benefit type: Editorial purpose framing
Editorial framing and outcome limits
Describes the task’s purpose and intended output; measured benefit, safe unsupervised operation and successful delivery are not established by this framing.
Editorial synthesis based on the linked source. This framing does not add evidence of successful delivery or results.
Case-specific decision guidance · untested
Case-specific decision guidance and first checks are original proposals. The linked source supports the attributed task; this added guidance has not been executed.
Read the attributed source evidence and original caveats below ↓
Why use this
A team generating similar documents for many rows can make a single mapping error that spreads across the whole batch. Missing values are especially risky when an apparently finished document hides a blank or borrows data from another record.
This job could make variable mappings explicit before any draft files are produced. A visible exception report and row-to-file traceability give reviewers a practical way to detect omissions and cross-record mistakes before documents are used.
Why an agent / simpler alternative
- Useful judgment
Identify variable fields, distinguish repeated static text and flag ambiguous spreadsheet-to-template mappings.
- Simpler alternative
Use ordinary mail merge when the template and column mapping are already reliable.
- Unsuitable when
The workflow would send, sign or publish documents or apply an unconfirmed mapping to consequential content.
Proposed inputs
- Name
Master document
- Owner
Document owner
- Minimum scope
Approved Word/Excel template copy
- Quality check
Identify protected text and formatting
- Name
Row data
- Owner
Authorized owner
- Minimum scope
Required columns with stable row IDs
- Quality check
Check blanks, duplicates and field types
Access and setup — proposed or unknown
- Proposed minimum
Inspect copied templates and synthetic rows; no batch generation until a mapping is explicitly confirmed.
- Compatibility unknowns
Current document-library behavior, formatting fidelity and exact runtime compatibility are unknown.
- External actions requiring approval
Confirm variable mapping before generation; external uploads, document sharing, sending and signing require separate approval.
Expected deliverable and review checks
- Proposed artifact
Proposed mapping, row-to-output manifest and missing-value report; future generated files remain drafts.
- Critical checks
Preserve static clauses; verify row identity and field types; show missing values rather than guessing; prevent accidental file overwrite.
- Missing output evidence
This overlay adds no new output inspection, execution or validation; consult the referenced canonical source outcome limits.
Failure signals and proposed responses
- Signal
Two columns could fill the same token
- Why it matters
A plausible match can put the wrong data everywhere
- Proposed response
Present alternatives and request mapping confirmation.
- Signal
A blank carries forward the previous row's value
- Why it matters
One person's data leaks into another document
- Proposed response
Require independent row binding and flag empty fields.
Effort and cost — unknown
- Setup work
Mark variables and resolve mapping ambiguity.
- Ongoing review
Review batch exceptions and representative formatting before use.
- Unknowns
Template complexity, output volume, formatting repair and tool costs are unknown.
First check — proposed, unexecuted
- Status
proposed_unexecuted
- Synthetic fixture
Invent a template with three variables and three rows, including a missing value and two similar address columns; propose the mapping only.
- Acceptance checks
Surface ambiguity; list missing data; preserve row IDs; generate no files before confirmation.
- Stop conditions
Stop if the mapping is unapproved or a missing field would require invented content.
Limits
Successful template filling cannot establish the accuracy, legal effect or suitability of the resulting documents.
Editorial candidate. This is source-backed reporting or a documented workflow. BotCurrent has not independently tested this task. A proposed Canadian adaptation is not evidence of a Canadian deployment or compliance certification.
Original source
https://github.com/moonlight-lupin/agent-skills/blob/main/productivity/fill-template/SKILL.md ↗Attributed to: moonlight-lupin
Community recipe- Original action type
- tool_action
- What the source supports
- Reads a Word or Excel master, proposes variable tokens, confirms the mapping, fills one file per spreadsheet row and reports missing values visibly.
- Source outcome limits
- This community recipe describes a procedure; it does not prove successful execution or independently reproduced results.
- Evidence attribution caveat
- This community recipe describes a procedure; it does not prove successful execution or independently reproduced results.
- Source approval description
- Explicit mapping confirmation required before batch generation; files are drafts and are never sent, posted or signed.
- Named tools
- Python fill_template.py; python-docx; openpyxl; DOCX; XLSX; CSV
- Model or version
- Recipe skill version 1.0.0; Hermes runtime/model unspecified
- Publication date
- Unknown
- Source last checked
- 2026-10-14
- Demonstrated in Canada
- Unknown
- Canadian availability
- Unknown
- Proposed Canadian adaptation
- Check Canadian bilingual templates, date conventions and currency fields; use only authorized personal data.
- Recommended approval boundaries
- Approve mapping and sample outputs; approve any later mailing, filing or signature separately.