creating-an-agent

Create specialized Opencode agents with custom models, permissions, and prompts.

8|1|Updated Feb 25, 2022
One-click install
npx skills add https://github.com/ayubun/dotfiles --skill creating-an-agent-ayubun
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: creating-an-agent
Source: https://github.com/ayubun/dotfiles/tree/main/configs/opencode/skills/ed3d-extending-opencode/creating-an-agent
Command: npx skills add https://github.com/ayubun/dotfiles --skill creating-an-agent-ayubun

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill guides users in creating specialized agents for Opencode, enabling them to delegate specific tasks to specialized assistants, enhancing workflow efficiency and consistency.

Core Features & Use Cases

  • Agent Creation: Generate agents with unique models, permissions, and prompts for specific tasks.
  • Task Delegation: Automate and streamline workflows by assigning specialized agents to handle tasks like code review, security audits, and research.
  • Use Case: Create a security-focused agent to automatically review code for vulnerabilities and report findings, improving the security posture of your projects.

Quick Start

Create a new agent for code review by following the instructions in the 'Code Reviewer' template and save it in the agents directory.

Frequently Asked Questions about creating-an-agent

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

FAQPage Schema
How do I create a specialized agent for task automation in Opencode?

To create a specialized agent for Opencode, you define it using a Markdown template with custom models, permissions, and system prompts, then save it in the agents directory to streamline your task automation workflows.

Can I set up a security-focused agent to automatically review code?

Yes, you can set up a security-focused agent to automatically review code by following the provided 'Code Reviewer' template, which configures the agent to detect vulnerabilities and report findings.

What do I need to start designing custom agents for Opencode?

To start designing custom agents for Opencode, you need familiarity with the Opencode system and basic Markdown skills to define agent models, permissions, and prompts.

What is the best way to delegate specific tasks to specialized assistants in Opencode?

The best way to delegate specific tasks is by creating specialized agents with unique system prompts and permissions, allowing you to assign focused actions like code reviews and security audits.

Are there limitations when defining custom models and permissions for Opencode agents?

Limitations depend on your familiarity with the Opencode system; agents are defined strictly via Markdown, requiring precise configuration of models and permissions to ensure focused task execution without workflow conflicts.