opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[FEATURE]: Add Skill Configuration to Config Type

Open wch-abc opened this issue 11 months ago • 6 comments

Feature hasn't been suggested before.

  • [x] I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Request to add skill configuration support to the Config type, similar to existing agent, command, mcp, and plugin configurations. This would enable skill management through config hooks and provide better extensibility.

wch-abc avatar Dec 23 '25 05:12 wch-abc

Related discussion: This feature request follows a similar pattern to #4393 which requests configuration support for plugins. You might want to check that issue to understand the broader context of adding configuration support to different extensibility types in the Config type.

github-actions[bot] avatar Dec 23 '25 05:12 github-actions[bot]

+1 on this. This is the right approach.

Currently plugins can export tool, but not skill. The inconsistency is frustrating when you want to distribute a complete package (skill + supporting tools + hooks).

Related issues:

  • #6347 proposes a hook for registering config directories (workaround)
  • #8386 proposes a completely new Skill Registry system (overkill IMO)

Both of those would be unnecessary if we just add skill to the plugin return type:

export const MyPlugin: Plugin = async (ctx) => {
  return {
    skill: {
      "my-skill":  skill({ ... })
    },
  }
}

This keeps the plugin system as the single distribution mechanism for all OpenCode extensions, which is much cleaner than having separate systems for tools vs skills vs commands.

Any updates on this? Would love to see it prioritized.

kvnwolf avatar Jan 16 '26 21:01 kvnwolf

+1 on this. This is the right approach.

Currently plugins can export tool, but not skill. The inconsistency is frustrating when you want to distribute a complete package (skill + supporting tools + hooks).

Related issues:

Both of those would be unnecessary if we just add skill to the plugin return type:

export const MyPlugin: Plugin = async (ctx) => { return { skill: { "my-skill": skill({ ... }) }, } } This keeps the plugin system as the single distribution mechanism for all OpenCode extensions, which is much cleaner than having separate systems for tools vs skills vs commands.

Any updates on this? Would love to see it prioritized.

I Support!

super-unique-ai avatar Jan 17 '26 00:01 super-unique-ai

+1 on this. This is the right approach.

Currently plugins can export tool, but not skill. The inconsistency is frustrating when you want to distribute a complete package (skill + supporting tools + hooks).

Related issues:

Both of those would be unnecessary if we just add skill to the plugin return type:

export const MyPlugin: Plugin = async (ctx) => { return { skill: { "my-skill": skill({ ... }) }, } } This keeps the plugin system as the single distribution mechanism for all OpenCode extensions, which is much cleaner than having separate systems for tools vs skills vs commands.

Any updates on this? Would love to see it prioritized.

@thdxr, do you have any thoughts on this proposal?

kvnwolf avatar Jan 17 '26 00:01 kvnwolf

I've opened a PR that implements this: #9010

Instead of a programmatic skill() builder, the implementation uses an array of paths (with glob support):

export const MyPlugin: Plugin = async () => ({
  skill: ['./skills/pdf', './skills/docs/*']
})

This approach is simpler and lets plugins bundle existing SKILL.md files without requiring changes to the skill format. Paths are relative to the plugin file.

Would love feedback from the community!

kvnwolf avatar Jan 17 '26 02:01 kvnwolf

To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

thdxr avatar Mar 25 '26 03:03 thdxr