首页/ AI 技能 / @skilllib/skill-2117939930272413682
Skill站外收录 @skilllib/skill-2117939930272413682

rp-explorer

通过命令行高效探索代码库,支持快速浏览项目结构、按关键词检索文件、智能识别相关代码模块、聚焦特定目录深入分析,并导出精简的上下文摘要,显著降低大模型处理时的 token 消耗。

0.0 (0) 25 次安装 原作者 编程导航
收录于 2026-01-22

Skills.MD

# RP-Explorer Token-efficient codebase exploration using RepoPrompt CLI. ## Trigger Phrases Activates when user combines "use rp" or "use repoprompt" with an action: - "use rp to explore how auth works" - "use repoprompt to find similar patterns" - "use rp to understand the data flow" - "use repoprompt to search for API endpoints" ## CLI Reference Read [cli-reference.md](cli-reference.md) for complete command documentation. ## Quick Start ### Step 1: Get Overview ```bash rp-cli -e 'tree' rp-cli -e 'structure .' ``` ### Step 2: Find Relevant Files ```bash rp-cli -e 'search "auth" --context-lines 2' rp-cli -e 'builder "understand authentication"' ``` ### Step 3: Deep Dive ```bash rp-cli -e 'select set src/auth/' rp-cli -e 'structure --scope selected' rp-cli -e 'read src/auth/login.ts' ``` ### Step 4: Export Context ```bash rp-cli -e 'context --all > codebase-map.md' ``` ## Token Efficiency - Use `structure` instead of reading full files (10x fewer tokens) - Use `builder` for AI-powered file discovery - Select only relevant files before exporting context ## Tab Isolation `builder` creates an isolated compose tab automatically. Use `-t` to target it: ```bash # Builder returns: Tab: <UUID> • <Name> rp-cli -w W -t "<Name>" -e 'select add extra.ts && context' # Or chain commands: rp-cli -w W -e 'builder "find auth" && select add extra.ts && context' ``` ## Requirements RepoPrompt v1.5.62+ with rp-cli installed.

评论 0

还没有评论,来抢沙发。