360 Secure SkillHub
360 安全技能中心

Gmail Delete Email

该技能定义一个原子操作:接收 Gmail 邮件 messageId 后,执行 gog gmail trash 命令将邮件移入垃圾箱;若命令失败则等待 3 秒后重试,最多 3 次,仍失败则向用户报告错误并停止。属于破坏性删除类操作,未提供批量处理、恢复或认证配置能力。

zvirb
zvirb
热度 53.66
最近更新 2026-05-11 17:45:58
分类:协作依赖:代码执行 / 第三方 API应用场景:自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add gmail-delete-email
Metadata
name
Gmail Delete Email
description
Atomic node skill to delete an email via Gmail using the gog CLI.
os
all
requires
{"bins":["gog"]}

Lean Philosophy (Principles)

  • Kaizen (改善): This skill is an atomic node, broken down into its simplest, smallest component to eliminate waste and ensure perfection.
  • Standardized Work (Hyojun Sagyo): This node represents the most efficient, standardized path for this specific task before automation.
  • Jidoka (自働化): This node includes autonomous defect detection. It relies on the CLI's self-healing loop and will report errors if deletion fails.

Gmail Delete Email

This skill allows the agent to move an email to the trash using the native CLI.

Cognitive Directives

WHEN [An email needs to be deleted or moved to trash] THEN [ Execute the following Jidoka-validated loop:

  1. Execute Node: Execute the native terminal command gog gmail trash <messageId>.
  2. Verification Step (Jidoka): Check if the command returns a successful confirmation. IF it fails or returns an error, wait 3 seconds and retry (max 3 times). IF it still fails, report the error to the user and STOP. ]

Schema Example

{
  "command": "gog gmail trash msg_id_123"
}

Expected Output

Confirmation that the email was moved to the trash.