email-read
Read inbox and sent via Gmail API
What this skill does
# Email Read > Read emails from Gmail inbox, sent folder, or any label via Gmail API ## When to use - "check my email" - "what's in my inbox" - "read emails" - "any new messages?" - "check sent emails" / "did I send that email?" - "verify email was sent" - Morning briefing ## Paths | What | Path | |------|------| | Script | `$GOOGLE_TOOLS_PATH/read_emails.py` | | Token | `$GOOGLE_TOOLS_PATH/token.json` | ## How to run ```bash cd $GOOGLE_TOOLS_PATH # Last 10 unread emails (default) .venv/bin/python3 read_emails.py # Last N unread emails .venv/bin/python3 read_emails.py 20 # All emails (read + unread) .venv/bin/python3 read_emails.py 10 all # Custom query .venv/bin/python3 read_emails.py 5 "from:[email protected]" .venv/bin/python3 read_emails.py 10 "is:unread subject:invoice" .venv/bin/python3 read_emails.py 5 "after:2026/02/01" # SENT emails .venv/bin/python3 read_emails.py 5 "in:sent" .venv/bin/python3 read_emails.py 3 "in:sent to:[email protected]" .venv/bin/python3 read_emails.py 5 "in:sent after:2026/02/20" .venv/bin/python3 read_emails.py 5 "in:sent subject:invoice" ``` ## Query examples | Query | Description | |-------|-------------| | `is:unread` | Only unread (default) | | `all` | All messages | | `from:[email protected]` | From specific person | | `subject:invoice` | By subject | | `after:2026/02/01` | After date | | `is:starred` | Starred messages | | `has:attachment` | With attachments | | `label:important` | By label | | `in:sent` | Sent emails | | `in:sent to:[email protected]` | Sent to specific person | | `in:sent after:2026/02/20` | Recently sent | | `in:drafts` | Draft emails | **Important:** When using `in:sent`, `in:drafts`, or `label:` queries, the script automatically removes the INBOX filter so results from other folders are returned correctly. ## Full thread rule **IMPORTANT:** When checking email about a specific person, company, or topic -- ALWAYS read the full thread (both inbox and sent). Otherwise you only see half the conversation. ```bash # CORRECT: full thread with a person .venv/bin/python3 read_emails.py 10 "from:[email protected] after:2026/02/01" .venv/bin/python3 read_emails.py 10 "in:sent to:[email protected] after:2026/02/01" # OR in one query (both sides): .venv/bin/python3 read_emails.py 20 "{from:[email protected] OR to:[email protected]} after:2026/02/01" ``` **When to apply:** - "any updates from X?" -- read both sides - "did they reply to the invoice?" -- read both sent and inbox - Follow-up checks -- always full thread - If you only see inbox -- you don't know what we already sent **When NOT needed:** - "show inbox" / "check email" -- just inbox - Morning briefing -- only new incoming ## Output format ``` === INBOX (N messages) === # or === SENT (N messages) === 1. [NEW] Subject line From: Sender Name <[email protected]> Date: 2026-02-05 10:30 Preview: First 100 chars of message... 2. Subject line (no [NEW] = already read) ... ``` ## OAuth scopes Uses `gmail.readonly` scope from existing token.json. ## Troubleshooting | Problem | Solution | |---------|----------| | 401 Unauthorized | Refresh token: `google-auth` skill | | No messages | Check query syntax | | Token expired | Token auto-refreshes, but if fails run google-auth flow | ## Related skills - `email-send-direct` - Send single email - `email-send-bulk` - Mass email sending - `daily-briefing` - Morning summary including inbox - `google-auth` - Auth troubleshooting
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.