command-creation

Installation
SKILL.md
Contains Shell Commands

This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.

Command Creation for OpenCode

Create custom slash commands for repetitive tasks that execute specific prompts with dynamic arguments.

MUST FOLLOW

Commands must only specify agent in their frontmatter — never model. Model selection is managed at the agent level in opencode.json. Adding a model field to a command bypasses centralized configuration and creates inconsistency across the project.

Always ask the user which agent should run the command. The agent: field is required and must never be omitted. The two primary choices are:

  • build — For commands that create or modify files, run tests, build, or deploy
  • plan — For commands that analyze, review, or read without making changes
---
description: Brief description
agent: build   # or: plan
---
Related skills
Installs
4
GitHub Stars
10
First Seen
Mar 15, 2026