AgentSkillsCN

conflict-detector

擅长在并行工作中检测文件冲突。 通过MCP向Theia编排器发出冲突信号。

SKILL.md
--- frontmatter
name: conflict-detector
description: |
  Expertise in detecting file conflicts during parallel work.
  Signals conflicts to Theia orchestrator via MCP.

Conflict Detector Skill

Detection Methods

Pre-Write Check

Before every write_file or replace:

bash
git status --porcelain "$FILE"
# If non-empty AND file not in your scope → CONFLICT

During-Write Check

After writing, verify no race condition:

bash
git diff HEAD -- "$FILE"
# If unexpected changes → signal_conflict

Conflict Response

On detecting any conflict:

  1. STOP current operation
  2. Call MCP: signal_conflict(file, type, details)
  3. WAIT for orchestrator response
  4. Do NOT attempt auto-resolution

Conflict Types

TypeDetectionAuto-Resolvable
AdditiveBoth workers added to same fileMaybe
SemanticSame function modified differentlyNo
DestructiveOne deleted what other modifiedNo