smart-explore
仓库创建 2025年9月1日最近提交 3 天前SkillHot 收录 20 天前
▸ 精选理由
先索引再按需抓取,极大节省上下文代价与令牌消耗。
▸ 风险提示
需要解析源码并运行 tree-sitter,可能依赖本地或外部解析器
这个 Skill 做什么
通过 tree-sitter AST 做令牌优化的结构化代码搜索与索引。
用 tree-sitter AST 把代码先扫成结构化索引,帮你快速定位函数、类和调用关系,而不必把整个文件都读一遍。遇到要理解代码脉络、找实现入口或做大规模探索时用。特点是令牌优化、按需取回实现细节,既省 tokens 又能先给出清晰的代码地图。
▸ 展开 SKILL.md 英文原文
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.
8.9w
Stars
7.7k
Forks
21
仓库内 Skill
+2.5k
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/thedotmack/claude-mem/main/plugin/skills/smart-explore/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/thedotmack/claude-mem/main/plugin/skills/smart-explore/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# 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="<topi
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有