agent-browser-automatiโฆ
Automate browser interactions for development testing using Puppeteer MCP
Orchestrate multi-editor configuration synchronization with intelligent conflict resolution and rollback capabilities
How it fires
How this command gets triggered: by you, by Claude, or both.
/syncContext preview
What this command does when you run it.
Orchestrate multi-editor configuration synchronization with intelligent conflict resolution and rollback capabilities
allowed-tools: Task, Read, Write, Edit, MultiEdit, Bash(fd:*), Bash(rg:*), Bash(jq:*), Bash(eza:*), Bash(bat:*), Bash(gdate:*), Bash(deno:*) name: "Sync" description: "Orchestrate multi-editor configuration synchronization with intelligent conflict resolution and rollback capabilities" author: "wcygan" tags: ["workflow","manage"] version: "1.0.0" created_at: "2025-07-14T00:00:00Z" updated_at: "2025-07-14T00:00:00Z"
STEP 1: Initialize synchronization session and backup existing configurations
# Initialize sync session state
echo '{
"sessionId": "'$SESSION_ID'",
"targetEditors": "'$ARGUMENTS'",
"backupTimestamp": "'$(gdate -Iseconds 2>/dev/null || date -Iseconds)'",
"conflictsDetected": [],
"syncStrategy": "intelligent-merge"
}' > /tmp/sync-session-$SESSION_ID.json
# Create configuration backup
mkdir -p /tmp/editor-config-backup-$SESSION_IDSTEP 2: Comprehensive configuration analysis with parallel sub-agent coordination
TRY:
IF multiple_editors_detected AND complex_keybinding_conflicts:
LAUNCH parallel sub-agents for comprehensive configuration analysis:
**Sub-Agent Coordination:**
# Each agent reports findings to session state echo "Parallel configuration analysis agents launched..." echo "Results will be aggregated for intelligent synchronization"
ELSE:
EXECUTE streamlined single-editor or simple synchronization:
# Simple synchronization workflow echo "๐ Executing streamlined configuration sync..."
STEP 3: Configuration file discovery and validation
**Systematic Configuration Discovery:**
# Discover all editor configuration files echo "๐ Editor Configuration Discovery:" echo "Cursor configs:" fd "(keybindings|settings)\.json" cursor/ -d 3 | head -5 echo "VSCode configs:" fd "(keybindings|settings)\.json" vscode/ -d 3 | head -5 echo "Zed configs:" fd "(keymap|settings)\.json" zed/ -d 3 | head -5 # Validate JSON syntax echo "๐ Configuration Validation:" for config in $(fd "\.(json|jsonc)$" . -d 3); do jq . "$config" >/dev/null 2>&1 && echo "โ $config" || echo "โ $config (invalid JSON)" done
**Configuration Backup Strategy:**
# Create timestamped backups
BACKUP_DIR="/tmp/editor-config-backup-$SESSION_ID"
mkdir -p "$BACKUP_DIR"/{cursor,vscode,zed}
# Backup with verification
FOR EACH editor_config IN cursor/ vscode/ zed/:
cp -r "$editor_config" "$BACKUP_DIR/"
echo "๐ฆ Backed up $editor_config"
doneSTEP 4: Intelligent keybinding analysis and conflict resolution
**Pattern Recognition and Normalization:**
# Extract and normalize keybinding patterns echo "๐ Keybinding Pattern Analysis:" # Common keybinding extraction rg '"key":\s*"([^"]+)".*"command":\s*"([^"]+)"' cursor/ vscode/ zed/ --only-matching --no-filename | sort | uniq -c | sort -nr # Platform-specific pattern detection rg '(cmd|ctrl|alt|shift)\+' cursor/ vscode/ zed/ --only-matching | sort | uniq -c # Command frequency analysis rg '"command":\s*"([^"]+)"' cursor/ vscode/ zed/ -o --no-filename | sort | uniq -c | sort -nr | head -20
**Conflict Detection Algorithm:**
# Generate conflict detection report echo "โ ๏ธ Conflict Detection Report:" # Same key, different commands across editors echo "Conflicting keybindings (same key, different commands):" # Implementation would compare keybinding mappings across editors # Missing keybindings in specific editors echo "Missing keybindings by editor:" # Implementation would identify gaps in coverage
STEP 5: Automated synchronization script generation
**Deno Synchronization Script Creation:**
// scripts/sync-editor-configs.ts
import { parse, stringify } from "@std/json";
import { walk } fromA lightweight (~46kB) and comprehensive CLI tool for managing Claude commands, configurations, and workflows.
Repo: kiliczsh/claude-cmd
Automate browser interactions for development testing using Puppeteer MCP
Prepare branches for merging across multiple worktrees and coordinate integration
Transform into accessibility expert for WCAG compliance and inclusive design
Transform into an API design specialist who creates well-structured, developer-friendly APIs
Transform into backend specialist for scalable API and system design
Cloud architect persona for designing scalable, secure cloud infrastructure using modern cloud-native technologies