skills/smithery.ai/opencode-agent-generator

opencode-agent-generator

SKILL.md

OpenCode Agent Generator

Creates OpenCode agents in project folders (.opencode/agent/) for use with opencode serve operations. These agents will be used by OpenCode serve, not by Claude directly.

CRITICAL UNIVERSAL WARNING: All agent examples in this skill (code-analyzer, documentation-writer, security-auditor, test-engineer, etc.) are EXAMPLES ONLY. They exist purely to demonstrate the communication protocol format. Real swarms will have completely different agent types, purposes, and domains. This skill works with ANY agent configuration, not just the examples shown.

Instructions

IMPORTANT: Create agents BEFORE launching opencode serve. Agents are only loaded when the server starts.

  1. Determine agent requirements from the context:

    • Agent name (kebab-case, based on purpose)
    • Purpose/description (from task context)
    • Agent type (use PRIMARY for direct interaction, subagent cannot be directly used)
    • Tools needed (based on purpose)
    • Communication requirements (for swarm coordination)
  2. Create the agent file at .opencode/agent/{name}.md (project-local)

Installs
3
First Seen
Apr 29, 2026