From cmux-tools
This skill should be used when the user asks to "spawn a new session", "open a new Claude tab", "start a side task", "run this in a new session", "run in parallel", "새 탭 열어줘", "사이드 태스크 시작해줘", "cmux spawn", or wants to launch a parallel Claude Code session in a new cmux terminal tab within the current workspace.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cmux-tools:spawnThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Spawn a new Claude Code session as a terminal tab within the current cmux workspace. Useful for side tasks unrelated to the current conversation.
Spawn a new Claude Code session as a terminal tab within the current cmux workspace. Useful for side tasks unrelated to the current conversation.
Before spawning, verify the cmux environment with a single Bash call:
[ -S "${CMUX_SOCKET_PATH:-/tmp/cmux.sock}" ] && [ -n "${CMUX_WORKSPACE_ID}" ] && echo "OK" || echo "FAIL"
If the check fails, report the error in the user's language and stop:
CMUX_WORKSPACE_ID → "cmux 워크스페이스 환경이 아닙니다. cmux 터미널에서 실행하세요."The argument string passed to this skill is the prompt for the new session. If no argument is provided, open a blank Claude session.
cmux new-surface --type terminal --workspace "$CMUX_WORKSPACE_ID"
Capture the surface ID from stdout for use in the next step.
cmux send interprets \\n as a newline (Enter key). Use this to submit the command.
Without prompt:
cmux send --surface "<surface-id>" "cd $PWD && claude\\n"
With prompt:
Escape single quotes in the user's prompt as '\\'' before interpolation:
cmux send --surface "<surface-id>" "cd $PWD && claude --prompt '<escaped-prompt>'\\n"
The full argument string is treated as the prompt. No flags in v0.1.
Future versions may support flags like --split, --model, --workspace — parse these before the prompt string when added.
After successful spawn, report:
cmux new-surface 실패 시: cmux 에러 메시지를 그대로 전달cmux send 실패 시: 탭은 생성되었으나 명령어 전송에 실패했음을 알리고, 직접 입력을 안내Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub aydenden/cc-plugins --plugin cmux-tools