agency-document-generator

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Document Generator

文档生成器

Use this skill when the deliverable is the document itself, not just the underlying analysis.
当交付成果为文档本身,而非仅底层分析内容时,可使用该技能。

Best for

适用场景

  • PPTX, PDF, DOCX, and XLSX generation from structured inputs
  • Turning analysis, notes, or reports into stakeholder-ready artifacts
  • Repeatable document workflows instead of one-off manual edits
  • Output validation for layout, formatting, and data presentation
  • 从结构化输入生成PPTX、PDF、DOCX和XLSX文档
  • 将分析内容、笔记或报告转化为可供相关方使用的成品文档
  • 可重复的文档工作流,替代一次性手动编辑
  • 对输出内容的布局、格式和数据展示进行验证

Workflow

工作流程

  1. Establish audience, purpose, and target format first.
  2. Pick the simplest generation path that preserves the required structure:
    • PDF for distribution-ready fixed layout
    • PPTX for editable slides
    • DOCX for editable narrative docs
    • XLSX for structured tables, formulas, and analysis handoff
  3. Keep content data-driven and templated.
  4. Render or inspect the output before delivery when possible.
  5. Call out any layout or fidelity risks that still need human review.
  1. 首先确定受众、用途和目标格式。
  2. 选择能保留所需结构的最简生成路径:
    • PDF:用于可分发的固定布局文档
    • PPTX:用于可编辑的幻灯片
    • DOCX:用于可编辑的叙述性文档
    • XLSX:用于结构化表格、公式及分析内容移交
  3. 内容需以数据为驱动并采用模板化方式。
  4. 尽可能在交付前渲染或检查输出结果。
  5. 指出仍需人工审核的布局或保真度风险。

Output contract

输出约定

Produce:
  • generation script or implementation
  • output artifact
  • short notes on customization points
  • validation status and any remaining issues
需交付:
  • 生成脚本或实现代码
  • 输出文档成品
  • 关于自定义点的简短说明
  • 验证状态及剩余问题

Critical rules

核心规则

  1. Use proper styles — Never hardcode fonts/sizes; use document styles and themes
  2. Consistent branding — Colors, fonts, and logos match the brand guidelines
  3. Data-driven — Accept data as input, generate documents as output
  4. Accessible — Add alt text, proper heading hierarchy, tagged PDFs when possible
  5. Reusable templates — Build template functions, not one-off scripts
  6. Validate final output — Check for overflow, truncation, broken tables, and font substitution when possible
  1. 使用规范样式 — 切勿硬编码字体/字号;使用文档样式和主题
  2. 品牌一致性 — 颜色、字体和Logo需符合品牌指南
  3. 数据驱动 — 接受数据作为输入,生成文档作为输出
  4. 可访问性 — 尽可能添加替代文本、合理的标题层级、带标签的PDF
  5. 可复用模板 — 构建模板函数,而非一次性脚本
  6. 验证最终输出 — 尽可能检查内容溢出、截断、表格损坏和字体替换问题

Starter prompts

初始提示词

  • Generate a stakeholder-ready
    <format>
    from these notes/data and keep the workflow reusable.
  • Build this deck/report from code, render the output, and fix layout issues before delivery.
  • Turn this analysis into an editable document artifact with clear branding and data presentation.
  • 根据这些笔记/数据生成一份可供相关方使用的<format>文档,并确保工作流可复用。
  • 通过代码构建这份演示文稿/报告,渲染输出内容并在交付前修复布局问题。
  • 将这份分析内容转化为具有清晰品牌标识和数据展示效果的可编辑文档成品。

Autonomous decision rules

自主决策规则

Use this skill when:
  • the user needs a report, deck, document, spreadsheet, or PDF output
  • the value is in packaging information into a shareable artifact
Do NOT use when:
  • the task is only raw analysis or implementation with no document deliverable
  • a narrower presentation skill is better, such as
    frontend-slides
    for HTML decks
使用该技能的场景:
  • 用户需要报告、演示文稿、文档、电子表格或PDF输出
  • 价值在于将信息打包为可分享的文档成品
不使用该技能的场景:
  • 任务仅为原始分析或实现,无文档交付要求
  • 更适合使用更细分的展示技能,例如使用
    frontend-slides
    生成HTML演示文稿