recipe-generate-report-from-sheet
它能做什么
这个工具可以把 Google Sheets 中的信息整理成格式规范的 Google Docs 文档。就像把表格里的数据复制出来,粘贴进一份漂亮的报告里。
适用场景
- ✓当你需要把原始的表格数据变成美观的报告时。
- ✓当你要制作销售汇总、任务列表,或者任何需要清晰呈现的信息时。
- ✓当你要与没有表格访问权限的人分享重要数据时。
技能链接
https://github.com/googleworkspace/cli/blob/main/skills/recipe-generate-report-from-sheet/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“根据我的“Q1 销售”表格生成一份销售报告,并保存为“Q1 报告”。”
每周 5 个新技能,1 分钟读完。
工作原理
工具会先读取指定表格中的数据,然后在 Google Docs 中新建一份文档,把读取到的数据插入进去,并排版成报告的样式。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Generate a Google Docs Report from Sheet Data
PREREQUISITE: Load the following skills to execute this recipe:
gws-sheets,gws-docs,gws-drive
Read data from a Google Sheet and create a formatted Google Docs report.
Steps
- Read the data:
gws sheets +read --spreadsheet SHEET_ID --range "Sales!A1:D" - Create the report doc:
gws docs documents create --json '{"title": "Sales Report - January 2025"}' - Write the report: `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'`
- Share with stakeholders:
gws drive permissions create --params '{"fileId": "DOC_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "cfo@company.com"}'
常见问题
表格里的数据需要是特定格式吗?
不需要。工具可以读取任何 Google Sheets 中的数据。你只需要确保要放进报告的数据位于表格的某个特定区域即可。
我可以选择报告中数据的位置吗?
可以。你可以指定要读取表格中的哪些数据,以及它们在报告中如何呈现。
报告生成之后会怎样?
报告会保存在你的 Google Drive 中,你可以分享给同事或经理等人。
详情
作者的原始描述
Read data from a Google Sheet and create a formatted Google Docs report.
repo: googleworkspace/cli
热度
- GitHub 星标
- 32k
- 排名
- #9229
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/6
评论
- …