opencode-agents

Create and configure OpenCode agents with JSON or Markdown templates.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/cadamsdev/web-component-devtools --skill opencode-agents
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opencode-agents
Source: https://github.com/cadamsdev/web-component-devtools/tree/main/.opencode/skills/opencode-agents
Command: npx skills add https://github.com/cadamsdev/web-component-devtools --skill opencode-agents

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

OpenCode teams need a standardized, scalable way to create and manage AI agents (primary and subagents), configure their tools, permissions, and behavior, and reuse proven templates across projects.

Core Features & Use Cases

  • Define OpenCode agents via JSON or Markdown with clear descriptions, modes, models, and tool access.
  • Leverage ready-made templates in assets/templates for common roles (read-only reviewer, docs-writer, security auditor).
  • Reference a centralized configuration guide via references/REFERENCE.md to ensure consistency and governance.

Quick Start

  • Use the opencode agent create command to scaffold a new agent in the global or project directory.
  • Place or edit Markdown/JSON files under: Global: ~/.config/opencode/agents/, Project: .opencode/agents/.
  • Ensure SKILL.md frontmatter includes name and description and that references/assets exist.

Frequently Asked Questions about opencode-agents

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

FAQPage Schema
How do I create and configure OpenCode agents with specific tools and permissions?

To create OpenCode agents, you define their specialized prompts, tools, permissions, and models via JSON or Markdown, then place them in the project or global agents directory to ensure safe deployments.

What ready-to-use templates are available for configuring OpenCode agents?

Ready-to-use templates for common roles like read-only reviewer, docs-writer, and security auditor are provided in the assets/templates directory to help you quickly scaffold specialized agents.

How do I structure files for OpenCode agent management to ensure consistent configuration?

OpenCode agent management enforces a standardized file structure using SKILL.md frontmatter for metadata, a centralized configuration guide in references/REFERENCE.md, and templates in assets.

Does OpenCode agent configuration support both JSON and Markdown formats?

Yes, OpenCode agent configuration supports both JSON and Markdown formats, allowing you to define agent modes, manage tool access, and compose agent configurations flexibly.

Where do I place Markdown or JSON files when scaffolding a new OpenCode agent?

You place or edit Markdown and JSON files under the global directory at ~/.config/opencode/agents/ or the project directory at .opencode/agents/ to scaffold new agents.

What is the best way to manage tool access and permissions for OpenCode subagents?

The best way to manage tool access for OpenCode subagents is by defining clear descriptions, modes, and models in the agent configuration files, supported by standardized templates for governance.