← Back to list

cleanup-panes
by trentshaines
⭐ 0🍴 0📅 Jan 25, 2026
SKILL.md
name: cleanup-panes description: Clean up tmux panes. Use when user wants to close/kill all other panes, clean up tmux window, or reset pane layout.
Cleanup Panes Skill
Overview
Closes all tmux panes in the current window except the one you're in.
Trigger
User invokes /cleanup-panes or asks to clean up/close other panes.
Instructions
Execute this bash script:
#!/bin/bash
ORIGINAL_PANE=$(tmux display-message -p '#{pane_id}')
echo "Keeping pane: $ORIGINAL_PANE"
# Get all panes except original, then kill each
PANES_TO_KILL=$(tmux list-panes -F '#{pane_id}' | grep -v "^${ORIGINAL_PANE}$")
if [ -z "$PANES_TO_KILL" ]; then
echo "No other panes to close."
else
COUNT=0
while IFS= read -r PANE; do
if [ -n "$PANE" ]; then
tmux kill-pane -t "$PANE" 2>/dev/null && ((COUNT++))
fi
done <<< "$PANES_TO_KILL"
echo "Closed $COUNT panes. Only current pane remains."
fi
Important Notes
- Only affects the current tmux window
- Preserves the pane you're currently in
- Safe to run even if there are no other panes
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon