feat: extensions catalog — skills & plugins marketplace from index sources (N2)#45
Merged
Conversation
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
RemoveSource only rejected the bundled source, so removing another built-in default (agentskills.io, openclaw/agent-skills) dropped it from sources.yaml and reported success — but LoadSources re-seeds DefaultSources(), so the "removed" default silently reappeared enabled on the next load. Reject any built-in default label (set built from DefaultSources(), single source of truth) before any write, so a rejected remove never rewrites sources.yaml. disable remains the supported way to turn a built-in off. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…rvestPack) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extensions catalog — a skills + plugins marketplace (N2)
Builds on the import engine (#44). Adds a GUI-free
catalogpackage + CLI so nib can discover and install skills and plugins from index sources — the browse/search/marketplace layer.What's new
catalogpackage — kind-taggedMeta(skill|plugin) parsed from an agentskills.io-shapedindex.json; aSourcemodel withDetectSourceKind(URL →index/wellknownhost /githubrepo).catalog.Client— injectable HTTP + GitHub endpoints; fetches per source kind: a direct index URL, a bare host's/.well-known/skills/index.json, or a GitHub repo index-first with a tree-crawl fallback (synthesizes metas fromSKILL.md/nib-plugin.yamldirs, with subtree pruning to matchHarvestPack).Merge— fetches enabled sources concurrently (race-free), stamps provenance, unions + dedupes by(kind, name, source), deterministic order; a per-source failure is non-fatal.Install— routes a catalog entry by kind (git sub-path clone or zip download → N1InstallDir), recording the real source as provenance, landing DISABLED.sources.yaml;DefaultSources()seeds agentskills.io, openclaw/agent-skills, and ago:embedbundled starter index (always-on, offline-safe). Built-in sources can be disabled but not removed.nib skill|plugin browse,search <query>,source <list|add|enable|disable|remove>, andinstall <catalog-name>(a strict fallback: existing git/local/zip/url/--linkforms are unchanged; only an unmatched bare name resolves against the catalog).Invariants / safety
Client; tests usehttptestand a stubbedvcs.Clone.Mergeis-raceclean; bundled/built-in source protections are enforced in depth and tested.Tests
Full module suite green (
go build/vet/test ./...,-race ./catalog/, gofmt clean).Known follow-ups (tracked, non-blocking)
Host-based source labels can collide on the same host; a transient 5xx during GitHub index probing is treated like a 404 (falls to crawl);
.claude-plugin/plugin.jsonisn't crawled yet; truncated GitHub trees yield a partial catalog silently.Next
This completes the nib engine (import + catalog). Downstream: Dante Desktop UI (import wizard, guided authoring, catalog Browse) over this API.
Built via subagent-driven development (implementer + independent spec/quality review per task, then a whole-branch review; the review caught and fixed the crawl subtree-prune gap).
🤖 Generated with Claude Code