Skip to content

Guide · Agent skill

How to use the Google Tasks CLI agent skill (gws-tasks)

Updated · written with AI from the project's own documentation and checked against our catalogue data

The gws-tasks skill is a set of instructions that teaches an AI agent how to work with Google Tasks through the gws command-line tool. It is part of the googleworkspace/cli project and is licensed under Apache-2.0. This guide explains what the skill does, how to install it, how to ask for things in plain language, and what to watch for before letting an agent change or delete your tasks.

Google Tasks CLIgoogleworkspace/cli · Apache-2.0

Quick start

  1. 1Install gws. Install the gws command-line tool, which the skill requires.
  2. 2Authenticate. Sign in to your Google account through gws.
  3. 3Create the shared skill if missing. If gws-shared SKILL.md is not present, run gws generate-skills.
  4. 4Download and unzip the skill. Download the ZIP from this page and unzip it into ~/.claude/skills/ or your project's .claude/skills/ folder.
  5. 5Or upload it in the Claude apps. Go to Settings → Capabilities → Skills and upload the skill.
  6. 6Make a natural request. Ask the agent to list, add, move or clear tasks in plain language, naming the list and task.
  7. 7Review before deleting. Confirm any delete or clear request the agent proposes before it runs.

What is an agent skill and what does gws-tasks do?

An agent skill is a folder containing a SKILL.md file that gives an AI agent instructions for a specific job. The agent reads these instructions when a request matches them. The gws-tasks skill covers the Google Tasks API resources, so the agent knows how to use the gws tool to work with Google Tasks.

Once installed, the agent can view and manage task lists, add or change tasks, move tasks under parent tasks, and clear completed items. The skill only documents commands. It does not give the agent access to your Google account by itself.

  • Task lists: list, get, insert, update, patch and delete lists.
  • Tasks: list, get, insert, update, patch, delete, move and clear.
  • Before calling any method, the agent looks up exact parameters with gws help and schema commands instead of guessing.

What you need before installing the gws-tasks skill

The skill depends on three things. Without them the agent cannot run any Google Tasks commands.

The gws command-line tool must be installed. The skill lists gws as a required binary. Your Google account must be authenticated through gws. The skill also relies on a shared skill called gws-shared, which holds the sign-in, global flag and security rules. If that file is missing, the skill says to run gws generate-skills to create it.

  • gws command-line tool (googleworkspace CLI)
  • A Google account authenticated through gws
  • The gws-shared SKILL.md (create it with gws generate-skills if missing)
gws generate-skills

How do you install the gws-tasks skill?

Download the ZIP file from this page. It contains SKILL.md. Unzip it so the folder sits in one of the locations below. For a personal setup, use ~/.claude/skills/. For a single project, put it in the project's .claude/skills/ folder.

You can also upload the skill in the Claude apps. Open Settings, go to Capabilities, then choose Skills and upload the skill there.

  • Personal install: ~/.claude/skills/
  • Project install: the .claude/skills/ folder inside your project
  • Claude apps: Settings → Capabilities → Skills, then upload

How do you trigger the skill with a natural request?

You do not need to type commands yourself. Ask the agent for what you want in ordinary language, and mention Google Tasks so the agent knows which tool to use. The agent will decide when the skill applies and will check the command syntax before running anything.

Good requests name the task list, the task and the change you want. If you are unsure of a list name, ask the agent to list your task lists first.

  • "Show me all my Google Tasks lists."
  • "Add 'renew passport' to my Errands list due Friday."
  • "Move 'buy stamps' under 'Post office trip' in my Errands list."
  • "Clear the completed items from my Work list."

How does the agent find the right command?

The skill tells the agent to inspect the API before calling it. It can browse resources and methods with the help command, then check the exact parameters for one method with the schema command. The agent uses that output to build its --params and --json flags.

You can run the same checks yourself to see what the agent will see.

# Browse resources and methods gws tasks --help # Inspect a method's required params, types, and defaults gws schema tasks.<resource>.<method>

What safety rules should you know about?

This skill runs scripts and uses the network, because it calls the gws tool, which talks to Google's services. Read the gws-shared rules before use. Some methods remove data. The delete and clear methods remove tasks. Deleting a task list or an assigned task also removes the original item in Docs or Chat Spaces. Deleting an assigned task only is done by unassigning it from the assignment surface instead.

Ask the agent to show you what it plans to delete, and confirm before it runs any delete or clear request.

  • tasks clear marks completed tasks as hidden, so they are no longer returned by default when listing.
  • tasks delete on an assigned task also deletes the original in Docs or Chat Spaces.
  • tasklists delete also deletes assigned tasks and their originals.
  • To remove only the assignment, unassign the task from Docs or Chat Spaces.

Tips for getting reliable results

Keep requests specific. Name the list and task exactly as they appear in Google Tasks. Ask for a preview before any change, especially for moves and deletions. If a command fails, ask the agent to check the schema for that method and try again with the listed parameters.

Note the limits in the source: a user can have up to 2,000 task lists, up to 20,000 non-hidden tasks per list, up to 100,000 tasks in total, and up to 2,000 subtasks per task. Tasks assigned from Docs or Chat Spaces cannot be created through the Tasks API; they must be assigned from those apps.

  • Use exact list and task names.
  • Ask for a preview before moves, clears and deletes.
  • Check the limits if you manage very large lists.

What people use it for

  • Listing your task lists and reviewing open tasks in each one.
  • Adding tasks to a specific list with a due date or notes.
  • Reorganising a list by moving tasks under parent tasks.
  • Clearing completed items from a list at the end of a week.
  • Automating task workflows for developers using the Google Tasks API through gws.

Frequently asked questions

Is the gws-tasks skill free to use?

The skill is licensed under Apache-2.0, as stated on this page. The source does not list prices, so check the googleworkspace/cli project for any cost details. You still need a Google account authenticated through gws.

What do I need to install before the gws-tasks skill works?

You need the gws command-line tool, a Google account authenticated through gws, and the gws-shared SKILL.md file. If the shared file is missing, run gws generate-skills to create it.

Where do I put the gws-tasks skill folder?

Place it in ~/.claude/skills/ for a personal setup, or in the .claude/skills/ folder of a project. You can also upload it in the Claude apps under Settings → Capabilities → Skills.

Can the agent delete my tasks by mistake?

It can, if you let it run delete or clear requests without review. Deleting a task list or an assigned task also removes the original in Docs or Chat Spaces. Ask the agent to preview deletions and confirm before it runs them.

Does the skill work without installing gws?

No. The skill only documents commands. It needs the gws tool installed and signed in to Google to do anything.

How is this different from using the Google Tasks API directly?

The skill gives an agent instructions for the gws command-line wrapper around the Google Tasks API. The agent checks each method's parameters with gws schema before calling it, so requests follow the official API definitions rather than guesses.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

Use the gws-tasks skill if you already have gws installed and authenticated and want an AI assistant to manage your Google Tasks lists, or if you are automating task workflows through the gws CLI. Skip it if you do not want to install and sign in to gws, or if you need an agent that deletes tasks without a human checking first.

Download the skill