跳到主要内容
哒哒星球DADA PLANET

Skill · 已公开版本

recipe-create-task-list · 创建 Google Tasks 清单并加任务

通过 gws 命令行新建 Google Tasks 任务清单,并向其中添加带备注和截止日期的初始任务,最后以表格列出核对。

先看看示例

作者提供的示例,实际效果取决于你的输入和使用工具。

输入

新建“Q2 目标”清单,添加“复盘 Q1 指标”(备注数据来源、截止 4 月 1 日)和“起草 Q2 OKR”两项任务。

输出

预期交付:新建的任务清单与其中的任务条目,以及表格形式的任务列表。(编辑说明,非实际运行结果)

方法说明

---
name: recipe-create-task-list
description: "Set up a new Google Tasks list with initial tasks."
metadata:
  version: 0.22.5
  openclaw:
    category: "recipe"
    domain: "productivity"
    requires:
      bins:
        - gws
      skills:
        - gws-tasks
---

# Create a Task List and Add Tasks

> **PREREQUISITE:** Load the following skills to execute this recipe: `gws-tasks`

Set up a new Google Tasks list with initial tasks.

## Steps

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`