AgentSkillsCN

dev-processes

在tmux窗口中运行开发服务器、各类测试用例、长时间运行的任务,以及监听式进程。

SKILL.md
--- frontmatter
name: dev-processes
description: Run dev servers, tests, long running processes, and watch processes in tmux windows

Run watch processes in tmux windows. Use descriptive names: dev, test, build

If not in tmux ($TMUX empty), ensure session exists:

bash
SESSION="$(basename "$PWD" | tr . _)"
tmux has-session -t "$SESSION" 2>/dev/null || tmux new-session -d -s "$SESSION" -c "$PWD"

Check if window exists before creating. If exists, check output instead of restarting:

bash
tmux select-window -t "$SESSION:dev" 2>/dev/null   # check exists
tmux capture-pane -pt "$SESSION:dev" -S -100       # check output
tmux neww -dn dev -t "$SESSION" 'bun run dev'      # create new

Turborepo

Always use --ui=stream (TUI doesn't work in detached sessions):

bash
turbo run dev --ui=stream
bun run dev -- --ui=stream