Install
$ agentstack add skill-yennanliu-investskill-competitor-analysis ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Competitor Analysis
⚠️ Data Verification — Do This Before Any Analysis
Before running any analysis, always retrieve the latest market data for the ticker:
- Fetch current price — use web search or ask the user for the live price, 52-week range, and market cap. Never assume a price from training data.
- Confirm key figures — recent earnings, revenue, key ratios (P/E, P/S, etc.) as applicable to this skill.
- State your data source — note where the numbers came from (e.g., "Google Finance, June 19 2026") at the top of the output.
- Flag stale data explicitly — if live data is unavailable, display this warning before proceeding:
> ⚠️ Live data unavailable. The following analysis uses training-data estimates which may be significantly out of date. Verify all prices and metrics before making any decisions.
Never silently substitute training-data estimates for current prices. When in doubt, ask the user to paste the latest quote.
Conduct deep competitive moat analysis to assess whether a company has a durable competitive advantage, how wide that moat is, and what the competitive dynamics of its industry mean for long-term investment returns.
Overview
Competitive analysis answers the fundamental question: "Does this company have a durable competitive advantage, and how wide is its moat?" This directly determines the appropriate valuation premium or discount vs. the sector.
A company with a wide, widening moat deserves a premium P/E and P/FCF multiple because its excess returns on capital are durable. A company with no moat, or a narrowing moat, should trade at or below sector multiples regardless of near-term earnings momentum. Understanding the moat is the single most important determinant of a stock's long-term investment return — more important than any individual quarterly earnings figure.
This skill provides a structured, repeatable framework for moat identification, industry attractiveness scoring, competitive benchmarking, and innovation positioning. Output feeds directly into /dcf-valuation (to set appropriate WACC and terminal growth rate) and /fundamental-analysis (to contextualize ROIC and margin trends).
1. Moat Identification Framework
Five Sources of Economic Moat (Morningstar Framework)
1. Network Effects Value increases with each additional user or participant in the platform or network.
- Examples: Visa, Mastercard (payment networks), Meta (social graph), Airbnb (marketplace), Microsoft 365 (collaboration network)
- Test: Does adding users benefit existing users? Does the network become more valuable as it scales?
- Signs of network effects: Organic user growth with low CAC, high retention as network grows, winner-take-most dynamics
2. Cost Advantages Structural ability to produce goods or services at lower cost than competitors.
- Sources: Scale advantages (fixed cost leverage), process innovation (proprietary manufacturing), geographic advantage (proximity to inputs), unique asset access (mining rights, owned infrastructure)
- Examples: Costco (buying scale + lean operations), Amazon (logistics scale), Nucor (mini-mill process innovation)
- Test: Can competitors replicate this cost structure at competitive cost? What would it cost to build?
3. Intangible Assets Brands, patents, regulatory licenses, or proprietary data that competitors cannot easily copy.
- Brand: Can the company charge a premium price based on brand perception alone? (Apple, LVMH, Coca-Cola)
- Patents: How many years of exclusivity remain? Is the IP portfolio broad or narrow?
- Regulatory licenses: Are licenses scarce, non-transferable, or expensive to obtain? (broadcast licenses, pharmaceutical approvals, financial licenses)
- Proprietary data: Is the data asset self-reinforcing and competitively irreplicable?
- Test: Can the company charge premium prices, or does the intangible give exclusive market access?
4. Switching Costs High cost — financial, operational, or psychological — for customers to change providers.
- Financial switching costs: Contractual lock-in, migration costs, retraining costs
- Operational switching costs: Deep workflow integration, data portability limitations
- Psychological switching costs: Brand loyalty, habit formation, trust
- Examples: Oracle (ERP deeply embedded in operations), Salesforce (CRM data and workflow integration), Adobe (creative suite skill investment)
- Test: What % of customers have churned in the last 3 years? How long is the average customer tenure?
5. Efficient Scale Company operates in a market that can profitably support only one or a few competitors, creating natural oligopoly or monopoly dynamics.
- Examples: Waste Management (regional landfills), utility companies, specialty chemicals with natural regional monopolies
- Test: Would a new entrant earn below-cost returns given the existing market structure? Is the total addressable market too small to profitably split further?
Moat Width Assessment
Moat Width Definition ROIC Signal
──────────────────────────────────────────────────────────────────────
Wide Moat Clear, sustainable advantage 20+ years ROIC consistently and
Structural barriers that are durable significantly > WACC
Premium P/E valuation appropriate
Narrow Moat Some advantages, 10–20 year durability ROIC modestly > WACC
Barriers exist but can be overcome Slight premium warranted
with sufficient capital or time
No Moat No sustainable competitive advantage ROIC ≈ WACC or below
Commodity-like pricing dynamics In-line sector valuation
New entrants can replicate economics
Moat at Risk Previously existing moat is eroding ROIC declining toward
Structural disruption underway or below WACC
Discount valuation warranted
Moat Trend (most important forward-looking question):
- Widening: Competitive advantages are strengthening, market share is growing, ROIC is increasing
- Stable: Moat is intact but not materially widening; returns on capital are consistent
- Narrowing: Competitive pressure, disruption, or commoditization is compressing the moat
2. Porter's Five Forces Deep Analysis
Force 1: Competitive Rivalry (Intensity within industry)
How intensely do existing competitors compete for market share?
- Number and size distribution of competitors (fragmented vs. concentrated)
- Industry growth rate (slow-growth industries intensify rivalry; fast-growing markets reduce it)
- Product differentiation level (commodity products = intense price competition)
- Exit barriers (high exit barriers trap capacity in the market, intensifying rivalry)
- Fixed cost intensity (high fixed costs create pressure to fill capacity at any price)
Rivalry Intensity: Low / Moderate / High / Extreme
Force 2: Threat of New Entrants
How easily can new competitors enter the market?
- Capital requirements for market entry (low capital = easier entry)
- Economies of scale advantages for incumbents
- Network effect barriers (winner-take-most dynamics deter entry)
- Regulatory and licensing barriers (FDA approvals, financial licenses, environmental permits)
- Brand and customer loyalty barriers (how long would it take to build credibility?)
- Access to distribution channels
- Incumbent cost advantages independent of scale (patents, proprietary processes)
Entry Threat: Low / Moderate / High
Force 3: Bargaining Power of Suppliers
How much leverage do input suppliers have over the company?
- Supplier concentration vs. buyer concentration (few suppliers, many buyers = high supplier power)
- Uniqueness and criticality of the supplied product or service
- Cost of switching suppliers (sole-source vs. multi-source supply chains)
- Supplier forward integration threat (can suppliers bypass the company and sell direct?)
- Importance of the company to the supplier's revenue (are you a large or small customer?)
Supplier Power: Low / Moderate / High
Force 4: Bargaining Power of Buyers (Customers)
How much leverage do customers have to negotiate price or terms?
- Customer concentration (what % of revenue comes from the top 10 customers?)
- Price sensitivity of customers (is the purchase a major budget item or negligible?)
- Switching costs for customers (low switching costs = high buyer power)
- Buyer backward integration threat (can customers build this capability in-house?)
- Availability of information (informed buyers negotiate better)
- Volume buying leverage (large customers extract better terms)
Buyer Power: Low / Moderate / High
Force 5: Threat of Substitutes
What alternatives exist outside the direct competitive set?
- Availability of substitute products or services (different product, same customer job-to-be-done)
- Price-performance improvement rate of substitutes (is the substitute improving faster than the incumbent?)
- Customer propensity to substitute (how much switching actually happens?)
- Relative price of substitutes (cheap substitute + acceptable quality = high threat)
- Example: Streaming vs. cable TV; cloud computing vs. on-premise hardware; electric vehicles vs. internal combustion
Substitute Threat: Low / Moderate / High
Five Forces Summary Score
Score each force 1–5, where 5 = most favorable for the company being analyzed:
Force Score (1-5) Assessment
─────────────────────────────────────────────────────────────────
Competitive Rivalry [1-5] [description of key dynamics]
New Entrant Threat [1-5] [key barriers or lack thereof]
Supplier Power [1-5] [key supplier dynamics]
Buyer Power [1-5] [customer concentration, switching costs]
Substitute Threat [1-5] [main substitutes and their threat level]
─────────────────────────────────────────────────────────────────
Industry Attractiveness Score: [X.X / 5]
Score Interpretation:
4.5–5.0 Extremely attractive industry (structural advantages strong)
3.5–4.4 Attractive industry (mostly favorable dynamics)
2.5–3.4 Average industry (mixed dynamics)
1.5–2.4 Unattractive industry (structural headwinds)
1.0–1.4 Highly unattractive (commodity, intense competition, low returns)
3. Market Share Analysis
Understand whether the company is gaining, maintaining, or losing ground in its market:
- Current market share % and 3-year trend (gaining / stable / losing)
- Market share concentration (Herfindahl-Hirschman Index — HHI — of the industry)
- HHI > 2,500: Highly concentrated (oligopoly/monopoly dynamics)
- HHI 1,500–2,500: Moderately concentrated
- HHI industry average consistently = moat evidence. Gross margin premium = pricing power or cost advantage. Higher revenue per employee = efficiency advantage.
5. Innovation & Disruption Assessment
Evaluate whether the company is positioned as a disruptor or a potential target of disruption:
- R&D investment level and productivity:
- R&D as % of revenue (spending level)
- Patents filed per $1M R&D (output efficiency)
- Time-to-market for new product launches vs. peers
- Product roadmap visibility: Does management articulate a clear multi-year innovation roadmap with specific milestones?
- Technology platform assessment: Is the core technology platform modern (cloud-native, API-first, modular) or legacy (monolithic, on-premise, technical debt-laden)?
- Disruption positioning: Is this company the disruptor or the disrupted?
- Disruptor indicators: Taking share from incumbents, serving underserved segments, improving price-performance faster than industry
- Disrupted indicators: Losing share to newer platforms, customers migrating to substitutes, pricing power declining
- Adjacent market opportunities: What is the total addressable market (TAM) expansion potential? Can the moat extend into adjacent categories?
- AI/software/platform disruption threat: Is the industry undergoing a platform shift that could rapidly alter competitive dynamics? (e.g., AI replacing workflow software, direct-to-consumer bypass of distributors)
6. Management Quality in Competitive Context
Assess whether management is executing effectively in the competitive environment:
- Capital allocation track record: Has management invested capital at returns above WACC? What is the M&A track record (value-creative or value-destructive)?
- Competitive response speed: How quickly does management respond to competitive threats? (pricing changes, product updates, strategic pivots)
- Innovation culture indicators: Employee Glassdoor ratings vs. competitors; pace of product launches; engineering talent density (LinkedIn data); Blind/levels.fyi compensation vs. peers
- CEO competitive vision: How does the CEO discuss competition in earnings calls? Dismissive, realistic, or strategically insightful?
- Track record vs. stated strategy: Has management delivered on prior competitive strategy commitments? Or does strategy change frequently without execution?
7. Pricing Power Analysis
Quantify the company's ability to raise prices without losing customers:
- Premium vs. discount pricing: Does the company price above, at, or below competitors? What is the quantified price premium?
- Price increase history: Has the company raised prices in the last 5 years? Did volume decline, remain stable, or grow despite price increases? (volume stability after price increases = strong pricing power)
- Customer willingness-to-pay research: NPS scores, customer satisfaction surveys, retention data, and churn analysis provide indirect evidence of willingness to pay
- Gross margin expansion/compression trend: Expanding gross margins while growing revenue = pricing power. Compressing gross margins under competitive pressure = pricing power erosion.
- Price elasticity indicators: For consumer businesses, track promotional intensity. Excessive discounting = inability to hold price. For B2B, track deal cycle length and discount rates.
8. Moat Score Composite
Moat Scorecard:
Component Weight Score (0-10) Notes
──────────────────────────────────────────────────────────────────────
Moat Source Strength 25% [0-10] [which of 5 sources are present]
Moat Durability (years) 20% [0-10] [wide/narrow/none, estimated longevity]
Competitive Position 20% [0-10] [gaining/stable/losing vs. peers]
Industry Attractiveness 15% [0-10] [Five Forces score converted to 0-10]
Pricing Power 10% [0-10] [premium pricing, margin trend]
Innovation Positioning 10% [0-10] [disruptor/neutral/disrupted]
──────────────────────────────────────────────────────────────────────
Composite Moat Score: 100% X.X / 10
Moat Assessment:
8–10: Wide Moat (significant valuation premium justified; durable excess returns)
6–8: Narrow Moat (modest premium warranted; monitor for narrowing)
4–6: No Clear Moat (in-line with sector valuation; commodity-like returns)
0–4: Moat at Risk (valuation discount warranted; sell consideration)
Scoring Reference:
- Moat Source Strength: 9–10 = 3+ strong, reinforcing moat sources; 7–8 = 2 clear sources; 5–6 = 1 credible source; 3–4 = partial/debatable source; 0–2 = no identifiable moat
- Moat Durability: 9–10 = 20+ year visibility; 7–8 = 15+ years; 5–6 = 10 years; 3–4 = 5 years; 0–2 = structural disruption underway
- Industry Attractiveness: Derived from Five Forces score (0–5 scale) × 2 to convert to 0–10
9. Competitive Intelligence Sources
Use these primary and secondary research sources to build the compe
…
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: yennanliu
- Source: yennanliu/InvestSkill
- License: MIT
- Homepage: http://yennj12.js.org/InvestSkill/
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.