"Bring in all" links a skill of the skills CLI's folder into the library.
After `npx skills remove` its folder is gone: the library entry stayed
listed and every sync linked each ticked agent to the dead link.
markDangling (skill_dangling.go, each read and sync) finds a linked-in skill
whose folder is absent or has no SKILL.md, marks it Gone (the page already
offers to take such a skill out; RemoveGoneSkills only removes the link) and
sets Skill.Dangling, which gives() reads, so no agent, project or shared
folder is given it and magpie's own links to it are taken away. It is cleared
when the source returns. A stat error other than not-exist is unknown and keeps
the entry. Nothing the user owns is deleted. The library's own folders are
never judged.
Run (sandbox HOME, tests only):
- New TestLinkedInSkillWhoseSourceIsGone and TestSourceGoneKinds: red on the
old code (no Gone, agents keep the link), green after (mica-run).
- Windows junction case TestJunctionToARemovedFolderIsGone, plus the two
above, via win-run on xiaomi-gpu: ok.
- gofmt -l clean; go vet -tags nogui ./internal/library for GOOS=linux and
windows: clean.
- Full `go test -tags nogui -timeout 45m ./...` on mote at this head was
still running when pushed (the first 39 packages ok, no red); shipped
on the coordinator's word with these targeted runs. No reds named.
Not tried: a real `npx skills remove`, the GUI (no GUI files changed, so the
GUI suite was not run).