Implemented GitHub skill webpage import support across the existing flow. The backend now accepts github.com links, resolves both folder pages and SKILL.md file pages, imports them through the same GitHub-backed path used for skills.sh, and returns 400 for malformed/non-skill GitHub links instead of treating them as unsupported. The main logic is in skill.go, and CLI help text was updated in cmd_skill.go.
The Skills UI now recognizes GitHub URLs in Add Skill -> Import, shows GitHub as a supported source, and switches the loading copy to Importing from GitHub... when appropriate. That change is in skills-page.tsx. Imported GitHub skills still end up as normal skill and skill_file records, so agent assignment and runtime injection remain unchanged; no daemon/runtime code needed changes.
Verification:
- Backend focused tests passed in
server/internal/handler: GitHub source detection, tree/blob URL parsing, slash-containing refs, GitHub import, and skills.sh regression coverage in skill_test.go.
- Frontend focused Vitest passed for the new GitHub detection/loading UX in skills-page.test.tsx.
Supported GitHub URL shapes now are:
https://github.com/{owner}/{repo}/tree/{ref}/{skill-dir}
https://github.com/{owner}/{repo}/blob/{ref}/{skill-dir}/SKILL.md
I did not run a live end-to-end import against GitHub itself; validation was via focused local tests, and the downstream agent/runtime usage path is unchanged by design.