Repository navigation
OpenCode: HTTP skills catalog for checkout-less installs - #238
Merged
Merged
Conversation
OpenCode's skills config accepts local dirs or an HTTP catalog — no git spec — so machines without an agent-toolkit checkout had no way to load the OpenCode skills. skills-catalog/ is the repo-hosted answer, served straight from raw.githubusercontent.com/master. - utils/skills-catalog.py generates the spec layout (index.json with content-hash versions + <skill>/<files> tree) from the two OpenCode skill dirs; --check mode for CI, mirroring sync.sh's drift culture. Hidden dirs/node_modules skipped; exec bits irrelevant since every skill invokes scripts via 'bash scripts/...'. - validate-opencode.sh gains check 8 (catalog freshness; self-scoping so synthetic fixture trees skip it). - tests/opencode/test-skills-catalog.sh: 18 tests — generate, clean check, drift in all four directions (tampered/missing/stray/source change), version bumping, new-skill pickup, exclusion rules, and byte-identity of the committed catalog against its sources. - READMEs document the no-checkout install: plugins via github:...::path: specs (live-verified against opencode 2.2.6) and skills via the catalog URL.
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.
Follow-up to #237's install story. Plugins already install from GitHub (
github:St0nefish/agent-toolkit#master::path:plugins-opencode/<name>— live-verified against 2.2.6), but OpenCode'sskillsconfig accepts only local dirs or HTTP catalogs, so machines without a checkout couldn't load the skills. This adds the repo-hosted catalog.What ships
utils/skills-catalog.py— generatesskills-catalog/in the spec layout (index.json+<skill>/<files>), versions = content hashes so OpenCode's cache refreshes on any skill edit.--checkmode mirrorssync.sh's drift culture. Hidden dirs /node_modulesskipped; exec bits are irrelevant (all skills invokebash scripts/...).skills-catalog/— the committed render: 7 skills, 21 files, byte-identical copies.validate-opencode.shcheck 8 — catalog freshness gate in CI (self-scoping so synthetic fixture trees skip it).tests/opencode/test-skills-catalog.sh— 18 tests: generate, clean check, drift in all four directions (tampered / missing / stray / source-changed), version bumping, new-skill pickup, exclusion rules, committed-catalog byte-identity.https://raw.githubusercontent.com/St0nefish/agent-toolkit/master/skills-catalog/.Verification
validate-opencode33 checks, shell lint, CI-parity, rumdl all pass.~/.cache/opencode/npm/git-agent-toolkit-*, all commands register). Catalog URL fetch will be smoke-tested against master right after merge.