feat(skills): curated GitHub catalog redesign (#3016)

* feat(skills): remove ClawHub catalog integration

Drop the ClawHub registry as a skills catalog source across web server,
shared UI, VS Code, docs, and locales. The catalog now serves git-based
sources only: the curated Anthropic repo and user-defined repositories.
Also removes the now-unused adm-zip dependency.

* feat(skills): redesign catalog around curated GitHub repositories

Replace the single-source dropdown with a card grid of curated GitHub
repositories (Anthropic, OpenAI, Cursor pstack/skills, Matt Pocock) plus
user-defined sources. Source cards show skill counts, GitHub stars, and
last-updated time; a global search covers all loaded sources.

Server: curated sources gain GitHub repo metadata (stars, pushed_at)
fetched best-effort with a 3-hour in-memory and on-disk cache; scans
run through a concurrency-limited, deduplicated cache with 3-hour TTL
persisted across restarts. Refresh still bypasses the cache.

Shared UI: source cards, global search with clear button, per-skill
GitHub links, install/installed states. VS Code curated list updated
to match. All new copy translated across 12 locales.

* fix(skills): address catalog review findings

- GitHub metadata fetch timeout drops to 1.5s (under the catalog
  client's 3s deadline) and failed lookups cache briefly (5 min) so
  repeated catalog loads do not re-hit a failing API.
- Disk cache files are written with owner-only permissions (0o600);
  rename preserves the mode.
- loadSource deduplicates concurrent in-flight requests per source and
  the shared isLoadingSource flag now clears only when the last active
  source load finishes.
This commit is contained in:
Bohdan Triapitsyn
2026-08-20 01:40:10 +03:00
committed by GitHub
parent 90d8868bfc
commit 1ed3f1f575
45 changed files with 1143 additions and 1286 deletions
@@ -1825,21 +1825,18 @@ export const settingsDict = {
'settings.skills.catalog.installSkill.toast.installFailed': 'Nie udało się zainstalować umiejętności',
'settings.skills.catalog.installSkill.toast.installed': 'Umiejętność została zainstalowana',
'settings.skills.catalog.page.actions.addCatalog': 'Dodaj katalog',
'settings.skills.catalog.page.actions.loadMoreSkills': 'Załaduj więcej umiejętności',
'settings.skills.catalog.page.actions.refreshTitle': 'Odśwież',
'settings.skills.catalog.page.actions.removeCatalog': 'Usuń katalog',
'settings.skills.catalog.page.actions.removeCatalogTitle': 'Usuń katalog',
'settings.skills.catalog.page.badge.installed': 'zainstalowano ({scope})',
'settings.skills.catalog.page.badge.notInstallable': 'nie można zainstalować',
'settings.skills.catalog.page.badge.unknown': 'nieznane',
'settings.skills.catalog.page.byOwnerPrefix': 'autor:',
'settings.skills.catalog.page.empty.noSkillsDescription': 'Spróbuj innego wyszukiwania lub odśwież katalog',
'settings.skills.catalog.page.empty.noSkillsTitle': 'Nie znaleziono umiejętności',
'settings.skills.catalog.page.error.catalogTitle': 'Błąd katalogu',
'settings.skills.catalog.page.field.selectSourcePlaceholder': 'Wybierz źródło',
'settings.skills.catalog.page.foundCount': 'Znaleziono {count} umiejętności',
'settings.skills.catalog.page.loading.catalog': 'Ładowanie...',
'settings.skills.catalog.page.loading.more': 'Ładowanie...',
'settings.skills.catalog.page.loading.skills': 'Ładowanie umiejętności...',
'settings.skills.catalog.page.mode.external': 'Zewnętrzny',
'settings.skills.catalog.page.mode.manual': 'Ręczny',
@@ -1847,6 +1844,18 @@ export const settingsDict = {
'settings.skills.catalog.page.removeDialog.title': 'Usuń katalog',
'settings.skills.catalog.page.section.sourceRepository': 'Repozytorium źródłowe',
'settings.skills.catalog.page.title': 'Katalog umiejętności',
'settings.skills.catalog.page.subtitle': 'Instaluj gotowe umiejętności z kuratorowanych repozytoriów lub dodaj własne źródło.',
'settings.skills.catalog.page.section.sources': 'Źródła',
'settings.skills.catalog.page.searchAllPlaceholder': 'Szukaj umiejętności we wszystkich źródłach…',
'settings.skills.catalog.page.search.clear': 'Wyczyść wyszukiwanie',
'settings.skills.catalog.page.source.skillsCount': 'Umiejętności: {count}',
'settings.skills.catalog.page.source.stars': 'Gwiazdki: {count}',
'settings.skills.catalog.page.source.updated': 'Zaktualizowano {time}',
'settings.skills.catalog.page.source.addOwnTitle': 'Dodaj własne źródło',
'settings.skills.catalog.page.source.addOwnDescription': 'Dowolne repozytorium Git z umiejętnościami',
'settings.skills.catalog.page.source.viewRepo': 'Otwórz repozytorium na GitHubie',
'settings.skills.catalog.page.skill.viewOnGithub': 'Zobacz umiejętność na GitHubie',
'settings.skills.catalog.page.list.searchTitle': 'Wyniki wyszukiwania',
'settings.skills.catalog.shared.actions.install': 'Zainstaluj',
'settings.skills.catalog.shared.actions.installing': 'Instalowanie...',
'settings.skills.catalog.shared.actions.scan': 'Skanuj',