Generate OpenCode configuration components and skills. Use this skill when you need to create or update OpenCode agents, commands, MCP servers, plugins, tools, or full agent skills following the official opencode.json schema. Supports generating supagents, commands, mcp configs, frontmatter, plugins, and tool mappings.
This skill provides specialized workflows for generating valid OpenCode configuration snippets and full skill structures based on the opencode.json schema.
When generating components, always refer to the schema in references/schema.json.
Agents are defined in the agent object.
"researcher": {
"model": "anthropic/claude-3-5-sonnet",
"prompt": "You are a research assistant...",
"mode": "subagent",
"tools": { "websearch": true }
}
"manager": {
"model": "anthropic/claude-3-5-opus",
"prompt": "You manage the workflow...",
"mode": "primary"
}
Commands go into the command object.
"review": {
"template": "Please review the following code: {{selection}}",
"description": "Reviews the selected code block",
"agent": "reviewer"
}
"my-local-mcp": {
"type": "local",
"command": ["python", "/path/to/server.py"],
"enabled": true
}
"my-remote-mcp": {
"type": "remote",
"url": "https://mcp.example.com",
"enabled": true
}
Every Skill must start with this block:
---