用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tabtin-ai/TabTin --skill tabcode-operator命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies
Use when you have a written implementation plan to execute in a separate session with review checkpoints
基于 SOC 职业分类
正在显示 SKILL.md
| name | tabcode-operator |
| description | 代码项目操作——读写编辑文件、搜索代码、诊断验证、 运行 lint、执行 Git 安全操作。用户提到"读文件""写代码""搜索代码""git""lint"时使用。 |
| metadata | {"version":"0.3.1","tabtin":{"category":"developer","displayName":"TabCode Operator","tags":["code","development","file"],"autoActivateFor":["tabcode"],"tools":["web_search","run_terminal_command","read_file","write_file","edit_file","delete_file","glob_search","grep_search"]}} |
代码项目文件操作与搜索,直接调用对应工具——不要绕 tabtin code CLI 子命令。
6 件套是 LLM 直接可见的 TabCode FC 工具,按需调用,参数即工具入参:
| 工具 | 用途 | 必填参数 | 常用选填 |
|---|---|---|---|
read_file | 读取文件(带行号) | path | offset(起始行,1 起算,可负从尾部数)/ limit(最大行数) |
write_file | 写入或覆盖文件 | path, contents | — |
edit_file | 精确字符串替换 | path, old_string, new_string | replace_all(替换所有匹配) |
delete_file | 删除文件 | path | — |
glob_search | 文件名模式搜索 | glob_pattern(如 **/*.tsx) | target_directory |
grep_search | 代码内容正则搜索 | pattern | path / glob / type / output_mode / -i / -A/-B/-C |
注意:
read_file 读取目标文件——edit_file 依赖最近一次读取的内容做匹配。edit_file 的 old_string 必须在文件中唯一;不唯一时多带几行上下文,或用 replace_all。workspace_root)和绝对。创建目录、移动或重命名文件没有对应的 FC 工具(above 7 件套不含 mkdir/move),
走 run_terminal_command 调 CLI:
run_terminal_command(command="tabtin code mkdir --path src/newdir")
run_terminal_command(command="tabtin code mv --from src/old.go --to src/new.go")
run_terminal_command(command="tabtin code rename --from src/old.go --to src/new.go") # rename 是 mv 的别名
mkdir 对齐 mkdir -p:递归创建,目标已是目录时幂等成功,撞到同名文件时报错。mv/rename 默认不覆盖已存在的目标路径(无 --force);不允许把路径移动到自身子树内。根据搜索意图选择合适工具,三者互补:
grep_search — 精确匹配,适合已知符号
glob_search — 文件名模式发现
典型工作流:glob_search 发现文件 → grep_search 精确查找 → read_file 深入阅读
read_file 读取文件edit_file 做精确替换,避免重写整个文件old_string 不唯一,提供更多上下文行使其唯一run_terminal_command(command="git status") # 分支、staged/unstaged 文件
run_terminal_command(command="git diff") # 未暂存的变更
run_terminal_command(command="git diff --staged") # 暂存区变更
run_terminal_command(command="git add .")
run_terminal_command(command="git commit -m 'message'")
git reset --hard(除非用户明确要求)git push --force 到 main/mastergit status 和 git diff 查看变更web_search — 搜索网络获取实时信息(FC 工具)tabtin fetch <url> — 抓取静态 URL 页面正文转 Markdown(轻量 HTTP + readability,CLI 首选);
已打开 tab / JS 动态页取正文走 tabtin browser print --save <path>(缺省当前 tab;公开动态页加 --url),
落盘后按需读文件;二进制资源下载走 tabtin browser resource download --url <url>。web_search 找到链接 → run_terminal_command("tabtin fetch <url>") 抓正文通过 run_terminal_command 执行耗时命令时:
wait_ms=60000,上限 300000;到期不会杀进程,而是返回 status="running" + session_id + pid + output_file。wait_ms: 0 立即后台化。read_file(output_file)。run_terminal_command 跑 kill <pid>(pid 在 envelope 里返回;卡死进程用 kill -9;模拟 Ctrl+C 用 kill -INT)。| 标识 | 含义 |
|---|---|
code_project | 用户打开的代码仓库 |
agent_dir | Agent 产出目录 |
user_folders | 用户文件夹 |
workspace_root 是文件工具和 terminal 的默认工作目录。
cd 到 workspace_root——它已是默认工作目录