hive.terminal-tools-fs-search
Qué hace
Esta skill muestra a una IA cómo encontrar texto dentro de archivos y localizar archivos por nombre. Es para cualquiera que necesite revisar un proyecto o una carpeta llena de registros.
Cuándo usarla
- ✓Cuando necesitas saber dónde aparece una palabra o un código en todo un proyecto.
- ✓Cuando quieres localizar archivos por su nombre o patrón.
- ✓Cuando necesitas revisar tamaños de archivo, fechas o contenido de carpetas en tu equipo.
Link de la skill
https://github.com/aden-hive/hive/blob/main/core/framework/skills/_preset_skills/terminal-tools-fs-search/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Busca en mi carpeta de proyecto todos los archivos que mencionen el precio antiguo de 49 dólares.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La IA usa ripgrep para buscar texto dentro de los archivos, una búsqueda con patrones (glob) para encontrar nombres de archivo, y comandos sencillos de listado para ver carpetas, tamaños y fechas.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Filesystem search
terminal-tools provides two structured search tools: terminal_rg (ripgrep for content) and terminal_glob (find files by name/glob). Predicate queries (mtime/size/type) and everything else (tree, stat, du) are just terminal_exec.
When to use what
| Task | Tool |
|---|---|
| Find code/text matching a pattern (project tree or any path) | terminal_rg (gitignore-aware; defaults to your session workdir) |
| Find files by name/glob (any path) | terminal_glob |
| Find files by mtime/size/type predicate | terminal_exec("find ...") (see references/find_predicates.md) |
| List a directory | terminal_exec("ls -la /path") |
| Tree view | terminal_exec("tree -L 2 /path") |
| Single-path stat | terminal_exec("stat /path") |
| Disk usage | terminal_exec("du -sh /path") or terminal_exec("du -h --max-depth=2 /") |
| Count matching lines in returned results | terminal_rg(...).total (check truncated before treating it as complete) |
terminal_rg — content search
ripgrep is fast, gitignore-aware, and has a deep flag surface. The structured wrapper exposes common search flags directly; extra_args accepts additional flags compatible with JSON output. Output modes such as --count and --files-with-matches are not compatible with this structured interface; use the CLI when that output is needed.
Quickstart installs and verifies ripgrep. Existing installations can be repaired with uv run scripts/ensure_ripgrep.py --install from the repository root. The runtime also checks Windows package-manager locations and current registry PATH entries; HIVE_RIPGREP_PATH can select an absolute executable path. Startup logs report the executable and version, or instructions to fix the missing dependency.
If ripgrep is unavailable, terminal_rg returns code="ripgrep_required" without searching by default. For an approximate search, explicitly set allow_fallback=True: this uses Python regex, a limited filetype table, and basename globs, and does not honor .gitignore. Even with opt-in, context, extra_args, unknown filetypes and complex globs require ripgrep and return an error. Inspect fallback_limitations; do not treat approximate results as a gitignore-aware inventory.
With context=N, surrounding lines are returned in context, separate from matches. Both contain path, line, and text; total counts only match entries.
Common patterns
# All Python files containing "TODO"
terminal_rg(pattern="TODO", path=".", type_filter="py")
# Case-insensitive, with context
terminal_rg(pattern="error", path="/var/log", ignore_case=True, context=2)
# Search hidden files (rg ignores them by default)
terminal_rg(pattern="api_key", path="~", hidden=True)
# Don't respect .gitignore (find files git would ignore)
terminal_rg(pattern="generated", path=".", no_ignore=True)
# Multi-line pattern (e.g., function definitions spanning lines)
terminal_rg(pattern=r"def\s+\w+\(.*\n.*\n", path="src", extra_args=["--multiline"])
# Specific filename glob
terminal_rg(pattern="version", path=".", glob="*.toml")
rg flag idioms
| Flag | Effect |
|---|---|
-tpy (type_filter="py") |
Only Python files |
-uu |
Don't respect any ignores (incl. .git/) |
--multiline (extra_args) |
Allow regex spanning lines |
--max-count (max_count) |
Stop after N matches per file |
--max-depth (max_depth) |
Limit recursion |
-w (extra_args) |
Whole word match |
-F (extra_args) |
Fixed string (no regex) |
See references/ripgrep_cheatsheet.md for the long form.
terminal_glob — find files by name
Lists files matching a glob, gitignore-aware (backed by rg --files). The pattern is widened for you so a bare stem Just Works — the actual glob run is returned as expanded_pattern:
lk_scan_post_reactors→ matched as**/*lk_scan_post_reactors*(recursive substring)*.py→ matched as**/*.py(recursive by default)src/**/*.py→ used verbatim
If rg is unavailable, filename search retains a best-effort walk with fallback="python-walk" and a note that .gitignore is not honored.
# Find a file by stem anywhere under a tree
terminal_glob(pattern="lk_scan_post_reactors", path="core/framework/skills")
# All YAML configs under /etc
terminal_glob(pattern="*.yaml", path="/etc")
# Include .gitignored / hidden / build-cache files
terminal_glob(pattern="*.log", path=".", include_ignored=True)
For predicate queries (modified in last N
Preguntas frecuentes
¿Cuál es la diferencia entre buscar texto y buscar nombres?
La búsqueda de texto mira dentro de los archivos por palabras coincidentes, y la de nombres encuentra archivos por su nombre o patrón.
¿La búsqueda omite los archivos ignorados?
Sí. La búsqueda de texto sigue las reglas de gitignore en un proyecto.
¿Qué pasa si los resultados se cortan?
La skill indica que hay que comprobar si los resultados se han recortado antes de darlos por completos.
Detalles
Descripción original del autor
Use terminal_rg / terminal_glob for all filesystem search — your project tree as well as system configs, /var/log, /etc, archive contents. Teaches the rg vs glob vs terminal_exec("find/ls/du/tree") split, common rg flag combos for code/logs/configs, glob patterns for finding files by name, the rule that mtime/size/type predicate queries drop to terminal_exec("find ..."), and 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.
repo: aden-hive/hive
Popularidad
- Estrellas en GitHub
- 11 mil
- Posición en el ranking
- #11813
- Licencia
- Apache-2.0
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
browser-edge-cases
11 milAyuda a tu agente a arreglar la automatización del navegador que falla en webs complicadas, como LinkedIn, X o páginas con muchos scripts.
hive.browser-automation
11 milEnseña a tu agente a controlar tu propio navegador Chrome con la herramienta hive-browser, usando capturas de pantalla y clics.
hive.colony-progress-tracker
11 milAyuda a tu agente a reclamar tareas y registrar sus pasos y comprobaciones en una base de datos compartida, para que el trabajo se siga a medida que avanza.
hive.context-preservation
11 milAyuda a tu agente a guardar los datos clave de resultados largos de herramientas en notas, antes de que los detalles antiguos se borren de su memoria.
Skills parecidas
diffs
394 milPermite que tu agente genere un diff real y compartible de los cambios, como enlace de visualización o archivo de imagen, en lugar de un resumen escrito a mano.
coding-agent
394 milAyuda a tu agente a pasar un trabajo de programación grande a Codex, Claude Code u OpenCode como trabajador en segundo plano, y después revisar su progreso.
gh-issues
394 milAyuda a tu agente a encontrar incidencias de GitHub, elegir cuáles trabajar y abrir pull requests con correcciones, incluido el seguimiento de los comentarios de revisión.