Repository navigation
Accept a root SKILL.md repo and skip duplicate names under --all - #298
Conversation
|
Sorry @yourconscience, you've used your own review budget of 250,000 diff characters for the last 7 days. You can request another review in 1 day and 4 hours by commenting |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Reviewer's GuideData structuresRepresent root-repository skills explicitly and derive their paths and names, while computing source directories so only fully selected folders are tracked wholesale.
ImplementationDiscover root-level skills as the repository skill and omit a checkout’s top-level .git when copying its contents.
Use root-aware discovery and tree comparison when auditing or checking materialized external skills.
Select unique names for --all, report duplicate names while preserving the no-skills-left error, and compare canonical targets using each skill’s actual path.
DocumentationDocument how --all handles duplicate skill names and how root-SKILL.md repositories are named, recorded, and materialized.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
What and why
tackroom skill sources addrefused two common repository layouts.A repo that is itself one skill. With
SKILL.mdat the repository root,addfailed withno skills (directories with SKILL.md) found. It is now added as one skill, recorded asskill_dirs: [.], which already meant "this directory is the skill" at sync time. The skill is named byname:in that file, else by the source name. The materialized copy leaves out the repository's.git.A repo with one skill name in two folders.
add --allfailed withskill "review" exists in both a and band added nothing, which made--allunusable on repos shaped like Anthropic's plugin marketplace.--allnow adds every skill whose name is unique and prints one line per skipped name:It exits 0 when at least one skill was added, and keeps the old error only when nothing can be.
--skills reviewon a duplicated name still fails. Only the folders whose skills were all added are recorded, so a laterskill updatenever meets the duplicate; a folder that holds a skipped skill beside others is recorded skill by skill.Decisions worth a look:
SKILL.mdand skill folders is treated as one skill, the root. Before, it was refused entirely. Its folders stay reachable by path (add owner/repo/folder), which used to writeskill_dirs: [.]and now records the folder.skill_dirs: [.]on a rootSKILL.mdchanges its skill name if the frontmattername:differs from the source name.Not fixed, noticed in passing:
add --all owner/repo/skills/reviewrecords the parent folder with no allowlist, so sync takes sibling skills too. Not reproduced.The 3.0 release notes come with the PR that collects the notes for these fixes.
How I checked it
go build,go vet,go test ./...pass; lint reports 0 issues; the docs site builds with no warnings. No test was deleted.With a binary from this branch in a throwaway home: the root-skill repo adds as
1 skill pinned, the duplicate repo adds one skill and prints the skipped line,tackroom.yamlrecordsskill_dirs: [.]andskill_dirs: [c], andsync,doctorandstatuspass afterwards (2 canonical copies match lock).Also run by the worker:
skill updateafter a new upstream commit, removing the source, a root-skill repo with a risky script (stillnot pinned (blocked)), and a fresh root-skill repo from a loopback git server (still in cooldown).Not run: the interactive picker, and
add owner/repo/folderagainst GitHub.go test ./...andgo vet ./...passI can explain this change without an AI tool
Summary by Sourcery
Support root-level skills and make --all resilient to duplicate skill names across source folders.
New Features:
Bug Fixes:
Enhancements:
Documentation: