feat(skills): add ClawHub registry catalog parser and loader

This commit is contained in:
William Valentin
2026-02-16 00:10:41 -08:00
parent 4c6d1d724d
commit 4391c6e5b3
5 changed files with 298 additions and 13 deletions
@@ -27,22 +27,22 @@
Checklist:
- [ ] Add registry types + parser module (`src/skills/registrySource.ts` or equivalent).
- [ ] Support one source shape:
- [ ] local JSON file path (for deterministic tests and offline use)
- [ ] optional HTTPS URL source (fetch + timeout + parse)
- [ ] Validate required fields for each skill entry:
- [ ] `id`, `name`, `version`, `source`, `summary`
- [ ] optional trust metadata (`publisher`, `homepage`, `sha256`)
- [ ] Reject malformed registry entries with actionable errors.
- [x] Add registry types + parser module (`src/skills/registrySource.ts` or equivalent).
- [x] Support one source shape:
- [x] local JSON file path (for deterministic tests and offline use)
- [x] optional HTTPS URL source (fetch + timeout + parse)
- [x] Validate required fields for each skill entry:
- [x] `id`, `name`, `version`, `source`, `summary`
- [x] optional trust metadata (`publisher`, `homepage`, `sha256`)
- [x] Reject malformed registry entries with actionable errors.
Acceptance:
- `flynn skills` internals can load a normalized registry catalog.
- [x] `flynn skills` internals can load a normalized registry catalog.
Tests:
- [ ] Unit tests for parser/validation edge cases.
- [x] Unit tests for parser/validation edge cases.
---