skills/rpi-research/SKILL.md
--- Skill name: rpi-research Skill description: Research codebase for complex tasks using RPI methodology. Use when starting a new feature, investigating unfamiliar code, or needing comprehensive understanding before planning. Creates documented research artifacts. --- # RPI Research Research phase of the RPI (Research, Plan, Implement) methodology. Creates comprehensive, documented understanding of relevant code before planning or implementation. ## One Goal Per Session Each RPI phase (rese
npx skillsauth add abhiroopb/synthetic-mind skills/rpi-researchInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Research phase of the RPI (Research, Plan, Implement) methodology. Creates comprehensive, documented understanding of relevant code before planning or implementation.
Each RPI phase (research, plan, implement, iterate) should run in its own fresh session/context. This keeps the agent focused and prevents context window degradation. Artifacts (research docs, plan files) are the bridge between phases.
When this skill is invoked without a specific research question, respond with:
I'm ready to research the codebase. Please provide your research question or area of interest, and I'll analyze it thoroughly by exploring relevant components and connections.
Then wait for the user's research query.
Read any directly mentioned files first:
Analyze and decompose the research question:
Spawn parallel sub-agent tasks for comprehensive research:
For finding WHERE code lives:
"Find all files related to [component]. Return categorized list with paths:
- Implementation files
- Test files
- Configuration
- Type definitions
Document what exists without suggesting improvements."
For understanding HOW code works:
"Analyze [specific file/component]. Trace data flow, identify key functions.
Return analysis with file:line references.
Document implementation without critique."
For finding similar patterns:
"Find examples of [pattern] in the codebase.
Return code snippets with file:line references.
Show patterns without evaluating quality."
IMPORTANT: All sub-agents are documentarians, not critics. They describe what exists without suggesting improvements or identifying issues.
The key is to use sub-agents intelligently:
Wait for all sub-agents to complete and synthesize findings:
Gather metadata for the research document:
thoughts/shared/research/YYYY-MM-DD-TICKET-description.md
YYYY-MM-DD-TICKET-description.md where:
2025-01-08-ENG-1478-parent-child-tracking.md2025-01-08-authentication-flow.mdGenerate research document:
---
date: [ISO timestamp with timezone]
researcher: [name from git config]
git_commit: [current commit hash]
branch: [current branch]
repository: [repo name]
topic: "[Research Question]"
tags: [research, codebase, component-names]
status: complete
last_updated: [YYYY-MM-DD]
last_updated_by: [researcher name]
---
# Research: [Topic]
**Date**: [timestamp]
**Researcher**: [name]
**Git Commit**: [hash]
**Branch**: [branch]
**Repository**: [repo name]
## Research Question
[Original query]
## Summary
[High-level documentation of what was found, answering the user's question by describing what exists]
## Detailed Findings
### [Component/Area 1]
- Description of what exists ([file.ext:line](link))
- How it connects to other components
- Current implementation details (without evaluation)
### [Component/Area 2]
...
## Code References
- `path/to/file.py:123` - Description of what's there
- `another/file.ts:45-67` - Description of the code block
## Architecture Documentation
[Current patterns, conventions, and design implementations found in the codebase]
## Related Research
[Links to other research documents in thoughts/shared/research/]
## Open Questions
[Areas needing further investigation]
Add GitHub permalinks (if applicable):
git branch --show-current and git statusgh repo view --json owner,namehttps://github.com/{owner}/{repo}/blob/{commit}/{file}#L{line}Present findings:
Handle follow-up questions:
last_updated and last_updated_by to reflect the updatelast_updated_note: "Added follow-up research for [brief description]" to frontmatter## Follow-up Research [timestamp]If you make a significant discovery, identify a root cause, or uncover non-obvious behavior during your research, proactively save it to memory. Use the amp-mem save command or Gemini's save_memory tool (scope: project) with the type discovery and high confidence. This ensures that the implementation phase can leverage these findings without re-exploring.
rpi-plan — Planning phase (run after research)rpi-implement — Execute an approved planrpi-iterate — Update an existing plan based on feedbacktesting
Track TV shows and movies with Trakt.tv. Search, get watchlist, history, up-next, recommendations, trending, calendar, ratings, stats, add/remove from watchlist, mark watched, rate, and check in. Use when asked about what to watch, TV shows, movies, watch history, or Trakt.
development
Send and receive SMS messages via Twilio API. Used for text message notifications, forwarding important alerts, and two-way SMS communication.
documentation
Organizes files in the local Downloads folder into proper folders. Use when asked to organize, sort, or file downloaded documents.
tools
Book and manage appointments on Sutter Health MyHealth Online portal. Uses browser automation via Playwright MCP to interact with the patient portal.