concurrent-coding-agent-coordination
Use when coding agents overlap; assign one owner.
- License 许可
- MIT
- 最近更新
- 2026-08-25
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- concurrent-coding-agent-coordination
- description
- Use when coding agents overlap; assign one owner.
02 资源文件 1
- 参考文档references/worktree-overlap-checklist.md1.2 KB
03 SKILL.md 正文
Concurrent Coding-Agent Coordination
Use when two or more coding agents, IDE sessions, or automation workers operate on the same repository at the same time.
Core rule
A worktree isolates filesystem writes, not design ownership. Every mutable implementation surface needs one active writer. Parallel work is safe only when writers own disjoint surfaces or independent worktrees with an explicit integration boundary.
Workflow
- Inventory live surfaces. Inspect worktrees, branches, dirty state, recent commits, and active agent processes before editing. Do not infer that a worktree is idle from its name.
- Build ownership. Compare changed-file sets and identify the current owner of each implementation surface. Treat overlapping files and overlapping architectural responsibility as a collision even when branches are separate.
- Stop competing implementation. If another agent owns the same files, do not create a third branch, mechanically cherry-pick partial edits, or keep editing a second implementation. Hand concrete acceptance criteria to the active owner; let that branch integrate one coherent design.
- Keep orthogonal work separate. Research, evidence, and documentation may proceed independently only when they do not mutate the owned implementation surface. Give them their own branch or worktree.
- Integrate after ownership ends. Review the owner’s complete diff against requirements, run focused tests, then relevant broader checks. Resolve architecture on the owner branch, not through a blind line-by-line merge.
- Publish one verified unit. The result should be one coherent commit/PR for one implementation surface. Handoff names the owner, changed files, requirements, tests, and uncertainty.
Human-facing explanation
Lead with concrete state, not process jargon:
“Cursor A owns these Jibri files. Our audio requirements go to A; we do not create a competing branch. After A finishes, we review one diff and run tests.”
If the explanation is not understood, reduce it to: who owns the files, what is waiting, and what happens next. Do not dump the inventory unless requested.
Failure modes
- Separate worktrees are mistaken for permission to edit the same subsystem in parallel.
- A branch name is trusted instead of its actual dirty diff.
- Independent implementations are mechanically merged without choosing an architecture owner.
- A local patch is committed to the wrong feature branch merely because it compiles.
- “Wait for Cursor” is reported without naming the owner, files, requirements, and verification gate.
Verification checklist
- [ ] Every active worktree and writer is identified.
- [ ] Ownership of overlapping files is explicit.
- [ ] No second writer edits the owned implementation surface.
- [ ] Requirements are handed to the owner concretely.
- [ ] The owner’s complete diff is reviewed after handoff.
- [ ] Focused and broader relevant tests are run.
- [ ] The final message states owner → next gate → expected integration result.
See references/worktree-overlap-checklist.md for a compact inspection and handoff template.
04 同仓库更多 Skills
writing-for-agents
Use for delegate_task, Kanban, and all agent-facing text.
why
Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Discovers available MCPs and queries each evidence category (source control, issue tracker, long-form docs, real-time chat, infrastructure observability, error tracking, product analytics warehouse) in parallel, then returns a cited read on decisions and tradeoffs. Use how for runtime behavior.
vue-best-practices
Use for Vue 3, .vue files, Vue Router, or Pinia. Skip when the repo has no Vue.
vercel-react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
tailwind-v4
Use when writing or reviewing Tailwind CSS v4 classes or migrating v3 syntax.
react-best-practices
Mastra React subset only. Generic React or Next uses vercel-react-best-practices.