Adopt a mindset that prevents parallel edit conflicts by assessing overlap risk, isolating work via git worktree when needed, and coordinating hand-offs between agents or subagents.
I help agents avoid edit conflicts when multiple agents or subagents are working on the same codebase — either in sequence or in parallel. I assess risk, choose isolation strategies, coordinate hand-offs, and clean up safely after finishing.
Before touching any file, ask:
Decision rule:
git worktree branch first.Use git worktree when:
src/components, src/theme, src/services, src/config).Do not use git worktree when:
When isolation is appropriate, follow this lifecycle strictly:
worktree_create tool (or bash) to spin up an isolated branch:
git worktree add ../<feature-name> feature/<feature-name>
git switch main && git merge feature/<feature-name>
worktree_cleanup tool only after confirming the branch was merged and only with explicit permission from the coordinator or user. Never self-clean without confirmation.When delegating to a subagent or receiving work from one:
Load this skill whenever: