CLI Command Wiring

Wire new CLI commands into squad-cli with routing and help text.

3|3|Updated Apr 13, 2026
One-click install
npx skills add https://github.com/quaid-app/quaid --skill cli-command-wiring-quaid-app
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: CLI Command Wiring
Source: https://github.com/quaid-app/quaid/tree/main/.copilot/skills/cli-wiring
Command: npx skills add https://github.com/quaid-app/quaid --skill cli-command-wiring-quaid-app

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamline the process of adding new CLI commands by guiding developers to create command modules, wire them into the router, and keep the CLI help in sync with new functionality.

Core Features & Use Cases

  • Create command file in the appropriate squad-cli directory and export a run<Name> handler.
  • Add routing blocks in cli-entry.ts to wire the command with dynamic imports and proper argument parsing.
  • Update the help text in cli-entry.ts to reflect the new command and its usage.
  • Validate wiring through the CLI by invoking the command and verifying its behavior.

Quick Start

Create the command file, wire it in cli-entry.ts, update the help text, and verify the command through the CLI.

Frequently Asked Questions about CLI Command Wiring

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

FAQPage Schema
How do I wire a new command into a TypeScript CLI router?

To wire a CLI command, create a command file with an exported handler, add routing blocks with dynamic imports in cli-entry.ts, and update the help text to document the new command usage.

What is the best way to add new commands to a CLI tool without breaking existing routing?

The best way to add CLI commands is using a structured wiring workflow: create the command module, wire it into cli-entry.ts with proper argument parsing, and synchronize the help text to maintain routing consistency.

How does dynamic import routing work for CLI command wiring in TypeScript?

Dynamic import routing in CLI wiring works by adding routing blocks in cli-entry.ts that lazily load command modules and parse arguments, ensuring new commands integrate without loading the entire CLI at startup.

Do I need to update help text manually when wiring new CLI commands?

Yes, you must manually update the help text in cli-entry.ts when wiring new CLI commands. Synchronizing help documentation with new routing blocks is a required step in the command wiring workflow.

Why is my newly wired CLI command not showing up in the CLI help?

A newly wired CLI command won't show up in help if the help text in cli-entry.ts wasn't updated. The wiring workflow requires synchronizing help documentation with the new command module and routing blocks.

Can I use CLI Command Wiring to add commands to any TypeScript CLI?

CLI Command Wiring is designed specifically for squad-cli. It requires creating properly named command files in the squad-cli directory and wiring routing blocks in cli-entry.ts to integrate commands consistently.