自动化32k · #9212
recipe-copy-sheet-for-new-month
它能做什么
这个工具可以复制一个已有的 Google 表格,生成一个新表格,非常适合为新的月份整理信息。它会复制表格中指定的某个“标签页”(即页面),让你可以开始记录下个月的数据,同时保留旧的记录。
适用场景
- ✓当你需要一个全新的表格来记录每月收支时。
- ✓当你开始一个新项目,想要一份干净的跟踪模板副本时。
- ✓当你想在新标签页中整理下个月的任务或目标时。
技能链接
https://github.com/googleworkspace/cli/blob/main/skills/recipe-copy-sheet-for-new-month/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
请用这个技能帮我:https://github.com/googleworkspace/cli/blob/main/skills/recipe-copy-sheet-for-new-month/SKILL.md
阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
npx skills add googleworkspace/cli --skill recipe-copy-sheet-for-new-month
下载 SKILL.md,放进智能体的技能文件夹。
curl -L https://raw.githubusercontent.com/googleworkspace/cli/main/skills/recipe-copy-sheet-for-new-month/SKILL.md -o SKILL.md
可以这样问 AI
“复制 '财务跟踪表' 这个表格,并把新标签页命名为 '2025年3月'。”
每周 5 个新技能,1 分钟读完。
工作原理
工具会先找到你表格的详细信息,然后创建你所选标签页的完整副本,并把它重命名为你指定的名字,比如 '2025年3月'。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Copy a Google Sheet for a New Month
PREREQUISITE: Load the following skills to execute this recipe:
gws-sheets
Duplicate a Google Sheets template tab for a new month of tracking.
Steps
- Get spreadsheet details:
gws sheets spreadsheets get --params '{"spreadsheetId": "SHEET_ID"}' - Copy the template sheet:
gws sheets spreadsheets sheets copyTo --params '{"spreadsheetId": "SHEET_ID", "sheetId": 0}' --json '{"destinationSpreadsheetId": "SHEET_ID"}' - Rename the new tab:
gws sheets spreadsheets batchUpdate --params '{"spreadsheetId": "SHEET_ID"}' --json '{"requests": [{"updateSheetProperties": {"properties": {"sheetId": 123, "title": "February 2025"}, "fields": "title"}}]}'
常见问题
我需要事先准备好表格吗?
需要,你要有一个用作模板的 Google 表格,用来被复制。
'SHEET_ID' 是什么?
它是用来标识你表格的唯一代码,通常是表格网址(URL)的一部分。
原表格中的数据会怎么样?
原表格保持不变,工具只会创建一份它的副本。
详情
热度
- GitHub 星标
- 32k
- 排名
- #9212
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/6
评论
- …