Agent Skills: OpenCode Plugin Configuration

Use when asked to automate an action for OpenCode, for example run a formatter after edits, or running a script right before git commits, those are hooks and you should use this skill to implement them.

UncategorizedID: gwenwindflower/.charmschool/opencode-plugin-config

Install this agent skill to your local

pnpm dlx add-skill https://github.com/gwenwindflower/.charmschool/tree/HEAD/agents/shared/skills/opencode-plugin-config

Skill Files

Browse the full folder contents for opencode-plugin-config.

Download Skill

Loading file tree…

agents/shared/skills/opencode-plugin-config/SKILL.md

Skill Metadata

Name
opencode-plugin-config
Description
Use when asked to automate an action for OpenCode, for example run a formatter after edits, or running a script right before git commits, those are hooks and you should use this skill to implement them.

OpenCode Plugin Configuration

  1. Fetch the latest docs: https://opencode.ai/docs/plugins
  2. Refine the type of plugin you need to create: a hook that runs a script, a custom tool, a logger that prints structured output to the client interface, etc.
  3. Determine scope: is this a user-level plugin (in ~/.opencode/plugins) that would accelerate every project, or a project-level plugin with highly specific details (in <project root>/.opencode/plugins)?
  4. Build the plugin in TypeScript with bun as the target runtime. Use bun for quick iteration and testing if necessary, before moving on to testing the integration with OpenCode.