一键导入
tmux-merge-sessions
Use when the user wants to consolidate multiple tmux sessions into a single session's windows, or unify many tmux sessions into one tabbed view.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when the user wants to consolidate multiple tmux sessions into a single session's windows, or unify many tmux sessions into one tabbed view.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when starting a brand-new project or repository from scratch — triggers like "bootstrap a project", "start a new project", "new repo", "init a repo and put it on GitHub", "spin up a new private repo", "create me a new project". For going from nothing to a named, private GitHub repo with onboarding files.
React performance optimization guidelines. This skill should be used when writing, reviewing, or refactoring React code to ensure optimal performance patterns. Triggers on tasks involving React components, data fetching, bundle optimization, or performance improvements.
Use when building a pinned bottom action bar (submit, next, mark-complete, navigate) that stays docked to the viewport while users scroll long content — common in lessons, challenges, forms, and multi-step wizards. Trigger on phrases like "sticky bar", "docked footer", "floating submit", "pinned action bar", or when primary actions risk being scrolled out of view.
| name | tmux-merge-sessions |
| description | Use when the user wants to consolidate multiple tmux sessions into a single session's windows, or unify many tmux sessions into one tabbed view. |
Consolidate multiple tmux sessions into one session where each original session becomes a named window. Uses move-window to migrate windows and renames them by origin session for clarity.
Survey the landscape
tmux list-sessions
tmux list-windows -a
Pick a target session — usually the currently attached one.
Rename existing windows in the target so their origin is clear:
tmux rename-window -t TARGET:0 "descriptive-name"
Move each window from other sessions (omit target window number to auto-assign):
tmux move-window -s SOURCE_SESSION:WINDOW_NUM -t TARGET_SESSION:
Rename the moved window immediately (tmux assigns the next available slot):
tmux rename-window -t TARGET:NEW_NUM "source-session-name"
Verify:
tmux list-windows -t TARGET_SESSION
Consolidate sessions 13, control-plane, waiting-plan-gen into session 12:
tmux rename-window -t 12:0 "12-a"
tmux move-window -s 13:0 -t 12:
tmux rename-window -t 12:2 "13"
tmux move-window -s control-plane:2 -t 12:
tmux rename-window -t 12:3 "ctrl-plane-a"
tmux move-window -s control-plane:4 -t 12:
tmux rename-window -t 12:4 "ctrl-plane-b"
tmux move-window -s waiting-plan-gen:0 -t 12:
tmux rename-window -t 12:5 "plan-gen"
| Key | Action |
|---|---|
Ctrl+b w | Visual window picker |
Ctrl+b <number> | Jump to window by index |
Ctrl+b n / p | Next / previous window |