Create an OpenCode plugin for OpenWork. Scaffolds the plugin file with the correct API shape, tool definitions, and hook registration. Use when the user asks to 'create a plugin', 'write a plugin', or 'make a plugin that does X'.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Skill: Create an OpenCode Plugin
Scaffold a working OpenCode plugin for use in OpenWork.
## When to use
- User asks "create a plugin that does X"
- User asks "write a plugin" or "make a plugin"
- User wants to extend OpenWork/OpenCode with custom tools
## Plugin API
An OpenCode plugin is an **async factory function** that returns a **hooks object**.
### File location
Plugins can live in:
- **Project**: `.opencode/plugins/my-plugin.ts` (auto-discovered)
- **Global**: `~/.config/opencode/plugins/my-plugin.ts`
- **npm**: published as a package, referenced in `opencode.json` `plugin` array
- **URL**: `file:` or `https:` path in the `plugin` array
### Minimal shape
```typescript
import { z } from "zod";
export default async () => ({
tool: {
my_tool_name: {
description: "What this tool does.",
args: z.object({
input: z.string().describe("The input parameter."),
}).shape, // NOTE: .shape, not the ZodObject itself
async execute(args: { input: string }) {
// Your logic here. Can use fetch(), fs, child_process, etc.
return `Result: ${args.input}`;
},
},
},
});
```
### Key rules
…
The line at the top of this page pins the label git:20260602.20013d2, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
A 17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
pass: Frontmatter block present
pass: Frontmatter declares a name
pass: Frontmatter declares a description
pass: Size between 200 bytes and 200 KB (5177 bytes)
pass: No zero-width or bidi control characters
pass: No instruction hidden inside an HTML comment
pass: No link to an exfiltration or paste host
pass: No credential-shaped string
pass: No instruction to send local credentials anywhere
pass: No text hidden with inline styles
pass: No prompt-injection phrasing
pass: No curl or wget piped into a shell
pass: No recursive delete of root, home or parent
pass: No instruction to read or print local credentials
pass: No base64 blob over 200 characters
pass: No link to a raw IP address
pass: No script tag
Source
GitHub
different-ai/openwork · 24,407 stars · license a license file GitHub does not identify · pushed 2026-11-05 · branch dev
API
GET https://markdownregistry.com/api/v1/artifacts/art_a5366kkjro2zvuzi
GET https://markdownregistry.com/api/v1/resolve?ref=different-ai/openwork/create-plugin
GET https://markdownregistry.com/api/v1/blob/2571541e6289ff7bb9a1b30a321a5153d17f8f09e6523ef3fb45a40ebb80a5b7
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
different-ai/openwork · .opencode/skills/add-a-feature/SKILL.md · Decide whether work needs a feature flag (any change to product behavior users can see does), then declare it, roll it…
different-ai/openwork · .opencode/skills/browser-automation/SKILL.md · Local OpenWork Electron browser automation with CDP. Use when driving a local Electron dev app, browser_list…
different-ai/openwork · .opencode/skills/daytona-seeded-cloud-demo/SKILL.md · Daytona seeded cloud demo, demo credentials, Acme Robotics seed. Use when the user asks to spin up, keep running, seed…
different-ai/openwork · .opencode/skills/daytona-windows-cert/SKILL.md · test on Windows, enterprise CA, corporate certificate, GPO cert, TLS fetch failed, Windows sandbox, daytona windows…
different-ai/openwork · .opencode/skills/diagnose-a-red-run/SKILL.md · Test is red, typecheck failed, CI job failed, flaky, timed out, was this already broken. Use to classify any failing…
different-ai/openwork · .opencode/skills/drive-desktop-cdp/SKILL.md · Drive the running OpenWork app over CDP from the shell, headless by default (nothing opens on screen). Evaluate JS…
different-ai/openwork · .opencode/skills/dry-run-a-risky-change/SKILL.md · Billing, plans, seats, permissions, access rules, auth, flag removals or data migrations that could lock real…
different-ai/openwork · .opencode/skills/fake-model-faults/SKILL.md · Make the desktop's model provider fail on demand (connection refused, DNS not found, socket reset, 429, 5xx, 401, 402…
different-ai/openwork · .opencode/skills/get-env-var/SKILL.md · get an env var, fetch a secret, missing env var, missing token/API key, load secrets from Infisical, infisical. Fetch…
devin-axis/ipollowork · .opencode/skills/create-plugin/SKILL.md · Create an OpenCode plugin for iPolloWork. Scaffolds the plugin file with the correct API shape, tool definitions, and…
avirtual/clodex · plugins/clodex-plugin-builder/skills/create-plugin/SKILL.md · Build a Clodex plugin end to end - scaffold it, wire the surfaces it needs, and verify it against the real loader…
andersonlimahw/lemon-ai-hub · plugins/create-plugin/SKILL.md · Scaffold a new AI agent plugin directory with valid manifest, component directories, and marketplace wiring. Use when…
canvascoding/canvas-notebook · seed_skills/create-plugin/SKILL.md · Create or improve an organization-managed Canvas plugin that combines complete new or existing skills with optional…