The market lists ui-ux-pro-max from nextlevelbuilder/ui-ux-pro-max-skill,
whose SKILL.md is only at .claude/skills/ui-ux-pro-max. candidates()
skipped every hidden folder, so the install said "has no skill
ui-ux-pro-max any more".
candidates() now looks into a hidden folder only for its skills folder
(.claude/skills, .agents/skills, .codex/skills ...), the same agent
folders the skills CLI behind skills.sh reads. A skill found there that
the repository also has outside hidden folders (that repo keeps brand,
design, slides... in both .claude/skills and cli/assets/skills) is listed
once, as the one outside, as the skills CLI does by name. skillDirsIn,
which the new-skills check reads from GitHub's tree, follows the same
rule, so the two paths agree. A hidden folder that isn't an agent's
skills folder (skills/.hidden, .claude-plugin/x) is still skipped.
TestSkillsFromATooBigRepository (#1941) expected hindsight's own
.claude/skills/ship-it to be left out; it is listed now, as the skills
CLI lists it.
Run:
- TestMarketInstallsASkillKeptInClaudesFolder, with the repository's
real paths. On the old code it fails with "has no skill ui-ux-pro-max
any more". Turning off the de-duplication and the skills-folder rule by
hand each turns it red.
- A throwaway test (not committed) installing ui-ux-pro-max from the
real GitHub repository in a sandbox HOME: installed, candidates are the
six cli/assets skills plus .claude/skills/ui-ux-pro-max.
- go test ./internal/library (nogui), gofmt -l, go vet for darwin, linux
and windows.
Not tried: the GUI Market page itself.