cli-command-debugger

Automate CLI command debugging workflows in monorepos using npm run dev and myclit.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/linzb93/cli-tools --skill cli-command-debugger
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli-command-debugger
Source: https://github.com/linzb93/cli-tools/tree/main/.trae/skills/cli-command-debugger
Command: npx skills add https://github.com/linzb93/cli-tools --skill cli-command-debugger

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Debugging CLI commands within a local codebase can be time-consuming and error-prone without a structured workflow. This skill automates locating the relevant command implementation and scaffolding a focused debug environment to reproduce and fix issues quickly.

Core Features & Use Cases

  • Locate CLI command implementations in packages/cli/src/bin.ts and related imports.
  • Copy and isolate the relevant command code into bin-test.ts while preserving the existing program structure.
  • Start a targeted debugging session using npm run dev and validate fixes with the myclit entry point.

Quick Start

Describe the CLI bug and run the skill to extract the relevant command into bin-test.ts, then start debugging with npm run dev.

Frequently Asked Questions about cli-command-debugger

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

FAQPage Schema
How do I debug a CLI command inside a monorepo without breaking the existing program structure?

You can debug a CLI command in a monorepo by extracting the command implementation into bin-test.ts. This isolates the relevant code while preserving the existing program structure and handling import dependencies for safe debugging.

What is the best way to automate locating CLI command implementations for a fast debugging session?

Automating CLI bug hunting involves locating the command implementation in packages/cli/src/bin.ts and scaffolding a focused debug environment. It then runs a targeted debug session using npm run dev to reproduce issues quickly.

How do I set up a focused debug environment for monorepo CLI commands?

Setting up a focused debug environment for monorepo CLI commands involves copying the relevant command code into bin-test.ts. After extraction, you start a targeted debugging session using npm run dev and validate fixes with the myclit entry point.

Does this CLI debugging workflow handle import dependencies when extracting code?

Yes, this CLI debugging workflow handles import dependencies during code extraction. It ensures safe code extraction within a constrained region, preserving existing program structure while isolating the relevant command into bin-test.ts.

Can I use this approach to debug any CLI command in a local codebase?

You can use this approach to debug CLI commands if your local codebase is structured as a monorepo with command implementations located in packages/cli/src/bin.ts. It specifically targets extracting code and running npm run dev for validation.

Why does extracting CLI code manually for debugging cause errors in a monorepo?

Extracting CLI code manually for debugging causes errors because it often breaks import dependencies and disrupts the existing program structure. Automating this workflow ensures code is safely extracted within a constrained region for focused debugging.