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…
Agent 自我复盘:读取 L2/L3/L1 日志,调用 LLM 生成结构化改进提案, 写入 proposals.json 并发通知至 human.json 等待审批。 适用场景:Agent 在完成足够多任务后,触发自我评估和改进提案生成。
$ npx -y skills add kid0317/crewai_mas_demo --skill self-retrospective --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/self-retrospectiveContext preview
The summary Claude sees to decide when to auto-load this skill.
Agent 自我复盘:读取 L2/L3/L1 日志,调用 LLM 生成结构化改进提案, 写入 proposals.json 并发通知至 human.json 等待审批。 适用场景:Agent 在完成足够多任务后,触发自我评估和改进提案生成。
name: self-retrospective description: > Agent 自我复盘:读取 L2/L3/L1 日志,调用 LLM 生成结构化改进提案, 写入 proposals.json 并发通知至 human.json 等待审批。 适用场景:Agent 在完成足够多任务后,触发自我评估和改进提案生成。 type: task
PM Agent 执行自我复盘时,调用本 Skill 分析历史日志并生成结构化改进提案:
1. 读取 L2 日志,找出质量最低的任务 2. 读取对应 L3 日志,找到具体失败节点 3. 读取 L1 中相关的人类纠正记录 4. 调用 LLM 生成结构化改进提案(Pydantic schema 约束) 5. 写入 `/mnt/shared/proposals/proposals.json` 6. 发通知至 `/mnt/shared/mailboxes/human.json` 等待审批
**脚本路径**:`/mnt/skills/self-retrospective/scripts/self_retro.py`
# 先确保依赖已安装 pip install openai filelock -q # 执行自我复盘 python3 /mnt/skills/self-retrospective/scripts/self_retro.py \ --logs-dir /mnt/shared/logs \ --mailbox-dir /mnt/shared/mailboxes \ --agent-id pm \ --days 7 \ --min-tasks 5
**参数说明**:
**环境变量**:`ALIYUN_API_KEY`(沙盒已注入)
{
"errcode": 0,
"errmsg": "success",
"proposals_count": 2,
"skipped": false,
"proposals": [
{
"type": "sop_update",
"target": "pm/sop/design_spec_sop.md",
"root_cause": "prompt_ambiguity",
"current": "验收标准缺少移动端适配要求",
"proposed": "在 SOP 验收清单中增加「移动端响应式」检查项",
"expected_metric": "checkpoint 通过率从 45% 提升到 75%",
"rollback_plan": "删除新增检查项,恢复原 SOP",
"evidence": ["t001", "t003"],
"priority": "high"
}
]
}样本量不足时:
{
"errcode": 0,
"errmsg": "success",
"proposals_count": 0,
"skipped": true,
"reason": "任务数 3 < 最小样本量 5"
}**你必须通过 `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:…