Complete toolkit for configuring and extending OpenCode: agent creation, custom slash commands, configuration management, plugin development, and SDK usage.
75
94%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
A user has a /review command that currently looks like this:
---
description: Review code
agent: plan
---
Review $ARGUMENTS for bugs. After fixing $ARGUMENTS, run /test to verify.Identify the problems with this command and produce a corrected version.
agent: plan is a read-only mode and cannot fix bugs or modify filesrun /test instruction — agents cannot invoke slash commands from within a command template; replace with npm test or a direct shell equivalent$ARGUMENTS twice in the same template; restructure to reference the target once without duplicationagent: key entirely (defaulting to the build agent) or change it to agent: build for file-modifying workagent: plan is read-only and cannot fix bugs/modify filesrun /test (agents can't invoke slash commands) and replaces with npm test or similar$ARGUMENTS twice in the same template; restructures to avoid duplicationagent: (uses default) or changes to agent: build for file-modifying workagent: plan in the corrected version without explaining or fixing the read-only limitationrun /test instruction or replaces it with another slash command invocation$ARGUMENTS more than once in the corrected templateagent: plan issue at all