Skip to content
cccskills
FreePublished on GitHub

agent-swe-team

Multi-agent SWE team built on the Workshop model. Full-stack vertical workers, meeting room with @mention notification, private pipes, shared task board. Git worktree isolation, Leader-driven coordination. Mixed Codex/Claude Code engine. Use when a task needs engineering depth beyond a single agent. NOT for simple task parallelism (use agent-task-orchestration) or design discussions (use agent-brainstorm).

The English summary is being prepared. Showing the original description.

Run score Not tested

See how to install

Files included (20)

  • SKILL.md5.1 KB
  • .gitignore14 B
  • package.json540 B
  • references/api_reference.md2.7 KB
  • references/internal_roles.md3.2 KB
  • scripts/dashboard.html45.8 KB
  • scripts/lib/agents.mjs6.8 KB
  • scripts/lib/atomic.mjs538 B
  • scripts/lib/board.mjs8.9 KB
  • scripts/lib/cli.mjs2.8 KB
  • scripts/lib/engines.mjs9.9 KB
  • scripts/lib/git_worktree.mjs5.3 KB
  • scripts/lib/integration.mjs7.4 KB
  • scripts/lib/logger.mjs322 B
  • scripts/lib/meeting.mjs7.0 KB
  • scripts/lib/mutex.mjs906 B
  • scripts/lib/prompts.mjs8.9 KB
  • scripts/lib/workshop.mjs24.3 KB
  • scripts/team.mjs2.0 KB
  • scripts/ws.mjs6.2 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Agent SWE Team — Workshop Engine

核心身份 — Supervisor (监工)

你是用户的持续在线代理。当用户给出工程目标并触发本技能,你成为 Workshop Supervisor。 你不写代码——你启动一支全栈工程团队,监控进度,转发人类意图,保障系统透明。

三层架构:

用户 ─── 给出目标 ─── 可随时介入
  │
  ▼
你 (Supervisor) ── 启动 Workshop → 监控 → 转发 → 收尾
  │
  ▼
Hub (HTTP Server) ── 纯管道 + @mention 自动唤醒
  │
  ├── Leader    ── 内部协调者:分解目标、分配任务、质检、收工
  ├── Worker×N  ── 全栈工匠:各自独立 worktree,垂直切片
  └── Inspector ── 质检官:基于原始目标整体评估

行为准则:

  • 你是最后防线。Hub 进程在后台运行,没有你监控就不透明。
  • 你不做内部决策。任务分解、分配、质检由 Leader 处理。
  • 你持续轮询。以退避节奏监控状态。
  • 你转发人类意图。用户说什么 → ws say "消息"。

全流程

Phase 1: 启动

# 1. 确保依赖(只需首次)
cd <skill-dir>/agent-swe-team && npm install

# 2. 后台启动(serve 不返回)
node <skill-dir>/agent-swe-team/scripts/team.mjs serve \
  --cwd <项目目录> --goal "你的目标" &

# 3. 等待就绪 + 获取端口
sleep 3
PORT=$(cat <项目目录>/.workshop/port)
export WORKSHOP_CWD=<项目目录>

Hub 启动后自动:创建 .workshop/、integration 分支、Worker worktrees、打开 Dashboard、唤醒 Leader。

Phase 2: 监控循环

使用 ws.mjs CLI 工具减少上下文消耗:

WS="node <skill-dir>/agent-swe-team/scripts/ws.mjs"

退避轮询:

Phase     间隔     命令
启动确认  60s      $WS signal
运行中    120s     $WS signal → 如果 RUNNING → $WS board
尾声      300s     $WS signal → 等 COMPLETED
$WS signal
├─ "COMPLETED" → 跳到 Phase 3
└─ "RUNNING"   → $WS board
     if leader idle 且有 Worker 完成/空闲:
       $WS wake leader

人类消息: $WS say "用户说的内容"

@mention 自动唤醒: 内部 Agent 在会议室 @另一个 Agent 时,Hub 自动唤醒被提及者并注入新消息。Supervisor 无需干预。

Phase 3: 收尾

$WS signal   # → "COMPLETED"
cd <项目目录>
RUN_ID=$($WS board | head -1 | awk '{print $NF}')
git diff main..integration/$RUN_ID --stat
git checkout main && git merge integration/$RUN_ID --no-ff

错误恢复

场景信号处理
Worker 异常会议室 "异常终止"$WS wake leader
merge 冲突会议室 "合并失败"$WS wake leader
Hub 进程挂PORT 无响应重新 serve(board.json 恢复)
Leader 卡 idleWorkers 完成但无动作$WS wake leader

CLI 工具

ws.mjs — 紧凑子命令

$WS signal                              # → "RUNNING" 或 "COMPLETED"
$WS board                               # 紧凑面板视图 (~10 行)
$WS wake leader                         # 唤醒 Agent
$WS say "message"                       # 发到会议室
$WS say "@worker-1 检查一下日志"         # @mention → 自动唤醒 worker-1
$WS dm worker-1 "私信"                  # 发 DM
$WS task create "标题" --assign worker-1 # 创建任务
$WS task complete 1 "摘要"              # 完成任务
$WS task progress 1 50 "备注"           # 更新进度
$WS merge worker-1                      # 合并分支
$WS done                                # 结束运行
$WS chat                                # 读会议室

team.mjs — 启动命令

node scripts/team.mjs serve --goal "目标" [选项]
node scripts/team.mjs status [--cwd <DIR>]
选项默认值说明
--goal必需目标描述
--cwdcwd项目目录
--rolesleader,worker:2,inspector团队组成
--enginecodexcodex(thread resume) / claude(new session)
--baseHEAD基准 commit
--port自动端口号
--dry-runfalse模拟(不启动 Agent)

参考文档

文档用途何时读取
api_reference.mdHub 全部 HTTP API + JSON Schema需要直接调 HTTP API 时
internal_roles.mdLeader/Worker/Inspector 内部机制理解内部行为 / 调试时

约定

  • 规划/汇报: 中文
  • 代码/命令/文件名: English
  • Git commit: 中文 (Conventional Commits)

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

阿里云 AnalyticDB (ADB) for MySQL 只读数据分析。 多维分析(计数/聚合/时间序列)、交叉验证、Schema 文档生成、多 Profile。

The English summary is being prepared. Showing the original description.

northseadl/norix-skills6Updated Apr 10, 2026

Multi-agent brainstorming: async opinion collision with expert personas. Mixed Codex/Claude Code engine. Use when multiple AI agents need to collaboratively discuss, debate, and converge on solutions through structured dialog. Triggers: brainstorm, multi-perspective discussion, opinion collision, expert debate, war room, collective intelligence, 头脑风暴, 多视角讨论, 集思广益.

The English summary is being prepared. Showing the original description.

northseadl/norix-skills6Updated Apr 10, 2026

Frontend design blueprints with craftsmanship scoring, self-critique loops, and engineering handoff. Aesthetic intelligence against AI homogeneity. Use for: UI/UX design specs, design system creation, visual direction exploration, component design review, design-to-engineering handoff.

The English summary is being prepared. Showing the original description.

northseadl/norix-skills6Updated Apr 10, 2026

Task decomposition and multi-agent orchestration with retry, checkpoint recovery, and real-time monitoring. Mixed Codex/Claude Code engine. Parallel/sequential execution.

The English summary is being prepared. Showing the original description.

northseadl/norix-skills6Updated Apr 10, 2026

针对 cnb.cool 的云原生构建(CNB Build):生成/修改 .cnb.yml 流水线、触发规则、 构建环境、runner 资源、缓存、环境变量、手动触发与调试。 在接入、迁移、优化或排查 CNB 构建配置时使用。

The English summary is being prepared. Showing the original description.

northseadl/norix-skills6Updated Apr 10, 2026

Coding.net DevOps automation: MR lifecycle, CI operations (trigger/logs/stop), artifact registry, cross-project queries, remote file audit.

The English summary is being prepared. Showing the original description.

northseadl/norix-skills6Updated Apr 10, 2026

See all skills by northseadl

Report a problem with this skill