feat: add OpenCode native plugin support#193
Open
myphsto wants to merge 3 commits into
Open
Conversation
feat: add OpenCode native plugin support
Author
|
Added this on my fork figured if anyone is interested. |
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.
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