opencode-agent-creator
Installation
SKILL.md
OpenCode Agent Creator
Create the smallest agent definition or roster that handles the requested work. Prefer project-local .opencode/agents/ unless another scope is requested. Preserve existing agent identities, permissions, and user decisions.
Use agent-md-creator for repository instructions, skill-creator for portable skills, and claude-agents-creator for Claude Code subagents. Use opencode-plugin-creator for custom tool or plugin implementations.
Workflow
- Run
opencode --version; inspect the existing project configuration and requested agent scope. These instructions target stable v1.18.35. For a different release or V2 target, verify its actual schema and runtime first. - Choose one bounded specialist, or a primary supervisor plus the needed specialists. Reuse an available built-in when it already fits. Load multi-agent-topologies.md when choosing a team shape.
- Give each custom agent a concise routing description, explicit mode, task-specific prompt, and appropriate permissions. Keep one definition per agent. Load agent-config-reference.md when writing fields, resolving discovery, or configuring nested delegation.
- Start from agent-template.md or supervisor-template.md. The examples form a read-only review team; add a real write-capable worker when implementation is required.
- Leave
modelunset to inherit, or pin a model verified byopencode models. Load model-tiering.md when choosing model policies or investigating a failed dispatch. Task has no per-dispatch model parameter. - Give workers the target, constraints, relevant context, and expected result in each dispatch. A fresh child does not receive the parent's conversation; a resumed child retains its own history. Load orchestrator-pattern.md for packets, task resumption, and experimental background work.
- Enforce capabilities with permissions.
hiddencontrols autocomplete visibility, not access. Keep leaf workers attask: deny; configure depth and task permissions explicitly for intentional nested delegation. A read-only supervisor can dispatch a write-capable worker, so constrain each worker separately. - Reload the definitions and inspect
opencode agent list. Test routing, the promised permission boundary, the returned result, and any resume/background behavior used. Load triggering-and-testing.md before completion.
Report the files changed, target OpenCode version, checks actually run, and any untested model or delegation behavior. File/schema validation alone does not prove model routing or tool enforcement.