smart-explore
Smart Explore: AST-Based Code Navigation
Use these tools when available (requires claude-mem plugin). Fall back to Read/Grep/Glob if unavailable.
When to Use Which
| Task | Tool | Tokens |
|---|---|---|
| File structure at a glance | smart_outline |
~1,500 |
| Cross-file symbol discovery | smart_search |
~3,500 |
| Read a specific function/type | smart_unfold |
~400-2100 |
| Simple string search | Grep | varies |
| Full file needed | Read | ~8,000+ |
Progressive Disclosure Workflow
- Outline first:
smart_outlineshows every function/class/interface with bodies collapsed - Search if needed:
smart_searchfinds symbols across files by concept - Unfold targeted:
smart_unfoldextracts exact function source by AST node — never truncates - Read only if needed: Fall back to Read for files where AST parsing isn't useful
Key Advantages
- AST-based extraction guarantees complete function bodies (no truncation)
- Structural views show all symbols without reading full file content
- Predictable cost: 1 tool call per operation, consistent token ranges
- Composable: outline → search → unfold chain naturally
More from alexei-led/cc-thingz
improving-tests
Improve test design and coverage, including TDD/red-green-refactor guidance. Use when user says "improve tests", "refactor tests", "test coverage", "combine tests", "table-driven", "parametrize", "test.each", "test-first", "TDD", "red-green-refactor", or wants to remove test waste.
4debating-ideas
Dialectic thinking — spawn thesis and antithesis agents to stress-test ideas, then synthesize and verify against code. Use when user says "debate", "argue both sides", "devil's advocate", "stress test this idea", "pros and cons of approach", or wants rigorous evaluation of a design decision.
3linting-instructions
Lint plugin agent/skill prompts against rules derived from Anthropic model cards (Opus 4.6, Sonnet 4.6). Use when authoring or reviewing skills and agents — "lint instructions", "audit prompts", "model card rules".
3learning-patterns
Extract learnings and generate project-specific customizations (CLAUDE.md, commands, skills, hooks). Use when user says "learn", "extract learnings", "what did we learn", "save learnings", "adapt config", or wants to improve Claude Code based on conversation patterns.
3documenting-code
Update project documentation based on recent changes. Use when user says "update docs", "document", "add documentation", "update readme", "write docs", or wants to improve documentation.
3analyzing-usage
>-
3