Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计提醒

gtasks-cligtasks CLI 命令行

Agent Skill

gtasks-cli 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

51,368

周安装

2,078

GitHub Stars

1

下载量

16,125
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:gtasks-cli(gtasks CLI 命令行)
来源仓库:https://github.com/bro3886/gtasks-cli
安装命令:
openclaw skills install gtasks-cli
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install gtasks-cli

简介

从命令行管理 Google 任务的工具,支持查看、创建、更新和删除任务列表。

  • 适合在 OpenClaw 中与 Google Tasks 交互时调用。
  • 通过 clawhub 安装,需确保已配置 Google 账户授权。
  • 使用前应检查权限范围和 API 配额限制。
  • 注意该技能仅处理任务管理,不包含日历或其他 Google Workspace 功能。

SKILL.md

name
gtasks-cli
description
Manage Google Tasks from the command line - view, create, update, delete tasks and task lists. Use when the user asks to interact with Google Tasks, manage to-do items, create task lists, mark tasks complete, or check their Google Tasks.
homepage
https://github.com/BRO3886/gtasks
license
MIT
compatibility
Requires gtasks CLI tool to be installed and authenticated
metadata
author
BRO3886
version
1.0
required-env
description
Google OAuth2 client ID for the gtasks app
description
Google OAuth2 client secret for the gtasks app
required-config-paths
description
OAuth2 token stored after successful login; permissions should be 0600
allowed-tools
Bash(gtasks:*)

Google Tasks CLI Skill

This skill enables you to manage Google Tasks directly from the command line using the gtasks CLI tool.

Prerequisites

Before using any commands, ensure the following requirements are met:

1. GTasks Installation

Check if gtasks is installed on the system:

# Cross-platform check (works on macOS, Linux, Windows Git Bash)
gtasks --version 2>/dev/null || gtasks.exe --version 2>/dev/null || echo "gtasks not found"

# Or use which/where commands
# macOS/Linux:
which gtasks

# Windows (Command Prompt):
where gtasks

# Windows (PowerShell):
Get-Command gtasks

If gtasks is not installed:

  1. Download the binary for your system from GitHub Releases
  2. Install it:

- macOS/Linux: Move to /usr/local/bin or add to PATH - Windows: Add to a folder in your PATH environment variable

  1. Verify installation: gtasks --version

IMPORTANT for Agents: Always check if gtasks is installed before attempting to use it. If the command is not found, inform the user and provide installation instructions.

2. Environment Variables

Set up Google OAuth2 credentials as environment variables:

export GTASKS_CLIENT_ID="your-client-id.apps.googleusercontent.com"
export GTASKS_CLIENT_SECRET="your-client-secret"

How to get credentials:

  1. Go to Google Cloud Console
  2. Create a new project or select an existing one
  3. Enable the Google Tasks API
  4. Create OAuth2 credentials (Application type: "Desktop app")
  5. Note the authorized redirect URIs that gtasks uses:

- http://localhost:8080/callback - http://localhost:8081/callback - http://localhost:8082/callback - http://localhost:9090/callback - http://localhost:9091/callback

For persistent setup, use a secrets manager or a ~/.env file with restrictive permissions — do not commit these values to version control or add them to shared shell profile files:

# Recommended: store in a file with restricted permissions
echo 'export GTASKS_CLIENT_ID="your-client-id"' >> ~/.gtasks_env
echo 'export GTASKS_CLIENT_SECRET="your-client-secret"' >> ~/.gtasks_env
chmod 600 ~/.gtasks_env
# Source it from your shell profile
echo 'source ~/.gtasks_env' >> ~/.zshrc

2. Authentication

Once environment variables are set, authenticate with Google:

gtasks login

This will open a browser for OAuth2 authentication. The token is stored in ~/.gtasks/token.json with 0600 permissions. Verify with ls -la ~/.gtasks/token.json. If you no longer need access, run gtasks logout to revoke and delete the token.

Core Concepts

  • Task Lists: Containers that hold tasks (like "Work", "Personal", "Shopping")
  • Tasks: Individual to-do items within a task list
  • Task Properties: Title (required), notes/description (optional), due date (optional), status (pending/completed)

Command Structure

All commands follow this pattern:

gtasks [command] [subcommand] [flags] [arguments]

Authentication

Login

gtasks login

Opens browser for Google OAuth2 authentication. Required before using any other commands.

Logout

gtasks logout

Removes stored credentials from ~/.gtasks/token.json.

Task List Management

View All Task Lists

gtasks tasklists view

Displays all task lists with numbered indices.

Output Example:

[1] My Tasks
[2] Work
[3] Personal

Create a Task List

gtasks tasklists add -t "Work Projects"
gtasks tasklists add --title "Shopping List"

Creates a new task list with the specified title.

Flags:

  • -t, --title: Task list title (required)

Delete a Task List

gtasks tasklists rm

Interactive prompt to select and delete a task list.

Update Task List Title

gtasks tasklists update -t "New Title"

Interactive prompt to select a task list and update its title.

Flags:

  • -t, --title: New title for the task list (required)

Task Management

All task commands can optionally specify a task list using the -l flag. If omitted, you'll be prompted to select one interactively.

View Tasks

Basic view:

gtasks tasks view
gtasks tasks view -l "Work"

Include completed tasks:

gtasks tasks view --include-completed
gtasks tasks view -i

Show only completed tasks:

gtasks tasks view --completed

Sort tasks:

gtasks tasks view --sort=due        # Sort by due date
gtasks tasks view --sort=title      # Sort by title
gtasks tasks view --sort=position   # Sort by position (default)

Output formats:

gtasks tasks view --format=table    # Table format (default)
gtasks tasks view --format=json     # JSON output
gtasks tasks view --format=csv      # CSV output

Table Output Example:

Tasks in Work:
No  Title              Description         Status     Due
1   Finish report      Q4 analysis         pending    25 December 2024
2   Team meeting       Weekly sync         pending    -
3   Code review        PR #123            completed  20 December 2024

JSON Output Example:

[
  {
    "number": 1,
    "title": "Finish report",
    "description": "Q4 analysis",
    "status": "pending",
    "due": "2024-12-25"
  }
]

Create a Task

Interactive mode:

gtasks tasks add
gtasks tasks add -l "Work"

Prompts for title, notes, and due date.

Flag mode:

gtasks tasks add -t "Buy groceries"
gtasks tasks add -t "Finish report" -n "Q4 analysis" -d "2024-12-25"
gtasks tasks add -t "Call dentist" -d "tomorrow"
gtasks tasks add -t "Team meeting" -d "Dec 25"

Flags:

  • -t, --title: Task title (required for non-interactive mode)
  • -n, --note: Task notes/description (optional)
  • -d, --due: Due date (optional, flexible format)

Date Format Examples: The date parser supports many formats:

  • 2024-12-25 (ISO format)
  • Dec 25, 2024
  • December 25
  • tomorrow
  • next Friday
  • 12/25/2024

See dateparse examples for all supported formats.

Mark Task as Complete

With task number:

gtasks tasks done 1
gtasks tasks done 3 -l "Work"

Interactive mode:

gtasks tasks done
gtasks tasks done -l "Personal"

Prompts to select a task from the list.

Delete a Task

With task number:

gtasks tasks rm 2
gtasks tasks rm 1 -l "Shopping"

Interactive mode:

gtasks tasks rm
gtasks tasks rm -l "Work"

Prompts to select a task to delete.

View Task Details

With task number:

gtasks tasks info 1
gtasks tasks info 3 -l "Work"

Interactive mode:

gtasks tasks info
gtasks tasks info -l "Personal"

Output Example:

Task: Finish report
Status: Needs action
Due: 25 December 2024
Notes: Complete Q4 analysis and submit to manager

Links:
  - https://docs.google.com/document/d/...

View in Google Tasks: https://tasks.google.com/...

Common Workflows

Quick Task Creation

When a user says "add a task to my work list":

gtasks tasks add -l "Work" -t "Task title"

Check Today's Tasks

gtasks tasks view --sort=due

Complete Multiple Tasks

gtasks tasks done -l "Work"
# Interactive prompt appears, select task
gtasks tasks done -l "Work"
# Repeat as needed

View All Tasks Across Lists

Run view command multiple times for each list, or first list all task lists:

gtasks tasklists view
gtasks tasks view -l "Work"
gtasks tasks view -l "Personal"

Export Tasks

gtasks tasks view --format=json > tasks.json
gtasks tasks view --format=csv > tasks.csv

Best Practices

  1. Always check authentication first: If commands fail with authentication errors, run gtasks login
  1. Use task list flag for automation: When scripting or when the user specifies a list name, use -l flag to avoid interactive prompts
  1. Leverage flexible date parsing: The --due flag accepts natural language dates like "tomorrow", "next week", etc.
  1. Use appropriate output format:

- Table format for human-readable output - JSON for parsing/integration with other tools - CSV for spreadsheet import

  1. Task numbers are ephemeral: Task numbers change when tasks are added, completed, or deleted. Always view the list first to get current numbers.
  1. Handle missing lists gracefully: If a user specifies a non-existent list name, the command will error. Always verify list names first with gtasks tasklists view.

Error Handling

Common errors and solutions:

  • "Failed to get service" or Authentication errors:

- First, ensure environment variables are set: echo $GTASKS_CLIENT_ID - If variables are not set, export them (see Prerequisites section) - Then run gtasks login to authenticate

  • "incorrect task-list name": The specified list name doesn't exist. Use gtasks tasklists view to see available lists
  • "Incorrect task number": The task number is invalid. Use gtasks tasks view to see current task numbers
  • "Date format incorrect": The date string couldn't be parsed. Use formats like "2024-12-25", "tomorrow", or "Dec 25"

Examples

Example 1: Create a shopping list and add items

gtasks tasklists add -t "Shopping"
gtasks tasks add -l "Shopping" -t "Milk"
gtasks tasks add -l "Shopping" -t "Bread"
gtasks tasks add -l "Shopping" -t "Eggs"

Example 2: Review and complete work tasks

gtasks tasks view -l "Work" --sort=due
gtasks tasks done 1 -l "Work"

Example 3: Add task with deadline

gtasks tasks add -l "Work" -t "Submit proposal" -n "Include budget and timeline" -d "next Friday"

Example 4: Export completed tasks

gtasks tasks view --completed --format=json -l "Work" > completed_work.json

Tips for Agents

Before Running Any Commands

  1. Check gtasks installation first:
   # Try to run gtasks version check
   gtasks --version 2>/dev/null || gtasks.exe --version 2>/dev/null

If this fails, inform the user that gtasks is not installed and provide installation instructions from the Prerequisites section.

  1. Verify environment variables are set:
   # Check if variables exist (macOS/Linux)
   [ -n "$GTASKS_CLIENT_ID" ] && echo "GTASKS_CLIENT_ID is set" || echo "GTASKS_CLIENT_ID is not set"
   [ -n "$GTASKS_CLIENT_SECRET" ] && echo "GTASKS_CLIENT_SECRET is set" || echo "GTASKS_CLIENT_SECRET is not set"

   # Windows PowerShell
   if ($env:GTASKS_CLIENT_ID) { "GTASKS_CLIENT_ID is set" } else { "GTASKS_CLIENT_ID is not set" }
   if ($env:GTASKS_CLIENT_SECRET) { "GTASKS_CLIENT_SECRET is set" } else { "GTASKS_CLIENT_SECRET is not set" }
  1. Check authentication status:
   gtasks tasklists view &>/dev/null && echo "Authenticated" || echo "Not authenticated - run 'gtasks login'"

General Tips

  • When the user mentions "tasks" without specifying a tool, ask if they want to use Google Tasks
  • If the user asks about their tasks, first run gtasks tasklists view to see available lists
  • Always confirm which task list to use if not specified by the user
  • When creating tasks with dates, prefer explicit date formats (YYYY-MM-DD) over relative terms for clarity
  • Remember that task numbers are 1-indexed and change after modifications
  • If a command requires interaction but you're running non-interactively, use flags to provide all required information

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

85.42%
按下载量换算13,774

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills