Tmux Debug

VerifiedSafe

Captures screen content from tmux panes to debug terminal sessions, monitor background processes, or inspect command output. Helps when you need to see what is running in another tmux pane without switching to it. Useful for examining scrollback history or checking on long-running processes.

Sby Skills Guide Bot
DevelopmentIntermediate
6/2/2026
Claude CodeCursorWindsurf
#tmux#debugging#terminal-monitoring#session-capture

Recommended for

Automated summary

Capture tmux pane content to debug terminal sessions or monitor background processes.

Strengths

  • Lists all available panes quickly
  • Captures with or without ANSI colors
  • Includes scrollback history
  • Simple and direct syntax

Limitations

  • Requires tmux to be installed and running
  • Only works within a tmux environment
  • Capture can be verbose for long sessions
When to use it

When you need to inspect output from a running process in another tmux pane without interrupting it.

When not to use it

If you need real-time interaction or the target process is not inside tmux.

Security analysis

Safe
Quality score80/100

The skill only uses local tmux capture-pane commands to read terminal output. There are no destructive operations, external network calls, or data exfiltration. It poses no meaningful execution risk.

No concerns found

How this analysis is made

Examples

List all panes
List all tmux panes so I can find which one contains my server process.
Capture specific pane
Capture the content of tmux pane session:0.1 to see the latest error logs.
Capture with scrollback
Capture the last 50 lines of scrollback from my current tmux pane to debug a crash.

name: tmux-debug description: | This skill captures and analyzes tmux pane content for debugging. Triggers: "debug tmux", "capture tmux output", "check other session", "tmux pane content", "what's in that terminal", "inspect background process", "tmux scrollback". Captures screen content from tmux panes to debug sessions or monitor processes.

Tmux Debug

Capture screen content from tmux panes to debug other terminal sessions, monitor background processes, or inspect command output.

Commands

List all panes

tmux list-panes -a -F '#{session_name}:#{window_index}.#{pane_index} #{pane_title}'

Capture current pane

tmux capture-pane -p
# With ANSI colors
tmux capture-pane -p -e 

Capture specific pane

tmux capture-pane -t 'session:window.pane' -p

Capture with scrollback history

# Last 100 lines of scrollback
tmux capture-pane -p -S -100

# Entire scrollback buffer
tmux capture-pane -p -S - -E -

Usage

  1. First list panes to find the target: tmux list-panes -a -F '...'
  2. Capture the pane content: tmux capture-pane -t 'target' -p
  3. Analyze the output for errors, status, or relevant information

$ARGUMENTS

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/tmux-debug-mm5t89ff/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/tmux-debug-mm5t89ff' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/tmux-debug-mm5t89ff/download' --output '.skill-downloads/tmux-debug-mm5t89ff/SKILL.md.part' && mv '.skill-downloads/tmux-debug-mm5t89ff/SKILL.md.part' '.skill-downloads/tmux-debug-mm5t89ff/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/tmux-debug-mm5t89ff/SKILL.md' && test -s '.skill-downloads/tmux-debug-mm5t89ff/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/tmux-debug' && cp -R '.skill-downloads/tmux-debug-mm5t89ff' '.claude/skills/tmux-debug'

Cursor
test -f '.skill-downloads/tmux-debug-mm5t89ff/SKILL.md' && test -s '.skill-downloads/tmux-debug-mm5t89ff/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/tmux-debug' && cp -R '.skill-downloads/tmux-debug-mm5t89ff' '.cursor/skills/tmux-debug'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/tmux-debug-mm5t89ff'

openskills read 'tmux-debug-mm5t89ff'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/tmux-debug-mm5t89ff/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills