oc-update-agent
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.
npx skills add majiayu000/claude-skill-registry --skill oc-update-agent --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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
- Critical Rules
- AskUserQuestion is MANDATORY
- Phase 1: Load References
- Phase 2: Locate Agent
- Phase 3: Research
- Phase 4: Analyze
- Frontmatter Issues
- Body Issues
- Permission Issues
- Phase 5: Present Findings
- Phase 6: Apply Updates
- Phase 7: Validate
What does the oc-update-agent skill do?
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.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill oc-update-agent --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
