Skip to content
Back to skills

003 Name Skill E141287a

ASecurity

Read Google Chat spaces/threads via the Chat API, create/refresh OAuth tokens, parse Gmail Chat URLs, and list spaces. Use when asked to look up or verify messages in Google Chat or when you need API access to Chat from the CLI.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
securitypythongobashapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 003-name-skill_e141287a --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 003 Name Skill E141287a?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 003 Name Skill E141287a
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-003-name-skill-e141287a/badge)](https://www.skillsdirectory.com/skills/tools-only-003-name-skill-e141287a)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
name: google-chat
description: Read Google Chat spaces/threads via the Chat API, create/refresh OAuth tokens, parse Gmail Chat URLs, and list spaces. Use when asked to look up or verify messages in Google Chat or when you need API access to Chat from the CLI.
---

# Google Chat

## Overview

Use this skill to read Google Chat messages from specific spaces or threads using local OAuth credentials.

## Quick start

1) Create/refresh the Chat OAuth token:

```bash
python scripts/chat_auth.py
```

2) Fetch messages from a space:

```bash
python scripts/chat_fetch.py \
  --space AAAAAAA... \
  --limit 50
```

3) Fetch messages from a Gmail Chat URL (auto-extracts space/thread):

```bash
python scripts/chat_fetch.py \
  --space "https://mail.google.com/chat/u/0/#chat/space/..." \
  --limit 50
```

## Common tasks

### Authenticate or refresh token

- Run `scripts/chat_auth.py`.
- If browser login is blocked, pass `--no-browser` to use the console flow.
- Token is stored at `~/.config/google-chat/token.json` by default.

### List spaces

```bash
python scripts/chat_list_spaces.py
```

### Fetch messages from a thread

```bash
python scripts/chat_fetch.py \
  --space AAAAAAA... \
  --thread THREAD_ID \
  --limit 50
```

### Output formats

- Default output is `text` (timestamp | sender | text | message name).
- Use `--format json` to get a JSON payload with `messages` and `nextPageToken`.

## Notes

- If a Chat URL is provided, extract the space/thread IDs and use them directly.
- Keep output scoped to what the user asked for; avoid dumping full histories by default.
- Default client secret path is `~/.config/skills/client_secret.json`. If missing, pass `--client-secret` explicitly (recommended to document the path in `AGENTS.md`).

## References

- `references/setup.md`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.