Skip to content

sync keeps orphaned symlinks to "external location" after data migration even with --force #28

Closed

Description

@leeeezx

Environment

  • OS: win32 (Windows)
  • Skillshare CLI Version: 0.13.0
  • Skill Version: 0.11.7

Description

After the recent data migration from ~/.config/skillshare to AppData/Roaming/skillshare, I uninstalled a skill named skill-creator-claude. However, when running skillshare sync, I get the following warning for multiple targets:

!   skill-creator-claude: symlink to external location (C:\Users\25977\.config\skillshare\skills\skill-creator-claude), kept

It seems the symlinks in the target directories (e.g., .cursor/skills/skill-creator-claude, .gemini/skills/skill-creator-claude, etc.) still point to the old .config path, which is now considered an "external location".

Steps to Reproduce

  1. Have skills installed in the old ~/.config/skillshare directory.
  2. Upgrade/Migrate to the new AppData/Roaming/skillshare path.
  3. Uninstall a skill (e.g., skillshare uninstall skill-creator-claude).
  4. Run skillshare sync.

Expected Behavior

skillshare sync should identify that the skill has been uninstalled from the source and prune the corresponding symlinks in the target directories, even if they point to the old path.

Actual Behavior

The symlinks are "kept" because they point to an external location. Even running skillshare sync --force or skillshare sync -g --force does not resolve the issue or prune these orphaned links.

Logs / Status

skillshare doctor output:

Checking targets
─────────────────────────────────────────
✓ antigravity [merge]: merged (8 shared, 1 local)
✓ codex [merge]: merged (7 shared, 1 local)
✓ cursor [merge]: merged (8 shared, 1 local)
✓ gemini [merge]: merged (7 shared, 1 local)
✓ trae [merge]: merged (8 shared, 1 local)

skillshare sync output:

!   skill-creator-claude: symlink to external location (C:\Users\25977\.config\skillshare\skills\skill-creator-claude), kept

Is there a way to force prune these orphaned "external" symlinks without manually deleting them from every target directory?

Activity

  1. leeeezx commented on Feb 16, 2026

    @leeeezx
    Author

    maybe because i run upgrade first, then run uninstall, sync, the location already change

  2. leeeezx commented on Feb 16, 2026

    @leeeezx
    Author

    It can be fixed by manually delete every folder

  3. runkids commented on Feb 16, 2026

    @runkids
    Owner

    Thank you so much for reporting this — your finding is extremely valuable! 🙏

    You're right that after the data migration, symlinks in target directories still point to the old ~/.config/skillshare/skills/ path. Since sync treats those as "external location" symlinks, it preserves them instead of pruning — even with --force.

    As you mentioned, uninstalling and reinstalling the skill does resolve the issue since it recreates the symlinks with the correct new path. That's a valid workaround for now.

    That said, I still want to make the upgrade experience seamless so users don't have to manually fix things like this. I'll work on a proper fix to handle orphaned symlinks from old paths during migration.

    Thanks again for the detailed report and reproduction steps — this helps a lot!

  4. self-assigned this
    on Feb 16, 2026
  5. added
    bug
    on Feb 16, 2026
  6. runkids commented on Feb 16, 2026

    @runkids
    Owner

    This has been fixed in v0.13.1. After upgrading, skillshare sync will automatically prune broken external symlinks from old paths. Thanks again for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions