opencode-competitive-analysis
v1.0.0
Published
AI-powered competitive feature analysis plugin for OpenCode. Orchestrates team of specialist agents to analyze competitor websites and generate detailed feature specifications.
Downloads
4
Maintainers
Readme
OpenCode Competitive Analysis Plugin
AI-powered competitive feature analysis for OpenCode. Orchestrates a team of specialist agents to analyze competitor websites and generate detailed feature specifications.
Features
Multi-Agent Collaboration: Coordinates specialist agents for comprehensive analysis
- Business Analyst: Competitive research and market analysis
- Product Owner: Requirements and feature specifications
- Designer: UX/UI design proposals
- Web Researcher: Website analysis and screenshot capture
Competitive Intelligence: Systematic analysis of multiple competitor websites
Visual Evidence: Screenshot capture and documentation of user flows
Requirements Engineering: Clear, actionable requirements with acceptance criteria
Design Proposals: UX/UI specifications based on competitive landscape
Feature Specifications: Complete documentation with implementation plans
Installation
Add to your OpenCode configuration:
{
"plugin": ["opencode-competitive-analysis"]
}Or install via npm:
npm install -g opencode-competitive-analysisUsage
Basic Competitive Analysis
Analyze how competitors handle user authenticationWith Specific Competitors
Analyze the shopping cart feature on competitor websites:
- Shopify: https://www.shopify.com
- WooCommerce: https://woocommerce.com
- BigCommerce: https://www.bigcommerce.com
Focus on checkout flow and payment processing.Advanced Usage
analyze_competitors(
featureName="file upload functionality",
competitors=[
{ name: "Google Drive", url: "https://drive.google.com" },
{ name: "Dropbox", url: "https://www.dropbox.com" },
{ name: "OneDrive", url: "https://onedrive.live.com" }
],
requirements=["drag and drop", "progress tracking", "batch uploads", "error handling"],
targetAudience="enterprise users"
)Workflow
The plugin orchestrates the following workflow:
Research Phase
- Web Researchers navigate each competitor website in parallel
- Screenshots captured at key interaction points
- User flows documented
- Technical notes gathered
Analysis Phase
- Business Analyst synthesizes all research findings
- Patterns and best practices identified
- Competitive positioning analyzed
Requirements Phase
- Product Owner defines feature requirements
- User stories created with acceptance criteria
- Implementation priorities established
- Phased delivery plan created
Design Phase
- Designer creates UX/UI proposals
- User flows designed
- Visual system defined
- Accessibility considerations documented
Specification Generation
- Comprehensive feature specification generated
- Implementation plan with phases
- Risk assessment included
- Deliverables documented
Output
The plugin generates:
Feature Specification Document (Markdown)
- Executive summary
- Competitive landscape analysis
- Detailed requirements
- Design proposals
- Implementation plan
- Risk assessment
Screenshot Directory
- Organized by competitor
- Labeled by user flow step
- High-resolution captures
Analysis Report (JSON)
- Structured data for programmatic use
- All agent outputs
- Metadata and timestamps
Agents
Business Analyst
Specializes in competitive research, feature discovery, and market analysis.
Use when:
- Need to understand competitive landscape
- Analyzing feature implementations across multiple competitors
- Researching best practices and industry standards
- Gathering competitive intelligence
Product Owner
Specializes in requirements gathering, feature specification, and user story definition.
Use when:
- Need to define feature requirements
- Creating acceptance criteria
- Breaking down features into epics/stories
- Prioritizing features and requirements
Designer
Specializes in UX/UI design, user experience, and interaction patterns.
Use when:
- Need to design user interfaces
- Improving user experience
- Creating interaction patterns
- Designing responsive layouts
Web Researcher
Specializes in website analysis, screenshot capture, and competitor exploration using Playwright.
Use when:
- Analyzing competitor websites
- Capturing screenshots
- Exploring user flows on websites
- Gathering visual evidence of implementations
Configuration
Plugin behavior can be customized in ~/.config/opencode/competitive-analysis.json:
{
"model": "gpt-4o-mini",
"outputDirectory": "./output",
"screenshotQuality": "high",
"maxCompetitors": 5
}Examples
Example 1: Analyzing Authentication
I need to implement user authentication. Analyze how Google, Microsoft, and Apple handle authentication.
Use the analyze_competitors tool to launch the analysis team.Example 2: E-commerce Checkout
Research competitor checkout flows:
- Amazon
- Shopify
- WooCommerce
Focus on payment methods and guest checkout.Example 3: Real-time Collaboration
Analyze collaborative editing features:
- Google Docs
- Notion
- Coda
Target audience: teams and enterprises.
Requirements: real-time sync, cursors, comments, version history.License
MIT
