📧 Cma Email OpenClaw Plugin & Skill | ClawHub
Looking to integrate Cma Email into your AI workflows? This free OpenClaw plugin from ClawHub helps you automate transportation tasks instantly, without having to write custom tools from scratch.
What this skill does
Sends an email via Gmail when a message starts with "cma" or "cmap".
Install
openclaw skills install @mtbf999/cma-emailnpx clawhub@latest install cma-emailFull SKILL.md
Open original| name | description |
|---|---|
| CMA-email | Sends an email via Gmail when a message starts with "cma" or "cmap". |
SKILL.md content below is scrollable.
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):
-
Identify Prefix and Recipient:
- If the message starts with "cmap":
- Recipient:
[email protected] - Prefix Length: 4
- Recipient:
- Else if the message starts with "cma":
- Recipient:
[email protected] - Prefix Length: 3
- Recipient:
- If the message starts with "cmap":
-
Parse the Content:
- Strip the prefix (first 3 or 4 characters) and trim leading whitespace.
- Check for the pipe character
|.
-
Determine Subject and Body:
- If
|is present:- Split the text at the first
|. - Subject: "TODO: " + (part before
|trimmed). - Body: (part after
|trimmed).
- Split the text at the first
- If
|is NOT present:- Subject: "TODO: " + (first 20 chars of the text trimmed) + "...".
- Body: The full text.
- If
-
Send Email:
- Use the
gogskill to send the email. - Command:
gog gmail send --to "[Recipient]" --subject "[Subject]" --body "[Body]"
- Use the
-
Feedback:
- Confirm to the user that the email was sent to the specific recipient (or alias) with the generated subject.