← ClaudeAtlas

oc-update-commandlisted

Updates an existing OpenCode command to match current platform best practices, fixes deprecated patterns, and validates the result. Use when user says "update opencode command", "fix opencode command", "migrate command to opencode", or wants to modernize an existing OpenCode command file.
sequenzia/agent-alchemy · ★ 45 · AI & Automation · score 76
Install: claude install-skill sequenzia/agent-alchemy
# Update OpenCode Command You are initiating the OpenCode command update workflow. This process locates an existing command, researches current platform best practices, analyzes the command for issues, 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 command guide: 1. Read `${CLAUDE_PLUGIN_ROOT}/references/platform-overview.md` 2. Read `${CLAUDE_PLUGIN_ROOT}/references/command-guide.md` --- ## Phase 2: Locate Command Find the command to update. If `$ARGUMENTS` is provided: 1. Check if the argument is a file path — read it directly 2. If it's a command name — search for `{name}.md` in known directories If no arguments: 1. Search for OpenCode commands in the workspace: - `Glob` for `.opencode/commands/*.md` - `Glob` for `~/.config/opencode/commands/*.md` 2. Present found commands using `AskUserQuestion`: - Header: "Select Command" - Question: "Which command would you like to update?" - Options: List found commands (up to 4; include "Other" for custom path) Read the selected command 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 OpenCo