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 t...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install gtasks-cli或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install gtasks-cli⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/gtasks-cli/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- 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: - name: GTASKS_CLIENT_ID description: Google OAuth2 client ID for the gtasks app - name: GTASKS_CLIENT_SECRET description: Google OAuth2 client secret for the gtasks app required-config-paths: - path: ~/.gtasks/token.json description: OAuth2 token stored after successful login; permissions should be 0600 allowed-tools: Bash(gtasks:*) ---
This skill enables you to manage Google Tasks directly from the command line using the gtasks CLI tool.
Before using any commands, ensure the following requirements are met:
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:
- macOS/Linux: Move to /usr/local/bin or add to PATH - Windows: Add to a folder in your PATH environment variable
gtasks --versionIMPORTANT 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.
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:
- 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
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.
All commands follow this pattern:
gtasks [command] [subcommand] [flags] [arguments]
gtasks login
Opens browser for Google OAuth2 authentication. Required before using any other commands.
gtasks logout
Removes stored credentials from ~/.gtasks/token.json.
gtasks tasklists view
Displays all task lists with numbered indices.
Output Example:
[1] My Tasks
[2] Work
[3] Personal
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)gtasks tasklists rm
Interactive prompt to select and delete a task list.
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)All task commands can optionally specify a task list using the -l flag. If omitted, you'll be prompted to select one interactively.
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"
}
]
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, 2024December 25tomorrownext Friday12/25/2024See dateparse examples for all supported formats.
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.
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.
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/...
...
安装 gtasks-cli 后,可以对 AI 说这些话来触发它
Help me get started with gtasks-cli
Explains what gtasks-cli does, walks through the setup, and runs a quick demo based on your current project
Use gtasks-cli to manage Google Tasks from the command line - view, create, update, d...
Invokes gtasks-cli with the right parameters and returns the result directly in the conversation
What can I do with gtasks-cli in my product manager workflow?
Lists the top use cases for gtasks-cli, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/gtasks-cli/ 目录(个人级,所有项目可用),或 .claude/skills/gtasks-cli/(项目级)。重启 AI 客户端后,用 /gtasks-cli 主动调用,或让 AI 根据上下文自动发现并使用。
gtasks-cli 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
gtasks-cli 可免费安装使用。请查阅仓库了解许可证信息。
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 t...
gtasks-cli 属于「Product Manager」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my product manager tasks using gtasks-cli
Identifies repetitive steps in your workflow and sets up gtasks-cli to handle them automatically