feat: add OpenCode native plugin support - #193
Conversation
feat: add OpenCode native plugin support
|
Added this on my fork figured if anyone is interested. |
|
Thanks for building this, @myphsto, and apologies for the wait. We're declining it — but the reason is policy, not quality, and it's worth being specific so the decision is reviewable. The rule. AGENTS.md treats Claude plugin marketplace metadata as the single canonical source, and explicitly bans per-runtime sidecars ( What this PR asks for. A What would change our minds:
If (1) is achievable upstream, that's the version we'd take, and I'd be glad to look at it. As a note for anyone finding this later: the sidecar ban is now enforced in CI rather than left to review, and |
Summary
Add native OpenCode plugin support via
.opencode/plugins/trailofbits-skills.jswhich automatically discovers skills fromplugins/*/skills/directories.Changes
.opencode/plugins/trailofbits-skills.js— ES module plugin that auto-discovers allplugins/*/skills/directories and injects them into OpenCode's configpackage.json— root-level{"type": "module"}required by Node.js v26 for ES module support.opencode/.gitignore— ignoresnode_modules/.github/scripts/check_opencode_loadability.py— end-to-end CI validation: runsopencode debug skill, verifies all skills load with valid frontmatter.github/workflows/validate.yml— installs OpenCode CLI, runs loadability checkREADME.md— adds OpenCode installation sectionAGENTS.md— updates cross-platform compatibility section, adds OpenCode to PR checklistTesting
opencode debug skillvalidation passesNotes
.opencode/directory is inert for all other platforms