fix: auto-migrate customized skills to skills-local/ on sync #359

Merged
jason.woltje merged 1 commits from fix/cli-sync-issues into main 2026-04-03 02:11:04 +00:00
Owner

Summary

  • When mosaic sync detects dirty files in the skills repo, it now identifies which skills were edited, copies them to skills-local/ (which takes precedence during linking), then resets the repo clean so git pull always succeeds
  • Replaces the fragile stash/pop approach — no more merge conflicts or crash on dirty worktree
  • User edits are never lost; they live permanently in skills-local/

Test plan

  • Typecheck: 36/36 green
  • Lint: 20/20 green
  • Format: clean
  • Unit tests: 41/41 pass

🤖 Generated with Claude Code

## Summary - When `mosaic sync` detects dirty files in the skills repo, it now identifies which skills were edited, copies them to `skills-local/` (which takes precedence during linking), then resets the repo clean so `git pull` always succeeds - Replaces the fragile stash/pop approach — no more merge conflicts or crash on dirty worktree - User edits are never lost; they live permanently in `skills-local/` ## Test plan - [x] Typecheck: 36/36 green - [x] Lint: 20/20 green - [x] Format: clean - [x] Unit tests: 41/41 pass 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jason.woltje added 1 commit 2026-04-03 02:10:57 +00:00
fix: auto-migrate customized skills to skills-local/ on sync
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
ci/woodpecker/push/ci Pipeline failed
84cd96bb96
Replace fragile stash/pop approach with intelligent migration:
when mosaic sync detects dirty files in the skills repo, it
identifies which skills were edited, copies them to skills-local/
(which takes precedence during linking), then resets the repo clean
so git pull always succeeds. User edits are never lost.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jason.woltje merged commit a23c117ea4 into main 2026-04-03 02:11:04 +00:00
jason.woltje deleted branch fix/cli-sync-issues 2026-04-03 02:11:05 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#359