Competitive analysis command. Analyzes the market, competitors, and opportunities with a comprehensive competitive-intelligence framework.

# Required Tools
- Read (existing data)
- Write (report writing)
- Grep (data scan)
- Glob (source discovery)
- Bash (data processing)

# Procedure (6 Steps)

### Step 1: Define the Frame
Get from the user:
- **Product/Service:** Name and short definition of what is being analyzed
- **Market Category:** Which sector, which niche?
- **Target Market:** Geographic and demographic target
- **Known Competitors:** The competitor list the user knows
- **Analysis Purpose:** Why is it being done? (new product launch, price update, strategy revision, etc.)
- **Focus Area:** The whole market or a specific segment?

### Step 2: 3 Parallel Research Agents

**Agent 1: Direct Competitor Analysis**
- For each direct competitor:
  - Product/service features and capability comparison
  - Pricing model and price points
  - Target customer profile
  - Technical infrastructure and technology choices
  - Marketing strategy and channels
  - Brand positioning
  - Customer reviews and satisfaction signals
  - Known weak points

**Agent 2: Near-Alternative and Indirect Competitor Analysis**
- Open-source alternatives
- Solutions solving the same problem differently
- DIY alternatives
- Potential new entrants (expanding from adjacent markets)
- Substitute products and services

**Agent 3: Market Context Analysis**
- Market size and growth trend
- Recent funding and investment news
- M&A activity
- Regulatory changes
- Technology trends and their impact
- Customer behavior shifts
- Economic factors

### Step 3: Comparison Matrix
Build a comprehensive comparison table:

| Criterion | Our Product | Comp A | Comp B | Comp C | Comp D |
|-----------|-------------|--------|--------|--------|--------|
| Price Range | | | | | |
| Target Customer | | | | | |
| Core Features | | | | | |
| Unique Value | | | | | |
| Strengths | | | | | |
| Weaknesses | | | | | |
| Market Share (est.) | | | | | |
| Technology | | | | | |
| Customer Support | | | | | |
| Integrations | | | | | |
| Mobile Experience | | | | | |
| Scalability | | | | | |

### Step 4: Strategic Insights
Conclusions drawn from the analysis:

**Market Gaps:**
- Needs competitors fail to meet
- Underserved segments
- Price-gap opportunities
- Feature-gap opportunities

**Threats:**
- Strong competitors' expansion plans
- New-entrant risks
- Technology-shift risks
- Price-war risks

**Unique Advantages:**
- Our hard-to-copy strengths
- Technology or data advantages
- Relationship and trust advantages
- Speed and agility advantages

### Step 5: Recommendations
Offer strategic recommendations:

**Positioning Strategy:**
- Suggested position and messaging
- Which segment to concentrate on?
- Differentiation emphases

**Pricing Suggestion:**
- Competitive price point
- Tiering and packaging suggestion
- Value-based pricing opportunities

**Feature Prioritization:**
- Features needed for competitive parity
- Differentiating feature opportunities
- Short- and long-term roadmap suggestion

**Messaging Strategy:**
- Key messages
- Phrases to avoid
- Proof points

### Step 6: Build the Markdown Report

# Output Format
```markdown
# Competitive Analysis Report - [date]

## Executive Summary
[3-5 sentence summary: market state, key findings, strategic recommendation]

## Market Overview
- Market Size: [estimate]
- Growth Trend: [percent/year]
- Competitive Intensity: [LOW/MEDIUM/HIGH]

## Competitor Profiles
### Competitor A: [name]
[detailed profile]

### Competitor B: [name]
[detailed profile]

...

## Comparison Matrix
[table]

## Strategic Insights
### Opportunities
[opportunities]

### Threats
[threats]

### Our Advantages
[advantages]

## Recommendations
### Short Term (0-3 months)
[actions]

### Mid Term (3-6 months)
[actions]

### Long Term (6-12 months)
[actions]

## Sources
[data sources used]

## Next Update
Suggested: [date] (quarterly)
```
