opencode-agent-creator
Skill4 starsChanged 7 months agoMITView on GitHub
Create specialized OpenCode agents with proper configuration for primary agents and subagents. Use when the user wants reusable OpenCode agent profiles, needs `agent/*.md` files or `opencode.jsonc` agent entries, wants to configure prompts/models/tool access, or needs to split work between a primary agent and subagents safely.
- Commits and pushes
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 9 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill when creating OpenCode agents - specialized AI assistants configured for specific tasks and workflows.
- Distinctive: line 14
Use this skill when the user wants to:
- Distinctive: line 15
Create new OpenCode agents (primary or subagent)
- Very specific: line 42
Create .md files in:
- Distinctive: line 296
Tool restrictions: Only enable tools the agent needs
- Very specific: line 297
Permission granularity: Use ask for risky operations, allow for safe ones
- Distinctive: line 306
When creating an agent:
- Distinctive: line 332
Update prompt for better results
- Distinctive: line 347
Use the built-in command:
- Distinctive: line 353
Ask for agent location (global/project)
- Distinctive: line 357
Create markdown file with configuration
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
OpenCode Agent Creator
Use this skill when creating OpenCode agents - specialized AI assistants configured for specific tasks and workflows.
When to Use
Use this skill when the user wants to:
- Create new OpenCode agents (primary or subagent)
- Configure specialized AI assistants for specific tasks
- Set up agents with custom prompts, models, and tool access
- Define agent permissions and behaviors
Agent Types
Primary Agents
Main assistants you interact with directly. Users can cycle through them using Tab key or the switch_agent keybind.
Built-in examples:
- Build: Full development with all tools enabled
- Plan: Analysis and planning with restricted permissions
Subagents
Specialized assistants invoked by primary agents or manually via @mention. Used for specific tasks.
Built-in examples:
- General: Multi-step tasks with full tool access (except todo)
- Explore: Fast, read-only codebase exploration
Agent Structure
OpenCode agents can be defined in two ways:
1. Markdown Files (Recommended)
Create .md files in:
- Global:
~/.config/opencode/agents/ - Per-project:
.opencode/agents/
Format:
---
description: Brief description of agent purpose
mode: primary|subagent|all
model: provider/model-id (optional)
temperature: 0.0-1.0 (optional)
maxSteps: number (optional)
tools:
write: true|false
edit: true|false
bash: true|false
permission:
edit: allow|ask|deny
bash:
"*": allow|ask|deny
"specific command": allow|ask|deny
webfetch: allow|ask|deny
task:
"*": allow|ask|deny
"agent-name": allow|ask|deny
hidden: true|false (optional, for subagents)
disable: true|false (optional)
---
System prompt content here.
Define the agent's purpose, behavior, and guidelines.Filename becomes agent name: code-reviewer.md → code-reviewer agent
2. JSON Configuration
Add to opencode.jsonc:
{
"$schema": "https://opencode.ai/config.json",
"agent": {
"agent-name": {
"description": "Brief description",
"mode": "primary",
"model": "anthropic/claude-sonnet-4-20250514",
"prompt": "{file:./prompts/agent.txt}",
"temperature": 0.3,
"maxSteps": 10,
"tools": {
"write": true,
"edit": true,
"bash": true
},
"permission": {
"edit": "allow",
"bash": {
"*": "ask",
"git status": "allow"
}
}
}
}
}Configuration Options
Required
description: Brief description of agent's purpose and when to use it
Mode
mode:"primary","subagent", or"all"(default:"all")primary: User-facing agent, switchable via Tabsubagent: Invoked by other agents or via @mentionall: Can be used as both
Optional
prompt: Custom system prompt (inline or{file:path})model: Override default model (format:provider/model-id)temperature: Control randomness (0.0-1.0)0.0-0.2: Focused/deterministic (code analysis)0.3-0.5: Balanced (general development)0.6-1.0: Creative (brainstorming)
maxSteps: Maximum agentic iterations before text-only responsedisable: Settrueto disable agenthidden: Hide subagent from @mention autocomplete (subagents only)
Tools
Control which tools are available:
tools:
write: true
edit: false
bash: false
mymcp_*: false # Wildcard to disable MCP server toolsPermissions
Control what actions require approval:
permission:
edit: ask # ask, allow, or deny
bash:
"*": ask # Default for all commands
"git status": allow
"git log*": allow
"git push": ask
webfetch: deny
task: # Which subagents can be invoked
"*": deny
"code-*": allow # Allow code-prefixed subagents
"reviewer": askValues: "allow" (no approval), "ask" (prompt user), "deny" (disable)
Provider-Specific Options
Any additional options pass through to the provider:
reasoningEffort: high # OpenAI reasoning models
textVerbosity: low # OpenAI reasoning modelsExamples
Documentation Writer
---
description: Writes and maintains project documentation
mode: subagent
tools:
bash: false
---
You are a technical writer. Create clear, comprehensive documentation.
Focus on:
- Clear explanations
- Proper structure
- Code examples
- User-friendly languageSecurity Auditor
---
description: Performs security audits and identifies vulnerabilities
mode: subagent
tools:
write: false
edit: false
permission:
bash:
"*": deny
---
You are a security expert. Focus on identifying potential security issues.
Look for:
- Input validation vulnerabilities
- Authentication and authorization flaws
- Data exposure risks
- Dependency vulnerabilities
- Configuration security issuesCode Reviewer
---
description: Reviews code for best practices and potential issues
mode: subagent
model: anthropic/claude-sonnet-4-20250514
temperature: 0.1
tools:
write: false
edit: false
permission:
bash:
"*": ask
"git diff": allow
"git log*": allow
---
You are a code reviewer. Focus on security, performance, and maintainability.
Review checklist:
1. Code quality and best practices
2. Potential bugs and edge cases
3. Performance implications
4. Security considerations
Provide constructive feedback without making direct changes.Debug Agent
---
description: Focused debugging with investigation tools
mode: primary
temperature: 0.2
tools:
write: false
permission:
bash:
"*": allow
edit: ask
---
You are a debugging specialist. Systematically investigate issues.
Approach:
1. Reproduce the issue
2. Gather relevant logs and context
3. Identify root cause
4. Suggest minimal fix
5. Recommend preventive measuresDeep Thinker (Reasoning Model)
---
description: High-effort reasoning for complex problems
mode: subagent
model: openai/gpt-5
temperature: 0.1
reasoningEffort: high
textVerbosity: low
maxSteps: 20
---
You solve complex problems with deep reasoning.
For each problem:
1. Break down into components
2. Analyze dependencies
3. Consider edge cases
4. Propose robust solutions
5. Validate approachBest Practices
- Clear descriptions: Help users and agents understand when to invoke
- Appropriate mode: Choose
primaryfor main work,subagentfor specialized tasks - Tool restrictions: Only enable tools the agent needs
- Permission granularity: Use
askfor risky operations,allowfor safe ones - Temperature tuning: Lower for analytical tasks, higher for creative ones
- Prompt clarity: Be specific about agent's role and constraints
- File location:
- Global: General-purpose agents across projects
- Project: Project-specific workflows and conventions
Implementation Steps
When creating an agent:
- Determine scope:
- Primary agent for main workflows
- Subagent for specialized tasks
- Choose location:
- Global (
~/.config/opencode/agents/) for reusable agents - Project (
.opencode/agents/) for project-specific agents
- Global (
- Define configuration:
- Required:
description,mode - Optional:
model,temperature,maxSteps,tools,permission
- Required:
- Write system prompt:
- Clear role definition
- Specific guidelines and constraints
- Expected behaviors
- Test the agent:
- For primary: Switch to it with Tab
- For subagent: Invoke with
@agent-nameor let primary agents use it
- Refine:
- Adjust temperature based on output quality
- Fine-tune permissions based on usage
- Update prompt for better results
Usage
Primary Agents
- Press Tab to cycle through primary agents
- Or use configured
switch_agentkeybind
Subagents
- Automatic: Primary agents invoke based on descriptions
- Manual:
@agent-name messageto invoke directly - Navigation:
<Leader>+Right/Leftto switch between parent/child sessions
Interactive Creation
Use the built-in command:
opencode agent createThis will:
- Ask for agent location (global/project)
- Request description
- Generate system prompt and identifier
- Let you select tools
- Create markdown file with configuration
Notes
- Markdown filename determines agent name
- Custom agents can work alongside built-in agents
- Agent changes require OpenCode restart
- Model format:
provider/model-id(e.g.,anthropic/claude-sonnet-4-20250514) - Hidden subagents (
hidden: true) don't appear in autocomplete but can still be invoked programmatically - Task permissions control which subagents an agent can invoke
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- julweber/ai_agent_skills★ 2same name
- Kubementat/ai_agent_skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- greats-soul-archive-contributor/AGENTS.mdAGENTS.md
- agentic-cli-designSkill
- ai-chat-frontendSkill
- autoresearch-agentSkill
- brainstorm-frameworksSkill
- business-planningSkill
- clawdbot-configSkill
- dashboard-design-guidebookSkill
- fermi-estimationSkill
- firecrawlSkill
- gogcliSkill
- greats-soul-archive-contributorSkill
- jp-grantsSkill
- openclaw-agent-creatorSkill
- opencode-command-creatorSkill
- openspec-brownfield-baselineSkill
- oss-publishSkill
- product-improvement-proposalSkill
- python-uv-projectSkill
- rust-cliSkill
- slack-rsSkill
- unit-test-hygieneSkill
- wt-setupSkill
- youtube-summarizerSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

