opencode-agent-generator

Generate OpenCode agent files with YAML frontmatter and permission controls.

3|Updated Nov 1, 2025
One-click install
npx skills add https://github.com/IgorWarzocha/opencode-agent-swarm-demo --skill opencode-agent-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opencode-agent-generator
Source: https://github.com/IgorWarzocha/opencode-agent-swarm-demo/tree/main/.claude/skills/opencode-agent-generator
Command: npx skills add https://github.com/IgorWarzocha/opencode-agent-swarm-demo --skill opencode-agent-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually defining OpenCode agents with correct YAML frontmatter, permissions, and communication protocols is tedious and requires careful attention to detail. This Skill automates the generation of production-ready agents, saving development time and reducing errors.

Core Features & Use Cases

  • Automated Agent Creation: Generates OpenCode agents in project folders (.opencode/agent/) with proper YAML frontmatter and focused system prompts.
  • Permission Management: Sets appropriate tool permissions (read, write, bash) based on the agent's purpose, ensuring secure and functional agents.
  • Swarm Communication Protocol: Integrates critical communication guidelines for seamless interaction within multi-agent swarms, fostering efficient collaboration.
  • Use Case: Need a new "security-auditor" agent for your OpenCode swarm? Use this Skill to instantly generate its definition, including its specific responsibilities, tool access, and how it should communicate with other agents, all without manual configuration.

Quick Start

Use the opencode-agent-generator skill to create a primary OpenCode agent named 'data-analyst' with read and grep tools, and allow bash for 'python*' commands.

Frequently Asked Questions about opencode-agent-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create OpenCode agents with YAML frontmatter and permissions?

This Skill generates OpenCode agent files with complete YAML frontmatter, including description, model, temperature, tools, and permission controls. It automates agent creation in project folders with proper syntax validation and kebab-case naming, eliminating manual configuration errors.

What permissions can I set for different agent roles?

You can configure tool permissions (read, write, bash) based on agent purpose. The Skill applies role-specific permissions—a security auditor might have audit tools, a code analyst gets read and grep access, enabling secure and functional agents without overprivileging.

How do I set up agents to communicate within a swarm?

The Skill integrates swarm communication protocols directly into generated agents, defining interaction guidelines and responsibilities. This ensures seamless collaboration between multiple agents without manual protocol definition or coordination setup.

Can I generate agents for specific domains like security auditing or test engineering?

Yes. The Skill creates domain-specific agents for roles including code analysis, documentation writing, security auditing, and test engineering. Each agent receives a focused system prompt and tool permissions tailored to its domain responsibilities.

Where are generated agents stored in my project?

Agents are created project-locally in the `.opencode/agent/` directory with kebab-case naming and YAML frontmatter. This placement keeps agents version-controlled alongside your project and ready for use with `opencode serve`.

Do I need to manually write system prompts for each agent?

No. The Skill automatically generates focused system prompts based on the agent's purpose and role. You specify the domain and responsibilities, and it produces a production-ready prompt with appropriate tone and task boundaries.