cli-wiring

Implement and route new commands in a command-line interface.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/barichter/squad --skill cli-wiring
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli-wiring
Source: https://github.com/barichter/squad/tree/main/.copilot/skills/cli-wiring
Command: npx skills add https://github.com/barichter/squad --skill cli-wiring

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides guidance on how to wire up new commands for a command-line interface, addressing the common challenge of adding new commands to an existing CLI.

Core Features & Use Cases

  • Command Implementation Guide: Offers a step-by-step checklist for creating new CLI commands, including file creation, routing, and help text addition.
  • Wiring Patterns: Details different command types and their wiring methods, ensuring the correct implementation for standard, placeholder, utility, and subcommands.
  • Import Patterns: Specifies a common import pattern for CLI components, promoting code consistency and maintainability.

Quick Start

Use the cli-wiring skill to add a new command 'build' to your CLI project following the outlined steps.

Frequently Asked Questions about cli-wiring

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

FAQPage Schema
How do I add a new command to an existing command-line interface?

To add a new command to a command-line interface, you need to follow a step-by-step checklist covering file creation, command routing, and help text addition to ensure proper wiring and integration within your CLI project.

What is the best way to wire up different types of CLI commands?

The best way to wire up CLI commands is by applying specific wiring patterns based on command type, ensuring correct implementation for standard, placeholder, utility, and subcommands within your command-line interface.

How do I maintain code consistency when implementing new CLI commands?

You maintain code consistency when implementing CLI commands by specifying a common import pattern for all CLI components, which promotes maintainability and standardizes how new command files are structured.

What steps are needed to implement a new build command in a CLI project?

Implementing a new build command in a CLI project requires following an outlined step-by-step process that includes creating the command file, applying the correct wiring pattern, and adding the necessary routing and help text.