Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计提醒

secure-gmailsecure Gmail 搜索

Agent Skill

secure-gmail 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

12,829

周安装

514

GitHub Stars

公开资料未说明

下载量

4,153
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:secure-gmail(secure Gmail 搜索)
来源仓库:https://github.com/coinvest518/secure-gmail
安装命令:
openclaw skills install secure-gmail
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install secure-gmail

简介

基于 Composio OAuth 代理的安全 Gmail 操作技能,支持邮件读取、搜索与起草功能。

  • 适用于需要快速检索邮件内容、筛选关键线索或自动化邮件交互的研究类任务。
  • 通过 clawhub 安装并授权后,Agent 可在限定权限下执行邮件相关操作。
  • 本地不保存原始令牌,但需验证最小权限原则及是否触发外部 API 调用。
  • secure-gmail 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
secure-gmail
description
Secure Gmail skill using Composio brokered OAuth — no raw tokens stored locally. Reads, searches, and drafts emails with least-privilege enforcement. Blocks send and delete at the Composio API gateway level, not just in code. Use when user asks to check inbox, find specific emails by sender or subject, summarize unread threads, or create reply drafts without sending. Requires COMPOSIO_API_KEY in .env and Gmail connected at app.composio.dev. Do NOT use for sending emails — use a send-confirmed skill with human approval instead.
metadata
moltbot
requires
bins
["python3"]
env
["COMPOSIO_API_KEY"]

Secure Gmail Skill (Composio-backed)

Provides read-only + draft Gmail access through Composio's managed authentication layer. OAuth tokens never touch your local filesystem or agent memory — Composio brokers every API call on its backend.

When to Use This Skill

Activate this skill when the user says any of the following:

  • "Check my emails" / "What's in my inbox?"
  • "Did [person] reply?" / "Find emails from [sender]"
  • "Summarize unread emails from today/this week"
  • "Draft a reply to [email]" — creates draft, does NOT send
  • "What did [person] send me about [topic]?"
  • "Search for emails about [subject]"

Do NOT activate for:

  • "Send an email" → use a human-approved send skill
  • "Delete emails" → blocked at API level, will fail gracefully
  • "Access Google Drive or Calendar" → use /gog or /google-drive skill

Prerequisites (must be done before first use)

  1. Composio account at app.composio.dev (free tier works)
  2. Gmail connected under Connected Accounts in Composio dashboard
  3. COMPOSIO_API_KEY set in ~/clawd/skills/secure-gmail/.env
  4. Python packages installed: pip install python-dotenv composio

If COMPOSIO_API_KEY is missing the skill will exit with: Error: COMPOSIO_API_KEY not found in environment Direct the user to add it to the .env file before retrying.

Exact Commands

Fetch recent emails

cd ~/clawd/skills/secure-gmail && python3 agent.py "fetch last 10 emails"

Search by sender

python3 agent.py "find emails from sarah@example.com this week"

Search by subject keyword

python3 agent.py "find emails about quarterly budget"

Read a specific email

python3 agent.py "read email with id MESSAGE_ID_HERE"

Create a draft reply

python3 agent.py "draft a reply to the last email from John saying I will review by Friday"

What Each Action Does Internally

User RequestComposio Action CalledResult
Check inboxGMAIL_FETCH_EMAILSReturns last N emails with sender, subject, date
Find emailGMAIL_SEARCH_MESSAGESReturns matching threads
Read emailGMAIL_FETCH_MESSAGE_BY_MESSAGE_IDReturns full email body
Draft replyGMAIL_CREATE_EMAIL_DRAFTCreates draft, confirms saved not sent
Profile checkGMAIL_GET_PROFILEReturns authenticated email address

Blocked Actions (Composio rejects these at gateway)

The following are not in the allowed list and are rejected before reaching Gmail — even if the agent tries to call them due to hallucination or ambiguous instructions:

  • GMAIL_SEND_EMAIL
  • GMAIL_DELETE_MESSAGE
  • GMAIL_MODIFY_LABELS
  • GMAIL_EMPTY_TRASH

If a user asks to send or delete, respond: "This skill is read and draft only. To send, please review the draft in Gmail and send it yourself, or install a send-enabled skill with human approval confirmation."

Output Format

The agent returns JSON. Parse and present it like this:

For email list:

📬 Found 5 emails:
1. From: sarah@co.com | Subject: Q4 Budget | Date: Mar 1
2. From: mike@co.com  | Subject: Meeting Notes | Date: Feb 28
...

For drafts:

✅ Draft saved (not sent):
To: john@example.com
Subject: Re: Project Update
Preview: "Hi John, I'll review this by Friday..."
Review it at: mail.google.com/mail/#drafts

Error Handling

ErrorCauseFix
COMPOSIO_API_KEY not foundMissing .env keyAdd key to .env file
Gmail not connectedOAuth not completedGo to app.composio.dev → Connected Accounts
Token expiredOAuth needs refreshReconnect Gmail in Composio dashboard
Action not permittedTried blocked actionExpected — tell user it's read/draft only
Rate limit exceededToo many requestsWait 60 seconds and retry

Security Architecture

This skill uses Composio's brokered authentication model:

  1. User connects Gmail via OAuth at app.composio.dev
  2. Composio stores access_token and refresh_token in encrypted vault
  3. OpenClaw receives only a connected_account_id reference
  4. Every API call goes: OpenClaw → Composio → Gmail
  5. Raw credentials never enter agent memory or local filesystem
  6. Every call is logged in Composio dashboard with timestamp and action
  7. Access revocable instantly via Composio dashboard kill switch

This protects against three attack vectors:

  • Prompt injection stealing .env credentials (token not local)
  • Context window leaks exposing OAuth tokens (token not in memory)
  • Malicious skills reading credential files (nothing to read)

Audit Your Agent

After running, check app.composio.dev → Logs to see:

  • Exact timestamp of every Gmail action
  • Which action was called (fetch, search, draft)
  • Whether it succeeded or was blocked
  • No action goes unrecorded

name: secure-gmail description: Read emails, search inbox, and create drafts using Composio managed authentication. Use when user asks to check emails, read mail, search inbox, or draft replies. CANNOT send or delete emails (least privilege enforced by Composio). metadata: moltbot: requires: bins: ["python3"] env: ["COMPOSIO_API_KEY"]


Secure Gmail Skill

Gmail access via Composio brokered auth. The agent never sees your raw OAuth tokens.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

83.23%
按下载量换算3,457

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills