SuperAPI AI 工具集

flow-next-opencode-rp-explorer

编程与开发

查看项目

更新于 10-15 21:53

技能介绍

用途:该技能借助 RepoPrompt CLI(rp-cli)以低 token 方式探索代码库,适用于用户说「use rp to explore/find/understand…」或「use repoprompt to…」等触发短语时。

主要能力:使用 structure 与 tree 获取项目结构,用 search 与 builder 查找相关文件及相似模式,用 select 与 read 深入查看指定目录或文件,用 context 导出代码上下文,并支持隔离的 compose 标签页操作。

使用方式:先获取概览,如 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'。builder 会自动创建隔离 compose 标签页,返回 Tab: <UUID> • <Name>,可用 -t 指定,如 rp-cli -w W -t "<Name>" -e 'select add extra.ts && context',也可用 && 链式命令。

适用场景:需要快速理解认证、数据流、API 端点等实现,或在较大代码库中定位相似模式并导出精简上下文。

限制:需要安装 RepoPrompt v1.5.62 及以上版本并已安装 rp-cli;完整命令文档见 cli-reference.md。其他未提供信息暂未说明。