Generated banner for Rpi
Generated logo for Rpi

Rpi

HumanLayerOfficialPublished by HumanLayer

  • Skill
  • Workflow
  • Software development
  • MIT
  • No issues found

From the author

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

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

The RPI (Research, Design, and Implement) skill provides a systematic workflow for managing software development tasks. It guides users through a series of defined phases—from initial research and design discussions to PRD creation, technical design, and final implementation. By enforcing a consistent directory structure and documentation standard, it ensures that project context, design decisions, and implementation plans are clearly tracked and easily accessible throughout the development lifecycle.

What it does

  • Facilitates structured research to define project requirements and technical constraints.
  • Manages design discussions by presenting options, tradeoffs, and recommendations to the user.
  • Generates standardized documentation for PRDs, TDDs, and implementation outlines.
  • Maintains a task-specific directory for all workflow artifacts and supporting diagrams.
  • Provides a clear path for iterative updates to existing design and requirement documents.
  • Coordinates the transition between development phases with clear handoff instructions.

When to use it

  • When starting a new software feature or complex technical change.
  • When you need to document design decisions and architectural choices clearly.
  • When you want to follow a repeatable, step-by-step process for software development.
  • When you need to track the evolution of a task from research to implementation.

Advantages

  • Ensures consistent documentation and project structure across different tasks.
  • Promotes informed decision-making by presenting clear tradeoffs and recommendations.
  • Keeps design and implementation plans synchronized with the codebase.
  • Reduces ambiguity by requiring explicit user confirmation for design choices.

Usage examples

“rpi”
The agent initiates the RPI workflow, asks for the task description, and prompts the user to choose between research, design, or implementation phases.
“rpi create-design-discussion”
The agent begins the design discussion phase, analyzing existing research and codebase context to draft a design document with proposed architectural choices.

Install

  1. Download the skill as a ZIP:

    https://mp-staging.autogineer.com/agent-skills/humanlayer/rpi/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip rpi.zip -d .agents/skills

Documentation by HumanLayer

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:

RequestStep
Research questionscreate-research-questions or iterate-research-questions
Researchcreate-research or iterate-research
Design discussioncreate-design-discussion or iterate-design-discussion
Product requirements / PRDcreate-prd or iterate-prd
Technical design / TDDcreate-tdd or iterate-tdd
Implementation outlinecreate-structure-outline or iterate-structure-outline
Implementimplement-outline
Implementation feedback or fixesiterate-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 bundled agent instructions for codebase-locator, codebase-analyzer, codebase-pattern-finder, web-search-researcher, and outline-implementer-agent as directed by each phase.

<important if="you do not have an Agent() or Task() or other tool for running subagents"> read the subagent instructions from $SKILLBASE/references/subagents/SUBAGENT_NAME.md </important>

<important if="you have a tool for running subagents or delegated sessions, but the named subagents are not available"> read the subagent instructions from $SKILLBASE/references/subagents/SUBAGENT_NAME.md and pass them into the subagent with your main prompt, with <instructions> REFERENCE_CONTENTS </instructions> <message> YOUR_MESSAGE ON WHAT TO LOOK FOR OR BUILD </message> </important>

Files

references/create-research/process.md

Research the Current System

Answer the research questions with facts from live code, tests, and available documentation. Explain what exists, how it works, and how its parts interact. Keep future design choices for the design phase.

Follow these steps in order.

1. Read the Research Scope

Use either a research-questions document or a direct question, such as /rpi create research for how the electric collections connect to tanstack. A direct question starts research immediately and produces one document answering that question. Match the depth to the question.

When using a research-questions document, read it in full in the main context before delegating and use it as the whole task context. For a direct request, use the user's question and named sources. Read the current-system source files and documentation those inputs point to. Load the original request and desired-state design documents in later design and implementation sessions. Ask for a research question when neither research input is available.

Carry the chosen flow from the question document or invocation into the handoff when one exists. A standalone research answer finishes with the saved document and an invitation for follow-up questions.

2. Break the Questions into Research Areas

Group related questions into focused areas. Usually use two to six subagents, adapting to the scope:

Identify the components, directories, patterns, and dependencies each investigation covers. Track the investigations so every question gets an answer.

3. Investigate with Subagents

  • codebase-locator finds relevant code, configuration, and tests.

  • codebase-analyzer traces behavior, data flow, and component interactions.

  • codebase-pattern-finder finds existing examples and conventions.

  • web-search-researcher checks external sources and returns links with its findings.

Use an Explore agent when useful. Start with locating code where needed, then analyze the relevant implementations. Run independent investigations in parallel. Give each agent a bounded, read-only question and ask for concrete paths, line references, testing patterns, and supporting evidence.

Use available web or library-documentation tools for dependency questions. When web access is unavailable, note that limit and continue with code and local documentation.

4. Wait for Results and Synthesize the Findings

Wait for all investigations to finish before synthesizing. Check the evidence, resolve conflicting findings against live code, and connect results across components. Answer each research question with concrete evidence and verify the cited paths.

5. Gather Metadata and Read the Document Template

Gather the current date and an identifier and commit SHA for each repository researched. Use repos: [] when none apply. Select the next available NN- number in the task directory and a short description for NN-research-<description>.md.

Now that the research is complete, read $SKILLBASE/references/create-research/references/research_template.md.

Read the vendored /show-me instructions at $SKILLBASE/references/show-me.md for the visual explanations in the document. Use its current-state views to show the system as it exists today.

6. Write the Research Document

Use the template to write a self-contained technical explanation organized around how the system works. Give findings sections headers that assert what is true. A reader should understand the main findings by skimming the headers alone.

For example, use "Workers restore pending jobs before accepting new work" rather than "Worker startup" or "How do workers restore jobs?" Lead with the finding, then support it with explanation, citations, and visuals. Organize sections by concept and describe what each part does before citing where it lives.

Use Mermaid diagrams, tables, call trees, component trees, contracts, signatures, and pseudocode where they make the structure clearer. Place each view beside the prose it supports. Keep the technical depth needed to answer every research question.

For each component, describe its current tests: file locations, unit/integration/end-to-end coverage, fixtures, mocks, and utilities. State when you found no tests. Include external source links and a grouped code-reference list with enough coverage to navigate the researched area.

Distinguish tests read from checks run. Support claims that a check passed with its command and observed result.

Save the document at the selected path with the gathered metadata. Include flow in the frontmatter when a workflow was chosen.

7. Investigate Remaining Open Questions

If questions remain, do one targeted follow-up investigation and weave its findings into the relevant sections. Keep any remaining uncertainty explicit in the document.

8. Read the Final-Answer Template and Respond

Read $SKILLBASE/references/workflow.md to select the next step, then read $SKILLBASE/references/create-research/references/research_final_answer.md and respond using that template. Fill in the research path, next step, task directory, and chosen flow. Mention remaining open questions when present.

Offer to open the document for review in VS Code, Cursor, or the user's preferred editor or browser.

For standalone research, use the saved-document and review portions of the template as the complete response.

9. Handle Follow-Up Research

For follow-up requests, investigate as needed, verify the new findings, and weave them into the existing document in place.

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Security

No issues found by our static scan· No issues found

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
HumanLayer
Publisher
HumanLayer (Official)
Source
humanlayer/skills · plugins/rpi/skills/rpi · commit 4d69d20
Licence
MIT License (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by HumanLayer.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download rpi.zip