[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CS21ENQ3D7Z08TDKXHJRR6":3,"skill-same:01M6CS21ENQ3D7Z08TDKXHJRR6":77},{"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":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":48,"ownerDescription":6,"updatedAt":49,"install":50,"resources":62},"01M6CS21ENQ3D7Z08TDKXHJRR6","tmux-driver",null,"Drive interactive CLIs (python, gdb, etc.) via named tmux sessions with multi-window support. Falls back to fir's built-in PTY driver when tmux is unavailable.","kfet\u002Ffir","kfet","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F14585?v=4","01M6CRZCB8P1V37WM3X0GB2DA6","Kalin Fetvadjiev","01M6CRZCFG1EW1WEN4RK84W1N5",1,"MIT","https:\u002F\u002Fgithub.com\u002Fkfet\u002Ffir\u002Fblob\u002Fmain\u002Fpkg\u002Fresources\u002Fbuiltin_skills\u002Ftmux-driver\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],"tmux","driver","tmux driver","sessions","interactive","PTY","drive","back","support","gdb","via","python","multi","with","true","window","when","2026-11-10 10:12:30",false,"---\nbuiltin: true\nname: tmux-driver\ndescription: Drive interactive CLIs (python, gdb, etc.) via named tmux sessions with multi-window support. Falls back to fir's built-in PTY driver when tmux is unavailable.\noverride: true\n---\n\nDrive interactive programs through named sessions. Automatically uses tmux if installed, otherwise uses fir's built-in PTY driver (no external dependencies needed).\n\n## Setup\n\n```bash\n# All commands use a wrapper that handles backend selection:\nsource \"$SKILL_DIR\u002Fscripts\u002Fauto-helpers.sh\"\n\n# Start a named session (one per project\u002Ftask):\ntm-new myproject        # creates session \"myproject\" with window \"shell\"\ntm-new myproject py     # creates session \"myproject\" with window \"py\"\n```\n\n**Optional: Custom socket directory**\n\nBy default, sessions use `${TMPDIR:-\u002Ftmp}\u002Fclaude-tmux-sockets\u002Fclaude.sock`. To use a different socket directory:\n\n```bash\nexport CLAUDE_TMUX_SOCKET_DIR=\u002Fpath\u002Fto\u002Fsockets\nsource .\u002Fscripts\u002Ftmux-helpers.sh\ntm-new myproject\n```\n\nThis is useful if you need to isolate sessions per project, workspace, or system.\n\nAfter starting a session, **always** tell the user:\n```\nMonitor: tm-attach myproject\nCapture: tm-capture myproject\n```\n\n## Core Commands\n\n| Command | What it does |\n|---|---|\n| `tm-new NAME [WINDOW]` | New session, optional first window name |\n| `tm-send NAME TEXT` | Send literal text + Enter to active window |\n| `tm-sendraw NAME KEYS...` | Send raw keys (C-c, Escape, etc.) |\n| `tm-capture NAME [LINES]` | Capture last N lines (default 200) |\n| `tm-wait NAME PATTERN [TIMEOUT]` | Poll for regex, exit 0 on match |\n| `tm-win NAME WINNAME [CMD]` | Create new window, optionally run CMD |\n| `tm-select NAME WINNAME` | Switch active window |\n| `tm-list [NAME]` | List sessions, or windows in a session |\n| `tm-killwin NAME WINNAME` | Kill a specific window |\n| `tm-renamewin NAME OLDNAME NEWNAME` | Rename a window |\n| `tm-kill NAME` | Kill session |\n| `tm-attach NAME` | Print attach command for user |\n| `tm-status NAME` | Compact status of all windows (context %, last activity) |\n| `tm-bulk-rename NAME` | Auto-rename all windows to show last activity |\n| `tm-check-usage` | Check API usage (prints report) |\n| `tm-loop-tick NAME WORKTREE` | One-shot loop tick: git log + status + rename |\n\n## Multi-Window Sessions\n\nEach session can have multiple named windows. Create, rename, and manage them:\n\n```bash\ntm-new myproject                          # session with default window\ntm-win myproject server 'make run'        # new window \"server\" running a command\ntm-win myproject repl                     # new window \"repl\"\ntm-renamewin myproject repl python        # rename \"repl\" to \"python\"\ntm-select myproject python                # switch active window\ntm-send myproject 'print(\"hello\")'       # sends to active window (python)\ntm-capture myproject                      # captures active window\ntm-killwin myproject server               # delete the \"server\" window\n```\n\nTo target a specific window regardless of which is active:\n\n```bash\ntm-send myproject:python 'x = 1'\ntm-capture myproject:python\n```\n\n**What happens if the user attaches and changes the active window?** The agent's `tm-send`\u002F`tm-capture` without a `:window` suffix go to whichever window is currently active — so if the user switches windows while attached, the agent's next unqualified command hits the wrong window. **Always use `NAME:WINDOW` targeting** when running multiple windows to avoid races. The helper commands accept either `NAME` (active window) or `NAME:WINDOW` (explicit).\n\n## Multiple Named Sessions\n\nUse one session per project or task:\n\n```bash\ntm-new frontend        # React dev server\ntm-new backend         # Go API server  \ntm-new debug           # gdb\u002Flldb session\ntm-list                # shows all sessions\n```\n\nSessions are isolated — different sessions can't interfere with each other.\n\n## Recipes\n\n**Python REPL** (always set PYTHON_BASIC_REPL=1):\n```bash\ntm-new proj py\ntm-send proj 'PYTHON_BASIC_REPL=1 python3 -q'\ntm-wait proj '>>>'\ntm-send proj 'print(\"hello\")'\n```\n\n**Debugger** (use lldb by default):\n```bash\ntm-new proj dbg\ntm-send proj 'lldb .\u002Fmyapp'\ntm-wait proj '(lldb)'\ntm-send proj 'b main'\n```\n\n**Long-running server**:\n```bash\ntm-win proj server 'make run'\ntm-wait proj:server 'Listening on'\ntm-send proj:repl 'curl localhost:8080'\n```\n\n## Spawning `fir` Inside a Window\n\nWhen the program you drive through tmux is itself a `fir` agent (e.g.\na shepherd fleet, a worker window, a poe-style background bot), always\ndisable this set of builtin extensions:\n\n```bash\nFIR_DISABLE=\"-d auto-namer -d notify -d provider-usage -d tmuxspinner\"\ntm-win proj worker-1 \"fir $FIR_DISABLE\"\n```\n\nWhy each one:\n\n| Extension | Why disable under tmux-driver |\n|---|---|\n| `auto-namer` | Renames the session with an LLM-generated title. tmux-driver routes by the window name you chose (`tm-send proj:worker-1 ...`); a rename breaks that routing. |\n| `notify` | Desktop notifications for every agent_end — background tmux agents generate them constantly and they're just noise. |\n| `provider-usage` | Status-bar widget plus usage\u002Fauth warnings. The parent agent already gets the warnings; workers reading the shared cache only duplicate them. |\n| `tmuxspinner` | Mutates the tmux window title to show a spinner — directly fights the fixed `NAME:WINDOW` naming convention tmux-driver relies on for routing. |\n\nSee the `self` skill's \"Extensions\" section for the full `-d` \u002F\n`--disable-extension` \u002F `--no-extensions` reference.\n\n## Cleanup\n\n```bash\ntm-kill myproject       # kill one session\ntm-killall              # kill all sessions on the socket\n```\n","Drive interactive programs through named sessions. Automatically uses tmux if installed, otherwise uses fir's built-in PTY driver (no external dependencies needed).\n\n## Setup\n\n```bash\n# All commands use a wrapper that handles backend selection:\nsource \"$SKILL_DIR\u002Fscripts\u002Fauto-helpers.sh\"\n\n# Start a named session (one per project\u002Ftask):\ntm-new myproject        # creates session \"myproject\" with window \"shell\"\ntm-new myproject py     # creates session \"myproject\" with window \"py\"\n```\n\n**Optional: Custom socket directory**\n\nBy default, sessions use `${TMPDIR:-\u002Ftmp}\u002Fclaude-tmux-sockets\u002Fclaude.sock`. To use a different socket directory:\n\n```bash\nexport CLAUDE_TMUX_SOCKET_DIR=\u002Fpath\u002Fto\u002Fsockets\nsource .\u002Fscripts\u002Ftmux-helpers.sh\ntm-new myproject\n```\n\nThis is useful if you need to isolate sessions per project, workspace, or system.\n\nAfter starting a session, **always** tell the user:\n```\nMonitor: tm-attach myproject\nCapture: tm-capture myproject\n```\n\n## Core Commands\n\n| Command | What it does |\n|---|---|\n| `tm-new NAME [WINDOW]` | New session, optional first window name |\n| `tm-send NAME TEXT` | Send literal text + Enter to active window |\n| `tm-sendraw NAME KEYS...` | Send raw keys (C-c, Escape, etc.) |\n| `tm-capture NAME [LINES]` | Capture last N lines (default 200) |\n| `tm-wait NAME PATTERN [TIMEOUT]` | Poll for regex, exit 0 on match |\n| `tm-win NAME WINNAME [CMD]` | Create new window, optionally run CMD |\n| `tm-select NAME WINNAME` | Switch active window |\n| `tm-list [NAME]` | List sessions, or windows in a session |\n| `tm-killwin NAME WINNAME` | Kill a specific window |\n| `tm-renamewin NAME OLDNAME NEWNAME` | Rename a window |\n| `tm-kill NAME` | Kill session |\n| `tm-attach NAME` | Print attach command for user |\n| `tm-status NAME` | Compact status of all windows (context %, last activity) |\n| `tm-bulk-rename NAME` | Auto-rename all windows to show last activity |\n| `tm-check-usage` | Check API usage (prints report) |\n| `tm-loop-tick NAME WORKTREE` | One-shot loop tick: git log + status + rename |\n\n## Multi-Window Sessions\n\nEach session can have multiple named windows. Create, rename, and manage them:\n\n```bash\ntm-new myproject                          # session with default window\ntm-win myproject server 'make run'        # new window \"server\" running a command\ntm-win myproject repl                     # new window \"repl\"\ntm-renamewin myproject repl python        # rename \"repl\" to \"python\"\ntm-select myproject python                # switch active window\ntm-send myproject 'print(\"hello\")'       # sends to active window (python)\ntm-capture myproject                      # captures active window\ntm-killwin myproject server               # delete the \"server\" window\n```\n\nTo target a specific window regardless of which is active:\n\n```bash\ntm-send myproject:python 'x = 1'\ntm-capture myproject:python\n```\n\n**What happens if the user attaches and changes the active window?** The agent's `tm-send`\u002F`tm-capture` without a `:window` suffix go to whichever window is currently active — so if the user switches windows while attached, the agent's next unqualified command hits the wrong window. **Always use `NAME:WINDOW` targeting** when running multiple windows to avoid races. The helper commands accept either `NAME` (active window) or `NAME:WINDOW` (explicit).\n\n## Multiple Named Sessions\n\nUse one session per project or task:\n\n```bash\ntm-new frontend        # React dev server\ntm-new backend         # Go API server  \ntm-new debug           # gdb\u002Flldb session\ntm-list                # shows all sessions\n```\n\nSessions are isolated — different sessions can't interfere with each other.\n\n## Recipes\n\n**Python REPL** (always set PYTHON_BASIC_REPL=1):\n```bash\ntm-new proj py\ntm-send proj 'PYTHON_BASIC_REPL=1 python3 -q'\ntm-wait proj '>>>'\ntm-send proj 'print(\"hello\")'\n```\n\n**Debugger** (use lldb by default):\n```bash\ntm-new proj dbg\ntm-send proj 'lldb .\u002Fmyapp'\ntm-wait proj '(lldb)'\ntm-send proj 'b main'\n```\n\n**Long-running server**:\n```bash\ntm-win proj server 'make run'\ntm-wait proj:server 'Listening on'\ntm-send proj:repl 'curl localhost:8080'\n```\n\n## Spawning `fir` Inside a Window\n\nWhen the program you drive through tmux is itself a `fir` agent (e.g.\na shepherd fleet, a worker window, a poe-style background bot), always\ndisable this set of builtin extensions:\n\n```bash\nFIR_DISABLE=\"-d auto-namer -d notify -d provider-usage -d tmuxspinner\"\ntm-win proj worker-1 \"fir $FIR_DISABLE\"\n```\n\nWhy each one:\n\n| Extension | Why disable under tmux-driver |\n|---|---|\n| `auto-namer` | Renames the session with an LLM-generated title. tmux-driver routes by the window name you chose (`tm-send proj:worker-1 ...`); a rename breaks that routing. |\n| `notify` | Desktop notifications for every agent_end — background tmux agents generate them constantly and they're just noise. |\n| `provider-usage` | Status-bar widget plus usage\u002Fauth warnings. The parent agent already gets the warnings; workers reading the shared cache only duplicate them. |\n| `tmuxspinner` | Mutates the tmux window title to show a spinner — directly fights the fixed `NAME:WINDOW` naming convention tmux-driver relies on for routing. |\n\nSee the `self` skill's \"Extensions\" section for the full `-d` \u002F\n`--disable-extension` \u002F `--no-extensions` reference.\n\n## Cleanup\n\n```bash\ntm-kill myproject       # kill one session\ntm-killall              # kill all sessions on the socket\n```\n",{"name":5,"builtin":41,"override":41,"description":7},true,"main","76b360b35f87ec18e1776cf6feafc7a025bdea64","pkg\u002Fresources\u002Fbuiltin_skills\u002Ftmux-driver",0,"https:\u002F\u002Fgithub.com\u002Fkfet\u002Ffir","https:\u002F\u002Fgithub.com\u002Fkfet","https:\u002F\u002Fgithub.com\u002Fkalin-sa","2026-11-15 03:16:15",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":41},[52,55,58],{"tool":53,"command":54},"npx","npx skills add kfet\u002Ffir --skill tmux-driver",{"tool":56,"command":57},"bunx","bunx skills add kfet\u002Ffir --skill tmux-driver",{"tool":59,"command":60},"pnpm","pnpm dlx skills add kfet\u002Ffir --skill tmux-driver","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkfet\u002Ffir\u002Fblob\u002Fmain\u002Fpkg\u002Fresources\u002Fbuiltin_skills\u002Ftmux-driver\u002FSKILL.md",[63,69,73],{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"scripts\u002Fauto-helpers.sh","SCRIPT","脚本",568,"https:\u002F\u002Fgithub.com\u002Fkfet\u002Ffir\u002Fblob\u002Fmain\u002Fpkg\u002Fresources\u002Fbuiltin_skills\u002Ftmux-driver\u002Fscripts\u002Fauto-helpers.sh",{"path":70,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":71,"sourceHtmlUrl":72},"scripts\u002Fpty-helpers.sh",3219,"https:\u002F\u002Fgithub.com\u002Fkfet\u002Ffir\u002Fblob\u002Fmain\u002Fpkg\u002Fresources\u002Fbuiltin_skills\u002Ftmux-driver\u002Fscripts\u002Fpty-helpers.sh",{"path":74,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":75,"sourceHtmlUrl":76},"scripts\u002Ftmux-helpers.sh",5214,"https:\u002F\u002Fgithub.com\u002Fkfet\u002Ffir\u002Fblob\u002Fmain\u002Fpkg\u002Fresources\u002Fbuiltin_skills\u002Ftmux-driver\u002Fscripts\u002Ftmux-helpers.sh",[78,101,121,140,166,184],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":36},"01M6CS290490SZNX8V35TF3N6X","wt","Spawn a fresh fir agent in its own tmux session on its own git worktree. Use whenever the user wants the work — or the conversation about the work — to happen over there, not here. If the user points at this skill, or has directly loaded it in the context, that alone is the cue — spawn, don't inline.","https:\u002F\u002Fgithub.com\u002Fkfet\u002Ffir\u002Fblob\u002Fmain\u002Fpkg\u002Fresources\u002Fbuiltin_skills\u002Fwt\u002FSKILL.md",[],[80,19,85,86,87,88,89,90,91,92,93,94,95,96,97,98,33,99,100],"git","worktree","git worktree","work","context","user","spawn","session","use","conversation","cue","fresh","it","about","at","inline",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":36},"01M6CS26KAKJ7VYRQ3RJ31SJ6S","wrap-up","Wrap up work on a project branch — review, fix, and simplify in a loop until clean, then ff-merge to main.","https:\u002F\u002Fgithub.com\u002Fkfet\u002Ffir\u002Fblob\u002Fmain\u002Fpkg\u002Fresources\u002Fbuiltin_skills\u002Fwrap-up\u002FSKILL.md",[],[108,109,110,111,112,113,114,115,88,116,117,118,42,119,120,33],"wrap up","up","wrap","review","merge","simplify","loop","work on","branch","fix","clean","merge to main","project",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":36},"01M6CS23P85MSVBX11XMFB29PF","tmux-observer","Attach a tmux window to an already-running fir session — observe its transcript and drive its input via tmux send-keys. Use when you need to watch or steer another fir agent.","https:\u002F\u002Fgithub.com\u002Fkfet\u002Ffir\u002Fblob\u002Fmain\u002Fpkg\u002Fresources\u002Fbuiltin_skills\u002Ftmux-observer\u002FSKILL.md",[],[19,128,129,130,92,93,25,131,132,133,134,29,135,33,136,137,34,138,35,139],"tmux observer","observer","transcript","observe","attach","watch","input","you","keys","steer","send","running",{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":36},"01M6CS1YWSAH2TQ7S4VK7VKJT6","telegram-bot-setup","Set up a new Telegram bot channel for a fir project — install the telegram MCP, create a per-project state dir, drop in the bot token, wire .fir\u002Fmcp.json with TELEGRAM_STATE_DIR, pair the user, and verify. Use when the user asks to add, configure, or onboard a Telegram bot for a fir worktree\u002Fproject.","https:\u002F\u002Fgithub.com\u002Fkfet\u002Ffir\u002Fblob\u002Fmain\u002Fpkg\u002Fresources\u002Fbuiltin_skills\u002Ftelegram-bot-setup\u002FSKILL.md",[],[147,148,149,150,151,152,153,154,86,155,156,157,158,159,160,161,162,93,109,163,120,32,33,164,35,165],"bot","setup","telegram bot","telegram","telegram bot setup","MCP","create","state","SET","verify","onboard","configure","json","pair","install","channel","drop","for","new",{"skillNo":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":170,"categories":171,"keywords":172,"publishedAt":36},"01M6CS1VSW4C1W1QED8NDHBHZ9","sync","Sync with an upstream source repo — detect changed files, apply equivalent downstream edits, update the baseline, and report any new features or non-trivial changes picked up.","https:\u002F\u002Fgithub.com\u002Fkfet\u002Ffir\u002Fblob\u002Fmain\u002Fpkg\u002Fresources\u002Fbuiltin_skills\u002Fsync\u002FSKILL.md",[],[168,173,174,175,176,109,177,178,179,32,33,180,181,182,183,165],"update","report","baseline","repo","files","upstream","detect","source","changes","features","apply",{"skillNo":185,"name":186,"nameZh":6,"description":187,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":188,"categories":189,"keywords":190,"publishedAt":36},"01M6CS1S97WRF201V66YC8GPY8","skill-creator","Create, write, add, edit, update, or review a fir skill — author SKILL.md with frontmatter and agent-facing instructions, run the quality checklist, and tell the user to \u002Freload.","https:\u002F\u002Fgithub.com\u002Fkfet\u002Ffir\u002Fblob\u002Fmain\u002Fpkg\u002Fresources\u002Fbuiltin_skills\u002Fskill-creator\u002FSKILL.md",[],[191,192,111,153,193,173,194,195,196,197,198,90,199,200,32,33,201,202],"skill creator","creator","run","author skill","quality","write","edit","instructions","checklist","add","frontmatter","author"]