command-development

Design and package OpenCode slash commands with YAML frontmatter and templates.

4|1|Updated Apr 23, 2026
One-click install
npx skills add https://github.com/johnnyasantoss/opencode-config --skill command-development-johnnyasantoss
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: command-development
Source: https://github.com/johnnyasantoss/opencode-config/tree/main/skills/command-development
Command: npx skills add https://github.com/johnnyasantoss/opencode-config --skill command-development-johnnyasantoss

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

OpenCode teams often struggle to design and reuse consistent slash commands with YAML frontmatter, agent routing, and modular patterns, so this skill provides a structured approach to craft templates that can be deployed across projects.

Core Features & Use Cases

  • Standardizes slash command structure with YAML frontmatter fields (description, agent, model, subtask)
  • Supports dynamic arguments, file references, and bash execution patterns to build powerful commands
  • Enables rapid command development across projects, teams, and workflows

Quick Start

Describe a required slash command and I will generate a complete template ready to use.

Frequently Asked Questions about command-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create reusable slash commands with YAML frontmatter?

You design slash commands by defining YAML frontmatter fields such as description, agent, model, and subtask, then packaging them with actionable templates. This standardizes command structure and enables rapid deployment across projects and team workflows.

Can I use dynamic arguments and file references in OpenCode slash commands?

Yes, slash commands support dynamic arguments, file references, and bash execution patterns. These features allow you to build powerful, flexible command templates that can interact with different project files and accept runtime parameters.

What is the best way to structure OpenCode slash command templates for team reuse?

The best way to structure slash command templates for team reuse is to apply consistent YAML frontmatter conventions and modular patterns. Standardizing fields like agent and subtask ensures commands are secure, clear, and easily reusable across different workflows.

Do I need external dependencies to build slash commands for OpenCode?

No external dependencies are required to build slash commands for OpenCode. The command development process relies entirely on native OpenCode frontmatter conventions, ensuring templates remain lightweight and portable across any project environment.

How does YAML frontmatter agent routing work in command development?

YAML frontmatter agent routing works by specifying an agent field within the command template definition. This directs the OpenCode system to process the command's actionable template using the designated agent and model for targeted task execution.

When should I not use modular slash command templates?

You should avoid modular slash command templates if your task requires a one-off, highly specific action that does not benefit from standardization or reuse. For isolated actions, maintaining strict YAML frontmatter conventions may add unnecessary overhead.