tmux
Skill29 starsChanged 7 months agoMITView on GitHub
Manage long-running commands in the user's current tmux session. Use when starting dev servers, watchers, background logs, or reading/interacting with named tmux panes.
26 other projects use a version of this.
Adopted by
Most recently taken up by
- JameMy0001/antigravity-skills-hubtheir own version, first seen Oct 2, 2026
- jonhill90/skillstheir own version, first seen Sep 30, 2026
- jellydn/my-ai-toolstheir own version, first seen Sep 28, 2026
- dstotijn/agent-skillstheir own version, first seen Sep 21, 2026
- ivanrvpereira/.agentstheir own version, first seen Aug 27, 2026
- jiesou/skillstheir own version, first seen Aug 16, 2026
Used with
Projects with it also use node-connect, gh-issues and 8 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
indranilbanerjeeSkillnode-connect
Diagnose DMClaw node connection and pairing failures for Android, iOS, and macOS companion apps. Use when QR/setup code/manual connect fails, local Wi-Fi works but VPS/tailnet does not, or errors mention pairing required, unauthorized, bootstrap token invalid or expired, gateway.bind, gateway.remote.url, Tailscale, or plugins.entries.device-pair.config.publicUrl.
Also in 3 projects that use this
GoogleSkillgh-issues
Fetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5] [--notify-channel -1002381931352]
Also in 4 projects that use this
overkillkultureSkillhealthcheck
Host security hardening and risk-tolerance configuration for OpenClaw deployments. Use when a user asks for security audits, firewall/SSH/update hardening, risk posture, exposure review, OpenClaw cron scheduling for periodic checks, or version status checks on a machine running OpenClaw (laptop, workstation, Pi, VPS).
Also in 5 projects that use this
AnthropicSkillpdf
Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.
Also in 5 projects that use this
AnthropicSkillxlsx
Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas
Also in 4 projects that use this
AWSSkilltdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
Also in 4 projects that use this
- +2 more from anthropics
Other versions26 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 26
- jellydn/my-ai-tools★ 122same name
- cohen-liel/hivemind★ 110same name
- seedprod/openclaw-prompts-and-skills★ 93same name
- yangkun19921001/PP-Claw★ 39same name
- ivanrvpereira/.agents★ 18same name
- Jay-523/agent-skills★ 17same name
- CodeAndCanvasLabs/Daemora★ 16same name
- clawsouls/soulclaw★ 9same name
- jonhill90/skills★ 9same name
- UserAd/ClaudeSkills★ 8same name
16 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository27 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- broSkill
- build-skillSkill
- cloudflareSkill
- cold-emailSkill
- composio-cliSkill
- copywritingSkill
- diff-walkthroughSkill
- emailsSkill
- frontend-designSkill
- grill-meSkill
- grill-with-docsSkill
- howSkill
- improve-codebase-architectureSkill
- index-knowledgeSkill
- install-skillSkill
- jira-toolSkill
- librarianSkill
- prospectingSkill
- repo-walkthroughSkill
- spec-plannerSkill
- teachSkill
- timesharingSkill
- unslopSkill
- using-git-worktreesSkill
- whySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
33 rules. 0 are common, 16 are distinctive, and 17 are very specific to this project.
0
Common
Most of the 23 edited versions we read keep these.
16
Distinctive
This author's own choices. Worth a look.
17
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use tmux for long-running or continuously logging commands.
- Very specific: line 15
Prefer side-by-side panes: use tmux split-window -h, then tmux select-layout even-horizontal.
- Very specific: line 16
Keep at most 4 server panes per window.
- Distinctive: line 21
Before starting a long-running command, say that it will run in tmux and name the intended pane/window.
- Distinctive: line 23
Use the helper scripts in this skill when possible.
- Distinctive: line 24
After creating or using a pane, report the exact session, window, pane id, and pane title.
- Distinctive: line 25
Always give the user copy/paste commands to attach and read logs.
- Distinctive: line 26
When the user refers to a pane by label, first list or resolve panes, then capture output from the matching pane.
- Very specific: line 27
Prefer reading recent logs with capture-pane.
- Distinctive: line 28
If a pane label is ambiguous, ask one short clarification question with the matching panes.
- Distinctive: line 48
If a command still asks for permission, request the broadest safe tmux-specific permission needed for the current workflow, not one tiny …
- Distinctive: line 58
Run scripts from this skill directory, usually via absolute path:
- Very specific: line 78
Use run-in-pane.sh for dev servers and watchers:
- Very specific: line 105
Use run-or-reuse-pane.sh when starting a named server that might already exist:
- Distinctive: line 114
If a pane with that name is running, it reads recent logs instead of duplicating the server.
- Very specific: line 115
If --replace is passed and cwd/command differs, it stops the old pane and starts a new one.
- Very specific: line 116
If the pane is missing, it delegates to run-in-pane.sh.
- Very specific: line 118
Use restart-pane.sh when the user asks to restart a known pane:
- Very specific: line 159
Use --raw only when the user asks for raw logs.
- Very specific: line 163
Use list-panes.sh when the user asks what is running, or when a label is unclear:
- Very specific: line 175
Use layout-window.sh whenever panes should be arranged or repaired after a split:
- Very specific: line 190
When the user asks for side-by-side or says a split is wrong, use this helper instead of raw tmux select-layout.
- Very specific: line 194
Use wait-for-text.sh after starting a server if you need to wait for readiness:
- Distinctive: line 201
Do not spin forever. If readiness text does not appear, capture recent logs and explain what is visible.
- Very specific: line 205
Use tail-pane.sh for short bounded monitoring after a command or file change:
- Distinctive: line 211
Never run unbounded tails.
- Very specific: line 215
Use send-to-pane.sh instead of raw tmux send-keys:
- Very specific: line 227
Use stop-pane.sh for panes created or managed by this skill:
- Distinctive: line 241
Never kill unrelated panes.
- Very specific: line 246
If a command clearly belongs to a repo/package, include that only when useful: web-admin, api-users.
- Distinctive: line 247
Avoid spaces and punctuation in pane names.
- Distinctive: line 252
After starting a command, say:
- Distinctive: line 265
If multiple server windows exist, mention the exact one.
“Common” is measured: kept by at least 6 in 10 of the 23 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Tmux Skill
Use tmux for long-running or continuously logging commands. Do not run dev servers, file watchers, database consoles, or tailing logs directly inside the OpenCode shell unless the user explicitly asks for inline output. Put them in a tmux pane and read them from there.
User Workflow
- One tmux session usually maps to one project or task area.
- Server processes belong in a window named
serversby default. - Multiple servers should be split into panes in that server window.
- Prefer side-by-side panes: use
tmux split-window -h, thentmux select-layout even-horizontal. Do not usetiledimmediately after a two-pane split because it may rearrange panes top/bottom. - Keep at most 4 server panes per window. If all matching server windows are full, create
servers-2,servers-3, etc. - Name every pane with a short, stable label so the user can refer to it later.
Required Agent Behavior
- Before starting a long-running command, say that it will run in tmux and name the intended pane/window.
- At the start of any tmux-managed workflow, use the permission preflight below if commands might be blocked. Ask/trigger permissions once up front instead of drip-feeding permission prompts like a haunted faucet.
- Use the helper scripts in this skill when possible. They handle naming, layout, and useful output. Less bespoke shell goblinry, more consistency.
- After creating or using a pane, report the exact session, window, pane id, and pane title.
- Always give the user copy/paste commands to attach and read logs.
- When the user refers to a pane by label, first list or resolve panes, then capture output from the matching pane.
- Prefer reading recent logs with
capture-pane; summarize the important parts instead of dumping huge logs. - If a pane label is ambiguous, ask one short clarification question with the matching panes.
Permission Preflight
This skill commonly needs permission for tmux control and its helper scripts. Prefer these allow rules in opencode/opencode.json so normal use does not pause on every tmux operation:
{
"permission": {
"bash": {
"tmux *": "allow",
"lsof *": "allow",
"$HOME/.config/opencode/skills/*/scripts/*.sh *": "allow",
"bash -n *opencode/skills/*/scripts/*.sh": "allow",
"bash *opencode/skills/build-skill/scripts/validate_skill.sh *opencode/skills/tmux*": "allow"
}
}
}If a command still asks for permission, request the broadest safe tmux-specific permission needed for the current workflow, not one tiny prompt at a time. Do not ask for unrestricted bash just to avoid thinking. Tempting, still lazy.
Commands this skill may run:
tmux list-sessions,tmux list-panes,tmux split-window,tmux new-window,tmux select-layout,tmux capture-pane,tmux send-keys,tmux kill-pane,tmux kill-sessionfor temp sessions it created.run-in-pane.sh,run-or-reuse-pane.sh,restart-pane.sh,read-pane.sh,tail-pane.sh,wait-for-text.sh,send-to-pane.sh,stop-pane.sh,layout-window.sh,managed-panes.sh,cleanup-dead-panes.sh.lsof -nP -iTCP:<port> -sTCP:LISTENfor port-conflict checks.
Scripts
Run scripts from this skill directory, usually via absolute path:
opencode/skills/tmux/scripts/run-in-pane.sh --name api -- npm run dev
opencode/skills/tmux/scripts/run-in-pane.sh --current-window --name api -- npm run dev
opencode/skills/tmux/scripts/run-or-reuse-pane.sh --name api -- pnpm dev
opencode/skills/tmux/scripts/restart-pane.sh api
opencode/skills/tmux/scripts/list-panes.sh
opencode/skills/tmux/scripts/layout-window.sh --side-by-side
opencode/skills/tmux/scripts/managed-panes.sh
opencode/skills/tmux/scripts/read-pane.sh api --lines 120
opencode/skills/tmux/scripts/tail-pane.sh api --seconds 20
opencode/skills/tmux/scripts/send-to-pane.sh api -- ctrl-c
opencode/skills/tmux/scripts/wait-for-text.sh --target api --pattern 'ready' --timeout 30
opencode/skills/tmux/scripts/stop-pane.sh api
opencode/skills/tmux/scripts/cleanup-dead-panes.shStarting Servers
Use run-in-pane.sh for dev servers and watchers:
opencode/skills/tmux/scripts/run-in-pane.sh --name web -- npm run dev
opencode/skills/tmux/scripts/run-in-pane.sh --name api -- pnpm dev
opencode/skills/tmux/scripts/run-in-pane.sh --name worker -- npm run worker
opencode/skills/tmux/scripts/run-in-pane.sh --current-window --name web -- npm run dev
opencode/skills/tmux/scripts/run-in-pane.sh --name web --port 3000 --wait-for 'Local:' -- npm run devDefaults:
- Session: current tmux session.
- Window prefix:
servers. - Max panes per server window:
4. - Pane title: value passed to
--name, or an inferred project/package name when omitted. - Working directory: current shell directory unless
--cwdis provided. - Pass
--current-windowwhen the user asks to run next to the current OpenCode pane instead of in theserverswindow. - Pass
--server-windowto force the managedserverswindow workflow. - Pass
--new-window NAMEto create a dedicated window. - Pass
--wait-for PATTERN --wait-timeout Nto wait for readiness in the same operation. - Pass
--port PORTto refuse startup when a port is already listening. Use--allow-port-conflictonly when the user explicitly wants that. Port fights are not a debugging strategy.
The script prints TMUX_SESSION, TMUX_WINDOW, TMUX_PANE_ID, TMUX_TARGET, attach commands, and capture commands. Include those in your response.
Reusing And Restarting
Use run-or-reuse-pane.sh when starting a named server that might already exist:
opencode/skills/tmux/scripts/run-or-reuse-pane.sh --name web --port 3000 --wait-for 'Local:' -- npm run dev
opencode/skills/tmux/scripts/run-or-reuse-pane.sh --current-window --name app -- pnpm dev:appBehavior:
- If a pane with that name is running, it reads recent logs instead of duplicating the server.
- If
--replaceis passed and cwd/command differs, it stops the old pane and starts a new one. - If the pane is missing, it delegates to
run-in-pane.sh.
Use restart-pane.sh when the user asks to restart a known pane:
opencode/skills/tmux/scripts/restart-pane.sh web --wait-for 'Local:'
opencode/skills/tmux/scripts/restart-pane.sh app --current-window -- pnpm dev:appIt uses the registry command/cwd when no replacement command is provided.
Managed Registry
Managed panes are recorded in ${OPENCODE_TMUX_REGISTRY:-${TMPDIR:-/tmp}/opencode-tmux-panes.tsv}.
Use these helpers:
opencode/skills/tmux/scripts/managed-panes.sh
opencode/skills/tmux/scripts/managed-panes.sh --all
opencode/skills/tmux/scripts/cleanup-dead-panes.shThe registry tracks pane name, pane id, target, session, window, cwd, command, placement, and update time. Use it to avoid duplicate servers and to restart panes reliably.
Reading Logs
Use read-pane.sh:
opencode/skills/tmux/scripts/read-pane.sh api --lines 200
opencode/skills/tmux/scripts/read-pane.sh %12 --lines 80
opencode/skills/tmux/scripts/read-pane.sh servers:1.2 --lines 120Target resolution order:
- Exact pane id like
%12. - Exact tmux target like
session:window.pane. - Exact pane title.
- Case-insensitive pane title substring.
- Current pane if no target is provided.
Use --raw only when the user asks for raw logs. Otherwise summarize.
Listing Panes
Use list-panes.sh when the user asks what is running, or when a label is unclear:
opencode/skills/tmux/scripts/list-panes.sh
opencode/skills/tmux/scripts/list-panes.sh --all-sessions
opencode/skills/tmux/scripts/list-panes.sh --window serversIt prints pane id, target, title, command, active state, and current path.
Layout Windows
Use layout-window.sh whenever panes should be arranged or repaired after a split:
opencode/skills/tmux/scripts/layout-window.sh --side-by-side
opencode/skills/tmux/scripts/layout-window.sh --side-by-side --target 0:6
opencode/skills/tmux/scripts/layout-window.sh --stacked --target serversDefaults:
- Target: current tmux window.
--side-by-side: applieseven-horizontalso panes sit left/right.--stacked: applieseven-verticalso panes sit top/bottom.- Prints the target window and pane list after applying the layout.
When the user asks for side-by-side or says a split is wrong, use this helper instead of raw tmux select-layout.
Waiting For Output
Use wait-for-text.sh after starting a server if you need to wait for readiness:
opencode/skills/tmux/scripts/wait-for-text.sh --target web --pattern 'Local:' --timeout 30
opencode/skills/tmux/scripts/wait-for-text.sh --target api --fixed --pattern 'ready' --timeout 45Do not spin forever. If readiness text does not appear, capture recent logs and explain what is visible.
Following Logs
Use tail-pane.sh for short bounded monitoring after a command or file change:
opencode/skills/tmux/scripts/tail-pane.sh web --seconds 20 --lines 100Never run unbounded tails. Bounded logs good; infinite scroll hypnosis bad.
Sending Input
Use send-to-pane.sh instead of raw tmux send-keys:
opencode/skills/tmux/scripts/send-to-pane.sh web -- ctrl-c
opencode/skills/tmux/scripts/send-to-pane.sh web --literal rs --enter
opencode/skills/tmux/scripts/send-to-pane.sh web -- h enterIt resolves pane ids, tmux targets, pane titles, and managed registry names.
Stopping Processes
Use stop-pane.sh for panes created or managed by this skill:
opencode/skills/tmux/scripts/stop-pane.sh api
opencode/skills/tmux/scripts/stop-pane.sh %12 --killDefaults:
- Resolves pane ids, tmux targets, exact pane titles, or title substrings.
- Sends
C-cfirst for graceful shutdown. - Kills the pane if it still exists after the grace period.
- Prints the stopped pane metadata.
Never kill unrelated panes. Tmux is not a piñata.
Naming Rules
- Pane names should be short and semantic:
web,api,worker,db,docs,storybook. - If a command clearly belongs to a repo/package, include that only when useful:
web-admin,api-users. - Avoid spaces and punctuation in pane names. Use lowercase kebab-case.
- Window names should stay
servers,servers-2,servers-3unless the user asks otherwise.
User-Facing Message Template
After starting a command, say:
Started `<command>` in tmux:
- Session: `<session>`
- Window: `<window>`
- Pane: `<pane-id>` / `<target>`
- Title: `<name>`
Attach: `tmux attach -t <session>`
Read logs: `tmux capture-pane -p -J -t '<pane-id>' -S -120`If multiple server windows exist, mention the exact one. Precision: still fashionable.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

