From rpi-kit
First-time setup — analyzes your codebase, generates context, and guides you through your first feature.
How this command is triggered — by the user, by Claude, or both
Slash command
/rpi-kit:onboarding [--refresh]rpi/This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# /rpi:onboarding — Guided First-Time Setup Walks the user through RPIKit setup: explains the workflow, configures the project, analyzes the codebase, and guides them into their first feature. --- ## Step 1: Welcome message Output to the user: ## Step 2: Parse arguments and check existing setup 1. Parse `$ARGUMENTS` for `--refresh` flag. 2. Check if `rpi/context.md` exists. - If `rpi/context.md` exists and `--refresh` was NOT passed: Ask with AskUserQuestion: "Project already configured. Do you want to refresh the analysis or skip to feature selection?" - If refresh: proceed to...
Walks the user through RPIKit setup: explains the workflow, configures the project, analyzes the codebase, and guides them into their first feature.
Output to the user:
Welcome to RPIKit v2 — Research, Plan, Implement.
RPIKit is a 7-phase development workflow with 13 specialized AI agents.
Each phase produces artifacts that feed the next, with validation gates
that prevent premature implementation.
I'll analyze your project, set up configuration, and guide you through
your first feature.
$ARGUMENTS for --refresh flag.rpi/context.md exists.rpi/context.md exists and --refresh was NOT passed:
Ask with AskUserQuestion: "Project already configured. Do you want to refresh the analysis or skip to feature selection?"
rpi/context.md and present summary).--refresh was passed: proceed to Step 3 (full init flow).rpi/context.md does not exist: proceed to Step 3 (full init flow).Check if .rpi.yaml exists.
--refresh was NOT passed: ask with AskUserQuestion: ".rpi.yaml already exists. Overwrite with fresh config or keep current settings?"
--refresh was passed: proceed to Step 3b.Batch 1 (use AskUserQuestion — ask all at once):
Batch 2 (use AskUserQuestion — ask all at once):
Write .rpi.yaml to the project root with the user's responses (use defaults for unanswered questions):
version: 2
# Directories
folder: rpi/features
specs_dir: rpi/specs
solutions_dir: rpi/solutions
context_file: rpi/context.md
# Execution
parallel_threshold: 8
commit_style: {user_response | conventional}
tdd: {user_response | false}
# Agents
ux_agent: {user_response | auto}
# Quick flow
quick_complexity: S
# Knowledge compounding
auto_learn: {user_response | true}
# Party mode
party_default_agents: {user_response | 5}
mkdir -p rpi/specs
mkdir -p rpi/solutions
mkdir -p rpi/features
Launch Atlas agent to analyze the codebase and generate rpi/context.md:
You are Atlas. Analyze this entire codebase and produce a comprehensive project context document.
Your task:
1. Read config files first (package.json, tsconfig, Cargo.toml, pyproject.toml, go.mod, etc.)
2. Explore the directory structure — map all key directories and their purposes
3. Find 5-10 representative source files across different parts of the codebase
4. Detect naming conventions, component patterns, import style, error handling
5. Identify the testing setup and coverage patterns
6. Note any TODOs, FIXMEs, or incomplete areas in the code
7. Identify untested modules or areas with weak coverage
8. Spot architectural risks or technical debt
Output format — write this directly to rpi/context.md:
# Project Context
## Stack
- Language: {language} {version}
- Framework: {framework} {version}
- Database: {db} (if any)
- Testing: {test_framework}
- Build: {build_tool}
- Package Manager: {package_manager}
## Architecture
- Pattern: {description}
- Key directories: {list with purposes}
- Entry points: {list}
## Conventions
- File naming: {pattern}
- Component pattern: {pattern}
- Import style: {pattern}
- Error handling: {pattern}
- API pattern: {pattern}
## Key Files
{List of important files with brief descriptions}
## Existing Tests
{Summary of test coverage and testing patterns}
## Risks and Technical Debt
{Identified risks, TODOs, FIXMEs, weak areas}
## Opportunities
{3-5 concrete feature ideas based on: TODOs found, untested modules, missing error handling, potential improvements}
Wait for Atlas to complete. Store the output as $ATLAS_OUTPUT.
rpi/context.md (freshly generated or existing).Project Analysis Complete
Stack: {language} + {framework}
Architecture: {pattern}
Files: {approximate count}
Tests: {coverage summary}
Key findings:
- {finding 1}
- {finding 2}
- {finding 3}
Based on the ## Opportunities section in rpi/context.md (or from $ATLAS_OUTPUT), present 3-5 concrete feature suggestions:
Based on the analysis, here are some things you could work on:
1. {feature idea} — {brief justification from codebase analysis}
2. {feature idea} — {brief justification}
3. {feature idea} — {brief justification}
Each suggestion should be grounded in something Atlas actually found (a TODO, an untested module, a missing pattern, a risk to address).
Use AskUserQuestion:
"What would you like to do? A) Build one of these features (pick a number) B) Describe my own feature C) I'll explore on my own"
commands/rpi/new.md and follow its process from Step 4 onward (Luna's interview), using the suggested feature as context.Feature created: rpi/features/{slug}/REQUEST.md
Next: /rpi {slug}
commands/rpi/new.md and follow its process from Step 4 onward (Luna's interview).Feature created: rpi/features/{slug}/REQUEST.md
Next: /rpi {slug}
Proceed to Step 8.
Output to the user:
Quick Reference:
/rpi:new my-feature Start a new feature
/rpi my-feature Auto-progress to next phase
/rpi:party "topic" Multi-agent debate
/rpi:learn Capture a solution
/rpi:status See all features
Setup complete. Happy building!
npx claudepluginhub dmend3z/rpi-kit --plugin rpi-kit/setupInteractively onboards project: gathers business goals via questions, scans codebase for structure and tech, creates .claude/project-goals.md and project-map.md.
/initCompiles full project context into a .first-plan directory: runs discovery on stacks, conventions, reuse, domain, risks; performs spec-code reconciliation and Git intelligence. Supports --force to rebuild.
/setupRuns interactive setup wizard: installs plugin files from GitHub, creates .env config, analyzes tech stack, generates PROJECT.md, configures hooks.
/onboardingGuides onboarding optimization through interactive parameter collection, generating a tailored analysis plan based on product type, activation metrics, and scope.
/onboardingDesigns or revises onboarding flows, tutorials, and first-session learning experiences, producing structured outputs with assumptions, risks, and tasks.
/onboardingSet up PM Copilot — a guided wizard that builds your persistent memory profile so every future session is grounded in your product context