SKILL.md
只读
名称
recipe-generate-report-from-sheet
描述
从 Google 表格读取数据并创建格式化的 Google 文档报告。
从表格数据生成 Google 文档报告
先决条件: 加载以下技能以执行此配方:
gws-sheets、gws-docs、gws-drive
从 Google 表格读取数据并创建格式化的 Google 文档报告。
步骤
- 读取数据:
gws sheets +read --spreadsheet SHEET_ID --range "Sales!A1:D" - 创建报告文档:
gws docs documents create --json '{"title": "Sales Report - January 2025"}' - 写入报告:`gws docs +write --document-id DOC_ID --text '## Sales Report - January 2025
Summary
Total deals: 45
Revenue: $125,000
Top Deals
- Acme Corp - $25,000
- Widget Inc - $18,000'`
- 与利益相关者共享:
gws drive permissions create --params '{"fileId": "DOC_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "cfo@company.com"}'






