plugin-creator

A guide for creating OpenCode plugins, which are JavaScript or TypeScript modules that add behavior to the OpenCode coding agent. It explains where project and global plugins live and how npm plugins are configured.

In plain words
What is it for?
Use it to create local OpenCode plugins, configure npm plugins, and determine where OpenCode will load them.
Why use it?
It removes uncertainty about the plugin file format, installation locations, loading order, and configuration.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/grahamton/merchgent/plugin-creator
Any agent
npx skills add grahamton/merchGent --skill plugin-creator
Clone the repo
git clone --depth 1 https://github.com/grahamton/merchGent

Made for: Claude Code, Codex.

Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 268 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00015 $0.00268
Opus 5 $0.00008 $0.00134
Sonnet 5 $0.00003 $0.00054
Haiku 4.5 $0.00002 $0.00027

Measured yesterday against content hash 6482c369ae50, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

plugin-creator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.opencode/skills/plugin-creator/SKILL.md · 42 lines

What it actually says

Quick Usage (Already Configured)

Where plugins live

  • Project plugins: .opencode/plugins/*.js or .opencode/plugins/*.ts
  • Global plugins: ~/.config/opencode/plugins/*.js or .ts

Load from npm

Add npm plugin packages in opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["opencode-helicone-session", "opencode-wakatime"]
}

Minimal plugin template

export const MyPlugin = async ({ project, client, $, directory, worktree }) => {
  return {
    // Hook implementations go here
  }
}

Notes from OpenCode docs

  • Plugins are JS/TS modules exporting one or more plugin functions.
  • Local plugins are loaded directly from the plugin directory.
  • NPM plugins are installed via Bun at startup and cached in ~/.cache/opencode/node_modules/.
  • Load order: global config → project config → global plugins → project plugins.

Reference

Follow the official OpenCode plugin docs: https://opencode.ai/docs/plugins/ Use the docs as the escape hatch when unsure.

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 42 lines · 15 tokens per session scan A 6482c369ae50

Subscribe to this mod's changes

plugin-creator is a skill published in the GitHub repository grahamton/merchGent (0 stars, last pushed 4mo ago), licensed MIT. It adds 15 tokens to every session and 268 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

ocx

Drive a running opencodex (ocx) proxy from the CLI — account pools, provider routing, model catalog, usage and cost attribution, request logs, access keys, storage cleanup, and the management API. Use when a task involves controlling or inspecting an opencodex proxy rather than editing the opencodex codebase.…

lidge-jun/opencodex · 0 tokens

qa

QA-test a website or web app and return a 1-5 quality score (5 = flawless, 1 = broken) with evidence. Use when the user wants to test, QA, evaluate, score, or "check how good" a site, page, flow, or app — including a local dev server (e.g. "qa test localhost:5173", "does the checkout work?", "rate this landing page").…

browser-use/browser-use · 103 tokens

omh-accessibility-audit

This is a Hermes-native accessibility-audit workflow skill.

rlaope/oh-my-hermes · 82 tokens

pinme-uniwebpay

Use when generating, modifying, or reviewing PinMe Worker (Cloudflare Worker TypeScript) code that accepts payments through UniwebPay — payment links, products/prices, checkout sessions, payment status reads, refunds, subscriptions, or handling UniwebPay webhooks with @uniwebpay/sdk in a PinMe project.

glitternetwork/pinme · 71 tokens

engine-conflict-resolve

Ask Sutando to resolve a conflicted update of a Sutando checkout. When pulling the latest release/main conflicts with local changes, Sutando reproduces the merge in a scratch git worktree, resolves the conflicts there, proposes the resolution to the owner, and fast-forwards the live checkout only after explicit…

sonichi/sutando · 87 tokens

self-upgrade

Safely upgrade this Sutando checkout to the latest upstream code without bricking the running core session — the "success path" distilled from a real 2026-07-20 upgrade that would otherwise hang (and did, the first time).

sonichi/sutando · 0 tokens