add-google-tasklisted
Install: claude install-skill gitt510/agent-skills
# Add Google Task
Goal: add one task to the **default account's default task list** via `gog tasks add`,
deriving the content from conversation context and confirming a summary before the
write.
This skill is **add-only**. Listing, editing, completing, and deleting tasks are out
of scope; use `gog tasks` subcommands directly for those.
## Identity stays out of the repo
- The task list argument is always `@default`, and `-a` / `--account` is never passed.
- "Whose tasks" is resolved by the machine-local gog state (Keychain). The same skill
writes to whatever account is default on the machine it runs on — identity and
logic stay separated.
- Never hardcode an email address, list name, or list ID.
## Workflow
### 0) Preconditions
`command -v gog` and `gog auth status` must both succeed. If gog is missing or
unauthenticated, point the user to the setup path and stop:
```bash
gog auth credentials # one-time client setup
gog auth add # add an account
```
### 1) Derive the task from context (don't interrogate)
The trigger is typically terse — "ok, add X to tomorrow's tasks". Build the task from
the current conversation instead of asking field by field:
- **title** (required) — rewrite the subject as a concise, self-contained task line,
not a verbatim quote of the utterance.
- **due** (optional) — resolve relative expressions (明日, Friday, next week) against
the system clock to `YYYY-MM-DD`. Google Tasks ignores the time-of-day part, so
round to a date