Loading...
Loading...
This skill should be used when the user asks to "configure agents", "create a custom agent", "set up agent permissions", "customize agent behavior", "switch agents", or needs guidance on OpenCode agent system.
npx skill4agent add the-perfect-developer/the-perfect-opencode agent-configuration@general help me searchask@explore find the authentication logicopencode.json{
"$schema": "https://opencode.ai/config.json",
"agent": {
"build": {
"mode": "primary",
"model": "anthropic/claude-sonnet-4-20250514",
"temperature": 0.3,
"tools": {
"write": true,
"edit": true,
"bash": true
}
},
"code-reviewer": {
"description": "Reviews code for best practices and potential issues",
"mode": "subagent",
"model": "anthropic/claude-sonnet-4-20250514",
"prompt": "You are a code reviewer. Focus on security, performance, and maintainability.",
"tools": {
"write": false,
"edit": false
}
}
}
}~/.config/opencode/agents/.opencode/agents/~/.config/opencode/agents/review.md---
description: Reviews code for quality and best practices
mode: subagent
model: anthropic/claude-sonnet-4-20250514
temperature: 0.1
tools:
write: false
edit: false
bash: false
---
You are in code review mode. Focus on:
- Code quality and best practices
- Potential bugs and edge cases
- Performance implications
- Security considerations
Provide constructive feedback without making direct changes.{
"agent": {
"review": {
"description": "Reviews code for best practices and potential issues"
}
}
}primarysubagentall{
"agent": {
"plan": {
"model": "anthropic/claude-haiku-4-20250514"
}
}
}provider/model-id{
"agent": {
"plan": {
"tools": {
"write": false,
"bash": false,
"mymcp_*": false // Wildcard to disable MCP server tools
}
}
}
}allowaskdeny{
"agent": {
"build": {
"permission": {
"edit": "ask",
"bash": {
"*": "ask",
"git status *": "allow",
"git push": "ask"
},
"webfetch": "deny"
}
}
}
}{
"agent": {
"review": {
"prompt": "{file:./prompts/code-review.txt}"
}
}
}{
"agent": {
"quick-thinker": {
"steps": 5
}
}
}{
"agent": {
"internal-helper": {
"mode": "subagent",
"hidden": true
}
}
}{
"agent": {
"creative": {
"color": "#ff6b6b"
}
}
}colormodeltemperatureopencode.jsonopencode.json{
"$schema": "https://opencode.ai/config.json",
"agent": {
"your-agent-name": {
"model": "github-copilot/claude-sonnet-4.6",
"temperature": 0.3,
"color": "#ff6b6b"
}
}
}modeltemperaturecolor.opencode/agents/<name>.mddescriptionmodetoolspermissionstepshiddenopencode agent createopencode.jsondescriptionmode{
"agent": {
"analyzer": {
"description": "Analyzes code without making changes",
"mode": "subagent",
"tools": {
"write": false,
"edit": false,
"bash": false
}
}
}
}---
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 language---
description: Performs security audits and identifies vulnerabilities
mode: subagent
tools:
write: false
edit: false
---
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 issues{
"agent": {
"quick-plan": {
"description": "Fast planning with cheaper model",
"mode": "primary",
"model": "anthropic/claude-haiku-4-20250514",
"temperature": 0.1,
"permission": {
"edit": "deny",
"bash": "deny"
}
}
}
}@explore find auth code~/.config/opencode/opencode.json.opencode/opencode.json~/.config/opencode/agents/.opencode/agents/allowaskdenyreferences/primary-agents.mdreferences/subagents.mdreferences/permissions.mdexamples/custom-agents.md