← 返回 Skills 市场
104
总下载
0
收藏
1
当前安装
4
版本数
在 OpenClaw 中安装
/install gmail-modify-labels
功能描述
Atomic node skill to modify email labels in Gmail using the gog CLI.
使用说明 (SKILL.md)
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 the modification fails.
Gmail Modify Labels
This skill allows the agent to add or remove labels from an email or thread using the native CLI.
Cognitive Directives
WHEN [Labels on an email need to be changed, added, or removed] THEN [ Execute the following Jidoka-validated loop:
- Execute Node: Execute the native terminal command
gog gmail messages modify \x3CmessageId> ...or equivalent label command. - Verification Step (Jidoka): Verify the command returns a successful confirmation. IF it fails or returns an error message, 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 messages modify msg_id_123 --add-label INBOX --remove-label UNREAD --json"
}
Expected Output
Confirmation that the labels were updated.
安全使用建议
This skill appears coherent for changing Gmail labels via the gog CLI, but it will act using whatever Gmail account the gog tool is already authenticated to. Before installing/use: 1) verify the gog binary you have is the legitimate CLI you expect and is installed intentionally; 2) confirm which Gmail account and OAuth scopes gog is configured with (so the skill doesn't modify the wrong mailbox); 3) if possible test with a non-production account or a single test message; 4) limit autonomous invocation or agent privileges if you do not want the agent to change mail without explicit approval.
功能分析
Type: OpenClaw Skill
Name: gmail-modify-labels
Version: 1.0.3
The skill provides instructions for an AI agent to execute shell commands using a CLI tool named 'gog' to modify Gmail labels. While the behavior is aligned with the stated purpose in SKILL.md, the reliance on direct terminal execution with unvalidated placeholders (e.g., <messageId>) introduces a potential shell injection vulnerability. Per the evaluation criteria, the use of shell access for the stated purpose is classified as suspicious rather than benign or malicious.
能力评估
Purpose & Capability
The name, description, and SKILL.md consistently describe using the gog CLI to modify Gmail message/thread labels. Requiring the gog binary is proportional to the stated task.
Instruction Scope
Instructions are narrowly scoped to calling the gog gmail messages modify command and verifying success with a simple retry loop. The SKILL.md does not ask the agent to read unrelated files or environment variables. However, it implicitly relies on the local gog CLI being installed and authenticated; the skill will run with whatever account/context the gog CLI is configured to use.
Install Mechanism
There is no install specification and no code written to disk (instruction-only), so the skill does not download or install additional software itself.
Credentials
The skill declares no environment variables or credentials, which is reasonable since it relies on the gog CLI. That said, the gog CLI typically uses on-disk OAuth tokens or local config for authentication — the skill will operate with those credentials implicitly. Users should recognize that the skill can act as the account authenticated to gog.
Persistence & Privilege
always is false and the skill does not request persistent system changes or modifications to other skills or agent-wide settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install gmail-modify-labels - 安装完成后,直接呼叫该 Skill 的名称或使用
/gmail-modify-labels触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
- Added a Jidoka-validated loop: on command failure, retry up to 3 times with 3-second intervals; if still unsuccessful, report the error and stop.
- Updated Cognitive Directives section to reflect the error-handling and retry process.
v1.0.2
- Switched the implementation to use the native gog CLI instead of the Google Workspace plugin.
- Updated requirements to specify the need for the gog binary.
- Revised schema example to reflect CLI command usage.
- Adjusted output description to align with the CLI-based workflow.
- Updated documentation to describe CLI operation and new cognitive directives.
v1.0.1
- Expanded operating system support from "windows" to "all" in SKILL.md.
v1.0.0
- Initial release of Gmail Modify Labels skill.
- Enables batch addition and removal of labels from an email using the GoogleWorkspace plugin.
- Provides a simple JSON schema for specifying email ID and label changes.
- Reports errors if operations fail, leveraging plugin's error handling.
元数据
常见问题
Gmail Modify Labels 是什么?
Atomic node skill to modify email labels in Gmail using the gog CLI. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 104 次。
如何安装 Gmail Modify Labels?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install gmail-modify-labels」即可一键安装,无需额外配置。
Gmail Modify Labels 是免费的吗?
是的,Gmail Modify Labels 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Gmail Modify Labels 支持哪些平台?
Gmail Modify Labels 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Gmail Modify Labels?
由 zvirb(@zvirb)开发并维护,当前版本 v1.0.3。
推荐 Skills