zellij-control
使用 Zellij 终端复用器控制交互式 CLI 程序。当需要运行需要键盘交互的 TUI 应用(htop、btop、lazygit、fzf)、REPL(python、bun repl)或分页器(less、bat)时使用此技能。不适用于非交互式命令(直接用 Bash)或文件编辑(直接用 Edit 工具)。
Security Assessment
About zellij-control
The 'zellij-control' skill enables users to control interactive CLI programs using the Zellij terminal multiplexer. This skill is specifically designed for applications that require keyboard interaction, such as TUI (Text User Interface) programs like htop, btop, lazygit, and fzf, as well as REPLs (Read-Eval-Print Loops) like Python and Bun REPL, and pagers like less and bat. By integrating with Zellij, users can automate interactions with these programs in a terminal environment, making it easier to handle tasks that involve frequent user inputs or complex key commands.
FAQ
What is Zellij and why is it used with interactive programs?
Zellij is a terminal multiplexer that allows users to manage multiple terminal windows (panes) within a single terminal session. This skill uses Zellij to automate and control interactive programs that require user input, making it useful for tasks that need continuous or complex interactions.
Can I use this skill with non-interactive commands?
No, this skill is specifically designed for interactive applications that require user input (e.g., TUI apps, REPLs). Non-interactive commands or file-editing tools (like the Edit tool) are not supported.
How do I exit the programs controlled by Zellij?
The exit method depends on the program you're using. For example, to exit htop or btop, you would press 'q'. For REPLs like Python or Bun, 'Ctrl+D' or '.exit' followed by Enter will quit the program.
Is it necessary to send 'Enter' after each command?
Yes, it is recommended to always send 'Enter' (represented as $'\n') after commands to ensure they are executed properly in the interactive environment.
Does the skill support reading output from the programs?
Yes, you can use the 'dump-screen' command to capture and read the output of the programs running inside Zellij. The output can be saved to a file in memory using the '/dev/shm' filesystem.
Install zellij-control
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
cuipengfei/prompts