hive.terminal-tools-fs-search
节省在系统配置、日志或归档里查找信息的时间与试错成本。
可能读取敏感系统文件或日志,需注意隐私与权限边界
指导何时使用 ripgrep/find 及常用参数以进行项目外文件和内容搜索。
帮你判断什么时候用 ripgrep(rg)、什么时候用 find,什么时候直接用 terminal_exec(ls/du/tree)来查看文件系统,尤其针对项目外的 /etc、/var/log、归档内容等场景。适合做全盘文本搜索、按时间/大小筛选文件或需要单文件状态/树状视图时使用。亮点是把工具边界讲清楚,给出常用 flag/谓词组合,避免盲目用错工具浪费时间。
▸ 展开 SKILL.md 英文原文
Use terminal_rg / terminal_find when you need raw filesystem search outside the project tree — system configs, /var/log, /etc, archive contents — or when files-tools.search_files is too project-scoped. Teaches the rg vs find vs terminal_exec("ls/du/tree") split, common rg flag combos for code/logs/configs, find predicates for mtime/size/type queries, and the rule that for tree views or single-file stat info you should just use terminal_exec instead of inventing a tool. Read before reaching for raw shell to grep or find anything.
帮我安装这个 skill:https://raw.githubusercontent.com/aden-hive/hive/main/core/framework/skills/_preset_skills/terminal-tools-fs-search/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/aden-hive/hive/main/core/framework/skills/_preset_skills/terminal-tools-fs-search/SKILL.md"# Filesystem search
terminal-tools provides two structured search tools: `terminal_rg` (ripgrep for content) and `terminal_find` (find for predicates). Everything else (tree, stat, du) is just `terminal_exec`.
## When to use what
| Task | Tool |
|---|---|
| Find code/text matching a pattern in your **project** | `files-tools.search_files` (project-aware, ranks by relevance) |
| Find code/text matching a pattern in `/var/log`, `/etc`, archives, system dirs | `terminal_rg` |
| Find files matching name/glob/predicate | `terminal_find` |
| List a directory | `terminal_exec("ls -la /path")` |
| Tree view | `terminal_exec("tree -L 2 /path")` |
| Single-path stat | `terminal_exec("stat /path")`