agile-coordinator by jwynia/agent-skills
npx skills add https://github.com/jwynia/agent-skills --skill agile-coordinator协调多个工作代理,以实施待办事项列表中已梳理的任务,处理任务分配、进度监控、合并协调和验证。
协调,而非实施。 协调器将任务分配给工作者,监控其进度,协调合并,并验证结果。工作者通过 agile-workflow 技能执行实际实施。
/agile-coordinator # 自动发现并执行就绪任务
/agile-coordinator TASK-001 TASK-002 # 执行特定任务
/agile-coordinator --dry-run # 仅预览执行计划
/agile-coordinator --parallel # 并行运行工作者
/agile-coordinator --sequential # 逐个运行工作者(默认)
| 标志 | 描述 | 默认值 |
|---|---|---|
--sequential |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 逐个执行任务 |
| 是 |
--parallel | 并发执行任务 | 否 |
--max-workers N | 最大并发工作者数 | 2 |
--dry-run | 显示计划但不执行 | 否 |
--autonomous | 在所有检查点自动继续 | 是 |
--supervised | 每个任务完成后暂停 | 否 |
--verbose | 显示所有工作者更新 | 否 |
--summary-only | 仅显示主要里程碑 | 是 |
读取待办事项列表以查找准备实施的任务。
操作:
1. 读取 context/backlog/ 中的任务文件
2. 筛选状态为:ready
3. 解析任务元数据(优先级、大小、依赖关系)
4. 按优先级排序(高 → 中 → 低)
5. 呈现发现结果
输出:包含元数据的就绪任务列表
根据任务特性创建执行计划。
操作:
1. 确定执行模式(顺序或并行)
2. 检查任务依赖关系(A 必须在 B 之前完成)
3. 按优先级顺序将任务分配给工作者
4. 生成工作者指令
输出:包含任务分配的执行计划
检查点:TASKS_DISCOVERED
continue, reorder, exclude [TASK-ID], stop生成并监控工作者代理。
对于 SEQUENTIAL 模式:
对于队列中的每个任务:
1. 使用 Task 工具生成工作者
2. 工作者为该任务运行 agile-workflow
3. 通过文件系统监控进度
4. 完成后:进入合并阶段
5. 失败时:处理错误,决定继续/停止
对于 PARALLEL 模式:
1. 生成最多 max_workers 个工作者
2. 并发监控所有工作者
3. 工作者完成时:将其分支排队等待合并
4. 如果仍有任务,则生成下一个工作者
5. 继续直到所有任务处理完毕
检查点:WORKER_COMPLETE(每个工作者)
continue, retry, skip, stop顺序执行合并以避免冲突。
操作:
1. 对于合并队列中的每个已完成任务:
a. git checkout main && git pull
b. 合并分支 (git merge --squash)
c. 验证合并成功
d. 删除功能分支
2. 如果冲突:暂停并提醒用户
输出:所有分支合并到 main
在所有合并后验证系统完整性。
操作:
1. git checkout main && git pull --rebase
2. npm run build (验证构建通过)
3. npm test (运行完整测试套件)
4. 检查回归问题
5. 生成验证报告
输出:验证状态 (PASSED/FAILED)
检查点:VERIFIED
done, investigate, revert更新事实来源文档以反映已完成的工作。
操作:
1. 对于每个已完成任务:
a. 在待办事项史诗文件中更新任务状态 (ready → complete)
b. 重新计算史诗级别的进度 (例如,"22/28 complete" → "24/28 complete")
c. 如果阻塞条件已满足,则解除依赖任务的阻塞 (blocked → ready)
2. 更新项目状态文件 (context/status.md):
a. 当前项目阶段
b. 史诗进度表
c. 最近完成的工作
d. 活跃/即将进行的工作摘要
3. 提交并推送文档更新
输出:待办事项和项目状态文件反映实际进度
此阶段存在的原因: 内部跟踪 (.coordinator/state.json, 工作者进度文件) 是会话范围且临时的。待办事项史诗文件和项目状态是人类和未来会话所依赖的持久化事实来源。如果没有此阶段,已完成的任务在待办事项文件中仍标记为 "ready" —— 在一个真实案例中,22 个已合并的任务从未在待办事项中更新。
生成全面的完成报告。
输出:
- 已完成的任务及其 PR 编号和提交
- 指标(生成的工作者数量、合并的 PR 数量、添加的测试数量)
- 验证状态
- 应用的文档更新
- 剩余的待办事项任务
工作者使用 Claude Code 的 Task 工具生成,并为其分配的任务运行 agile-workflow。
对工作者的关键要求:
agile-workflow.coordinator/workers/{worker-id}/progress.json工作者通过文件系统报告进度:
// .coordinator/workers/worker-1/progress.json
{
"worker_id": "worker-1",
"task_id": "TASK-006",
"status": "in_progress|completed|failed|ready-to-merge",
"phase": "implement|review|merge-prep|merge-complete",
"commit": null,
"branch": "task/TASK-006-description",
"last_update": "2026-01-20T10:15:00Z",
"milestones": [
{"phase": "implement", "timestamp": "..."},
{"phase": "review", "timestamp": "..."}
]
}
协调器在 .coordinator/state.json 中维护状态:
{
"session_id": "coord-2026-01-20-abc123",
"state": "EXECUTING",
"config": {
"execution_mode": "sequential",
"autonomy_level": "autonomous"
},
"tasks": {
"queued": ["TASK-008"],
"in_progress": ["TASK-007"],
"completed": ["TASK-006"],
"failed": []
},
"workers": [...],
"merge_queue": [],
"verification": null
}
| 故障类型 | 检测方式 | 恢复措施 |
|---|---|---|
| 工作者失败 | 进度显示 failed | 提供重试、跳过或中止选项 |
| 测试失败 | npm test 非零退出 | 工作者最多重试 2 次 |
| 合并冲突 | git merge 失败 | 暂停,提醒用户 |
| 验证失败 | 合并后测试失败 | 提供调查或回滚选项 |
协调器生成执行 agile-workflow 的工作者:
agile-coordinator (协调器)
│
├── Worker 1 → agile-workflow --task TASK-006
├── Worker 2 → agile-workflow --task TASK-007
└── Worker 3 → agile-workflow --task TASK-008
关键集成点:
模式:同时合并多个 PR 问题:导致合并冲突,破坏 main 分支 修复:始终顺序合并,每次合并前拉取
模式:工作者合并自己的分支 问题:竞态条件,合并不协调 修复:工作者发出准备合并信号,协调器执行合并
模式:跳过合并后验证 问题:回归问题未被发现 修复:合并完成后始终运行完整测试套件
模式:依赖内部跟踪文件 (.coordinator/state.json, 工作者进度文件) 而不持久化到待办事项史诗文件和项目状态
问题:已完成的任务在待办事项中仍标记为 "ready";项目状态保持陈旧;未来会话看到错误状态并可能尝试重复工作
修复:始终运行阶段 6(持久化进度),在生成总结报告之前更新待办事项史诗文件、解除依赖任务的阻塞并更新项目状态
User: /agile-coordinator
Coordinator: 正在发现就绪任务...
找到 2 个就绪任务:
1. TASK-006 - 持久化消息状态(中等优先级,中等大小)
2. TASK-007 - 添加单元测试(高优先级,大型任务)
执行计划:
- 模式:顺序执行
- 顺序:TASK-006 → TASK-007
继续?[continue/reorder/stop]
User: continue
Coordinator: 启动 TASK-006...
[生成 Worker 1]
**里程碑**:TASK-006 - 实施完成,测试通过
Coordinator: 正在合并 task/TASK-006-persistence...
**里程碑**:TASK-006 完成 (提交 abc123)
Coordinator: 启动 TASK-007...
[生成 Worker 2]
**里程碑**:TASK-007 - 实施完成,测试通过
Coordinator: 正在合并 task/TASK-007-tests...
**里程碑**:TASK-007 完成 (提交 def456)
Coordinator: 正在运行验证...
- 构建:通过
- 测试:47/47 通过
- 覆盖率:82%
## 总结
已完成任务:2
- TASK-006:已合并 (提交 abc123)
- TASK-007:已合并 (提交 def456)
验证:通过
| 来源技能 | 触发条件 | 操作 |
|---|---|---|
| requirements-elaboration | 任务已梳理 | 协调器可以执行 |
| backlog manager | 待办事项就绪 | 协调器发现任务 |
| 此操作 | 触发技能 | 目的 |
|---|---|---|
| 生成工作者 | agile-workflow | 任务实施 |
| 验证失败 | research | 调试调查 |
| 技能 | 关系 |
|---|---|
| agile-workflow | 工作者执行此技能 |
| context-network | 管理协调器读取的待办事项 |
.coordinator/state.json 是临时的)每周安装次数
103
代码仓库
GitHub 星标数
40
首次出现
2026年1月20日
安全审计
安装于
opencode83
codex81
gemini-cli80
cursor76
github-copilot73
claude-code71
Orchestrates multiple worker agents to implement groomed tasks from the backlog, handling task assignment, progress monitoring, merge coordination, and verification.
Coordinate, don't implement. The coordinator assigns tasks to workers, monitors their progress, coordinates merges, and verifies results. Workers execute the actual implementation via the agile-workflow skill.
/agile-coordinator # Auto-discover and execute ready tasks
/agile-coordinator TASK-001 TASK-002 # Execute specific tasks
/agile-coordinator --dry-run # Preview execution plan only
/agile-coordinator --parallel # Run workers in parallel
/agile-coordinator --sequential # Run workers one at a time (default)
| Flag | Description | Default |
|---|---|---|
--sequential | Execute tasks one at a time | Yes |
--parallel | Execute tasks concurrently | No |
--max-workers N | Maximum concurrent workers | 2 |
--dry-run | Show plan without executing | No |
--autonomous | Auto-continue at all checkpoints | Yes |
--supervised | Pause after each task completes |
Read the backlog to find tasks ready for implementation.
Actions:
1. Read context/backlog/ for task files
2. Filter to status: ready
3. Parse task metadata (priority, size, dependencies)
4. Sort by priority (high → medium → low)
5. Present findings
Output: List of ready tasks with metadata
Create an execution plan based on task characteristics.
Actions:
1. Determine execution mode (sequential or parallel)
2. Check for task dependencies (A must complete before B)
3. Assign tasks to workers in priority order
4. Generate worker instructions
Output: Execution plan with task assignments
Checkpoint: TASKS_DISCOVERED
continue, reorder, exclude [TASK-ID], stopSpawn and monitor worker agents.
For SEQUENTIAL mode:
for each task in queue:
1. Spawn worker with Task tool
2. Worker runs agile-workflow for the task
3. Monitor progress via file system
4. When complete: proceed to merge phase
5. On failure: handle error, decide continue/stop
For PARALLEL mode:
1. Spawn workers up to max_workers
2. Monitor all workers concurrently
3. As workers complete: queue their branches for merge
4. Spawn next worker if tasks remain
5. Continue until all tasks processed
Checkpoint: WORKER_COMPLETE (per worker)
continue, retry, skip, stopExecute merges sequentially to avoid conflicts.
Actions:
1. For each completed task in merge queue:
a. git checkout main && git pull
b. Merge branch (git merge --squash)
c. Verify merge succeeded
d. Delete feature branch
2. If conflict: pause and alert user
Output: All branches merged to main
Verify system integrity after all merges.
Actions:
1. git checkout main && git pull --rebase
2. npm run build (verify build passes)
3. npm test (run full test suite)
4. Check for regressions
5. Generate verification report
Output: Verification status (PASSED/FAILED)
Checkpoint: VERIFIED
done, investigate, revertUpdate source-of-truth documentation to reflect completed work.
Actions:
1. For each completed task:
a. Update task status in the backlog epic file (ready → complete)
b. Recalculate epic-level progress (e.g., "22/28 complete" → "24/28 complete")
c. Unblock dependent tasks (blocked → ready) if blockers are now satisfied
2. Update project status file (context/status.md):
a. Current project phase
b. Epic progress table
c. Recently completed work
d. Active/upcoming work summary
3. Commit and push documentation updates
Output: Backlog and project status files reflect actual progress
Why this phase exists: Internal tracking (.coordinator/state.json, worker progress files) is session-scoped and ephemeral. The backlog epic files and project status are the persistent source of truth that humans and future sessions rely on. Without this phase, completed tasks remain marked "ready" in backlog files — in one real-world case, 22 merged tasks were never updated in the backlog.
Generate comprehensive completion report.
Output:
- Tasks completed with PR numbers and commits
- Metrics (workers spawned, PRs merged, tests added)
- Verification status
- Documentation updates applied
- Remaining backlog tasks
Workers are spawned using Claude Code's Task tool and run agile-workflow for their assigned task.
See templates/worker-instruction.md
Key requirements for workers:
agile-workflow with autonomous mode.coordinator/workers/{worker-id}/progress.jsonWorkers report progress via file system:
// .coordinator/workers/worker-1/progress.json
{
"worker_id": "worker-1",
"task_id": "TASK-006",
"status": "in_progress|completed|failed|ready-to-merge",
"phase": "implement|review|merge-prep|merge-complete",
"commit": null,
"branch": "task/TASK-006-description",
"last_update": "2026-01-20T10:15:00Z",
"milestones": [
{"phase": "implement", "timestamp": "..."},
{"phase": "review", "timestamp": "..."}
]
}
The coordinator maintains state in .coordinator/state.json:
{
"session_id": "coord-2026-01-20-abc123",
"state": "EXECUTING",
"config": {
"execution_mode": "sequential",
"autonomy_level": "autonomous"
},
"tasks": {
"queued": ["TASK-008"],
"in_progress": ["TASK-007"],
"completed": ["TASK-006"],
"failed": []
},
"workers": [...],
"merge_queue": [],
"verification": null
}
See references/state-tracking.md for details.
| Failure Type | Detection | Recovery |
|---|---|---|
| Worker fails | Progress shows failed | Offer retry, skip, or abort |
| Tests fail | npm test exits non-zero | Worker retries up to 2x |
| Merge conflict | git merge fails | Pause, alert user |
| Verification fails | Post-merge tests fail | Offer investigate or revert |
See references/failure-handling.md for details.
The coordinator spawns workers that execute agile-workflow:
agile-coordinator (orchestrator)
│
├── Worker 1 → agile-workflow --task TASK-006
├── Worker 2 → agile-workflow --task TASK-007
└── Worker 3 → agile-workflow --task TASK-008
Key integration points:
Pattern : Merging multiple PRs simultaneously Problem : Creates merge conflicts, corrupts main branch Fix : Always merge sequentially, pull before each merge
Pattern : Workers merge their own branches Problem : Race conditions, uncoordinated merges Fix : Workers signal ready-to-merge, coordinator executes merges
Pattern : Skipping post-merge verification Problem : Regressions go undetected Fix : Always run full test suite after merges complete
Pattern : Relying on internal tracking (.coordinator/state.json, worker progress files) without persisting to backlog epic files and project status Problem : Completed tasks remain marked "ready" in the backlog; project status stays stale; future sessions see incorrect state and may attempt duplicate work Fix : Always run Phase 6 (Persist Progress) to update backlog epic files, unblock dependent tasks, and update project status before generating the summary report
User: /agile-coordinator
Coordinator: Discovering ready tasks...
Found 2 ready tasks:
1. TASK-006 - Persistent Message Status (medium priority, medium size)
2. TASK-007 - Add Unit Tests (high priority, large size)
Execution Plan:
- Mode: sequential
- Order: TASK-006 → TASK-007
Proceed? [continue/reorder/stop]
User: continue
Coordinator: Starting TASK-006...
[Spawns Worker 1]
**Milestone**: TASK-006 - Implementation complete, tests passing
Coordinator: Merging task/TASK-006-persistence...
**Milestone**: TASK-006 complete (commit abc123)
Coordinator: Starting TASK-007...
[Spawns Worker 2]
**Milestone**: TASK-007 - Implementation complete, tests passing
Coordinator: Merging task/TASK-007-tests...
**Milestone**: TASK-007 complete (commit def456)
Coordinator: Running verification...
- Build: PASSED
- Tests: 47/47 passing
- Coverage: 82%
## Summary
Tasks completed: 2
- TASK-006: merged (commit abc123)
- TASK-007: merged (commit def456)
Verification: PASSED
| Source Skill | Trigger | Action |
|---|---|---|
| requirements-elaboration | Tasks groomed | Coordinator can execute |
| backlog manager | Backlog ready | Coordinator discovers tasks |
| This Action | Triggers Skill | For |
|---|---|---|
| Spawn worker | agile-workflow | Task implementation |
| Verification fails | research | Debug investigation |
| Skill | Relationship |
|---|---|
| agile-workflow | Workers execute this skill |
| context-network | Manages backlog this reads |
.coordinator/state.json is ephemeral)Weekly Installs
103
Repository
GitHub Stars
40
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykPass
Installed on
opencode83
codex81
gemini-cli80
cursor76
github-copilot73
claude-code71
Azure Data Explorer (Kusto) 查询技能:KQL数据分析、日志遥测与时间序列处理
138,800 周安装
| No |
--verbose | Show all worker updates | No |
--summary-only | Show major milestones only | Yes |