CLI Command Wiring

Validate CLI command routing and help registration in TypeScript entrypoints.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill prevents CLI commands from being implemented but never reachable at runtime due to missing wiring and help registration.

Core Features & Use Cases

  • Routing validation: Confirms new command modules are actually imported and dispatched from the CLI entrypoint.
  • Help registration: Ensures newly added commands appear in the CLI “Commands:” section with usable descriptions and usage text.
  • Repeatable checklist: Reduces regressions like “step 1 done, steps 2–3 forgotten” when expanding the command set for a Node/TypeScript CLI.

Quick Start

Ask the AI to review your new CLI command changes against the wiring checklist and point out any missing routing or help registration steps in your cli-entry.ts.

Frequently Asked Questions about CLI Command Wiring

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

FAQPage Schema
Why is my TypeScript CLI command not recognized at runtime?

Your TypeScript CLI command is likely not recognized because the new module is missing dynamic import wiring or dispatch logic in the main entrypoint file. This skill checks the cli-entry.ts routing to ensure newly added command modules are properly imported and executed.

How do I add help text for a new command in a Node CLI?

To add help text for a new command in a Node CLI, you must register the command with a usable description and usage syntax under the Commands section in cli-entry.ts. This skill validates that your help registration matches your implemented commands.

How do I route a new command module from a CLI entrypoint in TypeScript?

To route a new command module from a CLI entrypoint in TypeScript, you need to verify dynamic imports and match command-name routing in the main function. This skill applies a checklist to confirm dispatch logic is correctly wired for your new modules.

What causes CLI regressions when expanding a Node command set?

CLI regressions when expanding a Node command set are typically caused by completing command implementation but forgetting routing or help registration steps. This skill prevents these regressions by validating both dispatch logic and help text entries.

Does this CLI wiring checklist work for commands stored in a separate folder?

Yes, this CLI wiring checklist specifically applies when modules are added under a commands folder. It ensures that dynamic imports and command-name routing in your main function correctly reference these external module files.