원클릭으로
create-agent
Create new OpenCode agents with research-backed design patterns and industry standards
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Create new OpenCode agents with research-backed design patterns and industry standards
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | create-agent |
| description | Create new OpenCode agents with research-backed design patterns and industry standards |
| version | 1.0 |
| author | human-user |
| audience | human-user |
| workflow | opencode |
Create a new OpenCode agent following research-backed best practices from OpenAI, Anthropic, and scientific literature.
When you need a new agent with distinct ownership, instructions, tool surface, or approval policy. Not for simple routing — only when the task requires a separate domain of responsibility.
Before writing any agent, research the domain to ground the agent design in industry standards and scientifically-backed evidence:
Example research synthesis:
Agent domain: Security reviewer agent
Research: OWASP Testing Guide, NIST security controls, Anthropic's adversarial verification patterns
Conclusion: Security agents should assume breach by default, escalate on any critical finding, use defense-in-depth checklist.
→ Agent design: "role: reviewer", "escalation: any critical = human", "tool: security-scan + vuln-check"
mkdir -p .opencode/agents/
Create .opencode/agents/<agent-name>.md:
---
name: <agent-name>
description: <1-sentence description of what this agent does>
role: <product-owner | system-architect | software-engineer | setup-project | human-user>
steps: <step numbers this agent owns, e.g., "2, 3">
---
# <Agent Name>
[Brief description of the agent's purpose and when it's invoked.]
## Role
<What this agent does in the workflow.>
## Available Skills
| Skill | When to Load | Purpose |
|---|---|---|
| `run-session` | Every session | Session start/end protocol |
| `<skill-name>` | When needed | <What the skill provides> |
## Instructions
<Detailed instructions for this agent. Include:>
- When to invoke this agent (trigger conditions)
- What steps it owns
- How to use tools
- When to escalate or hand off
Apply the research conclusions about file organization:
| File | When Loaded | Content | Avoid |
|---|---|---|---|
AGENTS.md | Always | Shared conventions, commands | Workflow details |
.opencode/agents/*.md | When role invoked | Role identity, step ownership, skill loads, tool permissions | Duplication |
.opencode/skills/*.md | On demand | Full procedural instructions | Duplication |
Why: Keeping always-loaded files lean preserves attention budget for the task at hand.
Split criteria:
Anti-pattern: Creating agents just to organize instructions. A single agent with more tools is usually better than multiple agents.
Write instructions that work in practice:
Design the tool surface based on what the agent needs to accomplish:
Register the agent in the workflow section of AGENTS.md:
## Agents
| Agent | Role | Steps | Skills |
|-------|------|-------|--------|
| <name> | <role> | <steps> | <skills> |
---
name: <agent-name>
description: <what this agent does, 1 sentence>
role: <product-owner | system-architect | software-engineer | setup-project | human-user>
steps: <owned steps, e.g., "2-3">
---
# <Agent Title>
<2-3 paragraphs: what this agent does, when invoked, what it delivers.>
## Context
<What this agent knows/has access to>
## Available Skills
- `run-session` — always
- `<skill>` — when <trigger>
## Instructions
### Step <N>: <Step Name>
1. <Specific action>
2. <Specific action>
3. <Verification>
### Hand-off
When to transfer to <other agent>: <condition>
## Tool Permissions
- Read files: <scope>
- Write files: <scope>
- Execute commands: <scope>
- Network access: <yes/no>
## Escalation
When to escalate to human: <conditions>
| Agent | Role | Steps | Purpose |
|---|---|---|---|
product-owner | product-owner | 1, 5 | Scope discovery, acceptance |
system-architect | system-architect | 2, 4 | Architecture, adversarial verification |
software-engineer | software-engineer | 3, 5 | TDD, releases |
setup-project | setup-project | meta | Initialize new projects |
Step 2 — Architecture and domain design, one feature at a time
Step 1 — discover requirements through stakeholder interviews and write Gherkin acceptance criteria
Generate and update architecture diagrams, living glossary, and system overview from existing project docs
Enforce code quality using ruff, pytest coverage, and static type checking
Create pull requests with conventional commits, proper formatting, and branch workflow
Flow protocol — design and operate state machine workflows with FLOW.md + WORK.md