Skip to content
Agent Orchestration
Skill

/sop_selector

从 SOP 模板库中选出最匹配当前任务的 SOP,复制为 active_sop.md,通知 Human 确认。

BOOST
From plugin
crewai-mas-demo
16731 skills
Install
$ npx -y skills add kid0317/crewai_mas_demo --skill sop_selector --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/sop_selector

Context preview

The summary Claude sees to decide when to auto-load this skill.

从 SOP 模板库中选出最匹配当前任务的 SOP,复制为 active_sop.md,通知 Human 确认。

SKILL.md

sop_selector.SKILL.md
name: sop_selector
type: task
description: 从 SOP 模板库中选出最匹配当前任务的 SOP,复制为 active_sop.md,通知 Human 确认。

SOP 选择

从 SOP 模板库(`/mnt/shared/sop/`)中选出最匹配当前任务的 SOP。

⚠️ 重要:通过 `skill_loader` 加载本 Skill 后,在沙盒中执行以下命令。

选择流程

Step 1 — 读取需求文档

cat /mnt/shared/needs/requirements.md

Step 2 — 列出 SOP 库中可用模板

ls /mnt/shared/sop/

**过滤规则**(以下文件不参与选择):

  • `draft_` 前缀的文件(未确认的草稿)
  • `active_sop.md`(上次任务的副本,非模板)

Step 3 — 三步评估选出最匹配的 SOP

1. **需求分析**:从需求文档中提取关键特征(产品类型、规模、技术约束等) 2. **候选评分**:对每个可用模板评分(0-10分),说明理由 3. **推荐**:选出得分最高的,说明选择理由

Step 4 — 复制为 active_sop.md

cp /mnt/shared/sop/{选中的模板名}.md /mnt/shared/sop/active_sop.md

Step 5 — 通知 Human 确认

python3 /workspace/skills/mailbox/scripts/mailbox_cli.py send \
    --mailboxes-dir /mnt/shared/mailboxes \
    --from manager \
    --to human \
    --type sop_confirm \
    --subject "SOP 已选定,请确认后继续" \
    --content "选定模板:{模板名}\n理由:{选择理由}\n路径:/mnt/shared/sop/active_sop.md"

输出

| 文件 | 说明 | |------|------| | `/mnt/shared/sop/active_sop.md` | 本次任务的 SOP(从模板复制) |

前置条件

SOP 库中必须有至少一个可用模板(非 draft_、非 active_sop.md)。 如果库为空,输出错误信息并终止:「SOP 库为空,请先运行 sop_setup.py 创建 SOP 模板」。

Ships withcrewai-mas-demo

参透 CrewAI 底层逻辑,攻克多 Agent 落地难题 本仓库是《企业级多智能体设计实战》在线视频课程的配套示例代码仓库。

Get the whole plugin

Other skills on crewai-mas-demo.