Tool v1.0.0

cma-email

当消息以“cma”或“cmap”开头时,通过Gmail发送邮件

ClawHub 更新于 2026-03-23 19 浏览
下载 SKILL

技能说明

当消息以“cma”或“cmap”开头时,通过Gmail发送邮件

使用场景

Sends Gmail emails when message starts with cma or cmap

查看英文原始说明

Sends an email via Gmail when a message starts with "cma" or "cmap".

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/cma-email
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

3 个文件 · 9.7 kB · zip 5.6 kB
手动下载 zip · 5.6 kB
SKILL.md text/markdown
---
name: CMA-email
description: Sends an email via Gmail when a message starts with "cma" or "cmap".
metadata:
  clawdbot:
    emoji: "📧"
    requires:
      skills: ["gog"]
---

# CMA-email

**SYSTEM INSTRUCTION:** If the user's message starts with "cma" or "cmap" (case-insensitive), you MUST use this skill. Do not reply with text conversation. Execute the email command immediately.

## Usage
- `cma [subject] | [body]` -> Sends to CMA recipient. Subject: "TODO: [subject]", Body: "[body]"
- `cma [message]` -> Sends to CMA recipient. Subject: "TODO: [first 20 chars]...", Body: "[message]"
- `cmap [subject] | [body]` -> Sends to CMAP recipient. Subject: "TODO: [subject]", Body: "[body]"
- `cmap [message]` -> Sends to CMAP recipient. Subject: "TODO: [first 20 chars]...", Body: "[message]"

## Instructions
When the user's message starts with "cma" or "cmap" (case-insensitive):

1.  **Identify Prefix and Recipient:**
    - If the message starts with "cmap":
        - **Recipient:** `duarte.caldas.oliveira@gmail.com`
        - **Prefix Length:** 4
    - Else if the message starts with "cma":
        - **Recipient:** `duarte.oliveira@devoteam.com`
        - **Prefix Length:** 3

2.  **Parse the Content:**
    - Strip the prefix (first 3 or 4 characters) and trim leading whitespace.
    - Check for the pipe character `|`.

3.  **Determine Subject and Body:**
    - **If `|` is present:**
        - Split the text at the first `|`.
        - **Subject:** "TODO: " + (part before `|` trimmed).
        - **Body:** (part after `|` trimmed).
    - **If `|` is NOT present:**
        - **Subject:** "TODO: " + (first 20 chars of the text trimmed) + "...".
        - **Body:** The full text.

4.  **Send Email:**
    - Use the `gog` skill to send the email.
    - **Command:** `gog gmail send --to "[Recipient]" --subject "[Subject]" --body "[Body]"`

5.  **Feedback:**
    - Confirm to the user that the email was sent to the specific recipient (or alias) with the generated subject.

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。