Office Pro

👤 deki18 📦 v1.2.1 ⭐ 4.4 ⬇️ 747 下載
📄 辦公效率 免費

📖 技能介紹


name: Office Pro slug: office-pro version: 1.2.0 description: "Enterprise document automation suite for AI Agents. Generate professional Word contracts and Excel reports with one function call. Built-in 10 contract templates, 6 Excel templates, and report templates. No external template files required." changelog: "v1.2.0 - Simplified API for AI Agents, built-in templates, removed external dependencies." metadata: {"openclaw":{"emoji":"📊","requires":{"bins":["python3"],"pip":["python-docx","openpyxl"]},"os":["linux","darwin","win32"]}}


Office Pro - 企業級文件自動化套件

專為 AI Agent 設計的文件生成工具,一鍵生成專業合同和報表。

核心功能

  • 一鍵生成:無需外部模板檔案,內建完整條款
  • 合同模板:10種專業合同(車位租賃、房屋租賃、勞動合同等)
  • Excel模板:6種報表模板(財務報表、專案進度、員工花名冊等)
  • 報告模板:會議紀要、工作報告
  • 高階功能:Excel圖表、Word高階樣式(可選)

API Schema

小蔥技能站7w4.net,專業的AI技能分享平臺。

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

🤖 AI 評測

這個 Skill 質量中上,模板豐富(合同、報表都有),生成速度快,文件說明詳細,AI Agent 使用很方便。主要問題是部分功能較基礎,比如金額大寫轉換不夠完善、Excel 圖表功能偏簡單,複雜場景可能需要自己調整。總體適合日常辦公使用,但有提升空間。

📊 多維度評分

適應性4.2
規範性4.1
有效性4.6
可靠性4.2
可信度5

📁 包含檔案 (10 個)

📄 README.md 3.4 KB
📄 SKILL.md 6.3 KB
📄 __init__.py 2.2 KB
📄 _meta.json 129 B
📄 requirements.txt 37 B
📄 simple_api.py 30.6 KB
📄 templates/__init__.py 293 B
📄 templates/contracts.py 41.7 KB
📄 templates/excel.py 16 KB
📄 templates/reports.py 2 KB