Token导航 LogoToken导航TokenDH.com
待分类操作浏览器github未标认证来源可访问许可证需确认审计通过

tmuxtmux 终端复用

Agent Skill

tmux 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

349

周安装

14

GitHub Stars

2

下载量

113
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/dtinth/agent-skills --skill tmux

简介

tmux 提供终端会话管理和后台命令执行能力。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

  • 适用于长时间运行任务、会话持久化和多窗口管理等开发场景。
  • 支持会话创建、窗口分割和命令后台执行等核心功能。
  • 使用前需熟悉 tmux 快捷键,注意会话命名规范和资源释放管理。
  • tmux 属于待分类类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

tmux lets you run commands in the background and check on them later. When you run a normal bash command, you have to wait for it to finish. With tmux, you can start a command, let it run in the background, and check its output whenever you want.

Key Terms:

  • Session: A container that holds your tabs. Like a browser window.
  • Tab: A place where one command runs. Like a browser tab. We call this a "window" in tmux.

Step 1: Create or Use a Session

Always do this first:

# Create a new session
tmux new-session -d -s mysession
  • Use the project name (e.g. working directory basename) as the session name.
  • If it fails with "duplicate session", it means the session already exists. It may be created by a prior session. You can use it, but check its state before continuing.
# See what sessions exist
tmux ls

# Delete a session when done
tmux kill-session -t mysession

Step 2: Create Tabs (Windows)

# Create a tab called "mytab" in session "mysession"
tmux new-window -t mysession -n mytab
  • Always give your tab a name. Don't use numbers.
  • Always specify the session name in the command line as there may be multiple tmux sessions active.
# See what tabs exist
tmux list-windows -t mysession

# Delete a tab
tmux kill-window -t mysession:mytab

Step 3: Run a Command in a Tab

# Run "npm start" in the "server" tab
tmux send-keys -t mysession:server 'npm start' Enter
  • Always end with Enter to actually run the command.
# Stop a running command: Send Ctrl+C
tmux send-keys -t mysession:server C-c

Common stop signals:

  • C-c = Ctrl+C (interrupt)
  • C-d = Ctrl+D (end input)

Step 4: Check What Happened

# See what's on screen now
tmux capture-pane -t mysession:server -p

If you don't see the output you want yet, sleep and run again. If you don't know how long it will take, start at 15 seconds, doubling the sleep duration each time, but never sleep more than 4 minutes (240 seconds).

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

31.8%
按下载量换算36

Claude

30.98%
按下载量换算35

Cursor

20.05%
按下载量换算23

Gemini CLI

8.85%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills