SuperAPI AI 工具集

rp-explorer

智能体与模型

查看项目

更新于 10-15 21:53

技能介绍

用途:RP-Explorer 通过 RepoPrompt CLI 进行省 token 的代码库探索,适合在大型仓库中快速理解认证流程、数据流、API 端点或查找相似模式。

触发方式:当用户把“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'。完整命令文档见 cli-reference.md。

省 token 建议:用 structure 代替读取完整文件(约少 10 倍 token);用 builder 做 AI 驱动的文件发现;导出上下文前只选择相关文件。

标签隔离:builder 会自动创建隔离的 compose 标签,可用 -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'。

限制与要求:需要 RepoPrompt v1.5.62+ 且已安装 rp-cli。其他平台、收费与效果信息暂未提供。