[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AV6F9A70GRKRBE6MZ65HGE":3,"skill-same:01M7AV6F9A70GRKRBE6MZ65HGE":61},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":43,"ownerHtmlUrl":44,"ownerBlogUrl":43,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M7AV6F9A70GRKRBE6MZ65HGE","terminal-operator",null,"终端命令执行——通过 run_terminal_command 用一次性 shell 子进程执行命令。wait_ms 决定阻塞时长；wait_ms:0 立即背景化，命令完成时 push 通知会激活下一轮 turn。 Agent 起的命令会出现在用户的 Terminal Tab transcript 中，用户可实时观察。","tabtin-ai\u002FTabTin","tabtin-ai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F318455733?v=4","01M7ATGMM5SE688ACWMP1PKRRB","TabTin","01M7ATGMMV4YXJ83EFKXAZVHR3",454,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002Ftabtin-ai\u002FTabTin\u002Fblob\u002Fmain\u002Fpackages\u002Fapps\u002Fterminal\u002Fskills\u002Fterminal-operator\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: terminal-operator\ndescription: >\n  终端命令执行——通过 run_terminal_command 用一次性\n  shell 子进程执行命令。wait_ms 决定阻塞时长；wait_ms:0\n  立即背景化，命令完成时 push 通知会激活下一轮 turn。\n  Agent 起的命令会出现在用户的 Terminal Tab transcript\n  中，用户可实时观察。\nmetadata:\n  version: 1.0.0\n  tabtin:\n    category: developer\n    displayName: \"Terminal Operator\"\n    tags:\n      - terminal\n      - shell\n      - automation\n      - pty\n    autoActivateFor:\n      - terminal\n    tools:\n      - run_terminal_command\n---\n\n# Terminal Operator\n\nLLM 通过 `run_terminal_command` 工具执行 shell 命令。命令由一次性 shell 子进程执行，工作目录默认 workspace；Terminal Tab 只是 transcript 展示面，不参与命令完成判定。\n\n## 用户要「打开终端」→ 应用内可交互终端\n\n用户说「打开终端 \u002F 开个终端 \u002F 给我一个终端」时，**优先**打开 TabTin 应用内可交互终端：\n\n```\nrun_terminal_command(command=\"tabtin terminal open\")\n# 可选：tabtin terminal open --cwd \u003Cpath> --title \"项目终端\"\n# 聚焦已有：tabtin terminal list → tabtin terminal open --session-id \u003Cid>\n```\n\n这会新建（或聚焦）一个 **可手动打字输入** 的 Terminal Tab（xterm + node-pty），用户可以自己敲命令。\n\n| 意图 | 正确做法 | 错误做法 |\n|------|----------|----------|\n| 给用户一个可交互终端 | `tabtin terminal open` | `tabtin desktop open \"PowerShell\"` \u002F `Start-Process powershell` |\n| Agent 自己跑一条命令 | `run_terminal_command(command=\"...\")` | 打开外部系统终端再打字 |\n| 用户明确要系统 PowerShell \u002F Windows Terminal | `tabtin desktop open \"PowerShell\" --external` | 默认 `desktop open`（会被拦截） |\n\n**不要**把「打开终端」理解成启动 OS 级 PowerShell \u002F cmd \u002F Windows Terminal 窗口。\n\n## Agent 起的命令对用户可见\n\n调 `run_terminal_command` 时，命令会自动开一个独立的 Terminal Tab（D3：每次新 tab，不复用），用户能：\n\n- **实时看输出**——命令 stdout \u002F stderr 合流后出现在 tab 里\n- **手动停止 background 任务**——用户关闭 Agent tab 或 LLM 跑 `run_terminal_command(\"kill \u003Cpid>\")` 都会让 bridge 终止仍在跑的 child process\n\n这是 TabTin 的产品基本盘：Agent 在做的每一步都看得见、能干预。**不要刻意隐藏命令输出**——LLM 看到的 stdout 与用户在 tab 看到的是同源。\n\n## 工作流\n\n### 单次命令（wait_ms 内 sync 完成，最常用）\n\n```\nrun_terminal_command(command=\"pnpm test\")\n```\n\n返回 `status=\"completed\"` + `stdout` \u002F `exit_code` \u002F `duration_ms` \u002F `exited_by`。`exit_code === 0` 表示命令成功，非 0 是命令本身失败（不是工具失败）。\n\n`stderr` 字段始终为空字符串——Agent shell bridge 合流后 stderr 已经在 stdout 里，不需要读。\n\n### 大输出（超 30KB 落盘）\n\nstdout 超 30KB 时返回会带 `full_output_path` 字段，stdout 字段是 head + tail preview。\n\n```\nrun_terminal_command(command=\"git log --all --decorate\")\n# 返回 status=\"completed\", stdout=\"..head..\\n[truncated]\\n..tail..\", full_output_path=\"\u002Ftmp\u002F...log\"\n# 看完整内容\nread_file(path=\"\u003Cfull_output_path>\")  # 不要用 cat \u002F head \u002F tail\n```\n\n### 长任务（dev server \u002F build \u002F log tail）— wait_ms: 0\n\n```\nrun_terminal_command(command=\"pnpm dev\", wait_ms=0)\n# 立即返回：status=\"running\", session_id=\"agent-\u003CspaceId>-\u003Cts>-\u003Crand>\",\n#         pid=12345, output_file=\"{tmpdir}\u002Ftabtin-agent-tasks\u002F\u003CsessionId>.log\"\n# （{tmpdir} 是 OS 临时目录：macOS 是 \u002Fvar\u002Ffolders\u002F...，Linux 通常是 \u002Ftmp\u002F...）\n```\n\nbridge 持续把命令输出 tail 到 `output_file`。**不要再调一次同样命令**。\n\n任务完成时 push 通知会激活下一轮 turn——你可以继续做别的事不用主动等。想看实时进度用 `read_file(path=\"\u003Coutput_file>\")`，bridge 持续 tail 增量内容。\n\n> **真路径用 envelope 里的 `output_file` 字段，不要假设路径**——macOS 的 tmpdir 不是 `\u002Ftmp\u002F`，硬编码会 ENOENT。直接把 envelope 返回的 `output_file` 值喂给 `read_file` 即可。\n\ndev server 起动早早 ready：传 `pattern=\"Server listening on port\"` 让本工具命中即返。\n\n### 主动停止 background 任务\n\n```\nrun_terminal_command(command=\"kill \u003Cpid>\")\n# 卡死进程用 kill -9 \u003Cpid>；模拟 Ctrl+C 用 kill -INT \u003Cpid>\n# pid 在 status=\"running\" envelope 里返回\n```\n\nkill 是幂等的（对已自然 exit 的 PID 不算错误，shell 返回退出码非 0 但不影响）。\n\n### 交互式命令\n\n普通 `run_terminal_command` 不支持交互输入。命令本身有 prompt 时会卡住，直到 timeout 或用户取消。最常用的做法是用命令本身的非交互参数（见下方非交互优先表）。\n\n如果非交互参数不够用，**先评估**用 `ask_user` 让用户改用真正的手动 Terminal Tab（`tabtin terminal open`）操作，或等待未来的 interactive terminal 工具；不要把交互流程塞进普通 shell tool，也**不要**用 `tabtin desktop open` 打开系统终端来「凑合」。\n\n## 非交互优先原则\n\n终端命令必须优先用非交互模式。交互式 REPL（裸 `python` \u002F `node` \u002F `irb` 等）与编辑器（`vim` \u002F `nano`）绝对不要启动。\n\n### 非交互命令替代表\n\n| 交互式（禁止） | 非交互替代（必须） |\n|---|---|\n| `npm init` | `npm init -y` |\n| `npx create-*`（有提示时） | 加 `--yes` 或预先准备好答案文件 |\n| `pip install`（需确认时） | `pip install --yes` \u002F `pip install -q` |\n| `apt-get install` | `apt-get install -y` 或 `DEBIAN_FRONTEND=noninteractive` |\n| `git commit`（无 -m） | `git commit -m \"message\"` |\n| `git rebase -i` | `git rebase --autosquash` 或 `GIT_SEQUENCE_EDITOR=\"sed -i ...\" git rebase -i` |\n| `crontab -e` | `crontab \u003C\u003C'EOF'\\n...\\nEOF` |\n| `vim` \u002F `nano` \u002F `vi` | 用 `edit_file` \u002F `write_file` 工具，**不**走 shell |\n| `mysql -p` \u002F `psql` 直连 | 用 `tabtin table query` CLI |\n| `ssh`（密码认证） | `ssh -o StrictHostKeyChecking=no` + key 认证 |\n| 裸 `python` \u002F `node`（进 REPL） | `python -c \"...\"` \u002F `python script.py` \u002F `node -e \"...\"` \u002F `node script.js` |\n\n### 管道输入模式\n\n简单确认场景用管道代替交互：\n\n```bash\nyes | some_command                       # 自动回复 y\necho -e \"input1\\ninput2\" | some_command  # 多行输入\n```\n\n## 命令安全分级\n\n**自动放行（regular）**：\n- `tabtin *`（所有 CLI 子命令）\n- 只读命令：`ls` \u002F `cat` \u002F `head` \u002F `tail` \u002F `grep` \u002F `wc` \u002F `echo` \u002F `pwd` \u002F `whoami` \u002F `date`\n- 网络查询：`curl`（GET）\u002F `ping` \u002F `dig` \u002F `nslookup`\n\n**需要用户审批（explicit_permission）**：\n- 文件写入：`cp` \u002F `mv` \u002F `mkdir` \u002F `touch` \u002F `tee`\n- 软件安装：`pip install` \u002F `npm install` \u002F `brew install`\n- 进程操作：`kill`\n- 脚本执行：`python -c \"...\"` \u002F `python script.py` \u002F `node -e \"...\"` \u002F `node script.js`（需服务端放行）\n\n**禁止执行（prohibited）**：\n- 破坏性命令：`rm -rf \u002F` \u002F `mkfs` \u002F `dd` \u002F `> \u002Fdev\u002Fsda`\n- 权限提升：`sudo` \u002F `su` \u002F `chmod 777`\n- 数据库直连：`mysql` \u002F `psql`（走 `tabtin table query` \u002F `tabtin table execute` CLI）\n- 系统修改：`systemctl` \u002F `launchctl` \u002F `crontab -e`\n- 编辑器：`vim` \u002F `nano` \u002F `vi`（用 `edit_file` \u002F `write_file` 工具）\n- 交互式 REPL：裸 `python` \u002F `node`（不带 -c\u002F-e 或脚本文件参数）\n- 输出重定向写文件：`echo \"x\" > file`（被 critical denylist 拦截）—— 用 `write_file` 工具\n\n## 工作目录\n\n- 默认 cwd = 工作目录根；绝对路径只通过环境变量 `$TABTIN_WORKSPACE`（Windows：`$env:TABTIN_WORKSPACE` \u002F `%TABTIN_WORKSPACE%`）访问\n- 相对路径相对工作目录根本身——**不要**再套一层 `workspace\u002F` 前缀\n- 切其他目录：在命令内部 `cd \u002Fpath && \u003Ccmd>` 或用绝对路径\n- 长路径含空格用引号：`cd \"\u002Fpath with spaces\" && \u003Ccmd>`\n- **不要传 `working_directory` 参数**——`run_terminal_command` 没这个字段，统一用 cwd-in-command 模式\n\n## 错误恢复\n\n- `exit_code !== 0` → 分析 stdout 末尾（错误信息通常在那里）\n- 命令超 wait_ms 仍在跑 → 不杀进程，转 `status=\"running\"`；长任务直接 `wait_ms=0` 起后台 + push 通知回头\n- `hard_timeout_ms` 超时 → 进程被 SIGTERM；envelope 带 `killed_reason=\"hard_timeout\"`\n- `degraded: true` → bridge 因 policy 降级到 sandbox 跑，输出真实但跟标准 shell process 行为有差异\n- 权限拒绝 → 不要尝试 `sudo`，向用户说明需要的权限\n\n## 绝不用 run_terminal_command 做有专门工具的事\n\n- 找文件 → `glob_search`（不是 `find` \u002F `ls -R`）\n- 搜内容 → `grep_search`（不是 `grep` \u002F `rg`）\n- 读文件 → `read_file`（不是 `cat` \u002F `head` \u002F `tail`）\n- 编辑文件 → `edit_file`（不是 `sed` \u002F `awk`）\n- 写文件 → `write_file`（不是 `echo > ` \u002F `cat \u003C\u003CEOF`）\n- 跟用户说话 → 直接输出文本（不是 `echo` \u002F `printf`）\n\n## CLI 命令参考\n\n终端环境可用 `tabtin` CLI 快速调平台能力：\n\n```bash\ntabtin table query \"SELECT ...\"\ntabtin table record insert --table-id \u003Cid> --data '{\"字段\":\"值\"}'\ntabtin table record update --table-id \u003Cid> --record-id \u003Crid> --data '{\"字段\":\"值\"}'\ntabtin browser print --url \"\u003Curl>\" --save \u002Ftmp\u002Fpage.md\n```\n\n各 App 的 CLI 全集见对应 Skill：\n\n- 表格操作 → `skills_read(\"app:tabdata\u002Ftable-operator\")`\n- 浏览器操作 → `skills_read(\"app:tabweb\u002Fbrowser-operator\")`\n","# Terminal Operator\n\nLLM 通过 `run_terminal_command` 工具执行 shell 命令。命令由一次性 shell 子进程执行，工作目录默认 workspace；Terminal Tab 只是 transcript 展示面，不参与命令完成判定。\n\n## 用户要「打开终端」→ 应用内可交互终端\n\n用户说「打开终端 \u002F 开个终端 \u002F 给我一个终端」时，**优先**打开 TabTin 应用内可交互终端：\n\n```\nrun_terminal_command(command=\"tabtin terminal open\")\n# 可选：tabtin terminal open --cwd \u003Cpath> --title \"项目终端\"\n# 聚焦已有：tabtin terminal list → tabtin terminal open --session-id \u003Cid>\n```\n\n这会新建（或聚焦）一个 **可手动打字输入** 的 Terminal Tab（xterm + node-pty），用户可以自己敲命令。\n\n| 意图 | 正确做法 | 错误做法 |\n|------|----------|----------|\n| 给用户一个可交互终端 | `tabtin terminal open` | `tabtin desktop open \"PowerShell\"` \u002F `Start-Process powershell` |\n| Agent 自己跑一条命令 | `run_terminal_command(command=\"...\")` | 打开外部系统终端再打字 |\n| 用户明确要系统 PowerShell \u002F Windows Terminal | `tabtin desktop open \"PowerShell\" --external` | 默认 `desktop open`（会被拦截） |\n\n**不要**把「打开终端」理解成启动 OS 级 PowerShell \u002F cmd \u002F Windows Terminal 窗口。\n\n## Agent 起的命令对用户可见\n\n调 `run_terminal_command` 时，命令会自动开一个独立的 Terminal Tab（D3：每次新 tab，不复用），用户能：\n\n- **实时看输出**——命令 stdout \u002F stderr 合流后出现在 tab 里\n- **手动停止 background 任务**——用户关闭 Agent tab 或 LLM 跑 `run_terminal_command(\"kill \u003Cpid>\")` 都会让 bridge 终止仍在跑的 child process\n\n这是 TabTin 的产品基本盘：Agent 在做的每一步都看得见、能干预。**不要刻意隐藏命令输出**——LLM 看到的 stdout 与用户在 tab 看到的是同源。\n\n## 工作流\n\n### 单次命令（wait_ms 内 sync 完成，最常用）\n\n```\nrun_terminal_command(command=\"pnpm test\")\n```\n\n返回 `status=\"completed\"` + `stdout` \u002F `exit_code` \u002F `duration_ms` \u002F `exited_by`。`exit_code === 0` 表示命令成功，非 0 是命令本身失败（不是工具失败）。\n\n`stderr` 字段始终为空字符串——Agent shell bridge 合流后 stderr 已经在 stdout 里，不需要读。\n\n### 大输出（超 30KB 落盘）\n\nstdout 超 30KB 时返回会带 `full_output_path` 字段，stdout 字段是 head + tail preview。\n\n```\nrun_terminal_command(command=\"git log --all --decorate\")\n# 返回 status=\"completed\", stdout=\"..head..\\n[truncated]\\n..tail..\", full_output_path=\"\u002Ftmp\u002F...log\"\n# 看完整内容\nread_file(path=\"\u003Cfull_output_path>\")  # 不要用 cat \u002F head \u002F tail\n```\n\n### 长任务（dev server \u002F build \u002F log tail）— wait_ms: 0\n\n```\nrun_terminal_command(command=\"pnpm dev\", wait_ms=0)\n# 立即返回：status=\"running\", session_id=\"agent-\u003CspaceId>-\u003Cts>-\u003Crand>\",\n#         pid=12345, output_file=\"{tmpdir}\u002Ftabtin-agent-tasks\u002F\u003CsessionId>.log\"\n# （{tmpdir} 是 OS 临时目录：macOS 是 \u002Fvar\u002Ffolders\u002F...，Linux 通常是 \u002Ftmp\u002F...）\n```\n\nbridge 持续把命令输出 tail 到 `output_file`。**不要再调一次同样命令**。\n\n任务完成时 push 通知会激活下一轮 turn——你可以继续做别的事不用主动等。想看实时进度用 `read_file(path=\"\u003Coutput_file>\")`，bridge 持续 tail 增量内容。\n\n> **真路径用 envelope 里的 `output_file` 字段，不要假设路径**——macOS 的 tmpdir 不是 `\u002Ftmp\u002F`，硬编码会 ENOENT。直接把 envelope 返回的 `output_file` 值喂给 `read_file` 即可。\n\ndev server 起动早早 ready：传 `pattern=\"Server listening on port\"` 让本工具命中即返。\n\n### 主动停止 background 任务\n\n```\nrun_terminal_command(command=\"kill \u003Cpid>\")\n# 卡死进程用 kill -9 \u003Cpid>；模拟 Ctrl+C 用 kill -INT \u003Cpid>\n# pid 在 status=\"running\" envelope 里返回\n```\n\nkill 是幂等的（对已自然 exit 的 PID 不算错误，shell 返回退出码非 0 但不影响）。\n\n### 交互式命令\n\n普通 `run_terminal_command` 不支持交互输入。命令本身有 prompt 时会卡住，直到 timeout 或用户取消。最常用的做法是用命令本身的非交互参数（见下方非交互优先表）。\n\n如果非交互参数不够用，**先评估**用 `ask_user` 让用户改用真正的手动 Terminal Tab（`tabtin terminal open`）操作，或等待未来的 interactive terminal 工具；不要把交互流程塞进普通 shell tool，也**不要**用 `tabtin desktop open` 打开系统终端来「凑合」。\n\n## 非交互优先原则\n\n终端命令必须优先用非交互模式。交互式 REPL（裸 `python` \u002F `node` \u002F `irb` 等）与编辑器（`vim` \u002F `nano`）绝对不要启动。\n\n### 非交互命令替代表\n\n| 交互式（禁止） | 非交互替代（必须） |\n|---|---|\n| `npm init` | `npm init -y` |\n| `npx create-*`（有提示时） | 加 `--yes` 或预先准备好答案文件 |\n| `pip install`（需确认时） | `pip install --yes` \u002F `pip install -q` |\n| `apt-get install` | `apt-get install -y` 或 `DEBIAN_FRONTEND=noninteractive` |\n| `git commit`（无 -m） | `git commit -m \"message\"` |\n| `git rebase -i` | `git rebase --autosquash` 或 `GIT_SEQUENCE_EDITOR=\"sed -i ...\" git rebase -i` |\n| `crontab -e` | `crontab \u003C\u003C'EOF'\\n...\\nEOF` |\n| `vim` \u002F `nano` \u002F `vi` | 用 `edit_file` \u002F `write_file` 工具，**不**走 shell |\n| `mysql -p` \u002F `psql` 直连 | 用 `tabtin table query` CLI |\n| `ssh`（密码认证） | `ssh -o StrictHostKeyChecking=no` + key 认证 |\n| 裸 `python` \u002F `node`（进 REPL） | `python -c \"...\"` \u002F `python script.py` \u002F `node -e \"...\"` \u002F `node script.js` |\n\n### 管道输入模式\n\n简单确认场景用管道代替交互：\n\n```bash\nyes | some_command                       # 自动回复 y\necho -e \"input1\\ninput2\" | some_command  # 多行输入\n```\n\n## 命令安全分级\n\n**自动放行（regular）**：\n- `tabtin *`（所有 CLI 子命令）\n- 只读命令：`ls` \u002F `cat` \u002F `head` \u002F `tail` \u002F `grep` \u002F `wc` \u002F `echo` \u002F `pwd` \u002F `whoami` \u002F `date`\n- 网络查询：`curl`（GET）\u002F `ping` \u002F `dig` \u002F `nslookup`\n\n**需要用户审批（explicit_permission）**：\n- 文件写入：`cp` \u002F `mv` \u002F `mkdir` \u002F `touch` \u002F `tee`\n- 软件安装：`pip install` \u002F `npm install` \u002F `brew install`\n- 进程操作：`kill`\n- 脚本执行：`python -c \"...\"` \u002F `python script.py` \u002F `node -e \"...\"` \u002F `node script.js`（需服务端放行）\n\n**禁止执行（prohibited）**：\n- 破坏性命令：`rm -rf \u002F` \u002F `mkfs` \u002F `dd` \u002F `> \u002Fdev\u002Fsda`\n- 权限提升：`sudo` \u002F `su` \u002F `chmod 777`\n- 数据库直连：`mysql` \u002F `psql`（走 `tabtin table query` \u002F `tabtin table execute` CLI）\n- 系统修改：`systemctl` \u002F `launchctl` \u002F `crontab -e`\n- 编辑器：`vim` \u002F `nano` \u002F `vi`（用 `edit_file` \u002F `write_file` 工具）\n- 交互式 REPL：裸 `python` \u002F `node`（不带 -c\u002F-e 或脚本文件参数）\n- 输出重定向写文件：`echo \"x\" > file`（被 critical denylist 拦截）—— 用 `write_file` 工具\n\n## 工作目录\n\n- 默认 cwd = 工作目录根；绝对路径只通过环境变量 `$TABTIN_WORKSPACE`（Windows：`$env:TABTIN_WORKSPACE` \u002F `%TABTIN_WORKSPACE%`）访问\n- 相对路径相对工作目录根本身——**不要**再套一层 `workspace\u002F` 前缀\n- 切其他目录：在命令内部 `cd \u002Fpath && \u003Ccmd>` 或用绝对路径\n- 长路径含空格用引号：`cd \"\u002Fpath with spaces\" && \u003Ccmd>`\n- **不要传 `working_directory` 参数**——`run_terminal_command` 没这个字段，统一用 cwd-in-command 模式\n\n## 错误恢复\n\n- `exit_code !== 0` → 分析 stdout 末尾（错误信息通常在那里）\n- 命令超 wait_ms 仍在跑 → 不杀进程，转 `status=\"running\"`；长任务直接 `wait_ms=0` 起后台 + push 通知回头\n- `hard_timeout_ms` 超时 → 进程被 SIGTERM；envelope 带 `killed_reason=\"hard_timeout\"`\n- `degraded: true` → bridge 因 policy 降级到 sandbox 跑，输出真实但跟标准 shell process 行为有差异\n- 权限拒绝 → 不要尝试 `sudo`，向用户说明需要的权限\n\n## 绝不用 run_terminal_command 做有专门工具的事\n\n- 找文件 → `glob_search`（不是 `find` \u002F `ls -R`）\n- 搜内容 → `grep_search`（不是 `grep` \u002F `rg`）\n- 读文件 → `read_file`（不是 `cat` \u002F `head` \u002F `tail`）\n- 编辑文件 → `edit_file`（不是 `sed` \u002F `awk`）\n- 写文件 → `write_file`（不是 `echo > ` \u002F `cat \u003C\u003CEOF`）\n- 跟用户说话 → 直接输出文本（不是 `echo` \u002F `printf`）\n\n## CLI 命令参考\n\n终端环境可用 `tabtin` CLI 快速调平台能力：\n\n```bash\ntabtin table query \"SELECT ...\"\ntabtin table record insert --table-id \u003Cid> --data '{\"字段\":\"值\"}'\ntabtin table record update --table-id \u003Cid> --record-id \u003Crid> --data '{\"字段\":\"值\"}'\ntabtin browser print --url \"\u003Curl>\" --save \u002Ftmp\u002Fpage.md\n```\n\n各 App 的 CLI 全集见对应 Skill：\n\n- 表格操作 → `skills_read(\"app:tabdata\u002Ftable-operator\")`\n- 浏览器操作 → `skills_read(\"app:tabweb\u002Fbrowser-operator\")`\n",{"name":5,"metadata":24,"description":37},{"tabtin":25,"version":36},{"tags":26,"tools":31,"category":33,"displayName":34,"autoActivateFor":35},[27,28,29,30],"terminal","shell","automation","pty",[32],"run_terminal_command","developer","Terminal Operator",[27],"1.0.0","终端命令执行——通过 run_terminal_command 用一次性 shell 子进程执行命令。wait_ms 决定阻塞时长；wait_ms:0 立即背景化，命令完成时 push 通知会激活下一轮 turn。 Agent 起的命令会出现在用户的 Terminal Tab transcript 中，用户可实时观察。\n","main","b84fb2b9810cd71df8350a0e52486c5327c2c929","packages\u002Fapps\u002Fterminal\u002Fskills\u002Fterminal-operator",115,"https:\u002F\u002Fgithub.com\u002Ftabtin-ai\u002FTabTin","https:\u002F\u002Fwww.tabtin.com\u002F","https:\u002F\u002Fgithub.com\u002Ftabtin-ai","People, teammates, and Agents, meeting in one workspace. \u002F 你、搭子、Agent，在同一工作区里碰头。","2026-10-08 06:44:53",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add tabtin-ai\u002FTabTin --skill terminal-operator",{"tool":53,"command":54},"bunx","bunx skills add tabtin-ai\u002FTabTin --skill terminal-operator",{"tool":56,"command":57},"pnpm","pnpm dlx skills add tabtin-ai\u002FTabTin --skill terminal-operator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftabtin-ai\u002FTabTin\u002Fblob\u002Fmain\u002Fpackages\u002Fapps\u002Fterminal\u002Fskills\u002Fterminal-operator\u002FSKILL.md",true,[],[62,69,76,83,90,97],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7AV7T04TVTA6639VSJA1MDM","tabtracker","管理自动化任务——创建、列出、暂停、恢复、立即触发（产品模块名「自动化」， 具体条目称「自动化任务」；CLI 命令仍为 tabtin tracker）。当用户表达\"派活\"意图时使用： 关键词包括\"帮我...\"、\"以后...\"、\"每天...\"、\"工作日...\"、 \"提醒我...\"、\"定时...\"、\"每周...\"。区分一次性指令（直接执行）和长期任务（创建 自动化任务，由调度器在指定时间唤起 Agent）。","https:\u002F\u002Fgithub.com\u002Ftabtin-ai\u002FTabTin\u002Fblob\u002Fmain\u002Fpackages\u002Fskills\u002Ftabtracker\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7AV7NXF303AF687GR2RZPG3","tabtin-project","在 Project Task 执行会话中工作：先读取当前任务工作面，再优先修改既有中间产物。 当系统上下文表明当前会话是 Project Task，或用户要求继续修改过程中的中间产物时使用。","https:\u002F\u002Fgithub.com\u002Ftabtin-ai\u002FTabTin\u002Fblob\u002Fmain\u002Fpackages\u002Fskills\u002Ftabtin-project\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7AV7JYFJ6HN80D12TGMMSTF","skill-market","管理 Skill 生命周期——列出已装、看详情、搜索市场、 安装、卸载、启用、禁用、更新。当用户表达\"装个技能 \u002F 卸载技能 \u002F 看看有什么技能 \u002F 启用禁用技能\"意图时使用。","https:\u002F\u002Fgithub.com\u002Ftabtin-ai\u002FTabTin\u002Fblob\u002Fmain\u002Fpackages\u002Fskills\u002Fskill-market\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7AV7F28TS1PCC9XE0859AVM","tabtin-widget","渲染可视化组件——用 show_widget 编译 SVG \u002F HTML(no-script) \u002F Mermaid 图做自由可视化。内容能落 present_to_user 4 类 kind → 不用 widget；长期可编辑产物 → TabData\u002F TabDoc\u002FTabSlide。","https:\u002F\u002Fgithub.com\u002Ftabtin-ai\u002FTabTin\u002Fblob\u002Fmain\u002Fpackages\u002Fskills\u002Fbundled\u002Fplatform\u002Fvisualization\u002Ftabtin-widget\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7AV7AWNVX8A2RXRX675350G","resource-link","插入资源链接——在 chat 文字流里给资源链接，markdown link 形态 [显示文本](tabtin:\u002F\u002Fresource\u002F\u003Ctype>\u002F\u003Cid>?hint=\u003CcarrierApp>)， 用户点击直接在 Space 内打开。行业格式（http\u002Fhttps\u002F file\u002Fmailto）也兼容；不要写 file:\u002F\u002F 让用户自己复制粘贴。","https:\u002F\u002Fgithub.com\u002Ftabtin-ai\u002FTabTin\u002Fblob\u002Fmain\u002Fpackages\u002Fskills\u002Fbundled\u002Fplatform\u002Fvisualization\u002Fresource-link\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"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":19},"01M7AV77XTH24EH30RYN9N5TKB","mcp-operations","操作本机 MCP 连接——通过 `tabtin mcp` CLI 查看当前 Space 已挂载的本机 MCP servers、tools\u002Fresources\u002F prompts，并用 `mcp_call_tool` 调用指定 MCP tool。 用户提到\"使用 Playwright MCP\"\"调用本机安装的 MCP 工具\"\"读取某个 MCP resource\"\"获取某个 MCP prompt\"时激活。","https:\u002F\u002Fgithub.com\u002Ftabtin-ai\u002FTabTin\u002Fblob\u002Fmain\u002Fpackages\u002Fskills\u002Fbundled\u002Fplatform\u002Fmcp\u002Foperations\u002FSKILL.md",[],[]]