competitor-analysis
ACTIVATE when the user asks to analyze competitors across SEO, ads, social, email, pricing, positioning — competitive matrix, SWOT, competitor weakness discovery. Trigger phrases: 'competitor analysis', 'competitive analysis', 'who are my competitors', 'competitor research', 'competitive landscape', 'benchmark competitors', 'competitor ads', 'competitor SEO', 'competitor pricing', 'SWOT analysis', 'competitive matrix'. DO NOT use for market/technology research with no named competitors yet (see common:product-research).
- License 许可
- MIT
- 最近更新
- 2026-10-13
- Stars
- ★ 9
- Forks
- 2
01 前言 Front Matter
- name
- competitor-analysis
- description
- ACTIVATE when the user asks to analyze competitors across SEO, ads, social, email, pricing, positioning — competitive matrix, SWOT, competitor weakness discovery. Trigger phrases: 'competitor analysis', 'competitive analysis', 'who are my competitors', 'competitor research', 'competitive landscape', 'benchmark competitors', 'competitor ads', 'competitor SEO', 'competitor pricing', 'SWOT analysis', 'competitive matrix'. DO NOT use for market/technology research with no named competitors yet (see common:product-research).
02 资源文件 2
- 参考文档.skillkit.json228 B
- 参考文档STRATEGY.json466 B
03 SKILL.md 正文
Competitor Analysis Framework
You are an expert competitive intelligence analyst. When the user asks you to analyze competitors, build competitive matrices, or identify competitive advantages, follow this framework.
Optional API Integrations
The following API keys enable richer data collection. All are optional -- the framework works without them using web search and manual research.
SEMRUSH_API_KEY- Domain overview, organic keywords, competitor discovery, traffic estimatesSERPAPI_API_KEY- Real-time SERP competitive analysis, ad copy extractionSCRAPINGBEE_API_KEY- Scrape competitor pages that block direct fetching
SemRush API (if SEMRUSH_API_KEY available)
Domain Overview - Get traffic, keywords, and authority for any competitor:
# Domain overview (organic traffic, keywords, authority score)
curl -s "https://api.semrush.com/?type=domain_ranks&key=${SEMRUSH_API_KEY}&export_columns=Db,Dn,Rk,Or,Ot,Oc,Ad,At,Ac&domain={competitor_domain}"
Columns: Db=Database, Dn=Domain, Rk=Rank, Or=Organic Keywords, Ot=Organic Traffic, Oc=Organic Cost, Ad=Adwords Keywords, At=Adwords Traffic, Ac=Adwords Cost.
Organic Keywords - See what keywords a competitor ranks for:
# Top organic keywords for a competitor domain
curl -s "https://api.semrush.com/?type=domain_organic&key=${SEMRUSH_API_KEY}&domain={competitor_domain}&database=us&export_columns=Ph,Po,Nq,Cp,Ur,Tr&display_limit=50&display_sort=tr_desc"
Columns: Ph=Keyword, Po=Position, Nq=Search Volume, Cp=CPC, Ur=URL, Tr=Traffic %.
Competitor Discovery - Find domains competing for the same keywords:
# Domains competing with a given domain in organic search
curl -s "https://api.semrush.com/?type=domain_organic_organic&key=${SEMRUSH_API_KEY}&domain={domain}&database=us&export_columns=Dn,Cr,Np,Or,Ot,Oc&display_limit=20"
Columns: Dn=Domain, Cr=Competition Level, Np=Common Keywords, Or=Organic Keywords, Ot=Organic Traffic, Oc=Organic Cost.
Keyword Gap - Find keywords competitors rank for but you do not:
curl -s "https://api.semrush.com/?type=domain_domains&key=${SEMRUSH_API_KEY}&domains=*|or|{your_domain}|*|or|{competitor1}|*|or|{competitor2}&database=us&export_columns=Ph,P0,P1,P2,Nq,Cp&display_limit=50&display_filter=%2B|P0|Eq|0"
The filter +|P0|Eq|0 returns keywords where your domain (position 0) does not rank.
SerpAPI (if SERPAPI_API_KEY available)
SERP Competitive Analysis - See who ranks for key terms in real time:
# Real-time SERP for competitive keywords
curl -s "https://serpapi.com/search.json?q={keyword}&api_key=${SERPAPI_API_KEY}&num=20&gl=us&hl=en"
Use this to:
- Identify which competitors dominate organic results for target keywords (parse
organic_results) - Extract competitor ad copy from
adsandshopping_resultsfields - Discover related competitor keywords from
related_searches - See competitor presence in SERP features:
knowledge_graph,local_results,featured_snippet
Google Ads Competitor Analysis:
# Search a commercial keyword to see competitor ads
curl -s "https://serpapi.com/search.json?q={commercial_keyword}&api_key=${SERPAPI_API_KEY}&gl=us&hl=en"
The response ads array contains: position, title, link, displayed_link, tracking_link, description, sitelinks. This reveals competitor ad copy, landing pages, and messaging.
ScrapingBee (if SCRAPINGBEE_API_KEY available)
Use ScrapingBee to scrape competitor pages that block direct fetching via WebFetch (e.g., JavaScript-heavy pages, bot-protected sites, pricing pages):
# Scrape a competitor page
curl -s "https://app.scrapingbee.com/api/v1/?api_key=${SCRAPINGBEE_API_KEY}&url={url}&render_js=false"
Set render_js=true if the page requires JavaScript rendering (SPAs, dynamic pricing tables). Useful for:
- Extracting pricing page details when WebFetch returns incomplete content
- Scraping competitor landing pages for messaging and positioning analysis
- Capturing competitor feature comparison pages
- Getting content from sites that block automated requests
Note: ScrapingBee charges per request. Use sparingly -- try WebFetch first and fall back to ScrapingBee only when needed.
Step 1: Gather Context
Establish: user's product, industry/vertical, target audience, known competitors, key concerns (pricing, features, marketing), available tools (SEMrush, Ahrefs, SimilarWeb), goal (strategy, launch decision, investor deck, repositioning).
Step 2: Competitor Identification
Three Categories
- Direct (same product, same audience): 3-5 competitors
- Indirect (different product, same problem): 2-3 competitors
- Aspirational (market leaders to learn from): 1-2 competitors
Discovery Methods
Google "[category]" (ads + organic top 10), G2/Capterra "Compare" pages, Reddit/Twitter "[competitor] alternative", customer interviews, job postings, funding announcements, SEMrush "Competing Domains" report.
Step 3: SEO Analysis
If SEMRUSH_API_KEY is available, use the Domain Overview and Organic Keywords endpoints (see Optional API Integrations above) to populate the profile below with real data. If SERPAPI_API_KEY is available, supplement with real-time SERP position data. Otherwise, use WebSearch and public tools to estimate.
For each competitor:
COMPETITOR SEO PROFILE: [Company Name]
DA/DR: [score] | Monthly Organic Traffic: [volume] | Ranking Keywords: [total]
TOP KEYWORDS: [keyword, position, volume, traffic share]
CONTENT STRATEGY:
Post frequency, avg length, content types, top 5 performing URLs
BACKLINK PROFILE:
Total backlinks, referring domains, top linking domains, acquisition rate
TECHNICAL: Site speed, mobile optimization, schema markup, architecture
Gap Analysis
- Keyword gaps: Keywords competitors rank for that you do not
- Content gaps: Topics competitors cover that you do not
- Backlink gaps: Domains linking to competitors but not you
Step 4: Paid Advertising Analysis
COMPETITOR AD PROFILE: [Company Name]
Est. Monthly Spend: [range] | Platforms: [list] | Active Ads: [count]
GOOGLE ADS: Top keywords, ad copy themes, landing pages, extensions
META ADS: Ad count (from Ad Library), formats, running duration, creative themes
LINKEDIN ADS (B2B): Formats, targeting signals, content themes
Key questions: Which keywords bid most aggressively? What landing pages do ads point to (reveals best offers)? How long have top ads been running (long = profitable)? Running retargeting?
Step 5: Social Media Analysis
| Platform | Followers | Frequency | Avg Engagement | Top Content Type |
|----------|-----------|-----------|----------------|-----------------|
| Twitter/X | ... | ... | ... | ... |
| LinkedIn | ... | ... | ... | ... |
| Instagram | ... | ... | ... | ... |
| YouTube | ... | ... | ... | ... |
CONTENT THEMES: [theme, engagement level] x3
TOP POSTS (last 90 days): [platform, description, metrics]
COMMUNITY: Response time, tone, UGC, community spaces
Step 6: Email and Lifecycle Marketing
Sign up for every competitor's list, trial, and newsletter. Track:
- Newsletter: Frequency, content type, subject line style, personalization
- Onboarding sequence: Day-by-day breakdown with subject, purpose, CTA
- Promotions: Discount frequency, seasonal campaigns, urgency tactics
- Retention: Churn prevention emails, re-engagement campaigns
Step 7: Pricing and Positioning
Pricing Comparison
| Feature/Plan | You | Comp A | Comp B | Comp C |
|-------------|-----|--------|--------|--------|
| Free Tier | ... | ... | ... | ... |
| Starter | ... | ... | ... | ... |
| Pro | ... | ... | ... | ... |
| Enterprise | ... | ... | ... | ... |
Note model type, billing options, add-ons, discounts, price anchoring.
Positioning Map
Create a 2x2 map on the two most important dimensions (e.g., Price vs. Simplicity). Identify white space opportunities.
Messaging Extraction
For each: tagline, value proposition, key differentiator, target persona, tone, primary proof points.
Step 8: SWOT Analysis
For each major competitor:
STRENGTHS: [with evidence]
WEAKNESSES: [with evidence from reviews, complaints, feature gaps]
OPPORTUNITIES: [market trends in their favor]
THREATS: [your advantages or market shifts against them]
Weakness sources: G2/Capterra 1-2 star reviews, Reddit/Twitter complaints, Glassdoor, Down Detector, feature comparison gaps, support forums.
Step 9: Competitive Matrix
| Dimension | You | Comp A | Comp B | Comp C |
|-----------|-----|--------|--------|--------|
| Founded | ... | ... | ... | ... |
| Funding/Revenue | ... | ... | ... | ... |
| Target Market | ... | ... | ... | ... |
| Entry Price | ... | ... | ... | ... |
| Key Differentiator | ... | ... | ... | ... |
| DA | ... | ... | ... | ... |
| Monthly Traffic | ... | ... | ... | ... |
| G2 Rating | ... | ... | ... | ... |
| Feature 1-3 | Y/N | Y/N | Y/N | Y/N |
Step 10: Strategic Recommendations
STRATEGIC RECOMMENDATIONS
==========================
1. POSITIONING: Current vs. recommended position, key message, differentiation
2. CONTENT: Priority keywords, content types, topics to own
3. PAID: Keywords competitors miss, ad angles, channel priorities
4. PRODUCT: Features to build (from gaps), features to deprioritize
5. PRICING: Adjustments, packaging opportunities
6. QUICK WINS: 3 actions to implement this week
Ground every recommendation in specific competitor data. Prioritize by impact and ease of implementation.
04 同仓库更多 Skills
vitest-test-conventions
ACTIVATE when writing Vitest tests, creating test files, using vi.fn()/vi.mock()/vi.spyOn(), or test factories. ACTIVATE for 'Vitest', 'it.each', 'NestJS testing module', 'supertest', 'vi.fn', 'vi.mock', 'spyOn'. Provides Vitest/NestJS-specific testing patterns; cross-language testing principles (DAMP, AAA, spy over mock, what NOT to test) live in craft:testing-principles. DO NOT use for: node:test files (a file importing node:test) or a project whose tests run under node --test (see node-test:node-test-conventions), TDD workflow/iterations (see vitest:vitest-tdd-workflow), PHP/PHPUnit tests (see phpunit:php-test-conventions).
vitest-tdd-workflow
ACTIVATE when building new features, endpoints, or user stories using TDD with Vitest in a TypeScript/NestJS context. ACTIVATE for '/feature-tdd-dev', 'TDD', 'red-green-refactor' in TS context. Provides Vitest/NestJS-specific TDD examples and commands; cross-language TDD workflow (cross-layer iterations, RED-GREEN-REFACTOR, working app, bug-fix-first-test, mocks-hiding-bugs) lives in craft:tdd-workflow-principles. DO NOT use for: node:test files (a file importing node:test) or a project whose tests run under node --test (see node-test:node-test-conventions), test writing conventions (see vitest:vitest-test-conventions), PHP TDD (see phpunit:php-tdd-workflow).
ts-refactoring
ACTIVATE when refactoring TypeScript code. ACTIVATE for 'refactor', 'extract', 'redesign', 'simplify', or 'clean up' in a TypeScript / Node / NestJS context. This skill provides TS-specific examples for the cross-language refactoring rules defined in craft:refactoring-principles. DO NOT use for: writing new features from scratch, general OOP patterns (see ts-oop).
ts-ports-adapters
ACTIVATE when a TypeScript codebase with no dependency-injection container has to declare a port and wire its adapter — a repository, a clock, an id generator, an event dispatcher the domain depends on. ACTIVATE for 'port', 'adapter', 'SPI', 'dependency inversion' or 'composition root' in a codebase that wires its dependencies by hand. Covers: the port as a type of functions in the domain layer, the adapter as an object literal annotated with it, the handler that takes its dependencies first and its data second, the composition root in the infrastructure layer, and the in-memory stub that substitutes for the adapter in a unit test. DO NOT use for: NestJS, or any container-based DI with decorators and tokens (see nest-ddd-conventions), aggregate operations and smart constructors (see ddd-ts-fp), the Result type itself (see ts-functional).
ts-oop
ACTIVATE when designing TypeScript classes, and the value objects or collections modelled as classes, or when the user asks about object design, encapsulation, Tell Don't Ask, or Symbol.iterator. Provides TS-specific examples for the cross-language OOP rules defined in craft:oop-principles, plus TS-specific patterns (Symbol.iterator, branded types for primitive identifiers). DO NOT use for: a value object or an aggregate modelled as an immutable record rather than a class (see ddd-ts-fp), refactoring methodology (see ts-refactoring).
ts-layer-boundaries
ACTIVATE when wiring a Worker entry point, a Router, a controller, or a domain event consumer in a TypeScript CQRS codebase, or when deciding where a port belongs. ACTIVATE for 'composition root', 'layer boundary', 'ESLint zones', 'domain must not import infrastructure'. Covers: the *Worker.ts composition root, the curried consumer, Router wiring of command endpoints, the five-gesture controller, the domain-to-infrastructure import boundary enforced by ESLint, infrastructure-only ports, in-memory doubles for every port, the read-can-reach-write asymmetry, and read endpoints going through a domain handler. DO NOT use for: the port's own shape and adapter binding (see ts-ports-adapters), the Result type (see ts-functional), domain event structure (see ts-ddd-events).