← 提示词库 Meta/muse-agent/skills/google-tasks/SKILL.md 原文 md
🌐 中英双语对照

name: "google_tasks"
description: "Manage the user's Google Tasks: lists, task details, creation, updates, and completion."
icon: "google_tasks"
metadata: { "includeInPrompt": false }

Google Tasks / Google 任务

Everything runs through hatch_gws_cli tasks <resource> <method>. The two resources are tasklists and tasks, so a task command names tasks twice — hatch_gws_cli tasks tasks list (service tasks, resource tasks, method list). Parameters go in a --params JSON object, and creates and edits add a --json request body. The flows below give the exact command for each job, so use them verbatim; run hatch_gws_cli tasks <resource> --help for a command's flags, and hatch_gws_cli schema tasks.tasks.insert (and so on) for a method's --params/--json shape.

一切操作都通过 hatch_gws_cli tasks <resource> <method> 完成。两个资源是 tasklists 和 tasks,因此任务命令会把 tasks 写两次——hatch_gws_cli tasks tasks list(服务 tasks,资源 tasks,方法 list)。参数放在 --params JSON 对象中,创建和编辑还要加上 --json 请求体。下面的流程给出了每项工作的确切命令,请逐字使用;命令的标志用 hatch_gws_cli tasks <resource> --help 查看,方法的 --params/--json 结构用 hatch_gws_cli schema tasks.tasks.insert(依此类推)查看。

A task's due is a date given as an RFC3339 timestamp like 2026-04-16T00:00:00Z, but Google Tasks uses only the date — there is no time of day and no reminders. The default task list is @default.

任务的 due 是以 RFC3339 时间戳形式给出的日期,如 2026-04-16T00:00:00Z,但 Google Tasks 只使用日期——没有具体时刻,也没有提醒。默认任务列表是 @default。

Connecting / 连接

Tasks needs a one-time connect before commands return data. Run hatch_gws_cli tasks status. If it is not connected, post the exact connect_url it returns as [Connect Google Tasks](<connect_url>) and wait for the user to tap it. Don't invent a URL, send the user to Settings, or ask for credentials.

在命令能返回数据之前,Tasks 需要一次性的连接。运行 hatch_gws_cli tasks status。如果尚未连接,把它返回的 connect_url 原样以 [Connect Google Tasks](<connect_url>) 形式发布,等待用户点击。不要杜撰 URL,不要让用户去 Settings,也不要索要凭据。

To disconnect, run hatch_gws_cli tasks disconnect and post its disconnect_url as [Disconnect Google Tasks](<disconnect_url>).

要断开连接,运行 hatch_gws_cli tasks disconnect,并把其 disconnect_url 以 [Disconnect Google Tasks](<disconnect_url>) 形式发布。

If a command reports an auth failure or not-connected, rerun status and follow the link it returns. If status is unavailable, say Google Tasks isn't available on this device and stop. Auth flows only through status and disconnect, with no hand-authored credential files or raw gws auth.

如果命令报告认证失败或未连接,重新运行 status 并使用它返回的链接。如果 status 不可用,说明 Google Tasks 在此设备上不可用并停止。认证只通过 status 和 disconnect 进行,不要手写凭据文件,也不要直接使用 gws auth。

Common flows / 常见流程

See your lists and tasks / 查看你的列表和任务

Add a task / 添加任务

hatch_gws_cli tasks tasks insert --params '{"tasklist":"@default"}' --json '{"title":"Buy groceries","notes":"Milk, eggs","due":"<date>"}'. Only title is required; add notes and a due date when the user gives them.

hatch_gws_cli tasks tasks insert --params '{"tasklist":"@default"}' --json '{"title":"Buy groceries","notes":"Milk, eggs","due":"<date>"}'。只有 title 是必需的;当用户给出 notes 和 due 日期时再加上。

Complete or reopen a task / 完成或重新打开任务

Edit or reschedule a task / 编辑或改期任务

hatch_gws_cli tasks tasks patch --params '{"tasklist":"@default","task":"<id>"}' --json '{"title":"...","due":"<date>"}'. Patch only the fields that change.

hatch_gws_cli tasks tasks patch --params '{"tasklist":"@default","task":"<id>"}' --json '{"title":"...","due":"<date>"}'。只修补发生变化的字段。

Organize / 整理

Delete or clear / 删除或清理

Carry the tasklist ID and task ID from the read that found the item straight through the write, and use them exactly. @default is only the default when the user has not pointed at a specific list; once a read locates a task on some list, target that same list for the update, complete, move, or delete — never fall back to @default. Never invent or rewrite a task or list ID.

把读取到该项时得到的任务列表 ID 和任务 ID 原样带到写入操作中,并精确使用。只有当用户未指定具体列表时,@default 才是默认值;一旦读取操作在某个列表上定位到任务,后续的更新、完成、移动或删除都要针对同一个列表——绝不要退回 @default。绝不要杜撰或改写任务或列表 ID。

Rules / 规则

Limits / 限制