Is this related to an existing feature request or issue?
No response
Summary
Create a TypeScript file following OpenCode plugin structure for the plugins, starting with aws-serverless plugin. Loading the bundled skills and registering possible MCP's.
Use case
Simplifies taking for example the aws-serverless plugin into use.
Proposal
Create an .opencode-plugin subfolder for the specific agent plugin. Add an index.js file which appends the plugins skills to the opencode config's skill paths, so the skills are usable and do not require a separate installation.
The functionality for the index.js would be minimal:
- Prepackage the plugins skills in the bundle
- Resolve the skill paths and load them
config: async (config) => {
...
if (!config.skills.paths.includes(skillsDir)) {
config.skills.paths.push(skillsDir);
}
...
Package as an npm package which can be referred as an OpenCode plugin in opencode.json:
"plugin": [
"opencode-aws-serverless"
]
Out of scope
GHA workflow for publishing packages
Potential challenges
GHA workflows for publishing the plugins would be required before users could use the plugin dfirectly.
Dependencies and Integrations
No response
Alternative solutions
Is this related to an existing feature request or issue?
No response
Summary
Create a TypeScript file following OpenCode plugin structure for the plugins, starting with aws-serverless plugin. Loading the bundled skills and registering possible MCP's.
Use case
Simplifies taking for example the aws-serverless plugin into use.
Proposal
Create an
.opencode-pluginsubfolder for the specific agent plugin. Add anindex.jsfile which appends the plugins skills to the opencode config's skill paths, so the skills are usable and do not require a separate installation.The functionality for the
index.jswould be minimal:Package as an npm package which can be referred as an OpenCode plugin in
opencode.json:Out of scope
GHA workflow for publishing packages
Potential challenges
GHA workflows for publishing the plugins would be required before users could use the plugin dfirectly.
Dependencies and Integrations
No response
Alternative solutions