create-opencode-plugin
Create OpenCode plugins using the @opencode-ai/plugin SDK.
Skill by Poorgramer-Zack
Chalk Labs
Need help deploying create-opencode-plugin?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/poorgramer-zack-create-opencode-plugin
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, frontend, security, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/create-opencode-plugin
What's inside
- Skill name
create-opencode-plugin- Description
- Create OpenCode plugins using the @opencode-ai/plugin SDK. Use for building custom tools, event hooks, auth providers, or tool execution interception. Use proactively when developing new plugins in .opencode/plugins/ or ~/.config/opencode/plugins/. Examples: - user: "Create a plugin to block dangerous commands" → implement tool execution before hook with blocking logic - user: "Add a custom tool for jira" → design tool schema and implementation using SDK context - user: "Show toast on file edit" → react to file edit events and display status message - user: "Build a custom auth provider" → implement auth flow for new model provider - user: "Intercept git commits" → add hook to validate commit messages before execution
- License
- MIT
- Instructions
- 254 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
- Instructions read files in your home folder (~/.ssh, ~/.aws…)
Files (13)
- SKILL.md
- CODING-TS.MD · references/
- events.md · references/
- examples.md · references/
- hook-patterns.md · references/
- hooks.md · references/
- publishing.md · references/
- testing.md · references/
- toast-notifications.md · references/
- tool-helper.md · references/
- ui-feedback.md · references/
- update-notifications.md · references/
- extract-plugin-api.ts · scripts/
SKILL.md (first lines)
---
name: create-opencode-plugin
description: |-
Create OpenCode plugins using the @opencode-ai/plugin SDK. Use for building custom tools, event hooks, auth providers, or tool execution interception. Use proactively when developing new plugins in .opencode/plugins/ or ~/.config/opencode/plugins/.
Examples:
- user: "Create a plugin to block dangerous commands" → implement tool execution before hook with blocking logic
- user: "Add a custom tool for jira" → design tool schema and implementation using SDK context
- user: "Show toast on file edit" → react to file edit events and display status message
- user: "Build a custom auth provider" → implement auth flow for new model provider
- user: "Intercept git commits" → add hook to validate commit messages before execution
---
# Creating OpenCode Plugins
<critical>
Re-read this file periodically during plugin development to refresh context and ensure you're following the correct procedure.
</critical>
<workflow>
## Procedure Overview
| Step | Action | Read |
| ---- | -------------------- | ------------------------------------------------------------------------------- |
| 1 | Verify SDK reference | Run extract script |
| 2 | Validate feasibility | This file |
| 3 | Design plugin | `references/hooks.md`, `references/hook-patterns.md`, `references/CODING-TS.MD` |
| 4 | Implement | `references/tool-helper.md` (if custom tools) |
| 5 | Add UI feedback | `references/toast-notifications.md`, `references/ui-feedback.md` (if needed) |
| 6 | Test | `references/testing.md` |
| 7 | Publish | `references/publishing.md`, `references/update-notifications.md` (if npm) |
---
## Step 1: Verify SDK Reference (REQUIRED)
Before creating any plugin, MUST regenerate the API reference to ensure accuracy:
```bash
bun run .github/skill/create-opencode-plugin/scripts/extract-plugin-api.ts --workspace /absolute/path/to/opencode
```
This generates:
- `references/hooks.md` - All available hooks and signatures
- `references/events.md` - All event types and properties
- `references/tool-helper.md` - Tool creation patterns
---
## Step 2: Validate Feasibility (REQUIRED)
MUST determine if the user's concept is achievable with available hooks.
### Feasible as plugins:
- Intercepting/blocking tool calls
- Reacting to events (file edits, session completion, etc.)
- Adding custom tools for the LLM
- Modifying LLM parameters (temperature, etc.)
- Custom auth flows for providers
- Customizing session compaction
- Displaying status messages (toasts, inline)
### NOT feasible (inform user):
- Modifying TUI rendering or layout
- Adding new built-in tools (requires OC source)
- Changing core agent behavior/prompts
- Intercepting assistant responses mid-stream
- Adding new keybinds or commands
- Modifying internal file read/write
- Adding new permission types
**If not feasible**, MUST inform user clearly. Suggest:
- OC core changes: contribute to `packages/opencode`
- MCP tools: use MCP server configuration
- Simple automation: use shell scripts
---
## Step 3: Design Plugin
**READ**: `references/hooks.md` for available hooks, `references/hook-patterns.md` for implementation patterns.
**READ**: `references/CODING-TS.MD` for code architecture principles. MUST follow these design guidelines:
- **Modular structure**: Split complex plugins into multiple focused files (types, utilities, hooks, tools)
- **Single purpose**: Each function does ONE thing well
- **DRY**: Extract common patterns into shared utilities immediately
- **Small files**: Keep individual files under 150 lines - split into smaller modules as needed
- **No monoliths**: MUST NOT put all plugin code in a single `index.ts` file
### Plugin Locations
| Scope | Path | Use Case |
| ------- | ------------------------------------------- | -------------------------- |
| Project | `.opencode/plugins/<name>.ts` | Team-shared, repo-specific |
| Global | `~/.config/opencode/plugins/<name>.ts` | Personal, all projects |
### Basic Structure
```typescript
import type { Plugin } from "@opencode-ai/plugin"
export const MyPlugin: Plugin = async ({ project, client, $, directory, worktree }) => {
// Setup code runs once on load
return {
// Hook implementations - see references/hook-patterns.md
}
}
```
### Context Parameters
| Parameter | Type | Description |
| ----------- | ---------- | ----------------------------------------- |
| `project` | `Project` | Current project info (id, worktree, name) |From Poorgramer-Zack/opencode-smol, MIT.
More from Poorgramer-Zack/opencode-smol
- 0.514score
smol-auto
Poorgramer-Zack
Full pipeline non-stop — plan, build every atomic task, review.
SkillCFreshness: C★ 4Claude Code +9 - 0.511score
smol-build
Poorgramer-Zack
Execute the next pending atomic task from the latest plan in .smol/plans/, using strict TDD.
SkillCFreshness: C★ 4Claude Code +9 - 0.511score
smol-fast
Poorgramer-Zack
Skip planning.
SkillCFreshness: C★ 4Claude Code +9 - 0.511score
smol-map
Poorgramer-Zack
Build or incrementally update the project codemap at .smol/.
SkillCFreshness: C★ 4Claude Code +9 - 0.511score
smol-plan
Poorgramer-Zack
Turn a fuzzy idea into an atomic, TDD-ready task plan saved at .smol/plans/.
SkillCFreshness: C★ 4Claude Code +9 - 0.511score
smol-review
Poorgramer-Zack
Review current git diff (staged + unstaged) for correctness, minimalism violations, and security.
SkillCFreshness: C★ 4Claude Code +9
Signals
- Stars
- 4
- Forks
- 3
- Open issues
- 0
- Last commit (this folder)
- Apr 28, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Poorgramer-Zack/opencode-smol
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Poorgramer-Zack
- 0.514score
smol-auto
Poorgramer-Zack
Full pipeline non-stop — plan, build every atomic task, review.
SkillCFreshness: C★ 4Claude Code +9 - 0.511score
smol-build
Poorgramer-Zack
Execute the next pending atomic task from the latest plan in .smol/plans/, using strict TDD.
SkillCFreshness: C★ 4Claude Code +9 - 0.511score
smol-fast
Poorgramer-Zack
Skip planning.
SkillCFreshness: C★ 4Claude Code +9 - 0.511score
smol-map
Poorgramer-Zack
Build or incrementally update the project codemap at .smol/.
SkillCFreshness: C★ 4Claude Code +9 - 0.511score
smol-plan
Poorgramer-Zack
Turn a fuzzy idea into an atomic, TDD-ready task plan saved at .smol/plans/.
SkillCFreshness: C★ 4Claude Code +9 - 0.511score
smol-review
Poorgramer-Zack
Review current git diff (staged + unstaged) for correctness, minimalism violations, and security.
SkillCFreshness: C★ 4Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get create-opencode-plugin running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
create-opencode-plugin skill. Agent Mart. https://agentmart.dev/skills/poorgramer-zack-create-opencode-plugin (last updated 2026-10-24)