New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Token-efficient structural code search via tree-sitter, replacing full-file reads for exploration tasks.

skills.sh installs
7.8K
GitHub stars
118.9K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers discovery, outline, and symbol-level unfolding through smart_search, smart_outline, and smart_unfold in a three-step workflow
  • Supports 11 language families (JavaScript, TypeScript, Python, Go, Rust, Ruby, Java, C, C++, Delphi/Pascal, and TSX/JSX) plus Markdown heading extraction
  • Reports roughly 4-8x token savings on file understanding and 11-18x savings on codebase exploration compared with full reads or Explore agents
  • Designed for navigating large files and codebases where Grep, Glob, and Read would load more context than needed

Install

$ npx -y skills add thedotmack/claude-mem --skill smart-explore -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

Details

Repository
github.com/thedotmack/claude-mem
Categories
Memory & Context, Code Review & Quality, Agent Workflow & Planning
First seen
Apr 16, 2026

More from thedotmack/claude-mem

All 18

Similar to Smart Explore

More Memory & Context