用途:构建 RepoPrompt 上下文并导出为 markdown 文件,供外部 LLM(如 ChatGPT Pro、Claude web)进行代码或方案的审查;适合希望使用外部模型做高强度审查的场景。
主要能力与用法:输入格式为 <type> <target> [focus areas]。type 为 plan 时可传入 spec-id 导出计划审查上下文,例如 /flow-next:export-context plan fn-1 focus on security;type 为 impl 时导出当前分支的实现审查上下文,例如 /flow-next:export-context impl focus on the auth changes。
流程:解析类型后用 flowctl 收集内容;计划导出使用 $FLOWCTL show <spec-id> --json 与 $FLOWCTL cat <spec-id>;实现导出使用 git branch、git log、git diff 获取分支与改动文件。随后执行 $FLOWCTL rp setup-review 初始化 RepoPrompt,通过 rp select-get/select-add 增补文件,用 rp prompt-get 获取交接内容并组合审查标准,经 rp prompt-set 写入,最后 rp prompt-export 输出到 ~/Desktop/review-export-<时间戳>.md 并打开。
导出文件包含:标注选中文件的完整文件树、代码地图(签名与结构)、完整文件内容,以及带 Carmack 级标准的审查提示。
限制:flowctl 是随附的,未全局安装,which flowctl 会失败属预期,须使用 FLOWCTL="${DROID_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/flowctl" 或 $FLOWCTL <command>。该技能仅用于手动外部审查,不适用于 Ralph 自主模式(无 receipts、无状态更新)。