Commit Graph
4 Commits
Author SHA1 Message Date
Willie d2e0065553 feat(search): add relevance scoring, parallel enrichment, and repo-scoped search
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
2026-02-09 22:18:05 +08:00
Willie 0c49860d63 feat: add project mode labels, privacy-first messaging, and UI polish
- Add (project) labels to status, sync, collect, target, and uninstall
  headers for clear mode distinction (matching list/target list pattern)
- Add ui.WithModeLabel() helper for shared functions that run in both modes
- Update uninstall confirmation prompt: "from the project?" in project mode
- Add "Privacy-first" to README Why section and website homepage
- Replace "Unified Source" card with "Privacy-First" card on website
- Unify Quick Actions card heights with h-full in DashboardPage
- Add frontend rebuild note to Docker sandbox docs
2026-02-09 21:08:03 +08:00
Willie e4565005b5 refactor: reduce cyclomatic complexity across CLI commands
Extract options structs and helper functions to reduce complexity:
- cmdInit: 49 → 5 (extract parseInitArgs, validateInitOptions, etc.)
- cmdUninstall: 39 → 12 (extract parseUninstallArgs, resolveUninstallTarget)
- cmdList: 33 → 12 (extract parseListArgs, buildSkillEntries)
- cmdInstall: 28 → 6 (extract parseInstallArgs, dispatchInstall)
- search.Search: 29 → ~5 (extract fetchCodeSearchResults, processSearchItems)
- main: 24 → 9 (command map pattern replaces switch)
- targetRemove: 21 → 7 (extract parseTargetRemoveArgs, backupTargets)
- updateAllTrackedRepos: 20 → ~10 (extract updateTrackedRepoQuick)
- cmdPush: 19 → 10 (extract parsePushArgs, checkGitRepo)

Overall: 19 functions > 15 reduced to 11 (42% improvement)
2026-01-31 19:53:28 +08:00
Willie Hung 1aab744b04 feat(search): add skillshare search command
- Search GitHub for skills containing SKILL.md files
- Sort results by repository stars (most popular first)
- Interactive selector with "Search again" option
- Auto-detect gh CLI token for authentication
- Filter out forked repositories
- Support --json, --list, --limit flags
2026-01-31 15:29:49 +08:00