DocGenerator

Generate Word, PDF, and Excel documents from JSON, YAML, or CSV data using templates.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/tanaer/lobster-university-v2 --skill docgenerator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: DocGenerator
Source: https://github.com/tanaer/lobster-university-v2/tree/main/skills/courses/docgenerator
Command: npx skills add https://github.com/tanaer/lobster-university-v2 --skill docgenerator

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the creation of various document types (Word, PDF, Excel) by populating templates with provided data, significantly reducing manual document generation time.

Core Features & Use Cases

  • Template-based generation: Supports multiple templating engines (docx-templates, Jinja2, Pandoc).
  • Multi-format output: Can generate Word (.docx), PDF, and potentially Excel files.
  • Data source flexibility: Works with JSON, YAML, and CSV data inputs.
  • Use Case: Generate personalized offer letters for new hires by combining employee data with a standard offer letter template.

Quick Start

Use the DocGenerator skill to create an output.docx file from data.json and template.docx.

Frequently Asked Questions about DocGenerator

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

FAQPage Schema
How do I generate a Word document from JSON data and a template?

To generate a Word document from JSON data, you populate a .docx template with structured data using templating engines like docx-templates or Jinja2. This automates document creation by mapping JSON fields directly to template placeholders.

What is the best way to automate PDF report generation from CSV files?

Automating PDF report generation from CSV files involves using Pandoc to convert structured data into formatted output. By combining your CSV data with a template, you can automatically produce standardized PDF reports without manual formatting.

Can I use Jinja2 and Pandoc together for document generation?

Yes, you can use Jinja2 and Pandoc together for document generation. Jinja2 handles templating by injecting data into placeholders, while Pandoc converts the rendered output into formats like PDF, providing a flexible multi-format workflow.

Does DocGenerator work with YAML data inputs to create Excel files?

DocGenerator works with YAML data inputs to populate templates for document generation. While it primarily outputs Word and PDF files, the template-based approach supports generating Excel files by mapping YAML data structures into compatible formats.

What are the limitations of using docx-templates for automated document generation?

Limitations of using docx-templates include dependency on properly formatted .docx templates and structured data inputs like JSON or YAML. Complex formatting may require manual template adjustments, and Pandoc is needed for PDF conversion.