How this skill is triggered — by the user, by Claude, or both
Slash command
/tmux:tmux-send [<内容>] | [<pane_id>] When to use
when say send to,让 {number} do
[<内容>] | [<pane_id>] haikuThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Send content to a specified tmux pane and automatically press Enter.
Send content to a specified tmux pane and automatically press Enter.
Check $ARGUMENTS first; otherwise parse from natural language:
$ARGUMENTS contains both pane_id and content (e.g. %7 ls or 7 ls) → send directly$ARGUMENTS has only pane_id (no trailing content) → ask the user what to send$ARGUMENTS is empty → extract pane_id and content from conversation context; the user may say things like "send that code snippet to 7" or "send what you just modified to %3", where the content comes from existing code or text in the conversationAll scripts/ paths are relative to the directory containing this SKILL.md file. Resolve them to absolute paths before execution:
SKILL_DIR="$(dirname "$(realpath "${BASH_SOURCE[0]}")")" # or use the absolute path of this file's directory directly
In subsequent commands, replace bare scripts/xxx.sh with "$SKILL_DIR/scripts/xxx.sh".
Content must be sent exclusively through the script. Directly calling tmux send-keys or any other tmux command is strictly forbidden — no matter how simple the content, bypassing the script is not allowed. This ensures consistent behavior, avoids escaping issues, and simplifies maintenance.
# Method 1: pass content directly
bash "$SKILL_DIR/scripts/tmux_send.sh" "<pane_id>" "<content>"
# Method 2: pass a file path (suitable for long content)
bash "$SKILL_DIR/scripts/tmux_send.sh" "<pane_id>" "/tmp/message.txt"
npx claudepluginhub fingergohappy/ai-kit --plugin tmuxGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.