Token导航 LogoToken导航

Agent Skill · 研究检索

tmux(tmux 终端复用)

tmux 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

tmux 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证为 MIT,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 73,449。

总安装 93周安装 4GitHub Stars 公开资料未说明下载 33核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tmux(tmux 终端复用)
来源仓库:https://github.com/plinde/claude-plugins
仓库路径:skills/tmux
安装命令:
npx skills add plinde/claude-plugins --skill "tmux"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add plinde/claude-plugins --skill "tmux"

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

tmux 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。适用于信息发现、技能搜索和任务导向的检索场景,帮助用户在复杂环境中快速获取所需资源。

通过关键词、任务描述或来源仓库进行查询,结合原始 README 文档进一步验证具体用法和功能。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。tmux 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/tmux

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add plinde/claude-plugins --skill "tmux";命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

tmux 怎么安装?

在终端执行 npx skills add plinde/claude-plugins --skill "tmux"。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

tmux 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

tmux 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add plinde/claude-plugins --skill "tmux" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

tmux 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

tmux 用的人多吗?

公开数据是累计安装 93 次,近一周安装 4 次,下载 33 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

tmux 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
tmux

tmux 终端复用 · 本页

93—执行命令MIT未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
tmux
description
This skill should be used when working with tmux terminal multiplexer for session management, window navigation, pane control, or creating tmux-based workflows for reviewing multiple files. Use when users need help with tmux commands, keybindings, session/window/pane operations, or custom tmux configurations.

tmux Terminal Multiplexer Skill

This skill provides guidance for working with tmux, a terminal multiplexer that enables multiple terminal sessions, windows, and panes within a single terminal window.

When to Use This Skill

Use this skill when:

  • Creating or managing tmux sessions, windows, or panes
  • Configuring tmux keybindings or settings in ~/.tmux.conf
  • Building workflows that leverage tmux for multi-file review or parallel tasks
  • Troubleshooting tmux configuration issues
  • Setting up custom tmux-based tools or functions

User's tmux Configuration

The user has a custom tmux configuration at ~/.tmux.conf with ergonomic keybindings optimized for file review workflows.

Custom Keybindings

Easy Window Navigation:

  • Option+] or Ctrl+Shift+] - Next window
  • Option+[ or Ctrl+Shift+[ - Previous window
  • Option+{ - Move current window left
  • Option+} - Move current window right

Direct Window Jumping:

  • Option+0 through Option+9 - Jump directly to window 0-9

Pane Switching:

  • Option+Left/Right/Up/Down - Navigate between panes

Synchronization:

  • Ctrl-b e - Toggle pane synchronization (send commands to all panes)

Standard tmux Keys (still available):

  • Ctrl-b n - Next window
  • Ctrl-b p - Previous window
  • Ctrl-b w - List all windows (visual selector)
  • Ctrl-b d - Detach from session
  • Ctrl-b c - Create new window
  • Ctrl-b , - Rename current window
  • Ctrl-b & - Kill current window
  • Ctrl-b x - Kill current pane
  • Ctrl-b " - Split pane horizontally
  • Ctrl-b % - Split pane vertically

Configuration Features

The user's ~/.tmux.conf includes:

# Mouse support enabled for scrolling and pane selection
set -g mouse on

# Pane border status showing index and running command
set -g pane-border-status top
set -g pane-border-format " #{pane_index} #{pane_current_command} "

Custom tmux Workflows

tmux-review Function

The user has a custom tmux-review shell function in ~/.zsh/claude-managed.zshrc for reviewing multiple files with glow markdown rendering.

Usage:

tmux-review file1.md file2.sh file3.txt [... more files]

Features:

  • Opens each file in a separate tmux window using glow for rendering
  • Creates a helper window (window 0) with navigation instructions
  • Generates unique session names with timestamps: review-$(date +%s)
  • Validates all files exist before starting
  • Helper text dynamically generated at /tmp/tmux-review-helper.md
  • Window names use truncated filenames (max 20 chars)

Example:

# Review S3 bucket analysis files
tmux-review compliant-buckets.md non-compliant-buckets.md remediation.sh jira-update.md

This creates a tmux session with:

  • Window 0: Helper text with navigation instructions
  • Window 1: compliant-buckets.md (rendered with glow)
  • Window 2: non-compliant-buckets.md (rendered with glow)
  • Window 3: remediation.sh (rendered with glow)
  • Window 4: jira-update.md (rendered with glow)

Navigate between files using Option+] / Option+[ or Ctrl+Shift+] / Ctrl+Shift+[.

Common tmux Operations

Session Management

Create new session:

# Basic session
tmux new-session -s session-name

# Detached session (create without attaching)
tmux new-session -s session-name -d

# Named session with initial window name
tmux new-session -s session-name -n window-name

List sessions:

tmux list-sessions
# or
tmux ls

Attach to session:

tmux attach-session -t session-name
# or short form
tmux attach -t session-name
# or even shorter
tmux a -t session-name

Detach from session:

  • Press Ctrl-b d inside tmux
  • Session keeps running in background

Kill session:

tmux kill-session -t session-name

Window Management

Create new window:

# Create window with name
tmux new-window -t session-name:window-number -n window-name

# Create window and run command
tmux new-window -t session-name:1 -n "logs" "tail -f /var/log/app.log"

Send commands to window:

# Send command and execute (C-m = Enter)
tmux send-keys -t session-name:window-number "command" C-m

# Example: Open file with glow in window 1
tmux send-keys -t myreview:1 "glow README.md" C-m

Select window:

tmux select-window -t session-name:window-number

List windows:

tmux list-windows -t session-name

Swap windows:

# Swap current window with next
tmux swap-window -t +1

# Swap current window with previous
tmux swap-window -t -1

Pane Management

Split pane horizontally:

  • Ctrl-b " (creates pane below)

Split pane vertically:

  • Ctrl-b % (creates pane to the right)

Navigate panes:

  • Use Option+Arrow keys (user's custom config)
  • Or Ctrl-b followed by arrow keys

Resize panes:

# From command mode (Ctrl-b :)
resize-pane -D 5  # Down by 5 lines
resize-pane -U 5  # Up by 5 lines
resize-pane -L 5  # Left by 5 columns
resize-pane -R 5  # Right by 5 columns

Synchronize panes:

  • Press Ctrl-b e to toggle (user's custom binding)
  • All panes receive the same input when synchronized
  • Useful for running commands on multiple servers

Kill pane:

  • Ctrl-b x then confirm with y

Configuration Management

Reload Configuration

After editing ~/.tmux.conf, reload it without restarting tmux:

From shell:

tmux source-file ~/.tmux.conf

From within tmux: Press Ctrl-b : then type:

source-file ~/.tmux.conf

Adding New Keybindings

Keybinding syntax in ~/.tmux.conf:

# Prefix-based binding (requires Ctrl-b first)
bind key-name command

# No-prefix binding (direct keypress)
bind -n key-name command

# Example prefix binding: Ctrl-b r to reload config
bind r source-file ~/.tmux.conf \; display "Config reloaded!"

# Example no-prefix: Option+h to split horizontally
bind -n M-h split-window -h

Key notation:

  • M- prefix = Option/Alt key (e.g., M-[ = Option+[)
  • C- prefix = Control key (e.g., C-b = Ctrl+b)
  • S- prefix = Shift key (e.g., C-S-[ = Ctrl+Shift+[)
  • Special keys: Left, Right, Up, Down, Enter, etc.
  • Brackets need quoting: bind -n "C-S-[" previous-window

Common binding patterns:

# Window navigation
bind -n M-] next-window
bind -n M-[ previous-window

# Pane navigation
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R

# Window jumping
bind -n M-1 select-window -t 1
bind -n M-2 select-window -t 2

# Toggle feature
bind e setw synchronize-panes

Common Configuration Options

# Enable mouse support (scroll, select panes, resize)
set -g mouse on

# Set default shell
set -g default-shell /bin/zsh

# Set scrollback buffer size
set -g history-limit 10000

# Start window numbering at 1 instead of 0
set -g base-index 1

# Start pane numbering at 1 instead of 0
setw -g pane-base-index 1

# Renumber windows when one is closed
set -g renumber-windows on

# Set status bar position
set -g status-position top  # or bottom

# Status bar styling
set -g status-bg black
set -g status-fg white
set -g status-left '[#S] '
set -g status-right '%H:%M %d-%b-%y'

# Pane border styling
set -g pane-border-status top
set -g pane-border-format " #{pane_index} #{pane_current_command} "
set -g pane-border-style fg=colour240
set -g pane-active-border-style fg=colour33

Creating tmux-Based Workflows

When building custom tmux workflows (like tmux-review), follow this pattern:

1. Create session with descriptive name:

tmux new-session -s "workflow-name" -d

2. Create windows for each task:

tmux new-window -t workflow-name:1 -n "window-name"

3. Send commands to windows:

tmux send-keys -t workflow-name:1 "command" C-m

4. Select starting window:

tmux select-window -t workflow-name:0

5. Attach to session:

tmux attach-session -t workflow-name

Complete example workflow:

# Create a code review session
review_code() {
  local session="code-review-$(date +%s)"

  # Create session with helper window
  tmux new-session -s "$session" -d -n "helper"
  tmux send-keys -t "$session:0" "cat review-checklist.md" C-m

  # Window 1: Main code
  tmux new-window -t "$session:1" -n "main"
  tmux send-keys -t "$session:1" "vim src/main.py" C-m

  # Window 2: Tests
  tmux new-window -t "$session:2" -n "tests"
  tmux send-keys -t "$session:2" "vim tests/test_main.py" C-m

  # Window 3: Run tests
  tmux new-window -t "$session:3" -n "pytest"
  tmux send-keys -t "$session:3" "pytest -v" C-m

  # Start at helper window
  tmux select-window -t "$session:0"
  tmux attach-session -t "$session"
}

Troubleshooting

Syntax Errors in Configuration

Common issues:

Escaped semicolons: Use space before \; in command chains

# Correct
bind r source-file ~/.tmux.conf \; display "Reloaded"

# Incorrect
bind r source-file ~/.tmux.conf\; display "Reloaded"

Special characters in keybindings: Quote brackets and special chars

# Correct
bind -n "C-S-[" previous-window

# May fail
bind -n C-S-[ previous-window

Invalid key names: Check tmux version compatibility

tmux -V  # Check version

Session Not Found

If tmux attach fails:

# List all sessions to find correct name
tmux ls

# Create new session if none exists
tmux new-session -s session-name

Configuration Not Loading

Verify configuration file exists:

ls -la ~/.tmux.conf

Check for syntax errors:

# This will show syntax errors if any exist
tmux source-file ~/.tmux.conf

View current tmux configuration:

# Show all current settings
tmux show-options -g

# Show all current keybindings
tmux list-keys

Keybindings Not Working

Check if keybinding conflicts with terminal emulator:

  • Some terminals intercept Ctrl+Shift+[ before tmux sees it
  • Test with Option+[ alternative
  • Use tmux list-keys to verify bindings are registered

Check if you're in a nested tmux session:

# From inside tmux
echo $TMUX
# If this shows a value, you're in tmux

Self-Test

To verify this skill is working correctly:

  1. Check tmux installation and version:
   tmux -V

Expected: tmux 3.5a or similar

  1. Verify user's configuration exists:
   cat ~/.tmux.conf

Expected: Should show custom keybindings

  1. Test the tmux-review function exists:
   type tmux-review

Expected: Should show function definition

  1. Create and test a session:
   tmux new-session -s test -d
   tmux ls | grep test
   tmux kill-session -t test

Expected: Session appears in list, then is removed

All commands should execute without errors.

平台分布

OpenCode

51.16%
按下载量换算17

github-copilot

28.9%
按下载量换算10

Claude Code

13.65%
按下载量换算5

安全审计

暂无安全审计结果可展示。

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add plinde/claude-plugins --skill "tmux" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills