mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
When --track installed a repo whose SKILL.md sits at the repository root (non-spec layout), the install reported success but: - .metadata.json gained no entry (cross-machine recovery via metadata broken) - status --json tracked_repos did not list the repo Two coupled bugs caused this: 1. cmdInstall gated ReconcileGlobalSkills on len(InstalledSkills) > 0. Tracked repos with no discoverable nested skills produced an empty InstalledSkills slice, so reconcile never ran and never detected the _<name>/.git directory to write a tracked entry. 2. extractTrackedRepos derived repo names from discovered skills, so repos with zero discoverable skills were silently dropped from status and list output. Fix both by: - Making the post-install reconcile unconditional on success. Reconcile is idempotent and cheap; gating it on InstalledSkills > 0 created a path where successful installs left metadata stale. - Switching extractTrackedRepos to install.GetTrackedRepos (a directory walk for _-prefixed git repos), the same source-of-truth used by check and update. Shared across status, status_project, list, and list_project. Closes #163 Co-authored-by: Claude <noreply@anthropic.com>