| name | opencode-command-authoring |
| description | Create and manage OpenCode commands with valid frontmatter and predictable execution |
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-command or opencode-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-command or bin/opencode-command to create commands.
- Ensure frontmatter includes a
description field.
- Validate the command file exists under
.opencode/command.
- Use
opencode-command --list to verify registration.
- Run the command with
opencode-command --run <name>.
Common Commands
create-command --name <command>
opencode-command --list
opencode-command --name <command>
opencode-command --run <command>
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