/cursor-team-kit:control-clifrom cursor-team-kit
Builds a local harness to drive, inspect, and profile interactive CLIs or TUIs using tmux, PTY scripts, or Node inspectors. Useful for reproducing bugs, verifying keyboard flows, profiling startup or memory, and recording terminal demos.
Ships in cursor-team-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
tmux: managed sessions, capture-pane, send-keys, attach/detach.SESSION="cli-harness-$(date +%s)"
tmux new-session -d -s "$SESSION" -- <command-under-test>
tmux capture-pane -pt "$SESSION"
tmux send-keys -t "$SESSION" "help" Enter
tmux capture-pane -pt "$SESSION"
tmux kill-session -t "$SESSION"
For Node CLIs:
NODE_OPTIONS="--inspect=127.0.0.1:0" tmux new-session -d -s "$SESSION" -- <node-cli-command>
Read the terminal output to find the inspector URL, then use Chrome DevTools-compatible tooling if profiling is needed.
Use a PTY script when you need deterministic waits in a repo that does not have tmux or a demo harness. Keep it temporary unless the user asks to add a reusable test.
import os
import pty
import select
import subprocess
import time
master_fd, slave_fd = pty.openpty()
proc = subprocess.Popen(
["<command>", "<arg>"],
stdin=slave_fd,
stdout=slave_fd,
stderr=slave_fd,
close_fds=True,
)
os.close(slave_fd)
deadline = time.time() + 30
buffer = b""
while time.time() < deadline:
ready, _, _ = select.select([master_fd], [], [], 0.25)
if not ready:
continue
chunk = os.read(master_fd, 4096)
buffer += chunk
if b"<ready text>" in buffer:
os.write(master_fd, b"help\n")
break
print(buffer.decode(errors="replace"))
proc.terminate()
os.close(master_fd)
If the CLI needs richer terminal control, use pty.fork() or an existing PTY library.
/tmp unless the repo already has a testing/demo harness.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
cli-testing, tui-testing, terminal-harness, tmux, pty, profiling
16 skills in this plugin
/check-compiler-errorsRun compile and type-check commands and report failures/control-uiBuild or adapt a local browser/CDP harness to drive and inspect a web, IDE, or Electron UI. Use for local UI verification, screenshots, accessibility snapshots, perf profiles, visual diffs, or reproducing UI bugs./deslopRemove AI-generated code slop and clean up code style/fix-ciFind failing PR checks, inspect logs or external check links, and apply focused fixes/fix-merge-conflictsResolve merge conflicts non-interactively, validate build and tests, and finalize conflict resolution/get-pr-commentsFetch and summarize review comments from the active pull requestnpx claudepluginhub ultish/pstack-claude --plugin cursor-team-kit29 plugins ship this exact skill · first indexed Jul 18, 2026
Other plugins' skills for the same job