← ClaudeAtlas

oc-update-agentlisted

Updates an existing OpenCode agent to match current platform best practices, fixes deprecated patterns, and validates the result. Use when user says "update opencode agent", "fix opencode agent", "migrate agent to opencode", or wants to modernize an existing OpenCode agent file.
sequenzia/agent-alchemy · ★ 45 · AI & Automation · score 76
Install: claude install-skill sequenzia/agent-alchemy
# Update OpenCode Agent You are initiating the OpenCode agent update workflow. This process locates an existing agent, researches current platform best practices, analyzes the agent for outdated patterns, and applies updates with validation. ## Critical Rules ### AskUserQuestion is MANDATORY **IMPORTANT**: You MUST use the `AskUserQuestion` tool for ALL questions to the user. Never ask questions through regular text output. --- ## Phase 1: Load References Read the OpenCode platform overview and agent guide: 1. Read `${CLAUDE_PLUGIN_ROOT}/references/platform-overview.md` 2. Read `${CLAUDE_PLUGIN_ROOT}/references/agent-guide.md` --- ## Phase 2: Locate Agent Find the agent to update. If `$ARGUMENTS` is provided: 1. Check if the argument is a file path — read it directly 2. If it's an agent name — search for `{name}.md` in known directories If no arguments: 1. Search for OpenCode agents in the workspace: - `Glob` for `.opencode/agents/*.md` - `Glob` for `~/.config/opencode/agents/*.md` 2. Present found agents using `AskUserQuestion`: - Header: "Select Agent" - Question: "Which agent would you like to update?" - Options: List found agents (up to 4; include "Other" for custom path) Read the selected agent file and store its contents. --- ## Phase 3: Research Spawn the researcher agent to check latest documentation: ``` Task: subagent_type: "agent-alchemy-opencode-tools:oc-researcher" prompt: | Research the latest OpenCode documentation for a