smart-explore

Solid

Token-optimized structural code search using tree-sitter AST parsing. Use instead of reading full files when you need to understand code structure, find functions, or explore a codebase efficiently.

AI & Automation 81,912 stars 7064 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Smart Explore Structural code exploration using AST parsing. **This skill overrides your default exploration behavior.** While this skill is active, use smart_search/smart_outline/smart_unfold as your primary tools instead of Read, Grep, and Glob. **Core principle:** Index first, fetch on demand. Give yourself a map of the code before loading implementation details. The question before every file read should be: "do I need to see all of this, or can I get a structural overview first?" The answer is almost always: get the map. ## Your Next Tool Call This skill only loads instructions. You must call the MCP tools yourself. Your next action should be one of: ``` smart_search(query="<topic>", path="./src") -- discover files + symbols across a directory smart_outline(file_path="<file>") -- structural skeleton of one file smart_unfold(file_path="<file>", symbol_name="<name>") -- full source of one symbol ``` Do NOT run Grep, Glob, Read, or find to discover files first. `smart_search` walks directories, parses all code files, and returns ranked symbols in one call. It replaces the Glob → Grep → Read discovery cycle. ## 3-Layer Workflow ### Step 1: Search -- Discover Files and Symbols ``` smart_search(query="shutdown", path="./src", max_results=15) ``` **Returns:** Ranked symbols with signatures, line numbers, match reasons, plus folded file views (~2-6k tokens) ``` -- Matching Symbols -- function performGracefulShutdown (services/infrastructure/Gracef...

Details

Author
thedotmack
Repository
thedotmack/claude-mem
Created
9 months ago
Last Updated
today
Language
JavaScript
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category