cursor avatar

Control Cli

When you need to reproduce a CLI bug or check how your TUI handles a resize, this gives Claude a structured way to drive interactive commands without manual poking. It prefers existing test harnesses but can spin up tmux sessions or PTY scripts to send keystrokes, wait for prompts, and capture transcripts. Handy for startup profiling, memory leak hunting, or recording terminal demos. The tmux and Python examples are bare bones enough to adapt quickly, and the deterministic wait advice will save you from flaky sleeps. Treats the harness as temporary unless your repo already has demo tooling.

skills.sh installs
2.6K
GitHub stars
15.9K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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.

Sponsors

Details

Repository
github.com/cursor/plugins
Categories
DevOps & CI/CD, AI & Agent Building, CLI & Terminal
First seen
Jun 23, 2026

More from cursor/plugins

All 47
1agricidaniel avatarblog-multilingualagricidaniel/claude-blogOne-command multilingual blog creation. Writes a blog post, translates it into user-specified languages, applies cultural adaptation, and emits hreflang tags, s2.6Kskills.sh installs
2forcedotcom avatardeveloping-datacloud-code-extensionforcedotcom/sf-skillsDevelop and deploy Data Cloud Code Extensions using SF CLI plugin. Use this skill when creating custom Python transformations for Data Cloud, deploying code ext2.5Kskills.sh installs
3nvidia avatarcuopt-installnvidia/skillsInstall cuOpt for Python, C, or server via pip, conda, or Docker; verify the install. For building cuOpt from source, see cuopt-developer.2.5Kskills.sh installs
4onmax avatarviteonmax/nuxt-skillsVite build tool configuration, plugin API, SSR, and Vite 8 Rolldown migration. Use when working with Vite projects, vite.config.ts, Vite plugins, or building li2.5Kskills.sh installs
5everyinc avatarcoding-tutoreveryinc/compound-engineering-pluginPersonalized coding tutorials that build on your existing knowledge and use your actual codebase for examples. Creates a persistent learning trail that compound2.5Kskills.sh installs
6vladmdgolam avatarblender-mcpvladmdgolam/agent-skillsBlender MCP expert for scene inspection, Python scripting, GLTF export, and material/animation extraction. Activate when: (1) using Blender MCP tools (get_scene2.5Kskills.sh installs