Files
magpie/internal
yetone 6b3ee5a03b library: a repository that keeps its skills again under a plugin's folder lists each once (碳碳双键 on Discord)
tw93/waza keeps its eight skills in skills/ and again in
plugins/waza/skills/. Some of the plugin copies lag the top ones.
Typing "tw93/waza" in Library → Skills listed "16 skills", each one
twice. unhiddenFirst only folded a copy in a hidden folder (.claude/
skills, #1964) into the unhidden one; two unhidden copies both stayed.

It now keeps one copy of each skill. It prefers the copy outside hidden
folders, then the one fewest folders deep, then the first. That covers
both candidates (the probe and install) and skillDirsIn (the new-skill
check).

Run:
- TestRepoWithAPluginCopyListsEachSkillOnce uses waza's real paths.
  Against the old skills.go it is red (9 lines: 16 candidates, the
  plugin's descriptions, 16 tree dirs); with the fix it is green.
  TestMarketInstallsASkillKeptInClaudesFolder (#1964) is green too.
- Real use: ProbeSkills("tw93/waza") against GitHub in a sandbox HOME
  lists skills/check … skills/write, 8 in all, each once.
- gofmt -l clean; go vet -tags nogui ./... clean for darwin, linux and
  windows.
- Full suite: go test -timeout 45m ./... at load average ~115 (other
  sessions' suites). 63 packages ok. internal/agent and internal/gateway
  timed out at 45m with no test hung (TestOpenCodeAndCrushKeep… and
  TestStrictAffinity… had each run 0s), and go list -deps shows that
  neither imports internal/library. internal/gui's
  TestPanelJoinsFullScreenSpaces is #2450, red on main already.
2026-10-16 15:35:20 +08:00
..
…
…
…