返回顶部
g

google-tasks谷歌任务管理

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
2,014
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

google-tasks

Google Tasks 技能

使用轻量级 Bash 脚本管理所有任务列表中的 Google Tasks。

快速开始

查看任务

bash bash scripts/get_tasks.sh

创建任务

bash

使用默认列表(在 google-tasks-config.sh 中配置)

bash scripts/create_task.sh 任务标题 [截止日期] [备注]

指定列表名称

bash scripts/create_task.sh 列表名称 任务标题 [截止日期] [备注]

示例:
bash

简单任务(使用默认列表)


bash scripts/create_task.sh 购买杂货

带截止日期的任务(使用默认列表)

bash scripts/create_task.sh 完成报告 2026-02-10

指定列表的任务

bash scripts/create_task.sh 工作 完成报告 2026-02-10

带列表、截止日期和备注的任务

bash scripts/create_task.sh 个人 给妈妈打电话 2026-02-05 询问她的健康状况

默认列表配置:
编辑 google-tasks-config.sh 设置默认列表:
bash
DEFAULT_LIST=私人 # 更改为你偏好的默认列表

删除任务

bash bash scripts/delete_task.sh 列表名称 <任务编号或标题>

示例:
bash

按任务编号删除(列表中的位置)


bash scripts/delete_task.sh 工作 2

按任务标题删除

bash scripts/delete_task.sh 收件箱 购买杂货

要求

  • - jq - JSON 处理器(通常已预装)
  • curl - HTTP 客户端(通常已预装)
  • 有效的 token.json,包含 OAuth 访问令牌
  • 所需范围: https://www.googleapis.com/auth/tasks(读写)

首次设置

如果 token.json 不存在:

  1. 1. 用户需要 OAuth 凭据(credentials.json)- 参见 setup.md
  2. 先运行 Node.js 身份验证流程以生成 token.json
  3. 然后所有后续调用均可使用 Bash 脚本

输出格式

📋 您的 Google Tasks:

📌 列表名称
──────────────────────────────────────────────────
1. ⬜ 任务标题(截止日期:YYYY-MM-DD)
备注:任务备注(如有)
2. ⬜ 另一个任务

📌 另一个列表
──────────────────────────────────────────────────
(无任务)

文件位置

  • - token.json - 访问/刷新令牌(工作区根目录)
  • google-tasks-config.sh - 配置文件(默认列表设置)
  • scripts/gettasks.sh - 查看任务的 Bash 脚本
  • scripts/createtask.sh - 创建任务的 Bash 脚本
  • scripts/delete_task.sh - 删除任务的 Bash 脚本
  • references/setup.md - 详细设置指南

实现

Bash 脚本使用:

  • - 直接调用 Google Tasks REST API
  • curl 进行 HTTP 请求
  • jq 进行 JSON 解析
  • 来自 token.json 的 Bearer 令牌认证

无需 Python 依赖。

故障排除

令牌过期:

错误:凭据无效

删除 token.json 并重新认证。

缺少 jq:

bash: jq: 命令未找到

安装 jq:apt-get install jq 或 brew install jq

更多详情,请参见 setup.md

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 google-tasks-1776191792 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 google-tasks-1776191792 技能

通过命令行安装

skillhub install google-tasks-1776191792

下载

⬇ 下载 google-tasks v1.0.0(免费)

文件大小: 16.4 KB | 发布时间: 2026-4-15 11:40

v1.0.0 最新 2026-4-15 11:40
Initial release: View, create, and delete Google Tasks using lightweight bash scripts with OAuth authentication. No Python dependencies required.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部