Skip to content
Back to skills

Configuring Opencode

ASecurity

Use when writing or debugging OpenCode JavaScript or TypeScript plugins, events, custom tools, or settings. Triggers on `.opencode/plugins`, `opencode.json` plugin packages, tool.execute.before, tool.execute.after, permission.asked, session or file events, shell.env, plugin load order, or Bun dependency install, even when the user doesn't say 'OpenCode plugin'.

  • 6 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 30, 2026
ai-agentsjavascripttypescriptgojavashelldebugging

Works with

  • terminal

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned November 30, 2026

npx -y skills add xonovex/platform --skill configuring-opencode --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Configuring Opencode?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Configuring Opencode
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/xonovex-configuring-opencode/badge)](https://www.skillsdirectory.com/skills/xonovex-configuring-opencode)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: configuring-opencode
description: "Use when writing or debugging OpenCode JavaScript or TypeScript plugins, events, custom tools, or settings. Triggers on `.opencode/plugins`, `opencode.json` plugin packages, tool.execute.before, tool.execute.after, permission.asked, session or file events, shell.env, plugin load order, or Bun dependency install, even when the user doesn't say 'OpenCode plugin'."
---

# OpenCode Plugins and Events

Configure OpenCode's native plugin and event surface without inventing unsupported guarantees or a universal hook file.

## Essentials

- **Treat plugins as executables** - Local and npm plugins run with OpenCode process authority.
- **Preserve load order** - Global config, project config, global plugins, then project plugins run sequentially.
- **Use tool interception precisely** - `tool.execute.before` can inspect/mutate or fail a call; other events may only observe.
- **Separate permission events** - Event availability does not itself prove decision control.
- **Review automatic installs** - Config dependencies and npm plugins may trigger Bun installation at startup.
- **Onboard through native scopes** - Follow the lifecycle owned by **configuring-harness-integrations**, previewing config/plugin source and ordering.

## Gotchas

- Plugins from all sources load, and all hooks run in documented sequence; similar local and npm plugins can both load.
- An npm dependency may be installed automatically at startup.
- A custom tool with the same name as a built-in tool takes precedence.
- `shell.env` affects AI shell tools and user terminals; injecting secrets broadens exposure.
- Compaction customization uses an experimental event and cannot provide a requested stable guarantee.

## Example

A secret-file control uses a reviewed project plugin with `tool.execute.before`; onboarding verifies the project source and dependencies, tests the thrown denial, and rolls back by removing only the owned plugin and config dependency.

## Progressive Disclosure

- Read [references/capabilities.md](references/capabilities.md) - Load when mapping semantic intents to native events, handlers, guarantees, versions, ordering, context, or limitations
- Read [references/onboarding.md](references/onboarding.md) - Load when discovering, previewing, applying, verifying, disabling, rolling back, updating, or detecting drift
- Read [references/patterns.md](references/patterns.md) - Load when translating deterministic hooks, model evaluators, specialist agents, or managed adoption recipes

Files in this skill

  • SKILL.md2.5 KB
  • eval-output.json1.9 KB
  • eval-trigger.json4.9 KB
  • moon.yml86 B
  • references/capabilities.md2.6 KB
  • references/onboarding.md1.8 KB
  • references/patterns.md1.3 KB
  • sources.json2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.