Skip to content
TakoAPI
Back to skills

gmail-last5

by neuralshift1

Communication
—Not yet rated
Your rating

Brief

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

Description

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

INPUT

User runs: /skill gmail_last5

AGENT
  1. 1

    Runs gog gmail search for inbox with --max 5 and --json flags

  2. 2

    Parses the JSON array returned by gog

  3. 3

    Extracts sender, subject, and date from each result

  4. 4

    Formats results as a numbered list

  5. 5

    Returns 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

  • gog CLI installed and authenticated with a Gmail account

Installation

clawhub install neuralshift1/gmail-last5

Run the CLI command, or paste the prompt into Claude Code, Cursor, Codex or whichever coding agent you use.

Links