microck/ordinary-claude-skills
Using Tmux For Interactive Commands
Dans l'annuaire depuis le 18 novembre 2026.
Description
Quand vous avez besoin que Claude pilote des outils interactifs en ligne de commande comme vim, git rebase -i ou les REPL Python, ce Skill propose un schéma basé sur tmux pour répondre aux exigences de terminal réel de ces outils.
Voir la description originale (anglais)
When you need Claude to control interactive CLI tools like vim, git rebase -i, or Python REPLs, this provides a tmux-based pattern for handling the real terminal requirements those tools expect. The approach is straightforward: spin up a detached tmux session, use send-keys to inject commands (including special keys like Enter and Escape), and capture-pane to see what's on screen. The skill includes practical examples for common scenarios like editing files in vim programmatically and automating interactive git workflows. The main gotcha is remembering to add a brief sleep after starting sessions so tools have time to initialize before you try capturing output. It's the difference between Claude hanging on interactive commands and actually being able to control them.
Installer le skill
- 1Copiez la commande d'installation (bouton Copier, en haut de la fiche).
- 2Lancez-la dans un terminal, sur la machine où vous utilisez Claude Code.
- 3Demandez la tâche à Claude comme d'habitude : il charge le skill quand la demande s'y prête.