技能 agent-manager-skill
📦

agent-manager-skill

安全

使用 Tmux 管理 CLI 代理

此技能使 Claude 能够管理在并行 tmux 会话中运行的多个本地 CLI 代理,提供启动/停止/监控功能以及用于自动化工作流的 cron 友好调度。

支持: Claude Codex Code(CC)
🥉 74 青铜
1

下载技能 ZIP

2

在 Claude 中上传

前往 设置 → 功能 → 技能 → 上传技能

3

开启并开始使用

测试它

正在使用“agent-manager-skill”。 agent-manager-skill list

预期结果:

  • EMP_0001: running (uptime: 2h 34m)
  • EMP_0002: running (uptime: 1h 12m)
  • EMP_0003: stopped

正在使用“agent-manager-skill”。 agent-manager-skill doctor

预期结果:

  • ✓ tmux installed (v3.3a)
  • ✓ python3 installed (3.10.12)
  • ✓ agents/ directory exists
  • ✓ 5 agents configured
  • All checks passed

安全审计

安全
v1 • 2/24/2026

Security audit complete. All 9 static findings are false positives. The skill contains only documentation with markdown code examples - no actual shell execution, no suspicious network activity, and no cryptographic code. The backticks flagged are markdown formatting, and the URL is a legitimate GitHub repo reference.

1
已扫描文件
43
分析行数
0
发现项
1
审计总数
未发现安全问题
审计者: claude

质量评分

38
架构
100
可维护性
85
内容
50
社区
100
安全
91
规范符合性

你能构建什么

DevOps 工作流自动化

并行运行多个后台维护脚本,监控其输出,并使用 cron 调度定期任务。

并行 AI 任务执行

同时启动多个 Claude 或其他 CLI 代理来处理不同子任务,然后汇总结果。

后台作业管理

在 tmux 会话中启动长时间运行的进程,这些进程可在终端会话结束后继续运行,便于监控。

试试这些提示

列出所有代理
Use the agent-manager-skill to list all currently running agents and their status.
启动特定代理
Start agent EMP_0001 using the agent-manager-skill and show me the output.
监控代理日志
Monitor the logs of agent EMP_0002 in real-time using the agent-manager-skill.
为代理分配任务
Assign the following task to agent EMP_0003 using the agent-manager-skill:

Follow teams/fractalmind-ai-maintenance.md Workflow

最佳实践

  • 在尝试启动代理之前,先在 agents/ 目录中配置代理
  • 首先使用 doctor 命令验证所有先决条件是否已安装
  • 在初始运行期间监控代理以确保它们按预期运行
  • 使用描述性的代理 ID(如 EMP_0001)以便于识别

避免

  • 在未运行 doctor 检查之前启动代理
  • 为配置不正确的代理分配任务
  • 在关键操作期间未监控代理输出
  • 在运行过多代理时未进行资源监控

常见问题

此技能需要什么先决条件?
此技能需要在系统上安装 tmux 和 python3。运行 'python3 agent-manager/scripts/main.py doctor' 以验证安装。
如何配置新代理?
将代理配置文件放在 agents/ 目录中。参考仓库示例了解所需的格式和结构。
可以通过 SSH 远程运行此技能吗?
可以,只要在远程系统上安装了 tmux。此技能管理本地 tmux 会话,不需要图形界面。
如何停止正在运行的代理?
使用 stop 命令和代理 ID:'python3 agent-manager/scripts/main.py stop EMP_0001'
此技能安全吗?
此技能仅运行本地 CLI 命令。在运行不受信任的代码之前请审查代理配置。默认情况下不需要网络访问。
可以按 cron 时间表调度代理运行吗?
是的,此技能支持 cron 友好调度。在 agents/ 目录中使用 cron 表达式配置计划任务。

开发者详情

文件结构

📄 SKILL.md