opencode plugin with skills setup - continuation of this blog https://mitzen.blogspot.com/2026/04/opencode-creating-plugin-and.html
In the previous post , we learned how to setup plugin so we can call it from opencode. In this post, we are going to add a skill - bragging skills - as I find it really important arsenal to have especially in an interview. So we only need to update our config object for opencode. Let's see an example of how to do it with skills config : async ( config : any ) => { config . skills = config . skills || {}; config . skills . paths = config . skills . paths || [] ; if ( ! config . skills . paths . includes ( skillsDir )) { config . skills . paths . push ( skillsDir ) ; } And that's it. Once you have restart opencode, it will load my new skills. The full code is here and the repo here: https://github.com/kepungnzai/appcoreopc-num-mastery.git import { type Plugin } from " @opencode-ai/plugin " import { tool } from " @opencode-ai/pl...