fill-protocol

Fill Word template tables and sections from YAML data while preserving formatting.

243|60|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/Aperivue/medsci-skills --skill fill-protocol
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fill-protocol
Source: https://github.com/Aperivue/medsci-skills/tree/main/skills/fill-protocol
Command: npx skills add https://github.com/Aperivue/medsci-skills --skill fill-protocol

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-docx, pyyaml, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Filling institutional Word forms (IRB templates, ethics approvals, grant proposals) often destroys formatting; this tool preserves fonts, tables, margins, and layout while populating data.

Core Features & Use Cases

  • Open existing templates and populate label/value cells in tables with YAML-driven data.
  • Replace entire sections or specific paragraphs while preserving style and structure.
  • Useful for IRB protocols, ethics submissions, and research grant documents across languages with Korean font handling.

Quick Start

Run a YAML-driven fill on a DOCX template to generate a submission-ready document.

Frequently Asked Questions about fill-protocol

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

FAQPage Schema
How do I fill Word templates from YAML without breaking the document formatting?

To fill Word templates from YAML without breaking formatting, use a tool that parses YAML data and modifies DOCX files via python-docx, preserving fonts, tables, margins, and layout while populating label/value cells and replacing sections.

Can I automate IRB protocol and grant form filling while preserving the table layout?

Yes, you can automate IRB protocol and grant form filling while preserving table layout by applying YAML-driven data to the DOCX document, which maintains style, structure, and keeps cantSplit on filled rows.

Does institutional form filling with python-docx support multilingual templates with Korean fonts?

Yes, institutional form filling with python-docx supports multilingual templates, including specific handling for Korean fonts to ensure proper text rendering and style preservation across different languages.

Do I need Python 3 and pyyaml to automate DOCX template population?

Yes, you need Python 3 along with the python-docx and pyyaml packages to parse YAML data and modify Word documents during DOCX template population, ensuring institutional formatting is maintained.

What is the best way to populate label/value tables in research ethics submissions?

The best way to populate label/value tables in research ethics submissions is to use YAML-driven data mapping applied through python-docx, which accurately targets specific table cells while keeping the original document structure intact.

Why does replacing entire sections in a Word document often destroy the layout?

Replacing entire sections in a Word document often destroys the layout because standard text replacement ignores underlying style inheritance, whereas specialized template filling tools preserve paragraph-level styles and structure during edits.