360 Secure SkillHub
360 安全技能中心

recipe-copy-sheet-for-new-month

通过 gws 命令行依次读取电子表格信息、复制模板工作表标签页并重命名为新月份标题,在 Google Sheets 中生成可继续追踪的新标签页;需先加载 gws-sheets 技能,工作表 ID 与标题需人工替换。

分类:自动化
googleworkspace
热度 72.18
最近更新 2026-10-18 17:15:27

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add googleworkspace/cli/recipe-copy-sheet-for-new-month
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
recipe-copy-sheet-for-new-month
description
Duplicate a Google Sheets template tab for a new month of tracking.
metadata
{"version":"0.22.5","openclaw":{"category":"recipe","domain":"productivity","requires":{"bins":["gws"],"skills":["gws-sheets"]}}}

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

  1. Get spreadsheet details: gws sheets spreadsheets get --params '{"spreadsheetId": "SHEET_ID"}'
  2. Copy the template sheet: gws sheets spreadsheets sheets copyTo --params '{"spreadsheetId": "SHEET_ID", "sheetId": 0}' --json '{"destinationSpreadsheetId": "SHEET_ID"}'
  3. Rename the new tab: gws sheets spreadsheets batchUpdate --params '{"spreadsheetId": "SHEET_ID"}' --json '{"requests": [{"updateSheetProperties": {"properties": {"sheetId": 123, "title": "February 2025"}, "fields": "title"}}]}'