opencode-create-agents

Generate OpenCode agent markdown files with YAML frontmatter and system prompts.

1|Updated May 7, 2022
One-click install
npx skills add https://github.com/brandonburrus/dotfiles --skill opencode-create-agents
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opencode-create-agents
Source: https://github.com/brandonburrus/dotfiles/tree/main/.config/opencode/skills/opencode-create-agents
Command: npx skills add https://github.com/brandonburrus/dotfiles --skill opencode-create-agents

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation of new custom agents for the OpenCode environment, simplifying the process of defining their behavior, tools, and permissions.

Core Features & Use Cases

  • Agent Generation: Creates complete, valid markdown agent files for both primary and subagents.
  • Configuration: Gathers requirements for mode, tools, permissions, and model settings.
  • Use Case: You need a specialized agent to review code for security vulnerabilities. This Skill will guide you through defining its read-only permissions, necessary bash commands (like git diff), and a clear system prompt, outputting a ready-to-use agent file.

Quick Start

Use the opencode-create-agents skill to create a new primary agent for summarizing code changes.

Frequently Asked Questions about opencode-create-agents

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

FAQPage Schema
How do I create a custom OpenCode agent with specific tools and permissions?

You can create a custom OpenCode agent by defining its operational parameters, including mode, tools, permissions, and system prompt. This generates a valid markdown file with YAML frontmatter and a structured body for the agent's persona and instructions.

What is the file structure for an OpenCode agent definition?

An OpenCode agent definition uses a markdown file containing valid YAML frontmatter for configuration and a structured markdown body for the agent persona and operational instructions.

Can I create both primary agents and subagents for diverse tasks in OpenCode?

Yes, you can create both primary agents and subagents for diverse tasks within the OpenCode ecosystem. The generation process facilitates defining the specific behavior, tools, and permissions required for each agent type.

How do I configure an OpenCode agent to review code with read-only permissions?

To configure an agent for read-only code reviews, you define its permissions as read-only and specify necessary bash commands like git diff within the system prompt. This yields a ready-to-use markdown agent file.

What settings are required to generate a valid OpenCode agent markdown file?

Generating a valid OpenCode agent markdown file requires defining the agent's mode, tools, permissions, and model settings. This ensures valid YAML frontmatter and a well-structured markdown body for the agent's instructions.

Does creating an OpenCode agent require any external dependencies?

No, creating an OpenCode agent does not require external dependencies. The process streamlines the definition of behavior, tools, and permissions directly into a markdown file without additional setup.