一键导入
gabb-code-navigation
Teaches when to use gabb_structure for efficient file exploration. Use gabb_structure before reading large files in supported languages.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Teaches when to use gabb_structure for efficient file exploration. Use gabb_structure before reading large files in supported languages.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Teaches when to use gabb_structure for efficient file exploration. Use gabb_structure before reading large files in supported languages.
Decision guide for code navigation. Teaches when to use gabb tools vs default tools (Grep/Read) for maximum efficiency. Applies to Python/TypeScript/Rust/Kotlin/C++.
基于 SOC 职业分类
| name | gabb-code-navigation |
| description | Teaches when to use gabb_structure for efficient file exploration. Use gabb_structure before reading large files in supported languages. |
| allowed-tools | mcp__gabb__gabb_structure, mcp__gabb__gabb_symbol, Edit, Write, Bash, Read, Glob |
gabb can be installed per-project (gabb init --mcp --skill) or globally (gabb install-global).
When installed globally, gabb is available in all Claude Code sessions without per-project setup.
When you need to find code, follow this order:
gabb_symbolgabb_structuregabb_symbol - Workspace Symbol SearchSearch for symbols (functions, classes, methods) by name across the workspace.
When to use:
Example:
gabb_symbol name="update_proxy_model_permissions"
→ function update_proxy_model_permissions [prod] migrations/0011_update_proxy_permissions.py:5:1
Use Grep instead when:
gabb_structure - File Layout PreviewFirst: Assess if exploration is needed (see MCP instructions). For trivial tasks with obvious targets, go directly to the file.
If exploring: Before reading large or unfamiliar code files, consider using gabb_structure to preview the layout.
This saves tokens when you only need part of a large file.
Recommended for:
Skip when:
| Language | Extensions |
|---|---|
| Python | .py, .pyi |
| TypeScript | .ts, .tsx |
| Rust | .rs |
| Go | .go |
| Kotlin | .kt, .kts |
| C++ | .cpp, .cc, .cxx, .hpp, .hh |
| C# | .cs |
| Ruby | .rb |
gabb_symbol name="MyClass"
→ class MyClass [prod] src/models.py:45:1
1. gabb_structure file="src/large_file.rs"
→ Returns symbol names, kinds, line numbers (NO source code)
2. Read file_path="src/large_file.rs" offset=150 limit=50
→ Read only the section you need
gabb_structure Output Looks Like/path/to/file.rs:450
Summary: 15 functions, 3 structs | 450 lines
Key types: MyStruct (10 methods)
MyStruct st 10
new fn 12
process fn 17
helper fn 30
main fn 50
The output shows:
name kind_abbrev line with single-space indent for children