Skip to content
Agent Orchestration
Skill

/init_project

初始化共享工作区,创建 needs/、design/、mailboxes/ 目录和邮箱文件。新项目启动时由 Manager 调用。

BOOST
From plugin
crewai-mas-demo
16731 skills
Install
$ npx -y skills add kid0317/crewai_mas_demo --skill init_project --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/init_project

Context preview

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

初始化共享工作区,创建 needs/、design/、mailboxes/ 目录和邮箱文件。新项目启动时由 Manager 调用。

SKILL.md

init_project.SKILL.md
name: init_project
type: task
description: 初始化共享工作区,创建 needs/、design/、mailboxes/ 目录和邮箱文件。新项目启动时由 Manager 调用。

初始化项目工作区

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

初始化脚本位置(沙盒内):`/workspace/skills/init_project/scripts/init_workspace.py`

安装依赖

# 无额外依赖,使用标准库

初始化共享工作区

python3 /workspace/skills/init_project/scripts/init_workspace.py \
    --shared-dir /mnt/shared \
    --roles manager pm \
    --project-name "XiaoPaw 宠物健康记录"

将需求文档写入工作区

初始化后,将项目需求写入 `/mnt/shared/needs/requirements.md`:

cat > /mnt/shared/needs/requirements.md << 'EOF'
(需求内容)
EOF

命令输出(JSON 格式)

{
  "errcode": 0,
  "data": {
    "created_dirs":  ["needs/", "design/", "mailboxes/"],
    "created_files": ["mailboxes/manager.json", "mailboxes/pm.json", "WORKSPACE_RULES.md"],
    "skipped_files": []
  }
}

幂等说明

  • 重复调用安全:已存在的目录和文件不会被覆盖
  • 已有邮件的 .json 文件不会被清空
Ships withcrewai-mas-demo

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

Get the whole plugin

Other skills on crewai-mas-demo.