Skip to content
cursor avatar

Control Cli

Local harness that drives, inspects, and profiles an interactive CLI or TUI without external services.

CCM score
64 of 100
skills.sh installs
2.8K
GitHub stars
20.2K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the harness loop from locating the command under test through capturing screens, sending one action at a time, and cleaning up
  • Includes tmux capture-and-send recipes, a standalone PTY probe, Node inspector profiling, and terminal recording options
  • Enforces deterministic waits on screen patterns over sleeps, plus temp-only harnesses in /tmp unless the repo already has one
  • Designed for reproducing CLI/TUI bugs, verifying prompts and resize behavior, and profiling startup, hangs, or memory growth

Install

$ npx -y skills add cursor/plugins --skill control-cli -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Control CLI

Use a repeatable local harness to exercise an interactive CLI instead of poking at it manually. First reuse the repo's own test/demo harness if it exists; otherwise assemble a temporary harness from standard local tools.

What It Is Used For

  • Reproducing CLI/TUI bugs with deterministic input.
  • Verifying keyboard flows, prompts, interrupts, resize behavior, and terminal layout.
  • Capturing before/after transcripts for bug fixes.
  • Profiling startup time, slow operations, hangs, or memory growth.
  • Recording a short terminal demo when output is easier to show than explain.

Harness Loop

  1. Identify the command under test and the smallest reproducible workspace.
  2. Discover existing local harnesses: package scripts, e2e tests, demo recorders, expect scripts, or PTY helpers.
  3. If no harness exists, launch the CLI in an isolated terminal session with deterministic env vars.
  4. Capture the current screen before interacting.
  5. Send one action at a time: text, Enter, arrows, Escape, Ctrl-C, resize.
  6. Wait for a concrete screen pattern or prompt before the next action.
  7. Save the transcript and any profile artifacts.
  8. Kill the session cleanly.

Details

Repository
github.com/cursor/plugins
Categories
CLI & Terminal, Testing & QA, Debugging
First seen
Jun 23, 2026

Questions

What does the control-cli skill do?

The control-cli skill builds or adapts a local harness to drive, inspect, and profile an interactive CLI or TUI without external services. It covers CLI UX checks, startup regressions, memory leaks, hangs, prompt flows, and terminal demos.

How do I install control-cli?

Run npx -y skills add cursor/plugins --skill control-cli -y in your project. Once installed, the agent can drive a CLI through tmux or a PTY script to reproduce bugs and capture transcripts.

Who is control-cli for?

It suits developers who need to test or debug an interactive command-line app or terminal UI with repeatable input. It is useful for checking keyboard flows, prompts, resize behavior, and startup time.

What tools does control-cli need?

It uses standard local tools such as tmux, a Python or Node PTY probe, or the Node or Bun inspector for profiling. It reuses the repo's own test or demo harness when one exists.

Where does control-cli rank in its category?

In the CLI & Terminal category it ranks in the top 50 on Claude Marketplaces. It stands out by building a deterministic harness for profiling startup, hangs, and memory growth in a local CLI.

More from cursor/plugins

All 93

Similar to Control Cli

More CLI & Terminal