一键导入
tmux
Use when interacting with TUI applications, or running processes that require stdin interaction. For non-interactive long-running tasks, prefer pueue instead.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when interacting with TUI applications, or running processes that require stdin interaction. For non-interactive long-running tasks, prefer pueue instead.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | tmux |
| description | Use when interacting with TUI applications, or running processes that require stdin interaction. For non-interactive long-running tasks, prefer pueue instead. |
Claude controls tmux via CLI commands. Use for tasks that persist, run in background, or require interaction with running processes.
Use tmux if ANY condition is met:
For non-interactive long-running tasks: prefer pueue (better status tracking, JSON output, dependencies)
For simple background tasks: use Bash tool's run_in_background parameter
tmux kill-server or tmux attachclaude instance unless explicitly instructedclaude- prefix for all session namesPrefix all sessions with claude- to identify ownership:
tmux new-session -d -s claude-build
tmux new-session -d -s claude-dev-server
echo $TMUX # Set if inside tmux
echo $TMUX_PANE # Set if inside tmux
If set, Claude can split panes when user requests.
Only use when $TMUX is set. Warning: Be careful with interactive apps (htop, btop) - only run if user explicitly requests.
# Split horizontally (side by side)
tmux split-window -h -c /home/user/project "npm run dev"
# Split vertically (top/bottom), 30% height
tmux split-window -v -p 30 -c /home/user/project "npm run dev"
# Check if session exists (do this first!)
tmux has-session -t claude-task-name 2>/dev/null && echo "exists" || echo "not found"
# Create detached session
tmux new-session -d -s claude-task-name
# List all sessions
tmux list-sessions
# Kill session (ONLY if created in this conversation)
tmux kill-session -t claude-task-name
# Capture output (must use -p to print to stdout)
tmux capture-pane -t claude-task-name -p -S -50
# Capture entire scrollback
tmux capture-pane -t claude-task-name -p -S -
Key flags: -p (print to stdout), -t (target), -S (lines back), -E (end line)
Before send-keys: Check what's running with capture-pane first.
# Run shell command (quoted, with Enter)
tmux send-keys -t claude-build 'npm run dev' Enter
# Answer prompt
tmux send-keys -t claude-task 'y' Enter
# Interrupt process (no quotes for special keys)
tmux send-keys -t claude-build C-c
# Close shell
tmux send-keys -t claude-task C-d
Special keys: Enter, C-c, C-d, C-z, Escape, Tab, Up, Down, Space
Shell commands: Quoted with Enter
Special keys: Unquoted (e.g., C-c)
tmux new-session -d -s claude-build
tmux send-keys -t claude-build 'cd /home/user/project && npm run build' Enter
Alternative: For simple background tasks, use Bash tool's run_in_background parameter.
tmux capture-pane -t claude-build -p -S -50
Tell user:
The server is running in a tmux session. To view interactively:
tmux attach -t claude-dev-server
cd before running commands in new sessions-p flag in capture-paneEnter after shell commands in send-keys$TMUX first)has-session first)Skills for accessing and searching docs in DeepWiki/GitHub’s public code repositories can help users understand open-source project source codes, and users can also ask questions directly about the code docs.
Interact with local Chrome browser session (only on explicit user approval after being asked to inspect, debug, or interact with a page open in Chrome)
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
Web reading, search, academic research, NLP, screenshots, and PDF extraction via Jina AI mcpcall. TRIGGER when need to read a URL, search the web, find academic papers (arXiv/SSRN), classify text, rerank documents, deduplicate content, capture screenshots, or extract PDF figures.
Guide and template for converting MCP servers into self-contained Claude Code skills with a Python wrapper script. TRIGGER when creating a new MCP skill, wrapping an MCP server as a skill, or need the mcpcall script template.
AI-powered documentation for GitHub repositories via DeepWiki MCP. TRIGGER when need to understand a GitHub repository, read its documentation topics, ask questions about a repo's codebase, architecture, or usage, or explore how an open-source project works.