[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ATT585YG41RAMHY5R0XEQW":3,"skill-same:01M7ATT585YG41RAMHY5R0XEQW":68},{"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":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":50,"ownerHtmlUrl":51,"ownerBlogUrl":50,"ownerDescription":52,"updatedAt":53,"install":54,"resources":67},"01M7ATT585YG41RAMHY5R0XEQW","tabcode-operator",null,"代码项目操作——读写编辑文件、搜索代码、诊断验证、 运行 lint、执行 Git 安全操作。用户提到\"读文件\"\"写代码\"\"搜索代码\"\"git\"\"lint\"时使用。","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\u002Ftabcode\u002Fskills\u002Ftabcode-operator\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: tabcode-operator\ndescription: >\n  代码项目操作——读写编辑文件、搜索代码、诊断验证、\n  运行 lint、执行 Git 安全操作。用户提到\"读文件\"\"写代码\"\"搜索代码\"\"git\"\"lint\"时使用。\nmetadata:\n  version: 0.3.1\n  tabtin:\n    category: developer\n    displayName: \"TabCode Operator\"\n    tags:\n      - code\n      - development\n      - file\n    autoActivateFor:\n      - tabcode\n    tools:\n      - web_search\n      - run_terminal_command\n      - read_file\n      - write_file\n      - edit_file\n      - delete_file\n      - glob_search\n      - grep_search\n---\n\n# TabCode Operator\n\n代码项目文件操作与搜索，**直接调用对应工具**——不要绕 `tabtin code` CLI 子命令。\n\n## 操作方式\n\n6 件套是 LLM 直接可见的 TabCode FC 工具，按需调用，参数即工具入参：\n\n| 工具 | 用途 | 必填参数 | 常用选填 |\n|---|---|---|---|\n| `read_file` | 读取文件（带行号） | `path` | `offset`（起始行，1 起算，可负从尾部数）\u002F `limit`（最大行数） |\n| `write_file` | 写入或覆盖文件 | `path`, `contents` | — |\n| `edit_file` | 精确字符串替换 | `path`, `old_string`, `new_string` | `replace_all`（替换所有匹配） |\n| `delete_file` | 删除文件 | `path` | — |\n| `glob_search` | 文件名模式搜索 | `glob_pattern`（如 `**\u002F*.tsx`） | `target_directory` |\n| `grep_search` | 代码内容正则搜索 | `pattern` | `path` \u002F `glob` \u002F `type` \u002F `output_mode` \u002F `-i` \u002F `-A`\u002F`-B`\u002F`-C` |\n\n注意：\n- 编辑前必须先 `read_file` 读取目标文件——`edit_file` 依赖最近一次读取的内容做匹配。\n- `edit_file` 的 `old_string` 必须在文件中**唯一**；不唯一时多带几行上下文，或用 `replace_all`。\n- 路径支持相对（相对于 `workspace_root`）和绝对。\n\n## 建目录 \u002F 移动 \u002F 重命名（CLI-only，无 FC 工具）\n\n创建目录、移动或重命名文件**没有**对应的 FC 工具（above 7 件套不含 mkdir\u002Fmove），\n走 `run_terminal_command` 调 CLI：\n\n```bash\nrun_terminal_command(command=\"tabtin code mkdir --path src\u002Fnewdir\")\nrun_terminal_command(command=\"tabtin code mv --from src\u002Fold.go --to src\u002Fnew.go\")\nrun_terminal_command(command=\"tabtin code rename --from src\u002Fold.go --to src\u002Fnew.go\")  # rename 是 mv 的别名\n```\n\n- `mkdir` 对齐 `mkdir -p`：递归创建，目标已是目录时幂等成功，撞到同名文件时报错。\n- `mv`\u002F`rename` 默认**不覆盖**已存在的目标路径（无 `--force`）；不允许把路径移动到自身子树内。\n\n## 三层搜索策略\n\n根据搜索意图选择合适工具，三者互补：\n\n1. **`grep_search`** — 精确匹配，适合已知符号\n   - 查找 class\u002Ffunction\u002Fvariable 定义\n   - 支持正则表达式\n\n2. **`glob_search`** — 文件名模式发现\n   - 找到特定类型文件，了解目录结构\n\n**典型工作流**：`glob_search` 发现文件 → `grep_search` 精确查找 → `read_file` 深入阅读\n\n## 编辑约束\n\n- 编辑前必须先 `read_file` 读取文件\n- 使用 `edit_file` 做精确替换，避免重写整个文件\n- 如果 `old_string` 不唯一，提供更多上下文行使其唯一\n- 代码注释应简洁——只在代码本身无法传达意图时添加\n- 不要添加叙述性注释（如\"导入模块\"、\"定义函数\"）\n\n## Git 操作规范\n\n### 查看状态和变更\n\n```bash\nrun_terminal_command(command=\"git status\")             # 分支、staged\u002Funstaged 文件\nrun_terminal_command(command=\"git diff\")               # 未暂存的变更\nrun_terminal_command(command=\"git diff --staged\")      # 暂存区变更\n```\n\n### 修改操作\n\n```bash\nrun_terminal_command(command=\"git add .\")\nrun_terminal_command(command=\"git commit -m 'message'\")\n```\n\n- 永远不要 `git reset --hard`（除非用户明确要求）\n- 永远不要 `git push --force` 到 main\u002Fmaster\n- commit 前先用 `git status` 和 `git diff` 查看变更\n- 不要自动 amend 已推送到远程的 commit\n- 不要跳过 pre-commit hooks\n\n## Web 信息检索\n\n- `web_search` — 搜索网络获取实时信息（FC 工具）\n- `tabtin fetch \u003Curl>` — 抓取静态 URL 页面正文转 Markdown（轻量 HTTP + readability，CLI 首选）；\n  已打开 tab \u002F JS 动态页取正文走 `tabtin browser print --save \u003Cpath>`（缺省当前 tab；公开动态页加 `--url`），\n  落盘后按需读文件；二进制资源下载走 `tabtin browser resource download --url \u003Curl>`。\n- 典型工作流：`web_search` 找到链接 → `run_terminal_command(\"tabtin fetch \u003Curl>\")` 抓正文\n\n## 诊断与验证\n\n- 编辑后 runtime 会在下一轮被动注入 LSP \u002F lint 诊断；不要主动调用已退役的诊断 FC 工具。\n- 需要主动验证时，运行项目已有 lint \u002F typecheck \u002F test 命令，或让用户提供指定命令。\n- 编辑代码后检查**自己引入**的 lint 错误，不修复预存的\n- 运行相关测试验证改动正确性\n\n## 长命令管理\n\n通过 `run_terminal_command` 执行耗时命令时：\n- 默认 `wait_ms=60000`，上限 300000；到期不会杀进程，而是返回 `status=\"running\"` + `session_id` + `pid` + `output_file`。\n- dev server \u002F watcher \u002F 持续 log → 传 `wait_ms: 0` 立即后台化。\n- 任务完成时 push 通知会激活下一轮 turn——你可以继续做别的事不用主动等。\n- 想看进度：`read_file(output_file)`。\n- 想停掉：用 `run_terminal_command` 跑 `kill \u003Cpid>`（pid 在 envelope 里返回；卡死进程用 `kill -9`；模拟 Ctrl+C 用 `kill -INT`）。\n\n## 目录体系\n\n| 标识 | 含义 |\n|------|------|\n| `code_project` | 用户打开的代码仓库 |\n| `agent_dir` | Agent 产出目录 |\n| `user_folders` | 用户文件夹 |\n\n`workspace_root` 是文件工具和 terminal 的默认工作目录。\n- 文件路径支持相对路径（相对于 workspace_root）和绝对路径\n- 不要 `cd` 到 workspace_root——它已是默认工作目录\n\n## 效率规则\n\n- 上下文已注入当前项目路径和 Git 状态 → 不要重复查询\n- 独立的读操作可以并行执行（使用不同 session_id）\n- 先理解代码结构再动手修改——探索 → 理解 → 修改 → 验证\n","# TabCode Operator\n\n代码项目文件操作与搜索，**直接调用对应工具**——不要绕 `tabtin code` CLI 子命令。\n\n## 操作方式\n\n6 件套是 LLM 直接可见的 TabCode FC 工具，按需调用，参数即工具入参：\n\n| 工具 | 用途 | 必填参数 | 常用选填 |\n|---|---|---|---|\n| `read_file` | 读取文件（带行号） | `path` | `offset`（起始行，1 起算，可负从尾部数）\u002F `limit`（最大行数） |\n| `write_file` | 写入或覆盖文件 | `path`, `contents` | — |\n| `edit_file` | 精确字符串替换 | `path`, `old_string`, `new_string` | `replace_all`（替换所有匹配） |\n| `delete_file` | 删除文件 | `path` | — |\n| `glob_search` | 文件名模式搜索 | `glob_pattern`（如 `**\u002F*.tsx`） | `target_directory` |\n| `grep_search` | 代码内容正则搜索 | `pattern` | `path` \u002F `glob` \u002F `type` \u002F `output_mode` \u002F `-i` \u002F `-A`\u002F`-B`\u002F`-C` |\n\n注意：\n- 编辑前必须先 `read_file` 读取目标文件——`edit_file` 依赖最近一次读取的内容做匹配。\n- `edit_file` 的 `old_string` 必须在文件中**唯一**；不唯一时多带几行上下文，或用 `replace_all`。\n- 路径支持相对（相对于 `workspace_root`）和绝对。\n\n## 建目录 \u002F 移动 \u002F 重命名（CLI-only，无 FC 工具）\n\n创建目录、移动或重命名文件**没有**对应的 FC 工具（above 7 件套不含 mkdir\u002Fmove），\n走 `run_terminal_command` 调 CLI：\n\n```bash\nrun_terminal_command(command=\"tabtin code mkdir --path src\u002Fnewdir\")\nrun_terminal_command(command=\"tabtin code mv --from src\u002Fold.go --to src\u002Fnew.go\")\nrun_terminal_command(command=\"tabtin code rename --from src\u002Fold.go --to src\u002Fnew.go\")  # rename 是 mv 的别名\n```\n\n- `mkdir` 对齐 `mkdir -p`：递归创建，目标已是目录时幂等成功，撞到同名文件时报错。\n- `mv`\u002F`rename` 默认**不覆盖**已存在的目标路径（无 `--force`）；不允许把路径移动到自身子树内。\n\n## 三层搜索策略\n\n根据搜索意图选择合适工具，三者互补：\n\n1. **`grep_search`** — 精确匹配，适合已知符号\n   - 查找 class\u002Ffunction\u002Fvariable 定义\n   - 支持正则表达式\n\n2. **`glob_search`** — 文件名模式发现\n   - 找到特定类型文件，了解目录结构\n\n**典型工作流**：`glob_search` 发现文件 → `grep_search` 精确查找 → `read_file` 深入阅读\n\n## 编辑约束\n\n- 编辑前必须先 `read_file` 读取文件\n- 使用 `edit_file` 做精确替换，避免重写整个文件\n- 如果 `old_string` 不唯一，提供更多上下文行使其唯一\n- 代码注释应简洁——只在代码本身无法传达意图时添加\n- 不要添加叙述性注释（如\"导入模块\"、\"定义函数\"）\n\n## Git 操作规范\n\n### 查看状态和变更\n\n```bash\nrun_terminal_command(command=\"git status\")             # 分支、staged\u002Funstaged 文件\nrun_terminal_command(command=\"git diff\")               # 未暂存的变更\nrun_terminal_command(command=\"git diff --staged\")      # 暂存区变更\n```\n\n### 修改操作\n\n```bash\nrun_terminal_command(command=\"git add .\")\nrun_terminal_command(command=\"git commit -m 'message'\")\n```\n\n- 永远不要 `git reset --hard`（除非用户明确要求）\n- 永远不要 `git push --force` 到 main\u002Fmaster\n- commit 前先用 `git status` 和 `git diff` 查看变更\n- 不要自动 amend 已推送到远程的 commit\n- 不要跳过 pre-commit hooks\n\n## Web 信息检索\n\n- `web_search` — 搜索网络获取实时信息（FC 工具）\n- `tabtin fetch \u003Curl>` — 抓取静态 URL 页面正文转 Markdown（轻量 HTTP + readability，CLI 首选）；\n  已打开 tab \u002F JS 动态页取正文走 `tabtin browser print --save \u003Cpath>`（缺省当前 tab；公开动态页加 `--url`），\n  落盘后按需读文件；二进制资源下载走 `tabtin browser resource download --url \u003Curl>`。\n- 典型工作流：`web_search` 找到链接 → `run_terminal_command(\"tabtin fetch \u003Curl>\")` 抓正文\n\n## 诊断与验证\n\n- 编辑后 runtime 会在下一轮被动注入 LSP \u002F lint 诊断；不要主动调用已退役的诊断 FC 工具。\n- 需要主动验证时，运行项目已有 lint \u002F typecheck \u002F test 命令，或让用户提供指定命令。\n- 编辑代码后检查**自己引入**的 lint 错误，不修复预存的\n- 运行相关测试验证改动正确性\n\n## 长命令管理\n\n通过 `run_terminal_command` 执行耗时命令时：\n- 默认 `wait_ms=60000`，上限 300000；到期不会杀进程，而是返回 `status=\"running\"` + `session_id` + `pid` + `output_file`。\n- dev server \u002F watcher \u002F 持续 log → 传 `wait_ms: 0` 立即后台化。\n- 任务完成时 push 通知会激活下一轮 turn——你可以继续做别的事不用主动等。\n- 想看进度：`read_file(output_file)`。\n- 想停掉：用 `run_terminal_command` 跑 `kill \u003Cpid>`（pid 在 envelope 里返回；卡死进程用 `kill -9`；模拟 Ctrl+C 用 `kill -INT`）。\n\n## 目录体系\n\n| 标识 | 含义 |\n|------|------|\n| `code_project` | 用户打开的代码仓库 |\n| `agent_dir` | Agent 产出目录 |\n| `user_folders` | 用户文件夹 |\n\n`workspace_root` 是文件工具和 terminal 的默认工作目录。\n- 文件路径支持相对路径（相对于 workspace_root）和绝对路径\n- 不要 `cd` 到 workspace_root——它已是默认工作目录\n\n## 效率规则\n\n- 上下文已注入当前项目路径和 Git 状态 → 不要重复查询\n- 独立的读操作可以并行执行（使用不同 session_id）\n- 先理解代码结构再动手修改——探索 → 理解 → 修改 → 验证\n",{"name":5,"metadata":24,"description":44},{"tabtin":25,"version":43},{"tags":26,"tools":30,"category":39,"displayName":40,"autoActivateFor":41},[27,28,29],"code","development","file",[31,32,33,34,35,36,37,38],"web_search","run_terminal_command","read_file","write_file","edit_file","delete_file","glob_search","grep_search","developer","TabCode Operator",[42],"tabcode","0.3.1","代码项目操作——读写编辑文件、搜索代码、诊断验证、 运行 lint、执行 Git 安全操作。用户提到\"读文件\"\"写代码\"\"搜索代码\"\"git\"\"lint\"时使用。\n","main","b84fb2b9810cd71df8350a0e52486c5327c2c929","packages\u002Fapps\u002Ftabcode\u002Fskills\u002Ftabcode-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":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add tabtin-ai\u002FTabTin --skill tabcode-operator",{"tool":60,"command":61},"bunx","bunx skills add tabtin-ai\u002FTabTin --skill tabcode-operator",{"tool":63,"command":64},"pnpm","pnpm dlx skills add tabtin-ai\u002FTabTin --skill tabcode-operator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftabtin-ai\u002FTabTin\u002Fblob\u002Fmain\u002Fpackages\u002Fapps\u002Ftabcode\u002Fskills\u002Ftabcode-operator\u002FSKILL.md",true,[],[69,76,83,90,97,104],{"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},"01M7AV7T04TVTA6639VSJA1MDM","tabtracker","管理自动化任务——创建、列出、暂停、恢复、立即触发（产品模块名「自动化」， 具体条目称「自动化任务」；CLI 命令仍为 tabtin tracker）。当用户表达\"派活\"意图时使用： 关键词包括\"帮我...\"、\"以后...\"、\"每天...\"、\"工作日...\"、 \"提醒我...\"、\"定时...\"、\"每周...\"。区分一次性指令（直接执行）和长期任务（创建 自动化任务，由调度器在指定时间唤起 Agent）。","https:\u002F\u002Fgithub.com\u002Ftabtin-ai\u002FTabTin\u002Fblob\u002Fmain\u002Fpackages\u002Fskills\u002Ftabtracker\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},"01M7AV7NXF303AF687GR2RZPG3","tabtin-project","在 Project Task 执行会话中工作：先读取当前任务工作面，再优先修改既有中间产物。 当系统上下文表明当前会话是 Project Task，或用户要求继续修改过程中的中间产物时使用。","https:\u002F\u002Fgithub.com\u002Ftabtin-ai\u002FTabTin\u002Fblob\u002Fmain\u002Fpackages\u002Fskills\u002Ftabtin-project\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},"01M7AV7JYFJ6HN80D12TGMMSTF","skill-market","管理 Skill 生命周期——列出已装、看详情、搜索市场、 安装、卸载、启用、禁用、更新。当用户表达\"装个技能 \u002F 卸载技能 \u002F 看看有什么技能 \u002F 启用禁用技能\"意图时使用。","https:\u002F\u002Fgithub.com\u002Ftabtin-ai\u002FTabTin\u002Fblob\u002Fmain\u002Fpackages\u002Fskills\u002Fskill-market\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},"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":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},"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":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"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",[],[]]