sop_dev
Use this skill when you are a Dev agent and need to produce a technical design document for a feature. Triggers: receiving a…
数字员工邮箱操作(三态状态机):send_mail / read_inbox / mark_done / mark_done_all / reset_stale。 邮箱文件位于共享工作区 /mnt/shared/mailboxes/。 消息生命周期:unread → in_progress → done。
$ npx -y skills add kid0317/crewai_mas_demo --skill mailbox-ops --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/mailbox-opsContext preview
The summary Claude sees to decide when to auto-load this skill.
数字员工邮箱操作(三态状态机):send_mail / read_inbox / mark_done / mark_done_all / reset_stale。 邮箱文件位于共享工作区 /mnt/shared/mailboxes/。 消息生命周期:unread → in_progress → done。
name: mailbox-ops description: > 数字员工邮箱操作(三态状态机):send_mail / read_inbox / mark_done / mark_done_all / reset_stale。 邮箱文件位于共享工作区 /mnt/shared/mailboxes/。 消息生命周期:unread → in_progress → done。 type: task
本 Skill 提供数字员工之间的邮箱通信能力,基于**三态状态机**:
unread → in_progress → done ↑ │ └─────────┘ (reset_stale: 崩溃恢复)
邮箱文件路径:`/mnt/shared/mailboxes/{role}.json`
**脚本路径**:`/mnt/skills/mailbox-ops/scripts/mailbox_ops.py`
pip install filelock -q python3 /mnt/skills/mailbox-ops/scripts/mailbox_ops.py send_mail \ --mailbox-dir /mnt/shared/mailboxes \ --to pm \ --from manager \ --type task_assign \ --subject "产品文档设计" \ --content "请根据 /mnt/shared/needs/requirements.md 设计产品规格文档"
**参数说明**:
**输出**:`{"errcode": 0, "errmsg": "success", "msg_id": "<uuid>"}`
读取 unread 消息并**原子标记为 in_progress**(防止并发重复取走)。 不会直接标 done — 处理成功后需调用 mark_done 确认。
python3 /mnt/skills/mailbox-ops/scripts/mailbox_ops.py read_inbox \ --mailbox-dir /mnt/shared/mailboxes \ --role pm
**参数**:`--role` 你自己的角色
**输出**:
{
"errcode": 0,
"errmsg": "success",
"messages": [
{
"id": "<uuid>",
"from": "manager",
"to": "pm",
"type": "task_assign",
"subject": "产品文档设计",
"content": "请根据需求文档...",
"timestamp": "2026-04-10T10:00:00+00:00",
"status": "unread",
"processing_since": null
}
]
}将指定消息从 in_progress → done(处理完成确认)。
python3 /mnt/skills/mailbox-ops/scripts/mailbox_ops.py mark_done \ --mailbox-dir /mnt/shared/mailboxes \ --role pm \ --msg-ids "uuid1,uuid2"
**输出**:`{"errcode": 0, "errmsg": "success", "marked": 2}`
将该角色邮箱中所有 in_progress 消息标记为 done。
python3 /mnt/skills/mailbox-ops/scripts/mailbox_ops.py mark_done_all \ --mailbox-dir /mnt/shared/mailboxes \ --role pm
将超时未完成的 in_progress 消息恢复为 unread。
python3 /mnt/skills/mailbox-ops/scripts/mailbox_ops.py reset_stale \ --mailbox-dir /mnt/shared/mailboxes \ --role pm \ --timeout 900
**你必须通过 `sandbox_execute_bash` 实际运行 Python 脚本。**
参透 CrewAI 底层逻辑,攻克多 Agent 落地难题 本仓库是《企业级多智能体设计实战》在线视频课程的配套示例代码仓库。
Use this skill when you are a Dev agent and need to produce a technical design document for a feature. Triggers: receiving a…
Use this skill when you are a Manager agent and need to decompose a business requirement into a structured task list. Triggers:…