A standalone Gmail client that handles search, read, send, and label management through command-line scripts with OAuth authentication. Ships with auth.py for login management and gmail.py for operations. Requires a Google Workspace account, not personal Gmail. Token storage uses system keyrings (macOS Keychain, Windows Credential Locker, Linux Secret Service), and tokens auto-refresh through Google's cloud function. Supports Gmail's full query syntax for searches, HTML emails, draft management, and all the usual label operations like starring and archiving. The lightweight approach means no MCP server to configure, just authenticate once and run Python commands directly.

skills.sh installs
525
GitHub stars
454
last updated
Aug 21, 2026

Install

$ npx -y skills add sanjay3290/ai-skills --skill gmail --agent claude-code

Installs into .claude/skills of the current project.

Files

Gmail

Lightweight Gmail integration with standalone OAuth authentication. No MCP server required.

⚠️ Requires Google Workspace account. Personal Gmail accounts are not supported.

First-Time Setup

Authenticate with Google (opens browser):

python scripts/auth.py login

Check authentication status:

python scripts/auth.py status

Logout when needed:

python scripts/auth.py logout

Commands

All operations via scripts/gmail.py. Auto-authenticates on first use if not logged in.

Search Emails

# Search with Gmail query syntax
python scripts/gmail.py search "from:someone@example.com is:unread"

# Search recent emails (no query returns all)
python scripts/gmail.py search --limit 20

# Filter by label
python scripts/gmail.py search --label INBOX --limit 10

# Include spam and trash
python scripts/gmail.py search "subject:important" --include-spam-trash

Read Email Content

# Get full message content
python scripts/gmail.py get MESSAGE_ID

# Get just metadata (headers)
python scripts/gmail.py get MESSAGE_ID --format metadata

Sponsors

Details

Repository
github.com/sanjay3290/ai-skills
Categories
Backend & APIs, Security, AI & Agent Building, Office & Documents
License
Apache-2.0
First seen
Jun 3, 2026

More from sanjay3290/ai-skills

All 20
1wanshuiyin avatarauto-review-loop-llmwanshuiyin/auto-claude-code-research-in-sleepAutonomous research review loop using any OpenAI-compatible LLM API. Configure via llm-chat MCP server or environment variables. Trigger with "auto review loop 525skills.sh installs
2libukai avatarvscode-httpyac-configlibukai/awesome-agent-skillsConfigure VSCode with httpYac for API testing and automation. This skill should be used specifically when converting API documentation to executable .http files513skills.sh installs
3cfircoo avatarsqlalchemy-postgrescfircoo/claude-code-toolkitExpert guidance for SQLAlchemy 2.0 + Pydantic + PostgreSQL. Use when setting up database layers, defining models, creating migrations, or any database-related w507skills.sh installs
4hkuds avatarcli-anything-adguardhomehkuds/cli-anythingCommand-line interface for AdGuard Home - Network-wide ad blocking and DNS management via AdGuard Home REST API. Designed for AI agents and power users who need507skills.sh installs
5kernel avatarkernel-clikernel/skillsUse the Kernel CLI to manage cloud browsers, apps, profiles, proxies, managed auth, API keys, projects, and organization limits. Use when installing or authenti507skills.sh installs
6mvanhorn avatarpp-weather-goatmvanhorn/printing-press-libraryUse this skill whenever the user asks about weather, forecasts, temperature, rain, storms, severe weather alerts, air quality, pollen, UV, or wants an activity 507skills.sh installs