smart-explore

Search codebases structurally using tree-sitter AST parsing.

Updated Jun 18, 2026
One-click install
npx skills add https://github.com/liujiayi3703/scientific-research-skills --skill smart-explore-liujiayi3703
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: smart-explore
Source: https://github.com/liujiayi3703/scientific-research-skills/tree/main/library/skills/smart-explore
Command: npx skills add https://github.com/liujiayi3703/scientific-research-skills --skill smart-explore-liujiayi3703

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps streamline code exploration by offering a faster and more efficient way to navigate codebases compared to traditional file reading or search methods.

Core Features & Use Cases

  • Structural Search: Perform targeted searches within codebases, finding functions, symbols, and more with minimal file reading.
  • Tree-Sitter AST Parsing: Utilize advanced parsing for precise structural analysis of code.
  • Smart Navigation Tools: Access functions, symbols, and code sections with smart_search, smart_outline, and smart_unfold.
  • Use Case: For developers looking to quickly locate and understand a specific function within a large codebase, smart-search can quickly identify and display the function's location and related information.

Quick Start

Use the smart-explore skill to search for a function within your codebase. For example: smart_search(query="shutdown", path="./src").

Frequently Asked Questions about smart-explore

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find a specific function in a large codebase without reading every file?

Structural search using tree-sitter AST parsing locates specific functions and symbols in a large codebase with minimal file reading. It targets the precise structural elements rather than scanning raw text, accelerating code exploration.

What is tree-sitter AST parsing used for in code navigation?

Tree-sitter AST parsing provides precise structural analysis of code for smart navigation. It enables targeted searches for functions and symbols, allowing developers to quickly locate and understand specific code sections efficiently.

How do I use smart_search to locate symbols within my source directory?

To locate symbols, execute a structural search query targeting your source path, such as smart_search(query="shutdown", path="./src"). This navigates the codebase structure to quickly identify and display the function's location.

Does smart-explore work for navigating codebases across different programming languages?

Yes, smart-explore utilizes tree-sitter for AST parsing, which supports multiple programming languages. This allows structural search and smart navigation tools to function effectively across diverse codebases for function and symbol discovery.

What is the best way to outline code sections and unfold functions during code exploration?

Using smart_outline and smart_unfold provides the best way to navigate code sections by displaying structural outlines and expanding specific functions. This intelligent navigation minimizes reading entire files while exploring codebases.