360 Secure SkillHub
360 安全技能中心

Recipe Copy Sheet For New Month

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

googleworkspace-bot
googleworkspace-bot
热度 74.50
最近更新 2026-05-11 17:29:28
分类:自动化依赖:代码执行 / 第三方 API应用场景:工作流 / 自动化脚本 / 模板

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add 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"}}]}'