Addo.Zhang

Google Tasks

AI 智能体v1.0.0
作者:Addo.Zhang更新于 2026-05-11google-tasks@clawhub_addozhang/google-tasks
任务自动化工具调用#Google Tasks#Bash#OAuth#Todo

据 AlphaMoat 统计,截至 2026-09,Google Tasks 累计下载 3,851 次、获 1 个星标,在全部 5,078 个 AI 技能中排名第 2,716 位,在「AI 智能体」分类(969 个)中排名第 535 位。

累计安装
106
累计下载
3,851
星标
1
全站排名
#2,716
全站前 54% · 「AI 智能体」前 56%
平台累计安装累计下载星标评论
ClawHub ↗1063,1371-
SkillHub ↗1063,8511—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

主文介绍从任务清单读取条目、添加任务及删除任务,并使用 Google Tasks API 的 OAuth 访问。所需 scope 同时包含读和写权限,凭据及访问令牌会保存在本地文件中。仅在用户明确授权此访问范围时安装;将 credentials.json 和 token.json 移出共享工作区并限制文件权限。创建或删除任务前,先核对清单、标题和目标条目并取得确认。

资料发布于 2026-10-29

可以用来做什么

  • 查看指定 Google Tasks 清单
  • 为指定清单创建含标题和可选备注的任务
  • 根据用户确认的标题或位置移除任务

什么时候用

  • 用户明确要求管理 Google Tasks 时
  • 读写 OAuth 权限和本地凭据存储已获接受并受保护时
  • 每项创建或删除动作都能在执行前核对并确认时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

只读取默认任务清单,不要改动条目
草拟一个任务标题和备注供用户确认后再创建
先列出匹配的任务标题,要求确认后再删除指定条目

月度数据趋势

累计下载3,851
1,8922,9443,9962026-03 · 累计下载 2,0372026-05 · 累计下载 2,6812026-06 · 累计下载 2,8542026-07 · 累计下载 3,0902026-08 · 累计下载 3,2642026-09 · 累计下载 3,85126-0326-09
星标1
0122026-03 · 星标 12026-05 · 星标 12026-06 · 星标 12026-07 · 星标 12026-08 · 星标 12026-09 · 星标 126-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-093,851—1
2026-083,264+5.6%1
2026-073,090+8.3%1
2026-062,854+6.5%1
2026-052,681—1
2026-032,037—1

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.5 KB · ClawHub v1.0.0
---
name: google-tasks
version: 1.0.0
description: Fetch, display, create, and delete Google Tasks using the Google Tasks API. Use when the user asks to check, view, list, get, add, create, remove, or delete their Google Tasks, to-do lists, or task items. Handles OAuth authentication automatically using bash script with curl and jq.
author: OpenClaw Community
keywords: [google-tasks, tasks, todo, productivity, bash, oauth]
license: MIT
---

# Google Tasks Skill
展开全部(共 130 行)

Manage Google Tasks from all task lists using lightweight bash scripts.

## Quick Start

### View tasks
```bash
bash scripts/get_tasks.sh
```

### Create a task
```bash
# Using default list (configured in google-tasks-config.sh)
bash scripts/create_task.sh "Task title" ["due-date"] ["notes"]

# Specifying list name
bash scripts/create_task.sh "List Name" "Task title" ["due-date"] ["notes"]
```

Examples:
```bash
# Simple task (uses default list)
bash scripts/create_task.sh "Buy groceries"

# Task with due date (uses default list)
bash scripts/create_task.sh "Finish report" "2026-02-10"

# Task with specific list
bash scripts/create_task.sh "Work" "Finish report" "2026-02-10"

# Task with list, due date, and notes
bash scripts/create_task.sh "Personal" "Call mom" "2026-02-05" "Ask about her health"
```

**Default list configuration:**
Edit `google-tasks-config.sh` to set your default list:
```bash
DEFAULT_LIST="Private"  # Change to your preferred default
```

### Delete a task
```bash
bash scripts/delete_task.sh "List Name" <task-number-or-title>
```

Examples:
```bash
# Delete by task number (position in list)
bash scripts/delete_task.sh "Work" 2

# Delete by task title
bash scripts/delete_task.sh "Inbox" "Buy groceries"
```

## Requirements

- `jq` - JSON processor (usually pre-installed)
- `curl` - HTTP client (usually pre-installed)
- Valid `token.json` with OAuth access token
- **Scopes required:** `https://www.googleapis.com/auth/tasks` (read + write)

## First-Time Setup

If `token.json` doesn't exist:

1. User needs OAuth credentials (`credentials.json`) - See [setup.md](references/setup.md)
2. Run the Node.js authentication flow first to generate `token.json`
3. Then the bash script can be used for all subsequent calls

## Output Format

```
📋 Your Google Tasks:

📌 List Name
──────────────────────────────────────────────────
  1. ⬜ Task title (due: YYYY-MM-DD)
     Note: Task notes if present
  2. ⬜ Another task

📌 Another List
──────────────────────────────────────────────────
  (no tasks)
```

## File Locations

- `token.json` - Access/refresh tokens (workspace root)
- `google-tasks-config.sh` - Configuration file (default list setting)
- `scripts/get_tasks.sh` - Bash script to view tasks
- `scripts/create_task.sh` - Bash script to create tasks
- `scripts/delete_task.sh` - Bash script to delete tasks
- `references/setup.md` - Detailed setup guide

## Implementation

The bash script uses:
- Google Tasks REST API directly
- `curl` for HTTP requests
- `jq` for JSON parsing
- Bearer token authentication from `token.json`

No Python dependencies required.

## Troubleshooting

**Token expired:**
```
Error: Invalid credentials
```
Delete `token.json` and re-authenticate.

**Missing jq:**
```
bash: jq: command not found
```
Install jq: `apt-get install jq` or `brew install jq`

For more details, see [setup.md](references/setup.md).

「AI 智能体」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。