[PR #6811] Add agent, command, and skill hooks for direct plugin registration #12123

Closed
opened 2026-02-16 18:17:03 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6811

State: closed
Merged: No


While trying to create an inclusive plugin that could contain a related set of items, I kept having to take hackish routes to get skills and commands populated.

This PR seeks to remedy that by adding hooks such that a plugin could be capable of shipping Agent, Command, Skill, and MCP definitions.

I've created and tested against an example plugin https://github.com/ryanrhughes/opencode-plugin-example (keep in mind the devDependency is using a local ref for @opencode-ai/plugin.

Fixes: #6347 & #6013

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6811 **State:** closed **Merged:** No --- While trying to create an inclusive plugin that could contain a related set of items, I kept having to take hackish routes to get skills and commands populated. This PR seeks to remedy that by adding hooks such that a plugin could be capable of shipping Agent, Command, Skill, and MCP definitions. I've created and tested against an example plugin https://github.com/ryanrhughes/opencode-plugin-example (keep in mind the devDependency is using a local ref for `@opencode-ai/plugin`. Fixes: #6347 & #6013
yindo added the pull-request label 2026-02-16 18:17:03 -05:00
yindo closed this issue 2026-02-16 18:17:03 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12123