Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
What This Skill Does
Fetches the 5 most recent emails from a Gmail inbox using the gog CLI and displays each message's sender, subject, and date. Runs a single shell command and parses the JSON output into a readable list.
Surfaces inbox contents in one command without opening a browser or authenticating through a web OAuth flow mid-session.
When to use it
- Checking new mail without leaving the terminal
- Quick inbox scan during a focus session
- Confirming a sent email arrived
- Morning email triage from the command line
- Verifying a notification or alert email came through
Example Workflow
Here's how your AI assistant might use this skill in practice.
User runs: /skill gmail_last5
- 1Runs gog gmail search for inbox with --max 5 and --json flags
- 2Parses the JSON array returned by gog
- 3Extracts sender, subject, and date from each result
- 4Formats results as a numbered list
- 5Returns the list or prompts user to confirm gog account if the command fails
A 5-item list showing sender name/address, email subject, and received date for the newest inbox messages
Requirements
Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.