Ralph:Discover
Autonom research och validering för att skapa en komplett PRD från PROJECT-BRIEF.
# /ralph:discover - BMAD Analyst Mode
Autonom research och validering för att skapa en komplett PRD från PROJECT-BRIEF.
## Usage
/ralph:discover # Använder docs/PROJECT-BRIEF.md /ralph:discover --input brief.md # Custom input file /ralph:discover --greenfield # Skip brief, starta från scratch
## LANGUAGE SETTING
**FIRST: Detect language automatically**
```bash
LANG=$(grep -o '"language"[[:space:]]*:[[:space:]]*"[^"]*"' .ralph/config.json 2>/dev/null | cut -d'"' -f4)
echo "Language: ${LANG:-en}"
Use the detected language for ALL output.
STEP 1: Input Source
If PROJECT-BRIEF exists:
cat docs/PROJECT-BRIEF.md 2>/dev/null
Visa brief och bekräfta:
Found PROJECT-BRIEF.md:
- Idea: {one-liner}
- Hook: {differentiator}
1) Use this brief
2) Start fresh (greenfield)
Reply with number:
If no brief (or greenfield selected):
Kör förenklad discovery:
What are we building?
Describe the product in a few sentences:
Then continue with template selection (see STEP 2b below).
STEP 2: Choose Mode
How do you want to run discovery?
1) Autonomous (YOLO) - I run all analyst techniques, you review PRD at the end
2) Interactive - We go through each phase together
Reply with number:
STEP 2b: Template Selection (if greenfield)
ls -1 .ralph/templates/stacks/ 2>/dev/null || echo "none"
Which template?
1) react-supabase - React + Vite + Tailwind + Supabase (recommended for apps with auth/database)
2) custom - Define your own stack
Reply with number:
If custom, ask for frontend, backend, deploy target.
ANALYST TECHNIQUES (Kör alla!)
Technique 1: MARKET RESEARCH
🔍 MARKET RESEARCH
WebSearch (Claude Code): Använd Claude Chrome Extension för att browsa webben under discovery.
Om webbläsning inte är tillgänglig, använd dev-browser för att navigera och samla in källor manuellt.
Sök aktivt efter:
- "{category} apps 2024"
- "{product type} market size"
- "best {category} tools comparison"
- "{competitor name} reviews"
Analysera:
- Topp 3-5 konkurrenter
- Deras styrkor och svagheter
- Pricing models
- User reviews (vad klagar folk på?)
- Market gaps
Output: Konkurrentanalys med actionable insights
Technique 2: USER PERSONAS
👤 USER PERSONAS
Baserat på PROJECT-BRIEF's target audience, skapa detaljerade personas:
PERSONA 1: {Namn}
├── Demografi: {ålder, jobb, situation}
├── Goals: {vad vill de uppnå?}
├── Pains: {vad frustrerar dem?}
├── Tech comfort: {low/medium/high}
├── Current solution: {vad använder de nu?}
└── Trigger: {vad får dem att söka ny lösning?}
Minimum: 2 personas (primary + secondary)
Technique 3: USER JOURNEYS
🗺️ USER JOURNEYS
Mappa alla core flows:
JOURNEY: {Namn på flow, t.ex. "First todo"}
1. TRIGGER: {Vad startar flödet?}
2. ENTRY: {Hur kommer de in?}
3. STEPS:
└── Step 1: {action} → {system response}
└── Step 2: {action} → {system response}
└── ...
4. SUCCESS: {Vad är "done"?}
5. EDGE CASES: {Vad kan gå fel?}
Minimum flows:
- Onboarding/signup
- Core action (create todo, send message, etc.)
- Return visit
- Error recovery
Technique 4: FEATURE PRIORITIZATION
📋 FEATURE PRIORITIZATION
Ta alla feature ideas från PROJECT-BRIEF och prioritera:
MoSCoW Method:
| Priority | Features | Rationale |
|---|---|---|
| Must | {kritiskt för MVP} | Utan detta funkar inte appen |
| Should | {viktigt men inte kritiskt} | Förbättrar upplevelsen |
| Could | {nice-to-have} | Om tid finns |
| Won't | {out of scope för v1} | Framtida version |
Effort/Impact Matrix:
HIGH IMPACT
│
Quick │ Big Bets
Wins │
─────────────┼───────────── HIGH EFFORT
Fill │ Money
Ins │ Pit
│
LOW IMPACT
Technique 5: TECHNICAL FEASIBILITY
🏗️ TECHNICAL FEASIBILITY
Validera tech stack:
| Component | Choice | Rationale | Risk |
|---|---|---|---|
| Frontend | {React/Vue/etc} | {varför} | {potential issues} |
| Backend | {Supabase/etc} | {varför} | {potential issues} |
| Auth | {method} | {varför} | {potential issues} |
| Database | {type} | {varför} | {potential issues} |
| Hosting | {provider} | {varför} | {potential issues} |
WebSearch: Sök efter:
- "{tech} + {tech} integration"
- "{tech} limitations"
- "{tech} best practices 2024"
Identify:
- Technical risks
- Unknown unknowns
- Dependencies
- Learning curve
Technique 6: SECURITY & COMPLIANCE
🔒 SECURITY & COMPLIANCE
Checklist:
| Area | Requirement | Implementation |
|---|---|---|
| Auth | {how users login} | {JWT/session/etc} |
| Data | {what data stored} | {encryption/etc} |
| GDPR | {EU users?} | {consent/deletion/export} |
| PCI | {payments?} | {Stripe/etc handles it} |
WebSearch: Om relevant:
- "GDPR requirements for {app type}"
- "{industry} compliance requirements"
Technique 7: BUSINESS MODEL
💼 BUSINESS MODEL
| Aspect | Description |
|---|---|
| Revenue | {hur tjänar vi pengar?} |
| Pricing | {free/freemium/paid/subscription} |
| Costs | {hosting, APIs, etc} |
| Unit economics | {cost per user, etc} |
If learning project: Note that business model is "N/A - learning project"
Technique 8: DEVIL'S ADVOCATE (Final Challenge)
😈 DEVIL'S ADVOCATE
Utmana ALLT innan PRD a ```
Maintain Ralph:Discover?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[Ralph:Discover on getagentictools](https://getagentictools.com/loops/bleedingdev-ralph-discover-bmad-analyst-mode?ref=badge)