smart-explore
यह क्या करती है
पूरी file पढ़े बिना programming code के खास हिस्सों को ढूंढने और समझने में मदद करता है। यह आपके लिए code का एक 'map' बनाता है।
कब इस्तेमाल करें
- ✓जब आप बड़े code में कोई खास function या हिस्सा ढूंढना चाहते हों।
- ✓जब आपको किसी code file का structure समझना हो।
- ✓बिना सब कुछ पढ़े किसी programming project को जल्दी से देखने के लिए।
Skill का लिंक
https://github.com/thedotmack/claude-mem/blob/main/plugin/skills/smart-explore/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“'./src' directory में 'login' से जुड़े सभी functions ढूंढो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह पहले code के structure का विश्लेषण करके एक index बनाता है। फिर आप इससे किसी खास हिस्से या file का structure दिखाने के लिए कह सकते हैं, जिससे समय और processing power दोनों बचते हैं।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
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/GracefulShutdown.ts:56)
function httpShutdown (services/infrastructure/HealthMonitor.ts:92)
method WorkerService.shutdown (services/worker-service.ts:846)
-- Folded File Views --
services/infrastructure/GracefulShutdown.ts (7 symbols)
services/worker-service.ts (12 symbols)
This is your discovery tool. It finds relevant files AND shows their structure. No Glob/find pre-scan needed.
Parameters:
query(string, required) -- What to search for (function name, concept, class name)path(string) -- Root directory to search (defaults to cwd)max_results(number) -- Max matching symbols, default 20, max 50file_pattern(string, optional) -- Filter to specific files/paths
Step 2: Outline -- Get File Structure
smart_outline(file_path="services/worker-service.ts")
Returns: Complete structural skeleton -- all functions, classes, methods, properties, imports (~1-2k tokens per file)
Skip this step when Step 1's folded file views already provide enough structure. Most useful for files not covered by the search results.
Parameters:
file_path(string, required) -- Path to the file
Step 3: Unfold -- See Implementation
Review symbols from Steps 1-2. Pick the ones you need. Unfold only those:
smart_unfold(file_path="services/worker-service.ts", symbol_name="shutdown")
Returns: Full source code of the specified symbol including JSDoc, decorators, and complete implementation (~400-2,100 tokens depending on symbol size). AST node boundaries guarantee completeness regardless of symbol size — unlike Read + agent summarization, which may truncate long methods.
Parameters:
file_path(string, required) -- Path to the file (as returned by search/outline)symbol_name(string, required) -- Name of the function/class/method to expand
When to Use Standard Tools Instead
Use these only when smart_* tools are the wrong fit:
- Grep: Exact string/regex search ("find all TODO comments", "where is
ensureWorkerStarteddefined?") - Read: Small files under ~100 lines, non-code files (JSON, markdown, config)
- Glob: File path patterns ("find all test files")
- Explore agent: When you need synthesized understanding across 6+ files, architecture narratives, or answers to open-ended questions like "how does this entire system work end-to-end?" Smart-explore is a scalpel — it answers "where is this?" and "show me that." It doesn't synthesize cross-file data flows, design decisions, or edge cases across an entire feature.
For code files over ~100 lines, prefer smart_outline + smart_unfold over Read.
Workflow Examples
Discover how a feature works (cross-cutting):
1. smart_search(query="shutdown", path="./src")
-> 14 symbols across 7 files, full picture in one call
2. smart_unfold(file_path="services/infrastructure/GracefulShutdown.ts", symbol_name="performGracefulShutdown")
-> See the core implementation
Navigate a large file:
…
अक्सर पूछे जाने वाले सवाल
'smart_search', 'smart_outline' और 'smart_unfold' में क्या फर्क है?
'smart_search' पूरे project में files और code के हिस्से ढूंढता है। 'smart_outline' किसी खास file का structure दिखाता है। 'smart_unfold' आपके ढूंढे हुए किसी हिस्से का पूरा code दिखाता है।
'Read' या 'Grep' जैसे सामान्य tools कब इस्तेमाल करें?
छोटी files (100 lines से कम), non-code files (जैसे JSON या text), या जब आपको सटीक text या pattern की खोज चाहिए, तब सामान्य tools इस्तेमाल करें।
पूरी file पढ़ने की जगह यह क्यों इस्तेमाल करें?
बड़ी files को पूरा पढ़ने में बहुत संसाधन लगते हैं। ये tools index बनाते हैं और सिर्फ वही दिखाते हैं जो आपको चाहिए, इसलिए code का structure समझने में यह कहीं तेज़ और कारगर है।
जानकारी
लेखक का मूल विवरण
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.
repo: thedotmack/claude-mem
लोकप्रियता
- GitHub स्टार
- 101k
- रैंकिंग में स्थान
- #1279
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
Agent Cost Report
101kआपके एजेंट की गतिविधियों की विस्तृत लागत रिपोर्ट बनाता है। दिखाता है कि टोकन और सेवाओं पर कितना खर्च हुआ।
claude-mem-install
101kयह आपके एजेंट को अलग-अलग वातावरण में Claude-Mem सेट अप करने में मदद करता है। इसमें लोकल या रिमोट वर्कर में से चुनने और observation कॉन्फ़िगर करने की सुविधा है।
mem-search
101kयह आपके एजेंट को पुरानी memories में खोजने देता है। पिछले सेशन के पुराने समाधान या काम याद करने में यह उपयोगी है।
host-observer
101kयह आपके एजेंट को Claude-Mem observer के काम का जवाब देने में मदद करता है। यह सिर्फ 'skip_summary' या पूरा XML observation ही लौटाता है।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।