command-creator

Generate slash command skeletons with YAML templates and Python scripts.

20|Updated Oct 13, 2025
One-click install
npx skills add https://github.com/malhashemi/dotfiles --skill command-creator-malhashemi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: command-creator
Source: https://github.com/malhashemi/dotfiles/tree/main/dot_config/opencode/skill/prompter/command-creator
Command: npx skills add https://github.com/malhashemi/dotfiles --skill command-creator-malhashemi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a standardized and efficient way to create, review, and understand the structure of slash commands, ensuring consistency and best practices across command development.

Core Features & Use Cases

  • Scaffolding: Generates skeleton files for new commands with predefined structures.
  • Template Reference: Offers a detailed YAML template (references/command.yaml) outlining all possible command sections and their usage.
  • Domain Patterns: Provides examples and explanations for common command patterns like argument handling and context injection.
  • Use Case: A developer needs to create a new slash command for the 'build' agent. They use this skill to quickly generate a compliant command skeleton, ensuring all necessary sections and best practices are followed from the start.

Quick Start

Use the command-creator skill to scaffold a new command named 'run-tests' for the 'build' agent in the '.opencode/command' directory.

Frequently Asked Questions about command-creator

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

FAQPage Schema
How do I generate a standardized slash command skeleton for my build agent?

To generate a slash command skeleton, use scaffolding scripts to quickly create compliant skeleton files with predefined structures. This ensures all necessary sections and best practices are followed from the start.

What is the best way to ensure consistency when creating new CLI commands?

The best way to ensure consistency across CLI command development is to use authoritative YAML templates. These templates outline all possible command sections and their usage, enforcing standardized patterns.

How does YAML command scaffolding work for code generation?

YAML command scaffolding works by providing a detailed template (`references/command.yaml`) that outlines command structures. Python-based generation scripts then use this structure to automate the creation of skeleton files.

Do I need any external dependencies to use Python-based command generation scripts?

No external dependencies are required to use the Python-based command generation scripts. The skill operates independently without needing additional packages or libraries installed.

Can I review and understand existing command structures using this scaffolding tool?

Yes, you can review and understand existing command structures using this scaffolding tool. It provides examples and explanations for common domain patterns like argument handling and context injection.

When should I not use automated scaffolding for command development?

You should not use automated scaffolding when your command requires highly custom, non-standard structures that deviate significantly from predefined YAML templates and common domain patterns.