/sync-conflict-resolver
Resolve synchronization conflicts automatically
$ npx -y skills add qdhenry/Claude-Command-Suite --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/sync-conflict-resolver
Context preview
What this command does when you run it.
Resolve synchronization conflicts automatically
Command definition
sync-conflict-resolver.mdSync Conflict Resolver
Resolve synchronization conflicts automatically
Instructions
1. **Initialize Conflict Detection**
- Check GitHub CLI and Linear MCP availability
- Load existing sync metadata and mappings
- Parse command arguments from: **$ARGUMENTS**
- Set up conflict detection parameters
2. **Parse Resolution Strategy**
- Extract action (detect, resolve, analyze, configure, report)
- Determine resolution strategy from options
- Configure auto-resolve preferences
- Set priority system if specified
3. **Execute Selected Action** Based on the action provided:
Detect Action
- Scan all synchronized items
- Compare GitHub and Linear versions
- Identify field-level conflicts
- Flag timing conflicts
- Generate conflict list
Resolve Action
- Apply selected strategy to conflicts
- Handle field merging if enabled
- Create backups before changes
- Log all resolutions
- Update sync metadata
Analyze Action
- Study conflict patterns
- Identify frequent conflict types
- Suggest process improvements
- Generate analytics report
Configure Action
- Set default resolution strategies
- Configure field priorities
- Define merge rules
- Save preferences
Report Action
- Generate detailed conflict report
- Show resolution history
- Provide conflict statistics
- Export findings
Usage
sync-conflict-resolver [action] [options]
Actions
- `detect` - Identify synchronization conflicts
- `resolve` - Apply resolution strategies
- `analyze` - Deep analysis of conflict patterns
- `configure` - Set resolution preferences
- `report` - Generate conflict reports
Options
- `--strategy <type>` - Resolution strategy (latest-wins, manual, smart)
- `--interactive` - Prompt for each conflict
- `--auto-resolve` - Automatically resolve using rules
- `--dry-run` - Preview resolutions without applying
- `--backup` - Create backup before resolving
- `--priority <system>` - Prioritize GitHub or Linear
- `--merge-fields` - Merge non-conflicting fields
Examples
# Detect all conflicts
sync-conflict-resolver detect
# Resolve with latest-wins strategy
sync-conflict-resolver resolve --strategy latest-wins
# Interactive resolution with backup
sync-conflict-resolver resolve --interactive --backup
# Analyze conflict patterns
sync-conflict-resolver analyze --since "30 days ago"
# Configure auto-resolution rules
sync-conflict-resolver configure --auto-resolve
Conflict Types
1. **Field Conflicts**
- Title differences
- Description mismatches
- Status discrepancies
- Priority conflicts
- Assignee differences
2. **Structural Conflicts**
- Deleted in one system
- Duplicated items
- Circular references
- Parent-child mismatches
3. **Timing Conflicts**
- Simultaneous updates
- Out-of-order syncs
- Version conflicts
- Race conditions
Resolution Strategies
Latest Wins
- Uses most recent modification
- Configurable per field
- Maintains audit trail
Smart Resolution
- Field-level intelligence
- Preserves important data
- Merges compatible changes
- User preference learning
Manual Resolution
- Interactive prompts
- Side-by-side comparison
- Selective field merging
- Custom resolution rules
Conflict Detection Algorithm
detection:
- compare_timestamps
- check_field_hashes
- verify_relationships
- analyze_change_patterns
analysis:
- identify_conflict_type
- determine_severity
- suggest_resolution
- calculate_impact
Resolution Rules Configuration
{
"rules": {
"title": {
"strategy": "latest-wins",
"priority": "linear"
},
"description": {
"strategy": "merge",
"preserve_sections": ["## Requirements", "## Acceptance Criteria"]
},
"status": {
"strategy": "smart",
"mapping": {
"github_closed": "linear_completed",
"github_open": "linear_in_progress"
}
},
"assignee": {
"strategy": "manual",
"notify": true
}
},
"global": {
"backup_before_resolve": true,
"log_level": "detailed"
}
}Merge Algorithm
1. Identify non-conflicting changes 2. Apply field-specific merge strategies 3. Preserve formatting and structure 4. Validate merged result 5. Create resolution record
Conflict Prevention
- Implement field locking
- Use optimistic concurrency
- Add sync timestamps
- Enable change notifications
Reporting Features
- Conflict frequency analysis
- Resolution success rates
- Common conflict patterns
- Team conflict hotspots
- Time-based trends
Integration Workflow
1. Run after sync operations 2. Process conflict queue 3. Apply resolutions 4. Update reference manager 5. Notify affected users
Required MCP Servers
- mcp-server-github
- mcp-server-linear
Error Handling
- Transaction-based resolution
- Automatic rollback on failure
- Detailed conflict logs
- Resolution history tracking
Best Practices
- Review conflict patterns monthly
- Adjust resolution rules based on patterns
- Train team on conflict prevention
- Monitor resolution success rates
- Keep manual intervention minimal
Notes
This command maintains a conflict history database to improve resolution accuracy over time. Machine learning capabilities can be enabled for advanced pattern recognition.
Read more
Sync Conflict Resolver
Resolve synchronization conflicts automatically
Instructions
1. **Initialize Conflict Detection**
- Check GitHub CLI and Linear MCP availability
- Load existing sync metadata and mappings
- Parse command arguments from: **$ARGUMENTS**
- Set up conflict detection parameters
2. **Parse Resolution Strategy**
- Extract action (detect, resolve, analyze, configure, report)
- Determine resolution strategy from options
- Configure auto-resolve preferences
- Set priority system if specified
3. **Execute Selected Action** Based on the action provided:
Detect Action
- Scan all synchronized items
- Compare GitHub and Linear versions
- Identify field-level conflicts
- Flag timing conflicts
- Generate conflict list
Resolve Action
- Apply selected strategy to conflicts
- Handle field merging if enabled
- Create backups before changes
- Log all resolutions
- Update sync metadata
Analyze Action
- Study conflict patterns
- Identify frequent conflict types
- Suggest process improvements
- Generate analytics report
Configure Action
- Set default resolution strategies
- Configure field priorities
- Define merge rules
- Save preferences
Report Action
- Generate detailed conflict report
- Show resolution history
- Provide conflict statistics
- Export findings
Usage
sync-conflict-resolver [action] [options]
Actions
- `detect` - Identify synchronization conflicts
- `resolve` - Apply resolution strategies
- `analyze` - Deep analysis of conflict patterns
- `configure` - Set resolution preferences
- `report` - Generate conflict reports
Options
- `--strategy <type>` - Resolution strategy (latest-wins, manual, smart)
- `--interactive` - Prompt for each conflict
- `--auto-resolve` - Automatically resolve using rules
- `--dry-run` - Preview resolutions without applying
- `--backup` - Create backup before resolving
- `--priority <system>` - Prioritize GitHub or Linear
- `--merge-fields` - Merge non-conflicting fields
Examples
# Detect all conflicts sync-conflict-resolver detect # Resolve with latest-wins strategy sync-conflict-resolver resolve --strategy latest-wins # Interactive resolution with backup sync-conflict-resolver resolve --interactive --backup # Analyze conflict patterns sync-conflict-resolver analyze --since "30 days ago" # Configure auto-resolution rules sync-conflict-resolver configure --auto-resolve
Conflict Types
1. **Field Conflicts**
- Title differences
- Description mismatches
- Status discrepancies
- Priority conflicts
- Assignee differences
2. **Structural Conflicts**
- Deleted in one system
- Duplicated items
- Circular references
- Parent-child mismatches
3. **Timing Conflicts**
- Simultaneous updates
- Out-of-order syncs
- Version conflicts
- Race conditions
Resolution Strategies
Latest Wins
- Uses most recent modification
- Configurable per field
- Maintains audit trail
Smart Resolution
- Field-level intelligence
- Preserves important data
- Merges compatible changes
- User preference learning
Manual Resolution
- Interactive prompts
- Side-by-side comparison
- Selective field merging
- Custom resolution rules
Conflict Detection Algorithm
detection: - compare_timestamps - check_field_hashes - verify_relationships - analyze_change_patterns analysis: - identify_conflict_type - determine_severity - suggest_resolution - calculate_impact
Resolution Rules Configuration
{
"rules": {
"title": {
"strategy": "latest-wins",
"priority": "linear"
},
"description": {
"strategy": "merge",
"preserve_sections": ["## Requirements", "## Acceptance Criteria"]
},
"status": {
"strategy": "smart",
"mapping": {
"github_closed": "linear_completed",
"github_open": "linear_in_progress"
}
},
"assignee": {
"strategy": "manual",
"notify": true
}
},
"global": {
"backup_before_resolve": true,
"log_level": "detailed"
}
}Merge Algorithm
1. Identify non-conflicting changes 2. Apply field-specific merge strategies 3. Preserve formatting and structure 4. Validate merged result 5. Create resolution record
Conflict Prevention
- Implement field locking
- Use optimistic concurrency
- Add sync timestamps
- Enable change notifications
Reporting Features
- Conflict frequency analysis
- Resolution success rates
- Common conflict patterns
- Team conflict hotspots
- Time-based trends
Integration Workflow
1. Run after sync operations 2. Process conflict queue 3. Apply resolutions 4. Update reference manager 5. Notify affected users
Required MCP Servers
- mcp-server-github
- mcp-server-linear
Error Handling
- Transaction-based resolution
- Automatic rollback on failure
- Detailed conflict logs
- Resolution history tracking
Best Practices
- Review conflict patterns monthly
- Adjust resolution rules based on patterns
- Train team on conflict prevention
- Monitor resolution success rates
- Keep manual intervention minimal
Notes
This command maintains a conflict history database to improve resolution accuracy over time. Machine learning capabilities can be enabled for advanced pattern recognition.
A comprehensive development toolkit designed following Anthropic's Claude Code Best Practices for AI-assisted software development.
Repo: qdhenry/Claude-Command-Suite
Other commands on claude-command-suite.
- /boundary-bbcr-fallback
Execute automatic BBCR (Collapse-Rebirth Correction) when knowledge boundaries are exceeded or reasoning fails.
Open command - /boundary-detect
Analyze semantic position relative to knowledge boundaries to prevent hallucination and identify uncertainty zones.
Open command - /boundary-heatmap
Generate a visual heatmap of knowledge boundaries showing safe zones, risk areas, and semantic coverage.
Open command - /boundary-risk-assess
Evaluate the current risk level and provide detailed analysis of potential hallucination or reasoning failure.
Open command - /boundary-safe-bridge
Find and construct semantic bridges to safely navigate from current position to target concept without crossing dangerous boundaries.
Open command - /optimize-prompt
Takes an input prompt and returns ONLY a token-optimized version that preserves meaning while minimizing token count. Based on LLM tokenization principles: common words tokenize more efficiently, unusual words break into more tokens, and conciseness reduces cost.
Open command

