
smart-explore
Token-optimized structural code search using tree-sitter AST parsing
by thedotmackFree
Description
smart-explore is a skill from the claude-mem project that replaces full-file reading with structural code search based on tree-sitter AST parsing, which keeps token use low. While the skill is active, it tells the agent to use its smart_search, smart_outline and smart_unfold tools as the primary way to explore code, instead of Read, Grep and Glob. The core principle is to index first and fetch on demand: get a map of the code before loading implementation detail. Before opening any file, the agent asks whether it needs to see all of it or whether a structural overview would do. The three tools work in order. smart_search walks a directory, parses the code files and returns ranked symbols and files in one call, which replaces the usual cycle of globbing, grepping and reading. smart_outline gives the structural skeleton of a single file. smart_unfold returns the full source of one named symbol. The skill notes that it only loads instructions, so the agent must call the MCP tools itself.…
Highlights
- Tree-sitter AST structural search
- Index first, fetch on demand
- Outline one file, unfold one symbol
- Replaces repeated glob, grep and read cycles
Ratings & Reviews
No ratings yet
Be the first to rate smart-explore.
People also visit

content-research-writer
Assists in writing high-quality content by conducting research

batch-grill-me
A relentless interview that asks every frontier question at once, round by round

coding-agent
Delegate coding work to Codex, Claude Code, or OpenCode as background workers

canvas-design
Create beautiful visual art in .png and .pdf documents using design philosophy
smart-explore FAQ
What does the smart-explore skill do?
It makes an agent explore code by structure, using AST search, file outlines and single-symbol views, instead of reading whole files.
How do I install it?
Run: npx skills add https://github.com/thedotmack/claude-mem --skill smart-explore
Which tools does it use?
smart_search to find files and symbols across a directory, smart_outline for one file's skeleton, and smart_unfold for one symbol's source.
Does it replace Read and Grep?
While it is active, the skill makes its own tools the primary way to explore code, instead of Read, Grep and Glob.
What security checks has it passed?
skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.
What are the best smart-explore alternatives?
Popular alternatives to smart-explore include content-research-writer, batch-grill-me and coding-agent. See all smart-explore alternatives
