一键导入
nexus-manager
管理 Nexus 的 Agent、Room、Workspace 与 Skill 系统操作。当用户提到创建 agent、创建 room、邀请成员、查看 room、读写工作区文件、安装或卸载 skill、删除成员或房间、查询系统协作结构时,使用此 skill,即使没有明确说“管理”二字。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
管理 Nexus 的 Agent、Room、Workspace 与 Skill 系统操作。当用户提到创建 agent、创建 room、邀请成员、查看 room、读写工作区文件、安装或卸载 skill、删除成员或房间、查询系统协作结构时,使用此 skill,即使没有明确说“管理”二字。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
当用户明确要求启动、设定、创建、继续、纠正、完成或阻塞当前会话的 Goal,或系统/开发者明确要求启用 Goal 长程执行时使用。先加载本 skill,再调用 mcp__nexus_goal__get_goal/create_goal/retarget_goal/update_goal;不要用 /goal 文本命令。
A general Room Skill example for validating shared Room rule injection.
Werewolf game rules for one host and six players in a Nexus Room.
Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, UI mockups, product shots, or transparent-background cutouts. Use when the result should be an image asset rather than repo-native SVG, HTML/CSS, or canvas.
GitHub 仓库巡检脚本说明。用于查看和执行仓库内的 GitHub PR / 分支监控脚本。
| name | nexus-manager |
| description | 管理 Nexus 的 Agent、Room、Workspace 与 Skill 系统操作。当用户提到创建 agent、创建 room、邀请成员、查看 room、读写工作区文件、安装或卸载 skill、删除成员或房间、查询系统协作结构时,使用此 skill,即使没有明确说“管理”二字。 |
管理 Nexus 平台的 Agent、Room、Workspace 与 Skill。通过 CLI 工具执行系统操作。
CLI 工具:优先使用环境变量 NEXUSCTL_COMMAND_PATH 指向的命令;示例里的 nexusctl 只是简写。
不要搜索 cmd/nexusctl,也不要手写 go run ./cmd/nexusctl,运行时入口已经注入。
--json,让 stdout 始终返回单行 JSON,便于直接提字段。stdout 只读数据,stderr 只读诊断;失败时不要从 stdout 猜错误。64,执行错误返回 1。遇到 64 先修参数,遇到 1 再判断是否重试或换方案。--verbose,只有在排查异常、确认 skill 部署过程或追踪系统初始化问题时才显式打开。agent、room、conversation、workspace、skill、launcher。user_id 写进命令模板;运行时会自动注入当前用户作用域。只有手工在终端直跑 nexusctl 时,才需要显式传 --scope-user-id 或设置 NEXUSCTL_USER_ID。# Agent 正常调用
nexusctl --json agent list
# 排查问题时再打开诊断
nexusctl --json --verbose agent list
# 人工查看时使用格式化输出
nexusctl --pretty agent list
nexusctl agent list
nexusctl agent create --name "Research"
nexusctl agent get research
nexusctl session list --agent-id research
nexusctl room list
nexusctl room get abc123
nexusctl room contexts abc123
nexusctl room create --agent-id research --agent-id writer --name "内容团队" --title "Kickoff" --description "内容生产协作空间"
nexusctl room update abc123 --name "内容团队" --title "本周计划"
nexusctl room add-member abc123 --agent-id translator
--room_id 和 --agent_id 均必填。room),不支持私聊(dm)。room_id、room_name、conversation_id、member_agent_idsnexusctl room remove-member abc123 --agent-id translator
Room runtime 内会自动注入当前 room_id、conversation_id 和 source_agent_id;Agent 正常调用时不要额外传这些字段。recipients 填 Room 成员的 agent_id,不是成员名。
{"tool":"nexus_room.send_directed_message","arguments":{"recipients":["0ed5434a8c13"],"wake_policy":"none","reply_route":{"mode":"none"},"content":"私下提醒"}}
{"tool":"nexus_room.send_directed_message","arguments":{"recipients":["0ed5434a8c13"],"wake_policy":"immediate","reply_route":{"mode":"private","recipients":["<host-agent-id>"],"wake_policy":"immediate"},"content":"请处理后私下回给主持人"}}
{"tool":"nexus_room.send_directed_message","arguments":{"recipients":["0ed5434a8c13"],"wake_policy":"immediate","reply_route":{"mode":"private","recipients":["<host-agent-id>"],"wake_policy":"immediate","next_reply_route":{"mode":"public"}},"content":"请私下回答主持人,主持人随后公开推进"}}
{"tool":"nexus_room.send_directed_message","arguments":{"recipients":["<self-agent-id>"],"wake_policy":"none","reply_route":{"mode":"none"},"content":"只写给自己的上下文"}}
nexusctl room delete abc123
nexusctl workspace list --agent-id research
nexusctl workspace get --agent-id research --path "RUNBOOK.md"
nexusctl workspace update --agent-id research --path "RUNBOOK.md" --content "# 新计划"
nexusctl workspace create --agent-id research --path "notes/todo.md" --type file --content "- kickoff"
nexusctl workspace create --agent-id research --path "notes" --type directory
nexusctl workspace rename --agent-id research --path "notes/todo.md" --new-path "notes/plan.md"
nexusctl workspace delete --agent-id research --path "notes/plan.md"
nexusctl skill list
nexusctl skill agent-list --agent-id research
nexusctl skill install --agent-id research --skill-name planner
nexusctl skill search-external "pdf"
nexusctl skill import-git --url https://github.com/example/skills --path skills/demo
nexusctl skill install-external --agent-id research --item-file search-result.json
nexusctl skill install-external --agent-id research --import-mode skills_sh --package-spec owner/repo/skill --skill-slug skill
nexusctl skill update demo-skill
nexusctl skill update --all
nexusctl skill uninstall --agent-id research --skill-name planner
每个成员创建后自动分配独立工作空间。单用户模式位于 ~/.nexus/workspace/<agent_slug>/;多用户模式位于 ~/.nexus/workspace/<user_id>/<agent_slug>/。
<workspace>/
.agents/skills/ # 内部技能目录(不可直接操作)
.claude/ # Claude 配置目录(不可直接操作)
AGENTS.md # Agent 身份与行为规则
USER.md # 用户偏好
RUNBOOK.md # 运维手册与任务清单
.agents/、.claude/ 禁止直接读写,属于内部运行时目录。../),所有操作限定在工作空间根目录内。AGENTS.md、USER.md、RUNBOOK.md 可通过名称直接读写,也可通过相对路径操作。install_skill / uninstall_skill 管理。.agents/skills/ 和 .claude/skills/ 文件为准。.agents/skills/<skill_name>/。.claude/skills/<skill_name> 是指向 .agents/skills/ 的相对符号链接。agent list / room get / room contextsagent create / agent getroom create / room update / room add-member / room remove-member / room deleteworkspace list → workspace get → workspace updatelist_skills → get_agent_skills → install_skill / uninstall_skill;外部来源使用 search-external → install-externalagent_id 放进 agent_ids。validate_agent_name 再 create_agent,名称不通过时告知用户原因。ok 字段,为 true 时读 data,为 false 时读 error 并直接告知用户。error 内容给出明确反馈。