This replaces your usual Read/Grep/Glob workflow with AST-based code navigation. Instead of loading entire files, you search for symbols across directories, outline file structures, then unfold only the functions you need. A typical workflow saves 4-8x tokens compared to reading full files. It's built on tree-sitter parsers and handles JavaScript, TypeScript, Python, Go, Rust, and several other languages out of the box. The core insight is simple: get a structural map first, then fetch implementation details on demand. Best for exploring unfamiliar codebases or navigating large files where you only need specific functions. If you need cross-file synthesis or architectural narrative, stick with the explore agent.

skills.sh installs
7.6K
GitHub stars
115.5K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/thedotmack/claude-mem
First seen
Apr 16, 2026

More from thedotmack/claude-mem

All 18

Recommended

1juliusbrussee avatarcavemanjuliusbrussee/cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels618.3Kskills.sh installs
2mattpocock avatargrill-memattpocock/skillsA relentless interview to sharpen a plan or design.1.5Mskills.sh installs
3shadcn avatarimproveshadcn/improveSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s40Kskills.sh installs
4obra avatarsystematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes326.7Kskills.sh installs
5forrestchang avatarkarpathy-guidelinesforrestchang/andrej-karpathy-skillsBehavioral guidelines to reduce common LLM coding mistakes through explicit assumptions, simplicity, and verifiable success criteria.17.9Kskills.sh installs
6vercel-labs avatarfind-skillsvercel-labs/skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int4.3Mskills.sh installs