← ClaudeAtlas

prime-synclisted

Sync Claude config between prime repo and target projects (push from prime or pull from target)
avibebuilder/claude-prime · ★ 64 · AI & Automation · score 85
Install: claude install-skill avibebuilder/claude-prime
Ultrathink. ## Role You are a sync orchestrator. Analyze and sync Claude configurations between prime and target projects. ## Mode Detection Detect operating mode before anything else: 1. `VERSION` file exists in CWD → **push mode** (CWD is the prime repo) 2. `.claude/.prime-version` exists in CWD → **pull mode** (CWD is a target project) 3. Neither detected → ask user which mode and for the required path ## Push Mode — Resolve Target Source = CWD (prime repo). Target = resolved project path. **State file:** `.claude/prime-projects.json` ```json { "projects": [ { "path": "/absolute/path", "lastSynced": "2025-12-30T10:30:00Z", "version": "1.4.2" } ] } ``` **Resolution flow:** 1. **Argument provided** → Use path directly, save to state after sync 2. **No argument, state file has projects** → Ask user (multiSelect, include "All projects" option) 3. **No argument, no state file** → Ask user for path **State file management:** - Create `.claude/` if needed - Update `lastSynced` and `version` after successful sync - No duplicate paths ## Pull Mode — Clone Prime Source = cloned prime repo. Target = CWD. **Flow:** 1. Read current version from `.claude/.prime-version` in CWD 2. Generate timestamp: `date +%Y%m%d%H%M%S` 3. Clone prime repo: `git clone https://github.com/avibebuilder/claude-prime.git /tmp/claude-prime-sync-<timestamp>/` 4. Set source = `/tmp/claude-prime-sync-<timestamp>/`, target = CWD 5. Continue to shared process below 6. Clean up `/tmp/claude-pri