mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
Search results were ranked only by GitHub stars, causing unrelated high-star repos to outrank dedicated skill repos. Additionally, owner/repo queries (e.g., "vercel-labs/skills") were treated as plain text search instead of repo-scoped search, returning completely wrong results. Changes: - Add multi-signal relevance scoring (name 0.45, description 0.25, stars 0.30) with log10-normalized star counts - Detect owner/repo[/subdir] queries and use GitHub `repo:` qualifier - Parallelize star and description enrichment (WaitGroup + semaphore, cap 10) — reduces wall time from 3-6s to ~200-600ms - Extract both name and description from SKILL.md frontmatter - Add Score field with json:"-" tag (hidden from CLI --json and API) - Remove overly generous ContainsAny partial matching in name scoring