Internal helper contract for calling the opencode-runner from Claude Code subagents
From opencodenpx claudepluginhub apoapps/swarm-code-plugin --plugin opencodeThis skill uses the workspace's default tool permissions.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Optimizes cloud costs on AWS, Azure, GCP via rightsizing, tagging strategies, reserved instances, spot usage, and spending analysis. Use for expense reduction and governance.
Use this skill only inside the opencode:opencode-worker subagent.
Primary helpers:
node "${CLAUDE_PLUGIN_ROOT}/scripts/opencode-runner.mjs" ask "<prompt>"node "${CLAUDE_PLUGIN_ROOT}/scripts/opencode-runner.mjs" review [--base <ref>]node "${CLAUDE_PLUGIN_ROOT}/scripts/opencode-runner.mjs" plan "<prompt>"node "${CLAUDE_PLUGIN_ROOT}/scripts/opencode-runner.mjs" setup --jsonExecution rules:
opencode exec strings or any other Bash activity.status, result, or setup from the worker subagent.Model control:
/opencode:setup. The runner uses the configured priority list with automatic fallback.--model <model> only when the user explicitly requests a specific model.Command selection:
ask for general questions, explanations, debugging help.review for code review of git changes.plan for architecture and implementation planning.