Skill: OpenCode Command Authoring
Goal
Create and manage OpenCode commands with valid frontmatter and predictable execution.
Use This Skill When
- •You need to create a new OpenCode command file.
- •You want to list or run existing OpenCode commands.
- •The task mentions
create-commandoropencode-command.
Do Not Use This Skill When
- •The task is unrelated to OpenCode commands.
- •You only need to run generic shell commands.
Inputs
- •Command name and purpose.
- •Command frontmatter description.
- •Workspace location of
.opencode/command.
Steps
- •Use
bin/create-commandorbin/opencode-commandto create commands. - •Ensure frontmatter includes a
descriptionfield. - •Validate the command file exists under
.opencode/command. - •Use
opencode-command --listto verify registration. - •Run the command with
opencode-command --run <name>.
Output
- •A command file in
.opencode/command/<name>.md. - •Successful command execution or validation output.
References
- •Command tooling:
bin/create-command - •Command wrapper:
bin/opencode-command - •Workspace command list:
AGENTS.md