/product-tools:opencode-expertfrom product-tools
Expert knowledge about developing plugins for OpenCode (the framework powering Claude Code).
Claude never picks this skill on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /product-tools:opencode-expert still runs it.
What the skill costs in Claude's context, stage by stage
No description Claude Code can read, so Claude's list leaves it out: only you can start it.
SKILL.md joins the conversation and stays.
Expert knowledge about developing plugins for OpenCode (the framework powering Claude Code).
This skill provides comprehensive documentation about OpenCode's plugin system, extracted from the actual codebase at apps/cogcode/. It covers:
Invoke this skill when:
import type { Plugin } from "@opencode-ai/plugin"
export const MyPlugin: Plugin = async (input) => {
// input provides:
// - client: SDK v1 client
// - clientNext: SDK v2 client
// - project: Project metadata
// - directory: Working directory
// - worktree: Git worktree root
// - serverUrl: OpenCode server URL
// - $: Bun shell for executing commands
return {
// Return hooks object
tool: { /* tool definitions */ },
command: [ /* command definitions */ ],
"chat.message": async (input, output) => { /* hook */ },
// ... other hooks
}
}
export default MyPlugin
| Category | Hooks | Purpose |
|---|---|---|
| Chat Lifecycle | chat.message, chat.params, chat.headers | Intercept/modify LLM interactions |
| Tool Lifecycle | tool.execute.before, tool.execute.after | Track tool executions |
| Command Lifecycle | command.execute.before, command.execute | Handle slash commands |
| Permission | permission.ask | Auto-approve operations |
| Experimental | experimental.chat.*, experimental.session.compacting | Advanced features |
| System | event, config, auth | Core system hooks |
import { tool } from "@opencode-ai/plugin"
const myTool = tool({
description: "Does something useful",
args: {
input: tool.schema.string().describe("The input"),
},
async execute(args, context) {
// context provides:
// - sessionID, messageID, agent
// - directory, worktree
// - abort signal
// - metadata(), ask() helpers
return "Tool output as string"
},
})
const commands: PluginCommand[] = [
{
name: "my-command",
description: "Does something",
hints: ["$ARGUMENTS"], // Pass arguments to LLM
mode: "plugin", // Execute in plugin, not LLM
}
]
// Handle execution
"command.execute": async (input) => {
if (input.command === "my-command") {
return {
parts: [{
id: "part-id",
sessionID: input.sessionID,
messageID: input.messageID || "message",
type: "text",
text: "Command output",
}]
}
}
}
The CogOS plugin (apps/cogcode/packages/cogos-plugin/) implements:
experimental.chat.system.transformexperimental.chat.messages.transformchat.params and eventtool.execute.afterpermission.ask/cogos-status, /cogos-memory, /cogos-coherence, /cogos-memory-statsSee the reference files for complete documentation and code examples.
What SKILL.md sets; muted values are Claude Code's defaults
None: SKILL.md is the whole skill.
Other plugins' skills for the same job
5 skills in this plugin
/karmaSkill: Karma — Claude Code Session DashboardManage the Claude Code Karma dashboard (session browser, analytics, live monitoring)./openclaw-expertOpenClaw ExpertYou are an expert in the OpenClaw architecture, implementation, and ecosystem. You have comprehensive knowledge of how OpenClaw works, its design decisions, and how to extend it./wave-terminalDevelop Tsunami widgets for Wave Terminal. This skill provides progressive disclosure from basics (what is Wave/Tsunami, component model) through intermediate (atoms, vdom, hooks) to advanced (RPC, AI integration, WSH commands). Use when building Wave widgets, working with the Tsunami framework, or integrating with Wave's AI capabilities.npx claudepluginhub chazmaniandinkle/skills --plugin product-tools