Перейти к основному содержимому

Перевод: оболочка страницы на русском; тело навыка (SKILL.md) пока на английском — это исходные инструкции агента.

Codebase Navigate

Find symbols via project index CLI, not grep alone.

Метаданные навыка​

ИсточникВстроенный (установлен по умолчанию)
Путьskills/software-development/codebase-navigate
Версия1.0.0
АвторVibeOS
ЛицензияMIT
Платформыlinux, macos
Тегиproject, index, symbols, navigate, codebase
Связанные навыкиproject-kanban-worktrees, git-local-workflow

Справка: полный SKILL.md​

к сведению

Ниже полное определение навыка, которое VibeOS загружает при активации. Это инструкции, которые видит агент.

Codebase Navigate Skill

Use the project symbol index to jump to definitions by name before broad file walks. Index is CLI-only (no new model tools) — drive it with terminal.

Do not invent paths; query the index, then open hits with read_file.

When to Use​

  • User asks where a class/function/type lives in a large repo
  • Kanban worker cwd is under .worktrees/<task> (scoped index)
  • Before search_files / recursive greps for a known symbol name

Prerequisites​

  • Repo root or worktree with sources
  • Optional pack: vibeos pack apply project-intelligence --apply

How to Run​

  1. Build or refresh the index (worktree-aware when cwd is under .worktrees/):
vibeos project index build
vibeos project index status
  1. Query by substring of the symbol name:
vibeos project index query Widget
vibeos project index query find_widget --limit 20
  1. Open the top hit with read_file at the reported path:line.

  2. If status reports stale / missing:

vibeos project index build
vibeos doctor --project

Quick Reference​

GoalCommand
Build indexvibeos project index build
Query symbolvibeos project index query <name>
Status / stalevibeos project index status
Doctor hintsvibeos doctor --project
Apply packvibeos pack apply project-intelligence --apply
Diagnostics cachevibeos project diagnostics
Test/lint cmdsvibeos project commands

Procedure​

  1. Prefer vibeos project index query for named symbols.
  2. Use search_files when the name is unknown or the index miss is expected (generated code, non-indexed languages).
  3. In a kanban worktree, rebuild the scoped index after large pulls — status shows PROJ.index_stale when git HEAD moved.
  4. Cite path:line from the index hit in replies and Board comments.

Pitfalls​

  • Index skips node_modules/, release/, and most dot-dirs — do not expect vendored symbols.
  • Unregistered checkouts use local-<sha> ids; worktrees nest under $VIBEOS_HOME/projects/<id>/worktrees/<task>/index/.
  • Do not add a core navigate tool — stay on CLI + terminal.

Verification​

vibeos project index status
vibeos project index query <known_symbol>
vibeos doctor --project