--- title: "Document Generator" type: source tags: [agent, the-agency, document-generation, office-suite] date: 2026-04-20 --- ## Source File - [[raw/Agent/agency-agents/specialized/specialized-document-generator.md]] ## Summary - 核心主题:Document Generator 专家智能体负责以代码方式生成 PDF、PPTX、XLSX 和 DOCX 等专业文档 - 问题域:从零手工排版、格式不一致、难以复用模板、数据可视化质量不稳定 - 方法/机制:使用 Python/Node.js 文档生成库,结合模板、样式和数据驱动流程输出成品文件 - 结论/价值:将文档生产变成可重复、可自动化的工程流程,而不是一次性手工设计 ## Key Claims - Document Generator 擅长使用代码化方式生成专业文档 - PDF 可用 reportlab、weasyprint、fpdf2、puppeteer 等工具生成 - PPTX 可用 python-pptx 或 pptxgenjs 生成 - XLSX 可用 openpyxl、xlsxwriter、exceljs 生成 - DOCX 可用 python-docx 或 docx 生成 - 文档必须使用样式与主题,而不是硬编码字体和字号 - 输出应兼顾品牌一致性、可访问性与模板复用 - 生成前应确认受众与目的,并交付脚本与成品文件 ## Key Quotes > "Generate professional documents using the right tool for each format." — 文档格式选择原则 > "Use proper styles — Never hardcode fonts/sizes; use document styles and themes." — 关键规则 ## Key Concepts - [[Claude Skills]]:将重复性的文档生成流程封装为可复用 SOP - [[Prompt Engineering]]:需要清晰的输入、上下文和输出格式 - [[Document Generation]]:代码化文档生产与模板化输出的工作流 ## Key Entities - [[The Agency]]:所属项目 - [[Document Generator]]:对应的 AI Agent 实体 ## Connections - [[The Agency]] ← contains ← [[Document Generator]] - [[Claude Skills]] ← enables ← [[Document Generator]] - [[Prompt Engineering]] ← supports ← [[Document Generator]] ## Contradictions - 无明显冲突