跳到正文
Skillpedia
任务与项目5.5k · #14777

rpi

它能做什么

这项技能引导智能体分阶段完成一项改动,从研究问题开始,依次经过研究、设计和实施。只有当用户明确点名要求时才会使用。

适用场景

  • ✓当用户希望在编写任何代码之前先研究某项改动的时候。
  • ✓当用户想为计划中的功能进行设计讨论、撰写 PRD(产品需求文档)或 TDD(测试驱动开发)的时候。
  • ✓当用户只想做研究,而将设计或实施留到以后的时候。

技能链接

https://github.com/humanlayer/skills/blob/main/plugins/rpi/skills/rpi/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/humanlayer/skills/blob/main/plugins/rpi/skills/rpi/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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,以及仅研究三种流程。

它能更新我已有的文档吗?

可以。迭代步骤会根据你的反馈,直接更新已有的文档。

它会立即开始编码吗?

不会。这项技能只执行用户所要求的步骤,因此只有在被要求时才会进行实施。

详情

作者的原始描述

Only use when the user explicitly invokes this skill by name.

repo: humanlayer/skills

热度

GitHub 星标
5.5k
排名
#14777
许可证
MIT
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能