[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EHF6Q46NDVPSZAFPZ4KWKV":3,"skill-same:01M6EHF6Q46NDVPSZAFPZ4KWKV":64},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":30,"linkOnly":31,"markdownContent":32,"markdownBody":33,"frontMatter":34,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":40,"ownerHtmlUrl":41,"ownerBlogUrl":6,"ownerDescription":42,"updatedAt":43,"install":44,"resources":57},"01M6EHF6Q46NDVPSZAFPZ4KWKV","tmux-processes",null,"Patterns for running long-lived processes in tmux. Use when starting dev servers, watchers, tilt, or any process expected to outlive the conversation.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002F0xbigboss\u002Ftmux-processes\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29],"tmux","processes","tmux processes","dev","process","use","conversation","patterns","watchers","long","tilt","2026-11-10 10:12:30",false,"---\nname: tmux-processes\ndescription: Patterns for running long-lived processes in tmux. Use when starting dev servers, watchers, tilt, or any process expected to outlive the conversation.\n---\n\n# tmux Process Management\n\n## Interactive Shell Requirement\n\n**Use send-keys pattern for reliable shell initialization.** Creating a session spawns an interactive shell automatically. Use `send-keys` to run commands within that shell, ensuring PATH, direnv, and other initialization runs properly.\n\n```bash\n# WRONG - inline command bypasses shell init, breaks PATH\u002Fdirenv\ntmux new-session -d -s \"$SESSION\" -n main 'tilt up'\n\n# CORRECT - create session, then send command to interactive shell\ntmux new-session -d -s \"$SESSION\" -n main\ntmux send-keys -t \"$SESSION:main\" 'tilt up' Enter\n```\n\n## Session Naming Convention\n\nAlways derive session name from the project:\n\n```bash\nSESSION=$(basename $(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull) || basename $PWD)\n```\n\nFor multiple processes in one project, use windows not separate sessions:\n- Session: `myapp`\n- Windows: `server`, `tests`, `logs`\n\n## Starting Processes\n\n### Single Process\n\n```bash\nSESSION=$(basename $(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull) || basename $PWD)\n\n# Create session with named window, then send command\ntmux new-session -d -s \"$SESSION\" -n main\ntmux send-keys -t \"$SESSION:main\" '\u003Ccommand>' Enter\n```\n\n### Idempotent Start\n\nCheck if already running before starting:\n\n```bash\nSESSION=$(basename $(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull) || basename $PWD)\n\nif ! tmux has-session -t \"$SESSION\" 2>\u002Fdev\u002Fnull; then\n  tmux new-session -d -s \"$SESSION\" -n main\n  tmux send-keys -t \"$SESSION:main\" '\u003Ccommand>' Enter\nelse\n  echo \"Session $SESSION already exists\"\nfi\n```\n\n### Adding Windows to Existing Session\n\n```bash\nSESSION=$(basename $(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull) || basename $PWD)\n\n# Add a new window if it doesn't exist\nif ! tmux list-windows -t \"$SESSION\" -F '#{window_name}' | grep -q \"^server$\"; then\n  tmux new-window -t \"$SESSION\" -n server\n  tmux send-keys -t \"$SESSION:server\" 'npm run dev' Enter\nelse\n  echo \"Window 'server' already exists\"\nfi\n```\n\n### Multiple Processes (Windows)\n\n```bash\nSESSION=$(basename $(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull) || basename $PWD)\n\n# Create session with first process\ntmux new-session -d -s \"$SESSION\" -n server\ntmux send-keys -t \"$SESSION:server\" 'npm run dev' Enter\n\n# Add more windows\ntmux new-window -t \"$SESSION\" -n tests\ntmux send-keys -t \"$SESSION:tests\" 'npm run test:watch' Enter\n\ntmux new-window -t \"$SESSION\" -n logs\ntmux send-keys -t \"$SESSION:logs\" 'tail -f logs\u002Fapp.log' Enter\n```\n\n## Monitoring Output\n\n```bash\nSESSION=$(basename $(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull) || basename $PWD)\n\n# Last 50 lines from first window\ntmux capture-pane -p -t \"$SESSION\" -S -50\n\n# From specific window\ntmux capture-pane -p -t \"$SESSION:server\" -S -50\n\n# Check for errors\ntmux capture-pane -p -t \"$SESSION\" -S -100 | rg -i \"error|fail|exception\"\n\n# Check for ready indicators\ntmux capture-pane -p -t \"$SESSION:server\" -S -50 | rg -i \"listening|ready|started\"\n```\n\n## Lifecycle Management\n\n```bash\nSESSION=$(basename $(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull) || basename $PWD)\n\n# List all sessions (see what exists)\ntmux ls\n\n# List windows in current session\ntmux list-windows -t \"$SESSION\"\n\n# Kill only this project's session\ntmux kill-session -t \"$SESSION\"\n\n# Kill specific window\ntmux kill-window -t \"$SESSION:tests\"\n\n# Send keys to a window (e.g., Ctrl+C to stop)\ntmux send-keys -t \"$SESSION:server\" C-c\n```\n\n## Isolation Rules\n\n- **Never** use `tmux kill-server`\n- **Never** kill sessions not matching current project\n- **Always** derive session name from git root or pwd\n- **Always** verify session name before kill operations\n- Other Claude Code instances may have their own sessions running\n\n## When to Use tmux\n\n| Scenario | Use tmux? |\n|----------|-----------|\n| `tilt up` | Yes, always |\n| Dev server (`npm run dev`, `rails s`) | Yes |\n| File watcher (`npm run watch`) | Yes |\n| Test watcher (`npm run test:watch`) | Yes |\n| Database server | Yes |\n| One-shot build (`npm run build`) | No |\n| Quick command (\u003C10s) | No |\n| Need stdout directly in conversation | No |\n\n## Checking Process Status\n\n```bash\nSESSION=$(basename $(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull) || basename $PWD)\n\n# Check session exists\ntmux has-session -t \"$SESSION\" 2>\u002Fdev\u002Fnull && echo \"session exists\" || echo \"no session\"\n\n# List windows and their status\ntmux list-windows -t \"$SESSION\" -F '#{window_name}: #{pane_current_command}'\n\n# Check if specific window exists\ntmux list-windows -t \"$SESSION\" -F '#{window_name}' | grep -q \"^server$\" && echo \"server window exists\"\n```\n\n## Restarting a Process\n\n```bash\nSESSION=$(basename $(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull) || basename $PWD)\n\n# Send Ctrl+C then restart command\ntmux send-keys -t \"$SESSION:server\" C-c\nsleep 1\ntmux send-keys -t \"$SESSION:server\" 'npm run dev' Enter\n```\n\n## Common Patterns\n\n### Start dev server if not running\n\n```bash\nSESSION=$(basename $(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull) || basename $PWD)\n\nif ! tmux has-session -t \"$SESSION\" 2>\u002Fdev\u002Fnull; then\n  tmux new-session -d -s \"$SESSION\" -n server\n  tmux send-keys -t \"$SESSION:server\" 'npm run dev' Enter\n  echo \"Started dev server in tmux session: $SESSION\"\nelif ! tmux list-windows -t \"$SESSION\" -F '#{window_name}' | grep -q \"^server$\"; then\n  tmux new-window -t \"$SESSION\" -n server\n  tmux send-keys -t \"$SESSION:server\" 'npm run dev' Enter\n  echo \"Added server window to session: $SESSION\"\nelse\n  echo \"Server already running in session: $SESSION\"\nfi\n```\n\n### Wait for server ready\n\n```bash\nSESSION=$(basename $(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull) || basename $PWD)\n\n# Poll for ready message\nfor i in {1..30}; do\n  if tmux capture-pane -p -t \"$SESSION:server\" -S -20 | rg -q \"listening|ready\"; then\n    echo \"Server ready\"\n    break\n  fi\n  sleep 1\ndone\n```\n","# tmux Process Management\n\n## Interactive Shell Requirement\n\n**Use send-keys pattern for reliable shell initialization.** Creating a session spawns an interactive shell automatically. Use `send-keys` to run commands within that shell, ensuring PATH, direnv, and other initialization runs properly.\n\n```bash\n# WRONG - inline command bypasses shell init, breaks PATH\u002Fdirenv\ntmux new-session -d -s \"$SESSION\" -n main 'tilt up'\n\n# CORRECT - create session, then send command to interactive shell\ntmux new-session -d -s \"$SESSION\" -n main\ntmux send-keys -t \"$SESSION:main\" 'tilt up' Enter\n```\n\n## Session Naming Convention\n\nAlways derive session name from the project:\n\n```bash\nSESSION=$(basename $(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull) || basename $PWD)\n```\n\nFor multiple processes in one project, use windows not separate sessions:\n- Session: `myapp`\n- Windows: `server`, `tests`, `logs`\n\n## Starting Processes\n\n### Single Process\n\n```bash\nSESSION=$(basename $(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull) || basename $PWD)\n\n# Create session with named window, then send command\ntmux new-session -d -s \"$SESSION\" -n main\ntmux send-keys -t \"$SESSION:main\" '\u003Ccommand>' Enter\n```\n\n### Idempotent Start\n\nCheck if already running before starting:\n\n```bash\nSESSION=$(basename $(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull) || basename $PWD)\n\nif ! tmux has-session -t \"$SESSION\" 2>\u002Fdev\u002Fnull; then\n  tmux new-session -d -s \"$SESSION\" -n main\n  tmux send-keys -t \"$SESSION:main\" '\u003Ccommand>' Enter\nelse\n  echo \"Session $SESSION already exists\"\nfi\n```\n\n### Adding Windows to Existing Session\n\n```bash\nSESSION=$(basename $(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull) || basename $PWD)\n\n# Add a new window if it doesn't exist\nif ! tmux list-windows -t \"$SESSION\" -F '#{window_name}' | grep -q \"^server$\"; then\n  tmux new-window -t \"$SESSION\" -n server\n  tmux send-keys -t \"$SESSION:server\" 'npm run dev' Enter\nelse\n  echo \"Window 'server' already exists\"\nfi\n```\n\n### Multiple Processes (Windows)\n\n```bash\nSESSION=$(basename $(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull) || basename $PWD)\n\n# Create session with first process\ntmux new-session -d -s \"$SESSION\" -n server\ntmux send-keys -t \"$SESSION:server\" 'npm run dev' Enter\n\n# Add more windows\ntmux new-window -t \"$SESSION\" -n tests\ntmux send-keys -t \"$SESSION:tests\" 'npm run test:watch' Enter\n\ntmux new-window -t \"$SESSION\" -n logs\ntmux send-keys -t \"$SESSION:logs\" 'tail -f logs\u002Fapp.log' Enter\n```\n\n## Monitoring Output\n\n```bash\nSESSION=$(basename $(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull) || basename $PWD)\n\n# Last 50 lines from first window\ntmux capture-pane -p -t \"$SESSION\" -S -50\n\n# From specific window\ntmux capture-pane -p -t \"$SESSION:server\" -S -50\n\n# Check for errors\ntmux capture-pane -p -t \"$SESSION\" -S -100 | rg -i \"error|fail|exception\"\n\n# Check for ready indicators\ntmux capture-pane -p -t \"$SESSION:server\" -S -50 | rg -i \"listening|ready|started\"\n```\n\n## Lifecycle Management\n\n```bash\nSESSION=$(basename $(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull) || basename $PWD)\n\n# List all sessions (see what exists)\ntmux ls\n\n# List windows in current session\ntmux list-windows -t \"$SESSION\"\n\n# Kill only this project's session\ntmux kill-session -t \"$SESSION\"\n\n# Kill specific window\ntmux kill-window -t \"$SESSION:tests\"\n\n# Send keys to a window (e.g., Ctrl+C to stop)\ntmux send-keys -t \"$SESSION:server\" C-c\n```\n\n## Isolation Rules\n\n- **Never** use `tmux kill-server`\n- **Never** kill sessions not matching current project\n- **Always** derive session name from git root or pwd\n- **Always** verify session name before kill operations\n- Other Claude Code instances may have their own sessions running\n\n## When to Use tmux\n\n| Scenario | Use tmux? |\n|----------|-----------|\n| `tilt up` | Yes, always |\n| Dev server (`npm run dev`, `rails s`) | Yes |\n| File watcher (`npm run watch`) | Yes |\n| Test watcher (`npm run test:watch`) | Yes |\n| Database server | Yes |\n| One-shot build (`npm run build`) | No |\n| Quick command (\u003C10s) | No |\n| Need stdout directly in conversation | No |\n\n## Checking Process Status\n\n```bash\nSESSION=$(basename $(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull) || basename $PWD)\n\n# Check session exists\ntmux has-session -t \"$SESSION\" 2>\u002Fdev\u002Fnull && echo \"session exists\" || echo \"no session\"\n\n# List windows and their status\ntmux list-windows -t \"$SESSION\" -F '#{window_name}: #{pane_current_command}'\n\n# Check if specific window exists\ntmux list-windows -t \"$SESSION\" -F '#{window_name}' | grep -q \"^server$\" && echo \"server window exists\"\n```\n\n## Restarting a Process\n\n```bash\nSESSION=$(basename $(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull) || basename $PWD)\n\n# Send Ctrl+C then restart command\ntmux send-keys -t \"$SESSION:server\" C-c\nsleep 1\ntmux send-keys -t \"$SESSION:server\" 'npm run dev' Enter\n```\n\n## Common Patterns\n\n### Start dev server if not running\n\n```bash\nSESSION=$(basename $(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull) || basename $PWD)\n\nif ! tmux has-session -t \"$SESSION\" 2>\u002Fdev\u002Fnull; then\n  tmux new-session -d -s \"$SESSION\" -n server\n  tmux send-keys -t \"$SESSION:server\" 'npm run dev' Enter\n  echo \"Started dev server in tmux session: $SESSION\"\nelif ! tmux list-windows -t \"$SESSION\" -F '#{window_name}' | grep -q \"^server$\"; then\n  tmux new-window -t \"$SESSION\" -n server\n  tmux send-keys -t \"$SESSION:server\" 'npm run dev' Enter\n  echo \"Added server window to session: $SESSION\"\nelse\n  echo \"Server already running in session: $SESSION\"\nfi\n```\n\n### Wait for server ready\n\n```bash\nSESSION=$(basename $(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull) || basename $PWD)\n\n# Poll for ready message\nfor i in {1..30}; do\n  if tmux capture-pane -p -t \"$SESSION:server\" -S -20 | rg -q \"listening|ready\"; then\n    echo \"Server ready\"\n    break\n  fi\n  sleep 1\ndone\n```\n",{"name":5,"description":7},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Faiskillstore\u002Fmarketplace\u002F0xbigboss\u002Ftmux-processes",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill tmux-processes",{"tool":50,"command":51},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill tmux-processes",{"tool":53,"command":54},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill tmux-processes","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002F0xbigboss\u002Ftmux-processes\u002FSKILL.md",true,[58],{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"skill-report.json","REFERENCE","参考文档",9348,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002F0xbigboss\u002Ftmux-processes\u002Fskill-report.json",[65,74,83,92,98,104],{"skillNo":66,"name":67,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":30},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[71,72,73],"model","model hierarchy","model hierarchy skill",{"skillNo":75,"name":76,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":30},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[80,81,82],"MCP","zoom","zoom mcp",{"skillNo":84,"name":85,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":30},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[89,90,91,81],"sdk","zoom apps sdk","apps",{"skillNo":93,"name":94,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":30},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[94],{"skillNo":99,"name":100,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":30},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[100],{"skillNo":105,"name":106,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":30},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[106]]