hive.terminal-tools-fs-search

仓库创建 2026年1月12日最近提交 2 个月前SkillHot 收录 22 天前
▸ 精选理由

节省在系统配置、日志或归档里查找信息的时间与试错成本。

▸ 风险提示

可能读取敏感系统文件或日志,需注意隐私与权限边界

这个 Skill 做什么

指导何时使用 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.

开发编程文件搜索ripgrepfind通用
1.1w
Stars
5.7k
Forks
18
仓库内 Skill
+143
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/aden-hive/hive/main/core/framework/skills/_preset_skills/terminal-tools-fs-search/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/aden-hive/hive/main/core/framework/skills/_preset_skills/terminal-tools-fs-search/SKILL.md"
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")` 
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有