Skip to content

RFC: OpenCode plugin for automated installation of skills and MCP's #124

@jyrihogman

Description

@jyrihogman

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);
      }
      ...
  • Register possible MCP

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions