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
累計下載
3851
星標
1
全站排名
#2,716
全站前 54% · 「AI 智慧體」前 56%
平台累計安裝累計下載星標評論
ClawHub ↗10631371-
SkillHub ↗10638511—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

主文介紹從任務清單讀取條目、新增任務及刪除任務,並使用 Google Tasks API 的 OAuth 訪問。所需 scope 同時包含讀和寫許可權,憑據及訪問令牌會儲存在本地檔案中。僅在使用者明確授權此訪問範圍時安裝;將 credentials.json 和 token.json 移出共享工作區並限制檔案許可權。建立或刪除任務前,先核對清單、標題和目標條目並取得確認。

資料釋出於 2026-10-29

可以用來做什麼

  • 檢視指定 Google Tasks 清單
  • 為指定清單建立含標題和可選備註的任務
  • 根據使用者確認的標題或位置移除任務

什麼時候用

  • 使用者明確要求管理 Google Tasks 時
  • 讀寫 OAuth 許可權和本地憑據儲存已獲接受並受保護時
  • 每項建立或刪除動作都能在執行前核對並確認時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

只讀取預設任務清單,不要改動條目
草擬一個任務標題和備註供使用者確認後再建立
先列出匹配的任務標題,要求確認後再刪除指定條目

月度資料趨勢

累計下載3851
1892294439962026-03 · 累計下載 20372026-05 · 累計下載 26812026-06 · 累計下載 28542026-07 · 累計下載 30902026-08 · 累計下載 32642026-09 · 累計下載 385126-0326-09
星標1
0122026-03 · 星標 12026-05 · 星標 12026-06 · 星標 12026-07 · 星標 12026-08 · 星標 12026-09 · 星標 126-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-093851—1
2026-083264+5.6%1
2026-073090+8.3%1
2026-062854+6.5%1
2026-052681—1
2026-032037—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),按月更新。口徑說明見資料方法。