Research and recommend technical approaches for implementation challenges
Research and recommend technical approaches for implementation challenges or new features. Use this when diagnosing problems like performance issues or bugs, or when architecting new features that need proven solutions.
/plugin marketplace add Andre-Mygentic/andre-engineering-system/plugin install mygentic-eng@andres-local-marketplaceproblem description or featureResearch and recommend technical approaches for implementation challenges or new features.
TAR handles two types of research:
Problem Diagnosis: Research why something is broken/slow/buggy and propose fixes
Feature Architecture: Research the best way to architect a new feature
Primary Goal: Thorough research and diagnosis. Understanding the problem deeply and recommending the right solution.
Secondary Benefit: Research output naturally contains information useful for creating GitHub issues later (if desired).
Project/Feature Description:
$ARGUMENTS
USE PERPLEXITY ITERATIVELY - Don't Stop at the First Answer
Perplexity is your research partner. Have a conversation with it, dig deeper, ask follow-ups. Don't treat it like a search engine where you get one answer and move on.
1. Start with perplexity_ask (5-20 sec)
2. Dig Deeper with Follow-ups
3. Use perplexity_reason (30 sec - 2 min) for Implementation Details
4. Use perplexity_research (3-10 min) ONLY for Deep Dives
Every Perplexity query should include:
Bad Perplexity Query:
"How do I fix Lambda timeouts?"
Good Perplexity Query:
"I have AWS Lambda functions in me-central-1 running Python 3.11 that call Aurora PostgreSQL via Data API. Under load (100+ concurrent requests), functions timeout after 30 seconds. Current config: 1024MB memory, no VPC, cold start ~2s, warm ~500ms. Database queries are simple SELECTs taking <50ms. What are the most likely causes and solutions? Looking for production-proven approaches."
Round 1: "What causes Lambda timeouts with Aurora Data API?" → Response mentions connection pooling, query optimization, memory allocation
Round 2: "Does Aurora Data API support connection pooling? What are the gotchas?" → Response explains Data API is HTTP-based, no traditional pooling needed
Round 3: "What are the common Aurora Data API errors under high load and how to handle them?" → Response lists throttling, transaction timeouts, network issues
Round 4: "How do production systems handle Aurora Data API throttling? Show real examples." → Response provides retry strategies, backoff algorithms, monitoring approaches
Result: Deep understanding of the problem and battle-tested solutions.
For Problem Diagnosis:
For Feature Architecture:
Initial Research (perplexity_ask):
Follow-up Questions (keep digging):
Deep Dive (perplexity_reason or perplexity_research if needed):
If diagnosing a problem in existing code:
git log --oneline -20 path/to/filegh issue list --search "keyword"Find 3-4 viable approaches:
For each approach, analyze:
Use the output format below. Keep focus on research quality, not on formatting for GitHub issues.
# Technical Research: [Problem/Feature Name]
## Research Type
[Problem Diagnosis | Feature Architecture]
## Executive Summary
[2-3 paragraphs covering:
- What's the problem or what are we building?
- What did the research reveal?
- What's recommended and why?
- Key trade-offs to be aware of]
## Problem Analysis (For Diagnosis) OR Requirements (For Architecture)
**For Problem Diagnosis:**
- **Symptom**: [Exact error, behavior, or performance issue]
- **When It Occurs**: [Conditions, frequency, patterns]
- **Current State**: [What's already in place, recent changes]
- **Root Cause**: [What the research revealed]
- **Impact**: [Who/what is affected]
**For Feature Architecture:**
- **Core Need**: [What problem we're solving for users]
- **Constraints**: [Performance, scale, budget, timeline, technical]
- **Platforms**: [Web, mobile, APIs, infrastructure]
- **Scope**: [What's included, what's explicitly out of scope]
- **Success Criteria**: [What "done" looks like]
## Research Findings
### Key Insights from Research
1. [Major insight from Perplexity research]
2. [Important gotcha or edge case discovered]
3. [Production pattern or anti-pattern found]
### Technologies/Patterns Investigated
- [Technology/Pattern 1]: [Brief description]
- [Technology/Pattern 2]: [Brief description]
- [Technology/Pattern 3]: [Brief description]
---
## Approach 1: [Name] ⭐ RECOMMENDED
**Overview**: [One paragraph: what it is, how it works, why it exists]
**Why This Approach**:
- [Key advantage 1 - specific, measurable]
- [Key advantage 2 - real-world proof]
- [Key advantage 3 - fits constraints]
**Trade-offs**:
- ⚠️ [Limitation or consideration 1]
- ⚠️ [Limitation or consideration 2]
**Real-World Examples**:
- **[Company/Project]**: [How they use it, scale, results]
- **[Company/Project]**: [How they use it, scale, results]
**Common Pitfalls**:
- [Pitfall 1 and how to avoid it]
- [Pitfall 2 and how to avoid it]
**Complexity**: Low/Medium/High
**Development Time**: [Estimate based on research]
**Operational Overhead**: Low/Medium/High
---
## Approach 2: [Alternative Name]
**Overview**: [One paragraph description]
**Pros**:
- [Advantage 1]
- [Advantage 2]
**Cons**:
- [Disadvantage 1]
- [Disadvantage 2]
**When to Use**: [Specific scenarios where this is better than recommended approach]
**Real-World Examples**:
- [Company/Project using this approach]
---
## Approach 3: [Alternative Name]
**Overview**: [One paragraph description]
**Pros**:
- [Advantage 1]
- [Advantage 2]
**Cons**:
- [Disadvantage 1]
- [Disadvantage 2]
**When to Use**: [Specific scenarios where this is better than recommended approach]
**Real-World Examples**:
- [Company/Project using this approach]
---
## Comparison Matrix
| Aspect | Approach 1 ⭐ | Approach 2 | Approach 3 |
|--------|-------------|-----------|-----------|
| Dev Speed | Fast/Medium/Slow | ... | ... |
| Performance | Good/Excellent | ... | ... |
| Complexity | Low/Medium/High | ... | ... |
| Scalability | Good/Excellent | ... | ... |
| Cost | Low/Medium/High | ... | ... |
| Team Fit | Good/Poor | ... | ... |
| Battle-Tested | Very/Somewhat/New | ... | ... |
## Implementation Roadmap
**For Recommended Approach:**
### Phase 1: Foundation (Week 1-2)
1. [Specific technical task]
2. [Specific technical task]
3. [Validation checkpoint]
### Phase 2: Core Development (Week 3-4)
1. [Specific technical task]
2. [Specific technical task]
3. [Testing/validation]
### Phase 3: Polish & Deploy (Week 5+)
1. [Specific technical task]
2. [Performance testing/optimization]
3. [Production rollout]
## Critical Risks & Mitigation
| Risk | Impact | Likelihood | Mitigation Strategy |
|------|--------|-----------|---------------------|
| [Technical risk 1] | High/Medium/Low | High/Medium/Low | [Specific strategy] |
| [Technical risk 2] | High/Medium/Low | High/Medium/Low | [Specific strategy] |
## Testing Strategy
**What to Test**:
- [Specific test type 1 and why]
- [Specific test type 2 and why]
**Performance Benchmarks**:
- [Metric 1]: Target [value], measured by [method]
- [Metric 2]: Target [value], measured by [method]
## Key Resources
**Documentation**:
- [Official docs with URL and specific sections to read]
**Real Examples**:
- [GitHub repo / blog post with URL and what's relevant]
- [Production case study with URL and key takeaways]
**Tools/Libraries**:
- [Tool name with URL and what it does]
---
## Optional: Issue Creation Summary
**If creating a GitHub issue from this research**, the following information would be relevant:
**Summary**: [2-3 sentence summary for issue title/description]
**Key Requirements**:
- [Specific requirement 1]
- [Specific requirement 2]
**Recommended Approach**: [One paragraph on what to implement]
**Implementation Guidance**:
- [Problem to solve 1]
- [Problem to solve 2]
**Testing Needs**:
- [Test requirement 1]
- [Test requirement 2]
**Documentation Needs**:
- [Doc requirement 1]
Problem Diagnosis:
/tar Our Lambda functions are timing out when calling Aurora PostgreSQL via Data API under load. Functions are Python 3.11, 1024MB memory, no VPC, in me-central-1. Timeouts happen at 100+ concurrent requests.
Feature Architecture:
/tar Build a real-time voice chat feature for web and mobile apps with low latency (<200ms) and support for 10+ concurrent users per room. Budget conscious, team familiar with JavaScript/Python.