Web UI: Skill preview modal doesn't fetch SKILL.md content for non-github.com sources
Problem
The skill preview modal in the web UI always fetches SKILL.md via api.github.com, even when the skill comes from a GHE or other non-github.com hub source. This means clicking a skill from an SSH-registered hub shows only the basic metadata from the hub index (name, description, tags) rather than the full rendered SKILL.md content.
The preview handler (handler_preview.go) parses the source as owner/repo[/path] and constructs a hardcoded api.github.com URL:
https://api.github.com/repos/{owner}/{repo}/contents/{path}/SKILL.md
For GHE-sourced skills this 404s silently and the modal falls back to the hub index fields only. The result is that previewing any skill from a non-github.com hub shows a minimal card with just name, description, and tags — the full SKILL.md content is never rendered.
Observed behaviour
- Hub search results display correctly (name, description, tags from index)
- Clicking a skill from a github.com source shows full rendered SKILL.md content
- Clicking a skill from a GHE source shows only the index metadata — no markdown body
Expected behaviour
The preview modal should render the full SKILL.md content regardless of the hosting platform, or at minimum degrade gracefully with a clear indication that preview isn't available for this source type.
Fixed in v0.20.6. The web UI preview no longer hardcodes api.github.com — it now reads SKILL.md from the source's own host: github.com and GitHub Enterprise use that host's Contents API, and other platforms (GitLab, Bitbucket, SSH, …) are read via a shallow clone using your existing git credentials. When a source genuinely can't be fetched, the modal shows a clear notice that only index metadata is available.
Done some extra testing in this space and found an issue that initially seemed related but is actually separate — raised as #196. The v0.20.6 fix here works as intended 👍