claude/opencode-tools/skills/oc-create-agent/SKILL.md
Guides through creating a new OpenCode-compatible agent with interactive interview, permission configuration, and validation. Use when user says "create opencode agent", "new opencode agent", "build agent for opencode", or wants to create an OpenCode agent markdown file.
npx skillsauth add sequenzia/agent-alchemy oc-create-agentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are initiating the OpenCode agent creation workflow. This process guides the user through an interactive interview to gather requirements, generates a properly formatted agent markdown file with permissions and system prompt, and validates the result.
IMPORTANT: You MUST use the AskUserQuestion tool for ALL questions to the user. Never ask questions through regular text output.
Read the OpenCode platform overview and agent guide:
${CLAUDE_PLUGIN_ROOT}/references/platform-overview.md${CLAUDE_PLUGIN_ROOT}/references/agent-guide.mdGather requirements through a structured interview.
Question 1 — Agent Name:
code-reviewer, test-runner)."Question 2 — Purpose:
Question 3 — Mode:
Question 1 — Model Tier:
Question 2 — Temperature:
Question 3 — Steps Limit:
Question 1 — Permission Level:
If "Custom" selected:
Question 2 — File Operations:
Question 3 — Execution:
Question 4 — Web Access:
Question 1 — Prompt Focus:
Question 2 — Constraints:
Question 1 — Location:
Question 2 — Display:
Present a comprehensive summary:
## Agent Summary
- **Name**: {name}
- **Description**: {generated description}
- **Mode**: {primary/subagent/all}
- **Model**: {provider/model-id}
- **Temperature**: {value}
- **Steps**: {value or "default"}
- **Permissions**: {summary}
- **Focus areas**: {list}
- **Constraints**: {list}
- **Location**: {path}
Use AskUserQuestion to confirm:
Spawn the generator agent:
Task:
subagent_type: "agent-alchemy-opencode-tools:oc-generator"
prompt: |
Generate an OpenCode agent with these specifications:
Type: agent
Name: {name}
Description: {description}
Mode: {mode}
Model: {model}
Temperature: {temperature}
Steps: {steps}
Permissions: {permission object}
Color: {color or null}
Hidden: {true/false}
System prompt focus: {focus areas}
Constraints: {constraints}
Target path: {target directory}/agents/{name}.md
Reference guide: ${CLAUDE_PLUGIN_ROOT}/references/agent-guide.md
Template: ${CLAUDE_PLUGIN_ROOT}/references/templates/agent-template.md
Interview notes:
{all gathered requirements}
Spawn the validator agent:
Task:
subagent_type: "agent-alchemy-opencode-tools:oc-validator"
prompt: |
Validate the following OpenCode artifact:
Type: agent
Path: {path to generated file}
Reference guide: ${CLAUDE_PLUGIN_ROOT}/references/agent-guide.md
If validation fails with errors, fix the issues and re-validate.
Present the generated agent:
@{name} in the TUItask({ prompt: "...", command: "{name}" })opencode.jsonCRITICAL: Complete ALL 5 phases before finishing.
development
Systematic, hypothesis-driven debugging workflow with triage-based track routing. Use when asked to "fix this bug", "debug this", "why is this failing", "this is broken", "investigate this error", "track down this issue", or any debugging situation. Supports --deep flag to force full investigation.
development
Executes diagnostic investigation tasks to test debugging hypotheses. Runs tests, traces execution, checks git history, and reports evidence. (converted from agent)
content-media
Provides architectural pattern knowledge for designing feature implementations including MVC, event-driven, microservices, and CQRS patterns. Use when designing system architecture or choosing implementation patterns.
documentation
Provides Mermaid diagram syntax, best practices, and styling rules for technical visualizations. Use when creating diagrams, flowcharts, sequence diagrams, class diagrams, state diagrams, ER diagrams, architecture diagrams, C4 diagrams, or any visual documentation in markdown.