business-document-generator by ailabs-393/ai-labs-claude-skills
npx skills add https://github.com/ailabs-393/ai-labs-claude-skills --skill business-document-generator基于高质量 PDF 模板生成专业的商业文档(项目提案、商业计划、年度预算)。使用捆绑的 Python 脚本,将用户提供的数据填充到模板中,并输出可供分发的精美 PDF 文档。
当用户要求以下操作时,请激活此技能:
此技能支持三种类型的专业商业文档:
assets/templates/Professional Proposal Template.pdfassets/templates/Comprehensive Business Plan Template.pdfassets/templates/Annual Budget Plan Template.pdf广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
从用户处收集以下信息:
创建一个包含文档数据的 JSON 文件。字段要求请参考 references/document_schemas.md 中的数据模式。
提案示例:
{
"title": "Digital Transformation Initiative",
"subtitle": "A Comprehensive Plan for Acme Corporation",
"client_org": "Acme Corporation",
"client_contact": "Jane Smith, CTO",
"company_name": "TechSolutions Inc.",
"contact_info": "contact@techsolutions.com",
"date": "November 3, 2025"
}
注意: 完整的示例 JSON 文件请查看 assets/examples/ 目录:
proposal_example.jsonbusiness_plan_example.jsonbudget_example.json生成脚本需要 Python 包。请安装它们:
pip install pypdf reportlab
运行生成脚本:
python3 scripts/generate_document.py <document_type> <data_file> \
--templates-dir assets/templates \
--output-dir <output_directory>
参数:
<document_type>:proposal、business_plan 或 budget 之一<data_file>:包含文档数据的 JSON 文件路径--templates-dir:包含 PDF 模板的目录(默认:assets/templates)--output-dir:保存生成的 PDF 的位置(默认:output)--output-filename:可选的定制文件名示例:
python3 scripts/generate_document.py proposal my_proposal_data.json \
--templates-dir assets/templates \
--output-dir ./generated_docs
脚本会在指定的输出目录中生成一个 PDF 文件。请确认文档已成功生成,并告知用户文件位置。
收集提案信息:
创建包含提案字段的 JSON 数据文件(参见 references/document_schemas.md)
运行脚本:
python3 scripts/generate_document.py proposal proposal_data.json \
--templates-dir assets/templates
输出:包含封面页和内容章节的专业 PDF 提案
收集商业计划信息:
创建包含商业计划字段的 JSON 数据文件
运行脚本:
python3 scripts/generate_document.py business_plan plan_data.json \
--templates-dir assets/templates
输出:全面的商业计划 PDF 模板
收集预算信息:
创建包含预算字段的 JSON 数据文件
运行脚本:
python3 scripts/generate_document.py budget budget_data.json \
--templates-dir assets/templates
输出:包含表格和预测的年度预算计划 PDF
scripts/generate_document.py 脚本:
脚本目前仅填充封面页信息(标题、名称、日期)。模板正文内容作为专业框架,供用户在手动创建文档或通过其他 PDF 编辑工具时遵循。
要填充封面页以外的其他字段,可以增强脚本以:
根据需要修改 scripts/generate_document.py 以添加更复杂的 PDF 操作功能。
有关每种文档类型所需字段和可选字段的详细信息,请查阅:
references/document_schemas.md - 完整的数据结构文档在 assets/examples/ 目录中查找完整的工作示例:
proposal_example.json - 示例项目提案数据business_plan_example.json - 示例商业计划数据budget_example.json - 示例预算计划数据创建新文档时,可将这些文件作为起始模板。
运行脚本时出现导入错误:
pip install pypdf reportlab找不到模板:
--templates-dir 指向 assets/templates生成的 PDF 为空或缺少数据:
references/document_schemas.md)需要自定义模板:
assets/templates/TEMPLATE_MAP包含用于文档生成的 Python 脚本:
generate_document.py - 带有 CLI 界面的主文档生成脚本为了提高令牌效率,此脚本可以直接执行而无需加载到上下文中。如果需要修改或调试,可以读取它。
工作期间需要参考的文档:
document_schemas.md - 所有文档类型的完整 JSON 数据结构文档生成输出中使用的文件:
templates/ - 每种文档类型的专业 PDF 模板
Professional Proposal Template.pdfComprehensive Business Plan Template.pdfAnnual Budget Plan Template.pdfexamples/ - 展示正确结构的示例 JSON 数据文件
proposal_example.jsonbusiness_plan_example.jsonbudget_example.json这些模板和示例不会加载到上下文中,而是在生成过程中引用。
每周安装次数
116
代码仓库
GitHub 星标数
322
首次出现
2026 年 1 月 23 日
安全审计
安装于
opencode100
codex94
gemini-cli91
cursor87
claude-code81
github-copilot74
Generate professional business documents (Project Proposals, Business Plans, Annual Budgets) from high-quality PDF templates. Use the bundled Python script to fill templates with user-provided data and output polished PDF documents ready for distribution.
Activate this skill when the user asks to:
This skill supports three types of professional business documents:
Project Proposal - Professional proposals for client projects
assets/templates/Professional Proposal Template.pdfBusiness Plan - Comprehensive business planning documents
assets/templates/Comprehensive Business Plan Template.pdfAnnual Budget - Detailed budget planning documents
assets/templates/Annual Budget Plan Template.pdfGather information from the user about:
Create a JSON file with the document data. Reference the data schemas in references/document_schemas.md for field requirements.
Example for Proposal:
{
"title": "Digital Transformation Initiative",
"subtitle": "A Comprehensive Plan for Acme Corporation",
"client_org": "Acme Corporation",
"client_contact": "Jane Smith, CTO",
"company_name": "TechSolutions Inc.",
"contact_info": "contact@techsolutions.com",
"date": "November 3, 2025"
}
Note: Check assets/examples/ for complete example JSON files:
proposal_example.jsonbusiness_plan_example.jsonbudget_example.jsonThe generation script requires Python packages. Install them:
pip install pypdf reportlab
Run the generation script:
python3 scripts/generate_document.py <document_type> <data_file> \
--templates-dir assets/templates \
--output-dir <output_directory>
Parameters:
<document_type>: One of proposal, business_plan, or budget<data_file>: Path to JSON file with document data--templates-dir: Directory containing PDF templates (default: assets/templates)--output-dir: Where to save generated PDFs (default: output)--output-filename: Optional custom filenameExample:
python3 scripts/generate_document.py proposal my_proposal_data.json \
--templates-dir assets/templates \
--output-dir ./generated_docs
The script outputs a PDF file in the specified output directory. Verify the document was generated successfully and inform the user of the file location.
Collect proposal information:
Create a JSON data file with proposal fields (see references/document_schemas.md)
Run the script:
python3 scripts/generate_document.py proposal proposal_data.json \
--templates-dir assets/templates
Output: Professional PDF proposal with cover page and content sections
Collect business plan information:
Create a JSON data file with business plan fields
Run the script:
python3 scripts/generate_document.py business_plan plan_data.json \
--templates-dir assets/templates
Output: Comprehensive business plan PDF template
Collect budget information:
Create a JSON data file with budget fields
Run the script:
python3 scripts/generate_document.py budget budget_data.json \
--templates-dir assets/templates
Output: Annual budget plan PDF with tables and projections
The scripts/generate_document.py script:
The script currently fills in cover page information (titles, names, dates). The template body content serves as a professional framework that users can follow when creating their documents manually or through other PDF editing tools.
To fill additional fields beyond the cover page, the script can be enhanced to:
Modify scripts/generate_document.py to add more sophisticated PDF manipulation as needed.
For detailed information about required and optional fields for each document type, consult:
references/document_schemas.md - Complete data structure documentationFind complete working examples in assets/examples/:
proposal_example.json - Sample project proposal databusiness_plan_example.json - Sample business plan databudget_example.json - Sample budget plan dataUse these as starting templates when creating new documents.
Import errors when running the script:
pip install pypdf reportlabTemplate not found:
--templates-dir points to assets/templatesGenerated PDF is blank or missing data:
references/document_schemas.md)Need to customize templates:
assets/templates/TEMPLATE_MAP in the scriptContains the Python script for document generation:
generate_document.py - Main document generation script with CLI interfaceThis script can be executed directly without loading into context for token efficiency. It may be read if modifications or debugging are needed.
Documentation to reference while working:
document_schemas.md - Complete JSON data structure for all document typesFiles used in the document generation output:
templates/ - Professional PDF templates for each document type
Professional Proposal Template.pdfComprehensive Business Plan Template.pdfAnnual Budget Plan Template.pdfexamples/ - Sample JSON data files demonstrating proper structure
proposal_example.jsonbusiness_plan_example.jsonbudget_example.jsonThese templates and examples are not loaded into context but referenced during generation.
Weekly Installs
116
Repository
GitHub Stars
322
First Seen
Jan 23, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode100
codex94
gemini-cli91
cursor87
claude-code81
github-copilot74
Azure RBAC 权限管理工具:查找最小角色、创建自定义角色与自动化分配
129,699 周安装
Rust 所有权与生命周期指南:解决 E0382/E0597 等常见错误,优化内存管理设计
650 周安装
Chrome Bridge 自动化:Midscene 真实浏览器自动化工具,保留登录状态
657 周安装
Rust错误处理最佳实践指南:Result、Option、panic!与thiserror/anyhow使用技巧
660 周安装
Rust并发编程指南:Send/Sync、线程与异步编程最佳实践
668 周安装
Google Workspace Admin CLI 指南:gws-admin 命令行工具完整使用教程
670 周安装
HeyGen数字人视频API教程:创建AI虚拟人视频,控制形象、语音、脚本和场景
690 周安装