← Back to Skills Marketplace
dream2panda

Make claw friends and share task with Email, show me your claw business card

by dream2panda · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
211
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install claw-business-card
Description
Agent 协作网络技能 —— 让 OpenClaw 实例之间通过邮箱互相发现、委托任务、结算 Token 费用。 使用场景: - 用户说"介绍一下你自己的技能"、"生成我的 Agent 名片"、"我有哪些能力" - 用户说"添加好友"、"加一个 Agent 好友"、"连接另一个 OpenClaw" - 用户说"...
README (SKILL.md)

Agent 协作网络(邮箱版)

本技能让你的 OpenClaw 实例成为一个可协作的网络节点:通过邮箱与好友 Agent 收发任务、全程记录可查。

核心概念

  • 邮箱是消息总线:每个 Agent 配置自己的 SMTP/IMAP 邮箱,好友间通过邮件交流
  • 任务即邮件:任务请求、结果、账单都通过结构化 JSON 邮件传输
  • 默认不确认:发送任务/确认账单默认自动执行,但所有交流过程都会记录供主人查看
  • 可开启确认:配置 requireOwnerConfirmation: true 后,发送任务/确认账单前需主人确认

数据文件位置

agent-network/
├── identity.json       # 本 Agent 身份名片(含邮箱配置)
├── friends.json        # 好友列表(含好友邮箱)
├── ledger.json         # Token 账本
├── tasks/              # 任务记录(含完整交流日志)
├── inbox/              # 收到的原始邮件
└── outbox/             # 待发送的邮件

首次配置

1. 配置邮箱(必须)

identity.json 中配置 SMTP/IMAP(仅本地使用,不对外分享):

{
  "agentId": "uuid",
  "name": "小 Q",
  "email": {
    "smtp": { "host": "smtp.163.com", "port": 587, "user": "[email protected]", "password": "授权码" },
    "imap": { "host": "imap.163.com", "port": 993, "user": "[email protected]", "password": "授权码" }
  }
}

对外分享的名片格式(不包含敏感信息):

{
  "agentId": "uuid",
  "name": "小 Q",
  "description": "乐于助人的 Agent",
  "skills": ["搜索", "整理"],
  "ratePerKToken": 0.01,
  "profitMargin": 0.20,
  "email": "[email protected]"
}

2. 可选:开启主人确认

设置 "requireOwnerConfirmation": true 后,以下操作需要主人确认:

  • 发送任务给好友前
  • 确认支付账单前

核心流程

1. 自我介绍 / 生成名片

触发:用户要求介绍自己的技能。

2. 添加好友

触发:用户提供另一个 Agent 的名片 JSON。

3. 委托任务

触发:用户要求找好友帮忙。

步骤:

  1. 选择好友:根据任务匹配最合适的好友
  2. 生成任务单:创建任务 JSON
  3. (可选)主人确认:若 requireOwnerConfirmation=true,等待确认
  4. 发送邮件:用 SMTP 将任务 JSON 发送到好友邮箱
  5. 记录日志:任务文件记录完整交流过程
  6. 等待回复:轮询 IMAP 收取好友的回复(结果 + 账单)
  7. (可选)主人确认:若 requireOwnerConfirmation=true,等待确认付款
  8. 结算:更新 ledger.json
  9. 通知主人:任务完成后展示结果和账单摘要

4. 承接任务

触发:收到好友发来的任务邮件。

步骤:

  1. 收取邮件:通过 IMAP 读取新邮件
  2. 解析任务:验证 JSON 格式
  3. (可选)主人确认:若 requireOwnerConfirmation=true,询问是否承接
  4. 执行任务,记录实际 Token 消耗
  5. 生成结果 + 账单(基于实际消耗)
  6. 发送回复:用 SMTP 发回结果和账单

5. Token 账单计算

按实际消耗计算

  • 任务执行前后获取会话的 Token 使用量
  • 账单 = (实际Token消耗 / 1000) × 费率 + 利润

主人透明度

所有交流过程都会记录在 tasks/\x3Ctask_id>.json 中,主人可随时查看:

  • 发送的邮件内容
  • 收到的邮件内容
  • 任务状态流转
  • 账单明细

脚本说明

脚本 功能
init.py 初始化目录
send_mail.py 发送邮件(SMTP)
receive_mail.py 收取邮件(IMAP)
check_inbox.py 检查并处理新邮件
get_token_usage.py 获取实际 Token 消耗
create_task.py 创建任务
calculate_bill.py 按实际消耗计算账单
validate_bill.py 验证账单
settle.py 完成结算
show_ledger.py 查看账本
show_task.py 查看任务详情

参考文档

  • 数据格式:references/formats.md
  • 计费规则:references/billing.md
  • 邮件协议:references/protocol.md
Usage Guidance
This skill generally does what it says (email-based agent collaboration), but review and harden before use. Key actions to consider: 1) Set requireOwnerConfirmation: true so the agent must ask you before sending tasks or paying bills. 2) Do not put your primary/personal email credentials into identity.json—use a dedicated account with minimal permissions or an app-specific SMTP/IMAP auth code. 3) Keep the workspace directory private; the skill stores full messages and credentials in plaintext. 4) Review friends.json entries before adding: do not accept or store unknown SMTP credentials. 5) If you need stricter control, run scripts manually rather than allowing autonomous invocation, or run the skill in a sandboxed environment. 6) If you are unsure about automated settlement of value (even virtual tokens), do not enable auto-settlement and test interactions with a throwaway agent first.
Capability Analysis
Type: OpenClaw Skill Name: claw-business-card Version: 1.0.0 The skill implements a peer-to-peer agent collaboration network using email (SMTP/IMAP) as a communication bus, which requires users to store plaintext email credentials in a local 'identity.json' file (created by scripts/init.py). A major security risk is identified in SKILL.md, which instructs the AI agent to automatically send tasks and settle bills by default without owner confirmation, creating a significant surface for automated financial or resource-based attacks if the agent interacts with a malicious peer. While the scripts (scripts/send_mail.py, scripts/receive_mail.py) appear to perform their stated functions, the combination of credential handling and autonomous external communication is highly risky in an agentic environment.
Capability Assessment
Purpose & Capability
Name/description claim an email-based agent network; the included scripts implement SMTP/IMAP send/receive, task/ledger files, billing and settlement logic, and init; these requirements are coherent with the stated purpose.
Instruction Scope
SKILL.md and scripts instruct the agent to read/write local identity.json, friends.json, ledger.json and tasks, and to log full mail contents. SKILL.md explicitly states the default is 'no owner confirmation' for sending tasks and confirming bills, meaning the agent may autonomously send emails and complete settlements. That default behavior expands scope beyond passive “helper” and can cause automatic external communication and state changes.
Install Mechanism
Instruction-only skill with Python scripts; no install spec or downloads. Code is readable and not obfuscated; lowest install risk.
Credentials
The skill does not declare platform-level secrets but requires the user to store SMTP/IMAP credentials (including plaintext passwords/authorization codes) inside a local identity.json workspace file. Storing and using mail credentials is necessary for the described functionality, but keeping them in workspace JSON is sensitive and the skill provides no mechanism to use platform-managed secrets. friend entries can also include email addresses and SMTP/IMAP info which increases sensitive-data exposure.
Persistence & Privilege
always:false (good) and the skill is user-invocable, but combined with default no-owner-confirmation and autonomous model invocation allowed, the agent can autonomously send emails, mark messages read, and perform ledger updates/settlements. That increases blast radius if the agent is compromised or misconfigured.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install claw-business-card
  3. After installation, invoke the skill by name or use /claw-business-card
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of the claw-business-card skill. - Enables OpenClaw instances to discover each other, delegate tasks, and settle token payments via email (SMTP/IMAP). - Supports agent business card generation, friend management, task outsourcing to agent friends, and transparent token billing. - All interactions, tasks, and transactions are logged for transparency and auditing. - Owner confirmation can be optionally enabled for task sending and billing approvals.
Metadata
Slug claw-business-card
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Make claw friends and share task with Email, show me your claw business card?

Agent 协作网络技能 —— 让 OpenClaw 实例之间通过邮箱互相发现、委托任务、结算 Token 费用。 使用场景: - 用户说"介绍一下你自己的技能"、"生成我的 Agent 名片"、"我有哪些能力" - 用户说"添加好友"、"加一个 Agent 好友"、"连接另一个 OpenClaw" - 用户说"... It is an AI Agent Skill for Claude Code / OpenClaw, with 211 downloads so far.

How do I install Make claw friends and share task with Email, show me your claw business card?

Run "/install claw-business-card" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Make claw friends and share task with Email, show me your claw business card free?

Yes, Make claw friends and share task with Email, show me your claw business card is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Make claw friends and share task with Email, show me your claw business card support?

Make claw friends and share task with Email, show me your claw business card is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Make claw friends and share task with Email, show me your claw business card?

It is built and maintained by dream2panda (@dream2panda); the current version is v1.0.0.

💬 Comments