create-cli

Define CLI interfaces with YAML frontmatter and Markdown body sections.

1|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/jannolan200211-ship-it/my-cosmos-backup --skill create-cli-jannolan200211-ship-it
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-cli
Source: https://github.com/jannolan200211-ship-it/my-cosmos-backup/tree/main/03%20Reference/02%20System%20Configs/skills/create-cli
Command: npx skills add https://github.com/jannolan200211-ship-it/my-cosmos-backup --skill create-cli-jannolan200211-ship-it

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Design CLI surface area (syntax + behavior), human-first, script-friendly.

Core Features & Use Cases

  • Define command trees, usage syntax, and help text that remains stable for automation.
  • Specify args/flags, subcommands, output formats, error handling, and safety prompts.
  • Provide a migration path from design to implementation, ensuring consistency across tools.

Quick Start

Draft a concise CLI spec for a hypothetical tool named 'mycmd' with global help, a version flag, and a single subcommand.

Frequently Asked Questions about create-cli

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

FAQPage Schema
How do I design a CLI interface that is safe for automation?

Designing a CLI interface for automation involves specifying stable command trees, usage syntax, and help text. You must define consistent flags, subcommands, output formats, and safety prompts to ensure scripts rely on predictable behavior without breaking.

What is the best way to structure command trees and subcommands for a new CLI?

Structuring command trees and subcommands requires mapping a clear command hierarchy. Define global help, version flags, and specific subcommands, ensuring the syntax remains human-first while maintaining consistency across the entire tool surface.

How do I write CLI help text that remains stable for scripts?

Writing stable CLI help text requires specifying command usage syntax and output formats explicitly during initial design. Keep the command tree and flags consistent, ensuring automation scripts can parse the interface without encountering unexpected changes.

Does this CLI design approach support refactoring existing command-line tools?

Yes, this CLI design approach supports refactoring existing command-line tools. It provides a migration path from design to implementation, allowing you to redefine command trees, flags, and error handling to ensure consistency across tools during updates.

What safety controls do I need to define for a command-line interface?

Safety controls for a command-line interface include specifying safety prompts and robust error handling. You must define these controls alongside output formats and flags to prevent destructive actions and ensure script-friendly execution.