SuperAPI AI 工具集

flow-next-rp-explorer

编程与开发

查看项目

更新于 10-15 21:53

技能介绍

用途:RP-Explorer 通过 RepoPrompt CLI 实现低 token 消耗的代码库探索,适合在需要查找、理解代码结构、模式与数据流时使用。触发方式为用户将“use rp”或“use repoprompt”与动作组合,例如“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”。

主要能力与用法:可先获取整体概览,使用 rp-cli -e 'tree' 或 rp-cli -e 'structure .';再定位相关文件,使用 rp-cli -e 'search "auth" --context-lines 2' 或 rp-cli -e 'builder "understand authentication"';随后深入查看,使用 rp-cli -e 'select set src/auth/'、rp-cli -e 'structure --scope selected'、rp-cli -e 'read src/auth/login.ts';最后导出上下文,使用 rp-cli -e 'context --all > codebase-map.md'。

Token 效率:建议用 structure 替代整文件读取(可减少约十倍 token),用 builder 进行 AI 驱动的文件发现,导出上下文前只选择相关文件。

标签隔离:builder 会自动创建隔离的 compose tab,可用 -t 指定目标,例如 rp-cli -w W -t "<Name>" -e 'select add extra.ts && context',或链式执行 rp-cli -w W -e 'builder "find auth" && select add extra.ts && context'。完整命令文档见 cli-reference.md。

限制:需 RepoPrompt v1.5.62+ 且已安装 rp-cli。其余信息暂未提供。