ywxzm03 commented on PR #933:
URL: https://github.com/apache/dubbo-go-pixiu/pull/933#issuecomment-4666426663

   关于 OpenCode 没有单独写 skills 插件,是因为OpenCode 的 plugin 机制并不支持注册 skill。
   
   按 OpenCode 官方文档:Plugin的契约是「导出一个返回 *hooks* 对象的函数」,可订阅的事件只有 
`tool.execute.*`、`file.*`、`session.*`、`permission.*` 等;列表里没有任何用于注册 skill 
的钩子。也就是说 plugin 是用来挂行为钩子的,不是用来分发 skill 的。(https://opencode.ai/docs/plugins/)
   
   因此对 OpenCode 而言,正确做法就是直接用 `.agents/skills/` 目录(本仓库已是该结构),OpenCode 
在仓库内启动即自动发现,无需也无法用 plugin 承载。强行写一个 plugin 反而是个不会生效的空壳。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to