低风险
直接执行会把固定示例任务写入用户的 Google Tasks
原文依据:2 处发现了什么
步骤使用写入命令,并固定了列表名、任务内容及一个已经过去的到期时间;文中没有要求在执行前把这些值替换为用户确认的内容。
为什么需要注意
如果代理把配方当作可直接执行的流程,用户账号可能出现无关、重复或日期错误的任务和列表。
这是配方的实际执行步骤,不只是说明性示例:它要求创建名为“Q2 Goals”的列表,并连续插入两项固定任务,其中一项带有 2024-04-01 的到期时间。若代理照步骤执行,这些内容会写入用户已授权的 Google Tasks;文本没有显示执行前会让用户确认标题、备注或日期。用户可要求作者增加预览和逐项确认,并限制技能只能访问指定任务列表。
1. Create task list: `gws tasks tasklists insert --json '{"title": "Q2 Goals"}'`2. Add a task: `gws tasks tasks insert --params '{"tasklist": "TASKLIST_ID"}' --json '{"title": "Review Q1 metrics", "notes": "Pull data from analytics dashboard", "due": "2024-04-01T00:00:00Z"}'`3. Add another task: `gws tasks tasks insert --params '{"tasklist": "TASKLIST_ID"}' --json '{"title": "Draft Q2 OKRs"}'`4. List tasks: `gws tasks tasks list --params '{"tasklist": "TASKLIST_ID"}' --format table`查看另外 1 个位置
> **PREREQUISITE:** Load the following skills to execute this recipe: `gws-tasks`Set up a new Google Tasks list with initial tasks.