
This recipe walks you through creating a Google Tasks list and populating it with initial tasks using the gws command-line tool. You'll create a new task list, add tasks with titles, notes, and due dates, then view everything in a table format. It's handy when you want to quickly set up project tracking or quarterly goals without clicking through the Google Tasks web interface. The recipe assumes you have the gws-tasks skill loaded and properly authenticated with Google Workspace. The steps are straightforward but you'll need to manually substitute the actual task list ID after creating it.
$ npx -y skills add googleworkspace/cli --skill recipe-create-task-list --agent claude-codeInstalls into .claude/skills of the current project.
PREREQUISITE: Load the following skills to execute this recipe:
gws-tasks
Set up a new Google Tasks list with initial tasks.
gws tasks tasklists insert --json '{"title": "Q2 Goals"}'gws tasks tasks insert --params '{"tasklist": "TASKLIST_ID"}' --json '{"title": "Review Q1 metrics", "notes": "Pull data from analytics dashboard", "due": "2024-04-01T00:00:00Z"}'gws tasks tasks insert --params '{"tasklist": "TASKLIST_ID"}' --json '{"title": "Draft Q2 OKRs"}'gws tasks tasks list --params '{"tasklist": "TASKLIST_ID"}' --format tableSponsors