LaunchKit · 2026
Back to Skills

gmail-last5

summary: "Show the last 5 unique emails in the inbox using gog".

0
0 downloads
by @neuralshift1

Setup & Installation

openclaw skills install @neuralshift1/gmail-last5

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install gmail-last5

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.

INPUT

User runs: /skill gmail_last5

AGENT
  1. 1Runs gog gmail search for inbox with --max 5 and --json flags
  2. 2Parses the JSON array returned by gog
  3. 3Extracts sender, subject, and date from each result
  4. 4Formats results as a numbered list
  5. 5Returns the list or prompts user to confirm gog account if the command fails
OUTPUT

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.

gog CLI installed and authenticated with a Gmail account