← 返回
未分类

Office Pro

Enterprise document automation suite for AI Agents. Generate professional Word contracts and Excel reports with one function call. Built-in 10 contract templ...
企业文档自动化套件,支持AI代理。一次调用即可生成专业Word合同和Excel报表,内置10个合同模板。
deki18
未分类 clawhub v1.2.1 1 版本 99771.2 Key: 无需
★ 1
Stars
📥 416
下载
💾 0
安装
1
版本
#excel#latest#office#v1.2.1#word

概述

Office Pro - 企业级文档自动化套件

专为 AI Agent 设计的文档生成工具,一键生成专业合同和报表。

核心功能

  • 一键生成:无需外部模板文件,内置完整条款
  • 合同模板:10种专业合同(车位租赁、房屋租赁、劳动合同等)
  • Excel模板:6种报表模板(财务报表、项目进度、员工花名册等)
  • 报告模板:会议纪要、工作报告
  • 高级功能:Excel图表、Word高级样式(可选)

API Schema

generate_contract

生成合同文档

{
  "input": {
    "type": "object",
    "required": ["contract_type"],
    "properties": {
      "contract_type": {
        "type": "string",
        "enum": ["parking_lease", "house_lease", "labor", "sales", "service", "purchase", "nda", "cooperation", "loan", "commission"],
        "description": "Contract type ID"
      },
      "party_a": {"type": "string", "description": "Party A name"},
      "party_b": {"type": "string", "description": "Party B name"},
      "location": {"type": "string", "description": "Location/address"},
      "monthly_rent": {"type": "number", "description": "Monthly rent (yuan)"},
      "start_date": {"type": "string", "description": "Start date (YYYY-MM-DD)"},
      "end_date": {"type": "string", "description": "End date (YYYY-MM-DD)"},
      "output": {"type": "string", "description": "Output filename (optional)"}
    }
  },
  "output": {
    "type": "object",
    "properties": {
      "success": {"type": "boolean"},
      "output_path": {"type": "string"},
      "message": {"type": "string"}
    }
  }
}

generate_excel

生成Excel报表

{
  "input": {
    "type": "object",
    "required": ["excel_type"],
    "properties": {
      "excel_type": {
        "type": "string",
        "enum": ["financial_report", "project_schedule", "employee_roster", "asset_inventory", "expense_report", "invoice"],
        "description": "Excel template type ID"
      },
      "company_name": {"type": "string", "description": "Company name"},
      "output": {"type": "string", "description": "Output filename (optional)"}
    }
  },
  "output": {
    "type": "object",
    "properties": {
      "success": {"type": "boolean"},
      "output_path": {"type": "string"},
      "message": {"type": "string"}
    }
  }
}

generate_report

生成报告文档

{
  "input": {
    "type": "object",
    "required": ["report_type"],
    "properties": {
      "report_type": {
        "type": "string",
        "enum": ["meeting_minutes", "work_report"],
        "description": "Report type ID"
      },
      "meeting_title": {"type": "string", "description": "Meeting title (for meeting_minutes)"},
      "meeting_date": {"type": "string", "description": "Meeting date"},
      "reporter": {"type": "string", "description": "Reporter name (for work_report)"},
      "output": {"type": "string", "description": "Output filename (optional)"}
    }
  },
  "output": {
    "type": "object",
    "properties": {
      "success": {"type": "boolean"},
      "output_path": {"type": "string"},
      "message": {"type": "string"}
    }
  }
}

list_templates

列出可用模板

{
  "input": {
    "type": "object",
    "properties": {
      "category": {
        "type": "string",
        "enum": ["contract", "excel", "report", null],
        "default": null,
        "description": "Template category (null for all)"
      }
    }
  },
  "output": {
    "type": "object",
    "properties": {
      "contracts": {"type": "array", "items": {"type": "string"}},
      "excel": {"type": "array", "items": {"type": "string"}},
      "reports": {"type": "array", "items": {"type": "string"}}
    }
  }
}

可用模板

合同模板 (10种)

| ID | 名称 | ID | 名称 |

|---|------|---|------|

| parking_lease | 车位租赁合同 | sales | 销售合同 |

| house_lease | 房屋租赁合同 | service | 服务合同 |

| labor | 劳动合同 | purchase | 采购合同 |

| nda | 保密协议 | cooperation | 合作协议 |

| loan | 借款合同 | commission | 委托合同 |

Excel模板 (6种)

| ID | 名称 |

|---|------|

| financial_report | 财务报表 |

| project_schedule | 项目进度表 |

| employee_roster | 员工花名册 |

| asset_inventory | 资产清单 |

| expense_report | 费用报销单 |

| invoice | 发票管理表 |

报告模板 (2种)

| ID | 名称 |

|---|------|

| meeting_minutes | 会议纪要 |

| work_report | 工作报告 |

使用示例

Python API

from office_pro import generate_contract, generate_excel, generate_report

# 生成车位租赁合同
generate_contract('parking_lease',
    party_a='张三', party_b='李四',
    location='XX小区地下停车场',
    space_number='A-123',
    monthly_rent=500,
    start_date='2024-01-01',
    end_date='2024-12-31'
)

# 生成财务报表
generate_excel('financial_report', company_name='XX公司')

# 生成会议纪要
generate_report('meeting_minutes',
    meeting_title='Q1规划会议',
    meeting_date='2024-03-15'
)

高级功能(可选)

from office_pro import create_chart, create_styled_document

# Excel图表
create_chart('report.xlsx') \
    .add_bar_chart('Sheet1', 'A1:B10', '销售数据') \
    .save()

# Word高级样式
create_styled_document() \
    .add_styled_heading('报告', color='1F4E79') \
    .add_table_with_style([['项目', '金额'], ['收入', '100万']]) \
    .save('report.docx')

安装依赖

pip install python-docx openpyxl

许可协议

MIT License

版本历史

共 1 个版本

  • v1.2.1 当前
    2026-05-03 10:12 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,361 📥 318,632
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 713 📥 243,962
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,216 📥 266,636