rpi
它能做什么
这项技能引导智能体分阶段完成一项改动,从研究问题开始,依次经过研究、设计和实施。只有当用户明确点名要求时才会使用。
适用场景
- ✓当用户希望在编写任何代码之前先研究某项改动的时候。
- ✓当用户想为计划中的功能进行设计讨论、撰写 PRD(产品需求文档)或 TDD(测试驱动开发)的时候。
- ✓当用户只想做研究,而将设计或实施留到以后的时候。
技能链接
https://github.com/humanlayer/skills/blob/main/plugins/rpi/skills/rpi/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请使用 rpi 技能,在做任何设计之前先研究我们应该如何添加速率限制。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会先询问用户想要哪种流程,然后加载对应的阶段说明。每个阶段都会创建或更新一份文档,智能体会提示下一步应运行的命令。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Research, Design, and Implement
Help the user research a change, work through its design, and implement it. Follow their requested step, using the phase instructions below.
$SKILLBASE means the directory containing this SKILL.md.
<rpi-invocation> in templates means the host's skill command: $rpi in Codex, /rpi in Claude Code, or its plugin-qualified name when the host exposes one. Render next commands with that native invocation.
Choose the Step
Follow the user's requested step. Read $SKILLBASE/references/workflow.md when choosing or explaining a flow or what comes next.
For a task description with no requested step, start with research questions. Ask which flow the user wants: research followed by design discussion, PRD, or TDD, or research only. Wait for their choice before starting the phase, then carry it into suggested next commands.
When asking the user to choose a flow, read $SKILLBASE/references/workflow-choice.md and show its box-and-line chart with the question.
Create writes a new document; iterate updates an existing document in place using the user's feedback or resumes the workflow for a partially finished document.
Load the matching process from $SKILLBASE/references/<step>/process.md:
| Request | Step |
|---|---|
| Research questions | create-research-questions or iterate-research-questions |
| Research | create-research or iterate-research |
| Design discussion | create-design-discussion or iterate-design-discussion |
| Product requirements / PRD | create-prd or iterate-prd |
| Technical design / TDD | create-tdd or iterate-tdd |
| Implementation outline | create-structure-outline or iterate-structure-outline |
| Implement | implement-outline |
| Implementation feedback or fixes | iterate-implementation |
Update an existing document by default; create one when needed or requested. When several match, use the newest and name the chosen file.
Use the Task Directory
Use the directory supplied by the user.
Otherwise, look for existing task directories in .agents/artifacts/ whose names and workflow filenames match the request or current task branch. Reuse an obvious match without asking. If a directory looks close but could belong to a different task, or several directories look plausible, ask the user which to use before writing. Read only documents allowed by the selected phase when checking a match.
When no existing directory fits, use .agents/artifacts/<branch-name> with / replaced by - if the branch identifies the task. On main, or when no branch identifies the task, choose a short kebab-case slug from the request and use .agents/artifacts/<task-slug> without asking for approval. State the selected path and reuse or create the directory as needed.
Save at the selected path. If the sandbox blocks writes there, ask for scoped write access or a writable task directory and wait for the user's choice.
The RPI framework authors recommend not committing the artifacts.
Number new workflow documents using the next available NN- prefix in the task directory. Keep the existing path when updating a document. Save supporting mockups and diagrams beside the documents and link them as ordinary local files.
Workflow document frontmatter includes repos, a list of zero or more repositories with identifier and sha for each entry. Use repos: [] when none apply. Quote string values as needed for valid YAML.
Review the Document
After writing or updating a workflow document, read $SKILLBASE/references/prose.md and $SKILLBASE/references/show-me.md, then review the document against both. Make it shorter, more visual, and easier for a person to digest: cut words and sections that do not earn their place, replace dense prose with the smallest view that makes the point, and keep each visual beside the short text it supports.
Suggest the Next Step
Use the phase's handoff instructions and $SKILLBASE/references/workflow.md to choose what comes next. Users run each phase in a separate context window by default. When suggesting a next command, include the task directory and chosen flow. Say they can run it here, after compaction, or in a new session.
Use artifact filenames to locate the current phase when asked what's next, then read its document for unfinished work and settled choices. Recognize prd or product-requirements, tdd or tech-design, and structure-outline or outline.
Use Subagents
Use the bund
常见问题
它提供哪些流程?
这项技能提供研究后接设计讨论、PRD 或 TDD,以及仅研究三种流程。
它能更新我已有的文档吗?
可以。迭代步骤会根据你的反馈,直接更新已有的文档。
它会立即开始编码吗?
不会。这项技能只执行用户所要求的步骤,因此只有在被要求时才会进行实施。
详情
热度
- GitHub 星标
- 5.5k
- 排名
- #14777
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …
同一仓库的更多技能
build-iterated-agentic-loop
5.5k帮你的智能体把一项重复的编码任务,转换为仓库技能加上定时运行的 GitHub Actions 工作流,由编码智能体执行,并使用记忆文件,每个循环只保留一个打开的拉取请求。
design-control-loop
5.5k帮你的智能体通过访谈了解你的需求,设计一个控制循环,借助小而可审阅的改动让代码库逐步趋近目标,然后将其构建为定时工作流。
improve-claude-md
5.5k帮你的智能体用条件代码块重写 CLAUDE.md 文件,使重要的指示在适用时被遵循,其余内容不会造成干扰。
visual-pr
5.5k帮你的智能体撰写或更新拉取请求说明,使用清晰的模板和简短的视觉大纲,解释改动为什么存在以及如何实现。