/research:import
Import research results from external AI tools or content into your project's research folder with structured formatting.
Quick Start
/research:import TOPIC="OAuth 2.0 Setup"Then paste the content when prompted. Or provide it inline:
/research:import TOPIC="OAuth 2.0 Setup" SOURCE="https://chatgpt.com"Purpose
After using /research:ask to get answers from external AI, this command:
- Formats the results into structured markdown
- Saves to
docs/10-research/YYYYMMDD-topic-slug.md - Updates the research index automatically
- Optionally links to ADRs, Epics, or Stories
Parameters
| Argument | Required | Description |
|---|---|---|
| TOPIC | Yes | Name for the research file (e.g., "OAuth 2.0 Setup") |
| CONTENT | Yes* | Research results to import (*can be pasted after command) |
| SOURCE | No | Original source URL for attribution |
What It Imports
Works with content from:
- ChatGPT responses
- Claude web conversations
- Perplexity research results
- YouTube video transcripts
- Blog posts and articles
- Conference talk notes
- Documentation pages
- Meeting notes
Workflow
The command follows a structured workflow:
Phase 1: Validate Inputs
- Check TOPIC is provided (asks if missing)
- Check CONTENT is provided (prompts to paste if missing)
Phase 2: Analyze & Format
- Extract key findings and summary
- Identify code snippets (preserved exactly)
- Generate action items
- Create story suggestions if applicable
Phase 3: Preview (Diff-First)
- Show formatted result before saving
- Ask for confirmation
Phase 4: Save & Index
- Save to
docs/10-research/YYYYMMDD-topic-slug.md - Update
docs/10-research/README.mdindex
Phase 5: Offer Analysis (Optional)
- Ask if you want implementation analysis
- If yes, enter plan mode and explore your codebase
- Suggest appropriate artifact (ADR, Epic, Story, Practice doc)
Output Format
The imported research is structured as:
# [Topic Title]
**Import Date**: YYYY-MM-DD
**Topic**: [original topic]
**Source**: [URL or "ChatGPT/Claude/Perplexity research"]
**Content Type**: research
---
## Summary
[2-3 paragraph executive summary]
---
## Key Findings
- [Main point 1 with details]
- [Main point 2 with details]
- [Main point 3 with details]
---
## Implementation Approach
1. [Step 1]
2. [Step 2]
3. [Step 3]
---
## Code Snippets
[ALL code snippets preserved exactly as provided]
---
## Action Items
- [ ] [Action 1 - concrete next step]
- [ ] [Action 2 - concrete next step]
---
## Risks & Gotchas
- [Risk 1]
- [Risk 2]
---
## Story Suggestions
[If content suggests feature work]
---
## References
- Source: [URL]
- Import date: YYYY-MM-DDFile Location
Research is saved with ISO date prefix:
docs/10-research/YYYYMMDD-topic-slug.md
Examples:
- docs/10-research/20250101-oauth-setup.md
- docs/10-research/20241231-stripe-webhooks.md
Index Update
Every import automatically updates docs/10-research/README.md:
| Date | Topic | File | Summary |
|------|-------|------|---------|
| 2025-01-01 | OAuth 2.0 Setup | 20250101-oauth-setup.md | OAuth flows, security, best practices |
| [older entries...] |Implementation Analysis
After saving, you're offered implementation analysis:
Would you like me to analyze how this research could be implemented in your project?
1. Yes - Enter plan mode and explore (Recommended)
2. No - Just save the research
3. Link to existing Epic/Story
If you choose "Yes", the command:
- Enters plan mode
- Gathers your project context
- Shows benefits and implementation steps
- Recommends the appropriate artifact type:
| Research Type | Artifact |
|---|---|
| Architecture/tech decision | ADR |
| Large feature (5+ steps) | Epic + Stories |
| Single focused task | Story |
| Best practices/guidelines | Practice doc |
| Code quality improvement | Tech debt item |
Example Usage
Full Workflow
# Step 1: Get help from ChatGPT
/research:ask TOPIC="next-auth OAuth setup"
# Copy the generated prompt, paste into ChatGPT
# Step 2: Import the response
/research:import TOPIC="next-auth OAuth Fix" SOURCE="https://chatgpt.com"
# Paste ChatGPT's response when prompted
# Step 3: Review and confirm
# Command shows formatted preview
# You confirm to save
# Step 4: Optionally analyze for implementation
# Choose "Yes" to enter plan mode
# Get specific recommendations for your codebaseImport YouTube Transcript
/research:import TOPIC="React 18 Streaming SSR" SOURCE="https://youtube.com/watch?v=..."
# Paste the transcriptImport Blog Post
/research:import TOPIC="Vercel Edge Functions" SOURCE="https://vercel.com/blog/..."
# Paste relevant sectionsBest Practices
- Always cite the source - Include the SOURCE argument
- Preserve code exactly - Don't modify examples from AI responses
- Extract key findings - Don't just paste raw content
- Generate action items - Make the research actionable
- Link to decisions - Reference from ADRs, Epics, Stories
Related Commands
/research- Overview of research system/research:ask- Generate research prompts/research:list- View all research notes/research:view- Read specific research note/research:analyze- Analyze existing research
On This Page
/research:importQuick StartPurposeParametersWhat It ImportsWorkflowPhase 1: Validate InputsPhase 2: Analyze & FormatPhase 3: Preview (Diff-First)Phase 4: Save & IndexPhase 5: Offer Analysis (Optional)Output FormatFile LocationIndex UpdateImplementation AnalysisExample UsageFull WorkflowImport YouTube TranscriptImport Blog PostBest PracticesRelated Commands