opencode-agent-creator

Create OpenCode agent profiles with configured prompts, models, tools, and permissions.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/kamelmh/opencode --skill opencode-agent-creator-kamelmh
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: opencode-agent-creator
Source: https://github.com/kamelmh/opencode/tree/main/skills/opencode-agent-creator
Command: npx skills add https://github.com/kamelmh/opencode --skill opencode-agent-creator-kamelmh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

OpenCode agent configuration becomes hard to manage as more specialized agents are created, leading to inconsistent prompts, tool access, and permissions across primary agents and subagents.

Core Features & Use Cases

  • Agent Profile Creation: Define reusable primary agents and subagents via Markdown (recommended) or JSONC entries.
  • Configurable Capabilities: Configure models, temperature, maxSteps, tool availability, and permission approval flows (allow/ask/deny).
  • Operational Guardrails: Limit risky actions (e.g., edit/write/bash) and control which subagents can be invoked through task permissions.
  • Practical Example Use Case: Create a restricted code-review subagent that can read and run safe Git inspections while requiring confirmation for any potentially risky commands.

Quick Start

Have the user create a new Markdown agent profile named code-reviewer.md under .opencode/agents/ with a description, the appropriate mode, and a system prompt that fits the intended review workflow.

Frequently Asked Questions about opencode-agent-creator

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

FAQPage Schema
How do I create reusable OpenCode agent profiles with controlled permissions?▼

To create reusable OpenCode agent profiles, define specialized primary agents or subagents using Markdown files or JSONC entries with controlled prompts, models, tools, and permission approval flows. You configure capabilities like temperature, maxSteps, and tool availability to establish operational guardrails.

What is the best way to manage OpenCode subagent permissions for risky commands?▼

The best way to manage subagent permissions is by configuring permission approval flows to allow, ask, or deny specific risky actions like edit, write, or bash commands. You can also control which subagents can be invoked through task permissions to limit operational impact.

How do I set up a restricted code-review subagent in OpenCode?▼

Set up a restricted code-review subagent by creating a Markdown profile under the .opencode/agents/ directory. Configure the agent with a description, appropriate mode, system prompt, and tool permissions to allow safe Git inspections while requiring confirmation for potentially risky commands.

Can I configure agent temperature and maxSteps in opencode.jsonc?▼

Yes, you can configure temperature, maxSteps, and model selection for agents via opencode.jsonc or Markdown profiles. The configuration schema supports fields including name, description, mode, model, tools, permission, hidden, disable, and optional prompt loading from inline text or file paths.

Does OpenCode agent configuration support loading system prompts from external files?▼

OpenCode agent configuration supports loading system prompts from external files using the {file:path} syntax. This allows you to separate prompt logic from configuration metadata when defining agent profiles via Markdown or JSONC.

When should I use Markdown profiles instead of JSONC for OpenCode agent creation?▼

Markdown profiles are recommended for creating OpenCode agents to ensure consistent prompts and tool access across primary agents and subagents. JSONC configuration via opencode.jsonc is also supported, but Markdown provides a structured format for reusable behavior definitions.