Pack Availability Guard
Before telling the user to run a skill from another project-local pack, check .agents/project.json.enabled_packs. If the target pack is not enabled, recommend /pack install <pack> instead of the target skill. Global skills are always valid. Skills from this same pack are valid because the current skill is already running from that pack.
Competitive Analysis — Market Landscape Research
Report-First Approval Gate
Default to report-only: present findings, evidence coverage, assumptions, recommended artifact path, and proposed file changes in a pre-approval alignment page plus a concise conversation summary for user approval before creating or updating canonical research, spec, or task files.
Do not write or overwrite synthesized deliverables until the user explicitly approves, unless the user invoked an explicit write/update/fix mode or clearly asked to write files upfront. Raw evidence capture may be persisted before analysis when reproducibility requires it; report those raw paths separately and still gate synthesized research/report writes.
When stopping for approval, build and attempt to open the alignment preview page first, then ask the user to review it and approve, question, or request adjustments. Do not include Recommended next skill, Recommended next command, or downstream routing language. The approval request itself is the next action. Only emit next-skill routing after the approved artifact has been written or updated.
Conduct deep web-based research to compile a comprehensive competitive landscape for the project. Uses web search to identify competitors, evaluate their maturity, analyse their go-to-market strategies, and surface market gaps. The output gives the founder a clear picture of who they're up against and where opportunities exist.
Prerequisites
Detect mode before proceeding:
- Concept-validation mode activates when: no
research/icp.md exists AND (no meaningful codebase — i.e. no README, no source files, no package config — OR $ARGUMENTS contains "concept" or "validate"). Use this mode to validate market gaps after a concept has been shaped by /idea-scope-brief or an equivalent brief; if no concept is clear, recommend /idea-scope-brief first. In this mode, announce to the user: "Running in concept-validation mode — no ICP or product detected. I'll evaluate the market gap for your concept." Then ask the user to describe the concept, the problem it addresses, and the intended audience.
- Standard mode (default): Read the codebase, README, CLAUDE.md, and existing research/specs (
research/icp.md or research/{app}/icp.md, research/enterprise-icp.md or research/{app}/enterprise-icp.md, research/mvp-gap.md or research/{app}/mvp-gap.md) to understand what the product does, who it's for, and what value it claims to provide. This context is essential for identifying the right competitors and evaluating positioning. If no codebase or specs exist but research/icp.md is present, proceed in standard mode using the ICP as context.
Process
0. App Scope Resolution (Monorepo Support)
Before checking prerequisites, determine the app scope:
- If
$ARGUMENTS specifies an app name matching a subdirectory of research/, use it.
- If
research/ contains subdirectories (excluding files), list them and ask the user which app to target. If only one subdirectory exists, use it automatically.
- If no subdirectories exist, proceed with flat structure (single-product mode).
When app scope {app} is active:
- Read/write research from
research/{app}/ instead of research/
- Read/write specs from
specs/{app}/ instead of specs/
- Also read
research/icp.md (cross-app overview) for broader context
1. Establish Product Context
Standard mode:
- Read CLAUDE.md, README, package config, and key source files to understand the product
- Read
research/icp.md (or research/{app}/icp.md) if it exists — the customer profile, pain map, and value prop define the competitive frame
- Read
research/enterprise-icp.md (or research/{app}/enterprise-icp.md) and research/mvp-gap.md (or research/{app}/mvp-gap.md) if they exist for additional context
- If
$ARGUMENTS names specific competitors, use those as a starting point but still search broadly
- Summarise what the product does, who it's for, and what problem it solves. Confirm this understanding with the user before researching.
Concept-validation mode:
- Use
research/concept-brief.md when present, otherwise use the concept description from Prerequisites to establish the problem space
- Summarise what the concept proposes (problem it addresses, intended audience, hypothesised approach)
- Confirm this understanding with the user before researching
2. Identify Competitors
Use the WebSearch tool extensively to find competitors. Search across multiple angles:
- Direct competitors: Products solving the same problem for the same audience
- Indirect competitors: Products solving an adjacent problem that could expand into this space
- Incumbents: Established tools or platforms the target audience currently uses (even if not purpose-built for this problem)
- Emerging players: New startups or open-source projects in the space
- DIY alternatives: Internal tools, spreadsheets, manual processes, or "do nothing" approaches
Search strategies:
"[product category] software", "[product category] tools", "[product category] alternatives"
"best [product category] for [target audience]", "[product category] comparison"
"[competitor name] alternatives" for each known competitor to find more
"[competitor name] vs" to discover comparison articles and adjacent players
- Check Product Hunt, G2, Capterra, and industry-specific directories
- Search for recent funding rounds in the space:
"[product category] startup funding"
- Look for open-source alternatives on GitHub
Checkpoint 1 — Present the competitor list to the user. Use the AskUserQuestion tool to show all identified competitors grouped by category (direct, indirect, incumbent, emerging, DIY). For each competitor, include a one-line description of what they do and why they belong in that category, citing the search source. Then ask:
- "Are there competitors I missed?"
- "Any of these incorrectly categorised or not actually relevant?"
Incorporate feedback before proceeding to deep research.
3. Research Each Competitor
For each identified competitor, use WebSearch and WebFetch to gather:
Company & Product
- What exactly they do — core product, features, positioning
- Founding year, team size, funding raised, revenue signals
- Technology stack and platform (web, mobile, desktop, API, CLI)
- Pricing model and tiers (free, freemium, paid-only, enterprise)
Maturity & Traction
- Current stage: pre-launch, early, growth, mature, declining
- User base size signals (published metrics, app store downloads, community size)
- Customer logos and case studies
- Recent product launches or major updates
- Integration ecosystem breadth
Go-to-Market Strategy
- Primary acquisition channel: PLG, sales-led, community-led, content-led, partnerships
- Pricing strategy: freemium, free trial, demo-required, open-core, usage-based
- Content marketing approach: blog, docs, educational content, SEO strategy
- Community presence: Discord, Slack, forums, open-source community
- Social proof strategy: case studies, testimonials, review sites, certifications
- Partnership and integration strategy
- Target market segment: SMB, mid-market, enterprise, developer, consumer
Strengths
- What do users praise? (Check review sites, social media, community forums)
- What features or capabilities set them apart?
- What's their moat? (Network effects, data, integrations, brand, switching costs)
Weaknesses
- What do users complain about? (Check negative reviews, support forums, social media)
- What's missing from their product?
- Where do they lose deals? (Check comparison articles, competitor marketing)
- What's their biggest vulnerability?
4. Identify Market Gaps
Synthesise the research to find:
- Underserved segments: Customer types or use cases that no competitor serves well
- Feature gaps: Capabilities that users want but no competitor provides
- Pricing gaps: Market segments priced out by existing solutions or overpaying for features they don't need
- UX gaps: Areas where all competitors have poor user experience
- Integration gaps: Missing connections to tools the target audience already uses
- Geographic or vertical gaps: Markets or industries that competitors haven't entered
- Technology gaps: Emerging tech (AI, automation, APIs) that competitors haven't leveraged
4a. Gap Assessment (concept-validation mode only)
If running in concept-validation mode, synthesise the market gaps into a structured gap assessment:
- Market State: Virgin (no one does this) / Sparse (few players, early) / Crowded (many established players)
- Incumbent Quality: Dominant-and-loved / Dominant-but-resented (the Jira pattern — widely used, widely disliked) / Fragmented-and-mediocre / Emerging-and-unproven
- Gap Quality: Clear unmet need / Underserved segment / UX/approach gap / Minor improvement / No meaningful gap
- Verdict: Proceed to ICP (gap validated) / Pivot concept (gap exists but concept doesn't address it well) / Abandon (no meaningful gap)
Checkpoint — Present gap assessment to user. Use the AskUserQuestion tool to present the Market State, Incumbent Quality, Gap Quality, and Verdict with supporting evidence from the research. Ask: "Does this assessment match your read of the market? Should we adjust the verdict?" Incorporate feedback before continuing.
5. Analyse Positioning Opportunities
Based on all research:
Standard mode:
- Where does our product fit in the competitive landscape?
- What positioning would differentiate us most effectively?
- What can we learn from competitors' successes and failures?
- What GTM strategy best fits our product and the market dynamics?
- What are the 2-3 most compelling angles we could own?
Concept-validation mode:
- If you built this, where would it fit in the competitive landscape?
- What positioning would differentiate the concept most effectively?
- What can you learn from competitors' successes and failures?
- What GTM strategy would best fit the concept and the market dynamics?
- What are the 2-3 most compelling angles you could own?
6. Present Findings & Validate
Checkpoint 2 — Present the full analysis to the user before writing. Use the AskUserQuestion tool to present:
- Landscape summary — the competitive picture in 3-5 sentences
- Key competitors — top 3-5 with their strengths, weaknesses, and key takeaway
- Market gaps — the most significant unmet needs
- Recommended positioning — where we should play and why
- GTM insights — what works in this market
Then ask:
- "Do the market gaps match your intuition?"
- "Which positioning angles resonate most?"
- "Any insider knowledge that changes the analysis?"
Continue the conversation until all non-trivial details are nailed down. If the user raises points that require additional research, go back and search before finalising.
7. Populate Next Steps
Before writing, check which files exist to populate the ## Next Steps section contextually. Include 3–5 applicable items with "Pick one:" framing:
Concept-validation mode:
- IF verdict is Proceed to ICP: recommend
/icp — Define your ideal customer profile now that the market gap is validated
- IF verdict is Pivot concept: recommend
/brainstorm — Generate alternative concepts that better address the gap before ICP work
- IF verdict is Abandon: recommend
No follow-up skill recommended — Stop this concept because the analysis did not find a meaningful gap worth pursuing; include /brainstorm only if the user wants to explore a new concept
- IF verdict is Proceed to ICP and
/icp creates research/icp.md: include /competitive-analysis as a later option to re-run in standard mode for full competitive positioning
Impact-aware adjustments:
- IF downstream impact is Major: prepend
/reconcile-research — [N] conflicts found in downstream docs as the first item
- IF downstream impact is Minor: annotate relevant skill suggestions with "(stale — [brief description])"
- If downstream impact has not been classified yet, run the downstream impact check against the proposed output before selecting the final recommendation. Do not emit a Minor/Major impact recommendation speculatively.
Standard mode:
- RECOMMEND the first matching item:
- IF no
research/journey-map.md: /journey-map — Map the customer and user journey before solution-value decisions, using competitive gaps as inspiration
- IF no
research/value-prop.md: /value-prop-canvas — Validate solution-customer fit using journey-placed competitive gaps to sharpen the value map
- IF no
specs/ directory or it's empty: /spec-interview [top journey-backed market gap or positioning opportunity] — Spec features that exploit the most important market gap after journey context exists
- IF no
research/gtm.md: /gtm — Build a GTM plan using the channel and positioning insights
- IF codebase exists and no
research/mvp-gap.md: /mvp-gap — Evaluate codebase against ICP and competitive landscape
- Include
/brainstorm only as an "Other option" when the analysis found multiple plausible market gaps and the product direction is still unclear. Do not recommend brainstorm just because competitive whitespace exists.
Any /spec-interview recommendation must include a concrete target from the analysis, not a bare command. Use the top market gap, riskiest competitive assumption, or strongest positioning opportunity as the bracketed topic.
Impact-aware adjustments:
- IF downstream impact is Major: prepend
/reconcile-research — [N] conflicts found in downstream docs as the first item
- IF downstream impact is Minor: annotate relevant skill suggestions with "(stale — [brief description])"
- If downstream impact has not been classified yet, run the downstream impact check against the proposed output before selecting the final recommendation. Do not emit a Minor/Major impact recommendation speculatively.
8. Write Output
Only after the user has validated the findings, write the output files.
9. Downstream Impact Check
After writing, check for downstream research documents that may be affected by what was just decided. Only check documents that exist on disk.
Downstream documents to check (use {app}/ prefix when app scope is active):
research/gtm.md
research/monetization.md
For each existing downstream document:
- Read it — focus on
> Based on: header, ## Summary, and sections that reference concepts this skill just defined or changed
- Identify specific conflicts: claims, assumptions, or references that contradict what was just decided. Examples:
- Competitor positioning or market gaps that GTM strategy was built on that have changed
- Pricing benchmarks referenced in monetization that no longer match the competitive landscape
- Channel strategy assumptions based on competitor behavior that has shifted
- Note each conflict: downstream file, section, the stale claim (quote it), and what it should now say
Classify the impact:
- None: No downstream documents exist, or no conflicts found. Skip display entirely.
- Minor (1–2 small conflicts): Display conflicts to user inline.
- Major (3+ conflicts OR a foundational assumption changed — e.g., market positioning shifted, new dominant competitor identified, pricing landscape changed significantly): Display conflicts and strongly recommend
/reconcile-research.
Display to the user after showing the written file confirmation. This should be quick — one read per downstream doc, scan for conflicts against key decisions. Not a deep reconciliation.
Output
research/competitive-analysis.md (or research/{app}/competitive-analysis.md)
# Competitive Analysis
> Product: [product name and one-line description]
> Category: [market category]
> Date: [current date]
> Sources: [number of competitors analysed]
## Summary
[3-5 sentences: competitive landscape overview, our positioning, and the biggest opportunity]
## Competitive Landscape
### Direct Competitors
For each:
- **[Competitor Name]** — [one-line description]
- Stage: [pre-launch / early / growth / mature / declining]
- Founded: [year] | Funding: [amount or "bootstrapped"] | Team: [size estimate]
- Pricing: [model and range]
- GTM: [primary strategy]
- Strengths: [2-3 bullets]
- Weaknesses: [2-3 bullets]
- Key takeaway: [what we can learn]
### Indirect Competitors
[Same format]
### Incumbents & DIY Alternatives
[Same format, briefer]
### Emerging Players
[Same format, briefer]
## Go-to-Market Strategy Analysis
- **What works in this market**: [patterns from successful competitors]
- **What doesn't work**: [patterns from struggling competitors]
- **Dominant acquisition model**: [PLG / sales-led / community-led / etc.]
- **Pricing expectations**: [what the market is used to paying]
- **Key channels**: [where competitors acquire users]
## Gap Assessment (concept-validation mode only)
### Market State
[Virgin / Sparse / Crowded — with evidence]
### Incumbent Quality
[Dominant-and-loved / Dominant-but-resented / Fragmented-and-mediocre / Emerging-and-unproven — with evidence]
### Gap Quality
[Clear unmet need / Underserved segment / UX/approach gap / Minor improvement / No meaningful gap — with evidence]
### Verdict
[Proceed to ICP / Pivot concept / Abandon — with reasoning]
## Market Gaps
- **[Gap title]** — [Description of the unmet need, who it affects, and why it exists]
- ...
## Competitive Positioning
### Where We Fit
[Current positioning relative to competitors on key dimensions]
### Recommended Positioning
[Suggested positioning based on gaps and strengths, with reasoning]
### Lessons from Competitors
- **Do this** (learned from [competitor]): [what they did well that we should emulate]
- **Avoid this** (learned from [competitor]): [what they did poorly that we should avoid]
- ...
<!-- Include this section only when downstream impact is Minor or Major. Omit entirely for None. -->
## Downstream Impact
> Checked: [list of downstream docs checked]
> Impact: Minor | Major
### Conflicts Found
1. **research/[file].md** — [Section Name]
- **Stale**: "[exact quote from downstream doc]"
- **Now**: [what this skill's output says instead]
[For Major only:]
> **Recommended action**: Run `/reconcile-research` to audit and fix all affected downstream documents.
## Next Steps
Pick one:
- [conditional items from step 7 — only include items whose conditions are met]
research/competitive-analysis-search-log.md (or research/{app}/competitive-analysis-search-log.md)
Raw research log — every search query, key findings with source attribution, and the reasoning behind categorisation and positioning recommendations.
Create the research/ (or research/{app}/) directory if it doesn't exist.
Task Classification
When this skill produces follow-up work, file it by execution semantics:
- Immediately actionable implementation or documentation work goes in
tasks/todo.md.
- Human-only external actions tied to automated steps go in
tasks/manual-todo.md with _(blocks: Step N.X)_ or _(after: Step N.X)_; repo edits, SDK wiring, generated assets, local commands, tests, audits, and authenticated CLI/API work stay in tasks/todo.md.
- One-time condition-gated records, baselines, or future measurements go in
tasks/record-todo.md with source, condition, non-blocking reason, evidence, and promotion rule.
- Cadence-based reviews, playtests, adoption checks, investor updates, retros, or docs-health checks go in
tasks/recurring-todo.md with cadence, owner/agent, next due, evidence path, and escalation conditions.
- Do not put non-blocking records or recurring obligations in
tasks/todo.md unless they have been explicitly promoted into current execution work.
Constraints
- Use web search extensively. This skill's value comes from real, current market data — not assumptions or hallucinated competitor names. Every competitor cited must come from a web search result.
- Cite sources. When stating facts about competitors (funding, features, pricing), note where the information came from.
- Be honest about uncertainty. If information couldn't be verified, say so. Don't fabricate metrics.
- Stay in analysis mode. Do not propose product changes, architecture, or features — that's for
/spec-interview and /mvp-gap.
- Focus on actionable insights. Raw competitor lists are easy; the value is in the synthesis — gaps, patterns, positioning angles.
- Do not overwrite existing
research/competitive-analysis.md (or research/{app}/competitive-analysis.md) without asking the user first.
- Keep research current. Prefer recent sources (last 12 months). Flag any information that may be outdated.
- Search breadth over depth initially. Cast a wide net to find all competitors before going deep on each one. It's better to identify 15 competitors and research 8 deeply than to miss half the landscape.
- Present before writing. Never write output files until findings have been presented to the user and validated through the checkpoint questions. The user must see and approve the analysis before anything is written to disk.
Alignment Page
When this skill produces durable deliverables (research, specs, plans, reports, prototypes, or any document output), build a full-depth HTML alignment page at alignment/v0.0-{topic}.html. Use a normalized topic slug derived from the app, feature, research subject, report subject, or output filename.
Full content requirement. The alignment page must contain the complete content of every proposed markdown deliverable -- every section, every finding, every detail, every list item. It is a thorough interactive review document, not a summary. Render the full deliverable content in clean, readable HTML with appropriate hierarchy, styling, and navigation. If the skill writes multiple scoped deliverables in one run, build one alignment page that contains all deliverables with anchor-linked navigation. Durable tracker artifacts, such as research/assumption-tracker.md, remain canonical markdown outputs but must also be fully rendered into the alignment page before approval.
Dark-mode styling. Use a dark color scheme by default. Base CSS variables: --bg: #0d1117; --surface: #161b22; --border: #30363d; --text: #c9d1d9; --text-muted: #8b949e; --accent: #58a6ff; --green: #3fb950; --red: #f85149; --orange: #d29922; --purple: #bc8cff;. Apply background: var(--bg); color: var(--text); on body. Use --surface for cards, nav, and table headers. Use --border for all borders. Use --purple for question blocks and gate headings. Use --accent for links and section headings. Keep headings color: #fff or var(--accent) for hierarchy. Question block backgrounds should use #1c2333.
Alignment gates. Treat gates as explicit review sections inside the HTML page. A gate blocks finalization until its required inline questions are answered and compiled into YAML. Include every gate that applies to the skill output, and include these gate types whenever relevant: evidence coverage, assumptions/confidence, scope/non-goals, candidate/verdict decisions, artifact destination, proposed file changes, coverage checkpoint, and post-approval route.
Report-only research gates. For report-only or pre-approval research skills, the alignment page must explicitly contain evidence coverage, assumptions/confidence, recommended path, proposed file changes, and approval gates before any canonical research, spec, or task file is created or updated.
Required inline questions. Each gate must contain at least one required inline question placed directly under the content it governs, inside a visually distinct question block. Each question must use radio-button inputs and include two standing options after the skill-generated choices: "Other / None of the above" backed by a multi-line text box for free-form input, and "Need clarification" backed by an optional notes box where the user can explain what is unclear. When any radio option other than "Other" or "Need clarification" is selected, show an optional "Additional notes" text box beneath it so the user can qualify their choice. Generate questions based on what genuinely needs user input -- do not add filler questions. Do not create a separate bottom "Decisions & Clarifications" section.
Gate YAML contract. At the bottom of the page, include a "Compile Answers" button that aggregates answers from all inline gate questions throughout the page, including free-text notes. The button remains disabled until every required question has a selection, shows a count of remaining unanswered questions, and scrolls to the first unanswered question if clicked early. When every question is answered, generate a structured YAML block with one item per gate answer using this stable shape: section, gate_type, status (answered, other, or needs-clarification), answer, optional notes, and optional target_artifact or target_path when the gate controls file output. Display the YAML in a read-only, click-to-copy textarea.
Pre-approval stop. Before user approval, the next action is review of the HTML alignment page, not downstream routing. Ask the user to review the page and provide the compiled YAML answers. Do not include Recommended next skill, Recommended next command, or downstream routing language until after compiled YAML has been provided and the approved artifacts have been written or updated.
Diff highlighting on updates. When the agent updates an existing alignment page after receiving compiled answers, highlight what changed since the previous version. The agent chooses inline annotation or side-by-side layout per situation.
Archiving. Before replacing an existing alignment page, archive it to docs/history/archive/YYYY-MM-DD/HHMMSS/alignment/v0.0-{topic}.html.
Browser open. Attempt to open the resulting HTML page in the browser and report whether the open succeeded or was blocked. A blocked browser-open attempt does not make the skill fail when the files were written correctly.
Archive-First Replacement Policy
- Before replacing or substantively rewriting an existing canonical research/spec document (
research/**/*.md, specs/**/*.md, or docs/specifications/**/*.md), copy the current file to docs/history/archive/YYYY-MM-DD/HHMMSS/<original-relative-path>.
- Preserve the archived snapshot exactly as it existed before the change; do not edit the archived copy after creating it.
- After the archive snapshot exists, write the updated document to the original canonical path.
- Report both the archive path and the updated canonical path in the final output.
- New files do not need archive snapshots. Append-only updates do not need archive snapshots unless an existing section is regenerated or rewritten.
- Keep any existing user approval requirement before overwriting or replacing a document; archiving does not replace asking when the skill already requires approval.
Default Shipping Contract
- Default next-step routing: when reporting completion, include either
Recommended next skill: <command> or the two-line pair **Next work:** <specific task or "none"> and **Recommended next command:** <one command or route> so the next operator has a concrete handoff.
- If this skill creates or modifies tracked repository files, finish by committing and pushing all intended changes to the repository primary branch (
main when present, otherwise master) before stopping, even if the user did not explicitly ask for commit/push.
- Do not leave tracked changes or unpushed commits behind. If unrelated tracked work is already present, either include it in sensible commits too or stop and explain the blocker.
- This contract does not override stricter safety rules about secrets, destructive history changes, release publication/tag confirmation, or production deploy confirmation.
1---
2name: competitive-analysis-12
3description: Research competitors via web search — map the landscape, GTM strategies, strengths, weaknesses, and market gaps
4type: research
5version: v0.0
6argument-hint: "[concept | optional: product category or specific competitors to investigate]"
7metadata:
8 source: https://skillmd.com/skills/georgeqle/competitive-analysis-12
9---
10
11## Pack Availability Guard
12
13Before telling the user to run a skill from another project-local pack, check `.agents/project.json.enabled_packs`. If the target pack is not enabled, recommend `/pack install <pack>` instead of the target skill. Global skills are always valid. Skills from this same pack are valid because the current skill is already running from that pack.
14
15# Competitive Analysis — Market Landscape Research
16
17## Report-First Approval Gate
18
19Default to report-only: present findings, evidence coverage, assumptions, recommended artifact path, and proposed file changes in a pre-approval alignment page plus a concise conversation summary for user approval before creating or updating canonical research, spec, or task files.
20
21Do not write or overwrite synthesized deliverables until the user explicitly approves, unless the user invoked an explicit write/update/fix mode or clearly asked to write files upfront. Raw evidence capture may be persisted before analysis when reproducibility requires it; report those raw paths separately and still gate synthesized research/report writes.
22
23When stopping for approval, build and attempt to open the alignment preview page first, then ask the user to review it and approve, question, or request adjustments. Do not include `Recommended next skill`, `Recommended next command`, or downstream routing language. The approval request itself is the next action. Only emit next-skill routing after the approved artifact has been written or updated.
24
25Conduct deep web-based research to compile a comprehensive competitive landscape for the project. Uses web search to identify competitors, evaluate their maturity, analyse their go-to-market strategies, and surface market gaps. The output gives the founder a clear picture of who they're up against and where opportunities exist.
26
27## Prerequisites
28
29**Detect mode before proceeding:**
30
31- **Concept-validation mode** activates when: no `research/icp.md` exists AND (no meaningful codebase — i.e. no README, no source files, no package config — OR `$ARGUMENTS` contains "concept" or "validate"). Use this mode to validate market gaps after a concept has been shaped by `/idea-scope-brief` or an equivalent brief; if no concept is clear, recommend `/idea-scope-brief` first. In this mode, announce to the user: "Running in concept-validation mode — no ICP or product detected. I'll evaluate the market gap for your concept." Then ask the user to describe the concept, the problem it addresses, and the intended audience.
32- **Standard mode** (default): Read the codebase, README, CLAUDE.md, and existing research/specs (`research/icp.md` or `research/{app}/icp.md`, `research/enterprise-icp.md` or `research/{app}/enterprise-icp.md`, `research/mvp-gap.md` or `research/{app}/mvp-gap.md`) to understand what the product does, who it's for, and what value it claims to provide. This context is essential for identifying the right competitors and evaluating positioning. If no codebase or specs exist but `research/icp.md` is present, proceed in standard mode using the ICP as context.
33
34## Process
35
36### 0. App Scope Resolution (Monorepo Support)
37
38Before checking prerequisites, determine the app scope:
39
401. If `$ARGUMENTS` specifies an app name matching a subdirectory of `research/`, use it.
412. If `research/` contains subdirectories (excluding files), list them and ask the user which app to target. If only one subdirectory exists, use it automatically.
423. If no subdirectories exist, proceed with flat structure (single-product mode).
43
44When app scope `{app}` is active:
45- Read/write research from `research/{app}/` instead of `research/`
46- Read/write specs from `specs/{app}/` instead of `specs/`
47- Also read `research/icp.md` (cross-app overview) for broader context
48
49### 1. Establish Product Context
50
51**Standard mode:**
52- Read CLAUDE.md, README, package config, and key source files to understand the product
53- Read `research/icp.md` (or `research/{app}/icp.md`) if it exists — the customer profile, pain map, and value prop define the competitive frame
54- Read `research/enterprise-icp.md` (or `research/{app}/enterprise-icp.md`) and `research/mvp-gap.md` (or `research/{app}/mvp-gap.md`) if they exist for additional context
55- If `$ARGUMENTS` names specific competitors, use those as a starting point but still search broadly
56- Summarise what the product does, who it's for, and what problem it solves. Confirm this understanding with the user before researching.
57
58**Concept-validation mode:**
59- Use `research/concept-brief.md` when present, otherwise use the concept description from Prerequisites to establish the problem space
60- Summarise what the concept proposes (problem it addresses, intended audience, hypothesised approach)
61- Confirm this understanding with the user before researching
62
63### 2. Identify Competitors
64
65Use the WebSearch tool extensively to find competitors. Search across multiple angles:
66
67- **Direct competitors**: Products solving the same problem for the same audience
68- **Indirect competitors**: Products solving an adjacent problem that could expand into this space
69- **Incumbents**: Established tools or platforms the target audience currently uses (even if not purpose-built for this problem)
70- **Emerging players**: New startups or open-source projects in the space
71- **DIY alternatives**: Internal tools, spreadsheets, manual processes, or "do nothing" approaches
72
73Search strategies:
74- `"[product category] software"`, `"[product category] tools"`, `"[product category] alternatives"`
75- `"best [product category] for [target audience]"`, `"[product category] comparison"`
76- `"[competitor name] alternatives"` for each known competitor to find more
77- `"[competitor name] vs"` to discover comparison articles and adjacent players
78- Check Product Hunt, G2, Capterra, and industry-specific directories
79- Search for recent funding rounds in the space: `"[product category] startup funding"`
80- Look for open-source alternatives on GitHub
81
82**Checkpoint 1 — Present the competitor list to the user.** Use the AskUserQuestion tool to show all identified competitors grouped by category (direct, indirect, incumbent, emerging, DIY). For each competitor, include a one-line description of what they do and why they belong in that category, citing the search source. Then ask:
83- "Are there competitors I missed?"
84- "Any of these incorrectly categorised or not actually relevant?"
85
86Incorporate feedback before proceeding to deep research.
87
88### 3. Research Each Competitor
89
90For each identified competitor, use WebSearch and WebFetch to gather:
91
92#### Company & Product
93- What exactly they do — core product, features, positioning
94- Founding year, team size, funding raised, revenue signals
95- Technology stack and platform (web, mobile, desktop, API, CLI)
96- Pricing model and tiers (free, freemium, paid-only, enterprise)
97
98#### Maturity & Traction
99- Current stage: pre-launch, early, growth, mature, declining
100- User base size signals (published metrics, app store downloads, community size)
101- Customer logos and case studies
102- Recent product launches or major updates
103- Integration ecosystem breadth
104
105#### Go-to-Market Strategy
106- Primary acquisition channel: PLG, sales-led, community-led, content-led, partnerships
107- Pricing strategy: freemium, free trial, demo-required, open-core, usage-based
108- Content marketing approach: blog, docs, educational content, SEO strategy
109- Community presence: Discord, Slack, forums, open-source community
110- Social proof strategy: case studies, testimonials, review sites, certifications
111- Partnership and integration strategy
112- Target market segment: SMB, mid-market, enterprise, developer, consumer
113
114#### Strengths
115- What do users praise? (Check review sites, social media, community forums)
116- What features or capabilities set them apart?
117- What's their moat? (Network effects, data, integrations, brand, switching costs)
118
119#### Weaknesses
120- What do users complain about? (Check negative reviews, support forums, social media)
121- What's missing from their product?
122- Where do they lose deals? (Check comparison articles, competitor marketing)
123- What's their biggest vulnerability?
124
125### 4. Identify Market Gaps
126
127Synthesise the research to find:
128
129- **Underserved segments**: Customer types or use cases that no competitor serves well
130- **Feature gaps**: Capabilities that users want but no competitor provides
131- **Pricing gaps**: Market segments priced out by existing solutions or overpaying for features they don't need
132- **UX gaps**: Areas where all competitors have poor user experience
133- **Integration gaps**: Missing connections to tools the target audience already uses
134- **Geographic or vertical gaps**: Markets or industries that competitors haven't entered
135- **Technology gaps**: Emerging tech (AI, automation, APIs) that competitors haven't leveraged
136
137### 4a. Gap Assessment (concept-validation mode only)
138
139If running in concept-validation mode, synthesise the market gaps into a structured gap assessment:
140
141- **Market State**: Virgin (no one does this) / Sparse (few players, early) / Crowded (many established players)
142- **Incumbent Quality**: Dominant-and-loved / Dominant-but-resented (the Jira pattern — widely used, widely disliked) / Fragmented-and-mediocre / Emerging-and-unproven
143- **Gap Quality**: Clear unmet need / Underserved segment / UX/approach gap / Minor improvement / No meaningful gap
144- **Verdict**: Proceed to ICP (gap validated) / Pivot concept (gap exists but concept doesn't address it well) / Abandon (no meaningful gap)
145
146**Checkpoint — Present gap assessment to user.** Use the AskUserQuestion tool to present the Market State, Incumbent Quality, Gap Quality, and Verdict with supporting evidence from the research. Ask: "Does this assessment match your read of the market? Should we adjust the verdict?" Incorporate feedback before continuing.
147
148### 5. Analyse Positioning Opportunities
149
150Based on all research:
151
152**Standard mode:**
153- Where does our product fit in the competitive landscape?
154- What positioning would differentiate us most effectively?
155- What can we learn from competitors' successes and failures?
156- What GTM strategy best fits our product and the market dynamics?
157- What are the 2-3 most compelling angles we could own?
158
159**Concept-validation mode:**
160- If you built this, where would it fit in the competitive landscape?
161- What positioning would differentiate the concept most effectively?
162- What can you learn from competitors' successes and failures?
163- What GTM strategy would best fit the concept and the market dynamics?
164- What are the 2-3 most compelling angles you could own?
165
166### 6. Present Findings & Validate
167
168**Checkpoint 2 — Present the full analysis to the user before writing.** Use the AskUserQuestion tool to present:
169
1701. **Landscape summary** — the competitive picture in 3-5 sentences
1712. **Key competitors** — top 3-5 with their strengths, weaknesses, and key takeaway
1723. **Market gaps** — the most significant unmet needs
1734. **Recommended positioning** — where we should play and why
1745. **GTM insights** — what works in this market
175
176Then ask:
177- "Do the market gaps match your intuition?"
178- "Which positioning angles resonate most?"
179- "Any insider knowledge that changes the analysis?"
180
181Continue the conversation until all non-trivial details are nailed down. If the user raises points that require additional research, go back and search before finalising.
182
183### 7. Populate Next Steps
184
185Before writing, check which files exist to populate the `## Next Steps` section contextually. Include 3–5 applicable items with "Pick one:" framing:
186
187**Concept-validation mode:**
188- IF verdict is **Proceed to ICP**: recommend `/icp` — Define your ideal customer profile now that the market gap is validated
189- IF verdict is **Pivot concept**: recommend `/brainstorm` — Generate alternative concepts that better address the gap before ICP work
190- IF verdict is **Abandon**: recommend `No follow-up skill recommended` — Stop this concept because the analysis did not find a meaningful gap worth pursuing; include `/brainstorm` only if the user wants to explore a new concept
191- IF verdict is **Proceed to ICP** and `/icp` creates `research/icp.md`: include `/competitive-analysis` as a later option to re-run in standard mode for full competitive positioning
192
193**Impact-aware adjustments:**
194- IF downstream impact is **Major**: prepend `/reconcile-research — [N] conflicts found in downstream docs` as the first item
195- IF downstream impact is **Minor**: annotate relevant skill suggestions with "(stale — [brief description])"
196- If downstream impact has not been classified yet, run the downstream impact check against the proposed output before selecting the final recommendation. Do not emit a Minor/Major impact recommendation speculatively.
197
198**Standard mode:**
199- RECOMMEND the first matching item:
200 1. IF no `research/journey-map.md`: `/journey-map` — Map the customer and user journey before solution-value decisions, using competitive gaps as inspiration
201 2. IF no `research/value-prop.md`: `/value-prop-canvas` — Validate solution-customer fit using journey-placed competitive gaps to sharpen the value map
202 3. IF no `specs/` directory or it's empty: `/spec-interview [top journey-backed market gap or positioning opportunity]` — Spec features that exploit the most important market gap after journey context exists
203 4. IF no `research/gtm.md`: `/gtm` — Build a GTM plan using the channel and positioning insights
204 5. IF codebase exists and no `research/mvp-gap.md`: `/mvp-gap` — Evaluate codebase against ICP and competitive landscape
205- Include `/brainstorm` only as an "Other option" when the analysis found multiple plausible market gaps and the product direction is still unclear. Do not recommend brainstorm just because competitive whitespace exists.
206
207Any `/spec-interview` recommendation must include a concrete target from the analysis, not a bare command. Use the top market gap, riskiest competitive assumption, or strongest positioning opportunity as the bracketed topic.
208
209**Impact-aware adjustments:**
210- IF downstream impact is **Major**: prepend `/reconcile-research — [N] conflicts found in downstream docs` as the first item
211- IF downstream impact is **Minor**: annotate relevant skill suggestions with "(stale — [brief description])"
212- If downstream impact has not been classified yet, run the downstream impact check against the proposed output before selecting the final recommendation. Do not emit a Minor/Major impact recommendation speculatively.
213
214### 8. Write Output
215
216Only after the user has validated the findings, write the output files.
217
218### 9. Downstream Impact Check
219
220After writing, check for downstream research documents that may be affected by what was just decided. Only check documents that exist on disk.
221
222**Downstream documents to check** (use `{app}/` prefix when app scope is active):
223- `research/gtm.md`
224- `research/monetization.md`
225
226For each existing downstream document:
2271. Read it — focus on `> Based on:` header, `## Summary`, and sections that reference concepts this skill just defined or changed
2282. Identify **specific conflicts**: claims, assumptions, or references that contradict what was just decided. Examples:
229 - Competitor positioning or market gaps that GTM strategy was built on that have changed
230 - Pricing benchmarks referenced in monetization that no longer match the competitive landscape
231 - Channel strategy assumptions based on competitor behavior that has shifted
2323. Note each conflict: downstream file, section, the stale claim (quote it), and what it should now say
233
234**Classify the impact**:
235- **None**: No downstream documents exist, or no conflicts found. Skip display entirely.
236- **Minor** (1–2 small conflicts): Display conflicts to user inline.
237- **Major** (3+ conflicts OR a foundational assumption changed — e.g., market positioning shifted, new dominant competitor identified, pricing landscape changed significantly): Display conflicts and strongly recommend `/reconcile-research`.
238
239Display to the user after showing the written file confirmation. This should be quick — one read per downstream doc, scan for conflicts against key decisions. Not a deep reconciliation.
240
241## Output
242
243### `research/competitive-analysis.md` (or `research/{app}/competitive-analysis.md`)
244
245```markdown
246# Competitive Analysis
247
248> Product: [product name and one-line description]
249> Category: [market category]
250> Date: [current date]
251> Sources: [number of competitors analysed]
252
253## Summary
254[3-5 sentences: competitive landscape overview, our positioning, and the biggest opportunity]
255
256## Competitive Landscape
257
258### Direct Competitors
259For each:
260- **[Competitor Name]** — [one-line description]
261 - Stage: [pre-launch / early / growth / mature / declining]
262 - Founded: [year] | Funding: [amount or "bootstrapped"] | Team: [size estimate]
263 - Pricing: [model and range]
264 - GTM: [primary strategy]
265 - Strengths: [2-3 bullets]
266 - Weaknesses: [2-3 bullets]
267 - Key takeaway: [what we can learn]
268
269### Indirect Competitors
270[Same format]
271
272### Incumbents & DIY Alternatives
273[Same format, briefer]
274
275### Emerging Players
276[Same format, briefer]
277
278## Go-to-Market Strategy Analysis
279- **What works in this market**: [patterns from successful competitors]
280- **What doesn't work**: [patterns from struggling competitors]
281- **Dominant acquisition model**: [PLG / sales-led / community-led / etc.]
282- **Pricing expectations**: [what the market is used to paying]
283- **Key channels**: [where competitors acquire users]
284
285## Gap Assessment (concept-validation mode only)
286
287### Market State
288[Virgin / Sparse / Crowded — with evidence]
289
290### Incumbent Quality
291[Dominant-and-loved / Dominant-but-resented / Fragmented-and-mediocre / Emerging-and-unproven — with evidence]
292
293### Gap Quality
294[Clear unmet need / Underserved segment / UX/approach gap / Minor improvement / No meaningful gap — with evidence]
295
296### Verdict
297[Proceed to ICP / Pivot concept / Abandon — with reasoning]
298
299## Market Gaps
300- **[Gap title]** — [Description of the unmet need, who it affects, and why it exists]
301- ...
302
303## Competitive Positioning
304
305### Where We Fit
306[Current positioning relative to competitors on key dimensions]
307
308### Recommended Positioning
309[Suggested positioning based on gaps and strengths, with reasoning]
310
311### Lessons from Competitors
312- **Do this** (learned from [competitor]): [what they did well that we should emulate]
313- **Avoid this** (learned from [competitor]): [what they did poorly that we should avoid]
314- ...
315
316<!-- Include this section only when downstream impact is Minor or Major. Omit entirely for None. -->
317## Downstream Impact
318
319> Checked: [list of downstream docs checked]
320> Impact: Minor | Major
321
322### Conflicts Found
323
3241. **research/[file].md** — [Section Name]
325 - **Stale**: "[exact quote from downstream doc]"
326 - **Now**: [what this skill's output says instead]
327
328[For Major only:]
329> **Recommended action**: Run `/reconcile-research` to audit and fix all affected downstream documents.
330
331## Next Steps
332
333Pick one:
334- [conditional items from step 7 — only include items whose conditions are met]
335```
336
337### `research/competitive-analysis-search-log.md` (or `research/{app}/competitive-analysis-search-log.md`)
338Raw research log — every search query, key findings with source attribution, and the reasoning behind categorisation and positioning recommendations.
339
340Create the `research/` (or `research/{app}/`) directory if it doesn't exist.
341
342## Task Classification
343
344When this skill produces follow-up work, file it by execution semantics:
345
346- Immediately actionable implementation or documentation work goes in `tasks/todo.md`.
347- Human-only external actions tied to automated steps go in `tasks/manual-todo.md` with `_(blocks: Step N.X)_` or `_(after: Step N.X)_`; repo edits, SDK wiring, generated assets, local commands, tests, audits, and authenticated CLI/API work stay in `tasks/todo.md`.
348- One-time condition-gated records, baselines, or future measurements go in `tasks/record-todo.md` with source, condition, non-blocking reason, evidence, and promotion rule.
349- Cadence-based reviews, playtests, adoption checks, investor updates, retros, or docs-health checks go in `tasks/recurring-todo.md` with cadence, owner/agent, next due, evidence path, and escalation conditions.
350- Do not put non-blocking records or recurring obligations in `tasks/todo.md` unless they have been explicitly promoted into current execution work.
351
352## Constraints
353
354- **Use web search extensively.** This skill's value comes from real, current market data — not assumptions or hallucinated competitor names. Every competitor cited must come from a web search result.
355- **Cite sources.** When stating facts about competitors (funding, features, pricing), note where the information came from.
356- **Be honest about uncertainty.** If information couldn't be verified, say so. Don't fabricate metrics.
357- **Stay in analysis mode.** Do not propose product changes, architecture, or features — that's for `/spec-interview` and `/mvp-gap`.
358- **Focus on actionable insights.** Raw competitor lists are easy; the value is in the synthesis — gaps, patterns, positioning angles.
359- **Do not overwrite existing `research/competitive-analysis.md`** (or `research/{app}/competitive-analysis.md`) without asking the user first.
360- **Keep research current.** Prefer recent sources (last 12 months). Flag any information that may be outdated.
361- **Search breadth over depth initially.** Cast a wide net to find all competitors before going deep on each one. It's better to identify 15 competitors and research 8 deeply than to miss half the landscape.
362- **Present before writing.** Never write output files until findings have been presented to the user and validated through the checkpoint questions. The user must see and approve the analysis before anything is written to disk.
363
364## Alignment Page
365
366When this skill produces durable deliverables (research, specs, plans, reports, prototypes, or any document output), build a full-depth HTML alignment page at `alignment/v0.0-{topic}.html`. Use a normalized topic slug derived from the app, feature, research subject, report subject, or output filename.
367
368**Full content requirement.** The alignment page must contain the complete content of every proposed markdown deliverable -- every section, every finding, every detail, every list item. It is a thorough interactive review document, not a summary. Render the full deliverable content in clean, readable HTML with appropriate hierarchy, styling, and navigation. If the skill writes multiple scoped deliverables in one run, build one alignment page that contains all deliverables with anchor-linked navigation. Durable tracker artifacts, such as `research/assumption-tracker.md`, remain canonical markdown outputs but must also be fully rendered into the alignment page before approval.
369
370**Dark-mode styling.** Use a dark color scheme by default. Base CSS variables: `--bg: #0d1117; --surface: #161b22; --border: #30363d; --text: #c9d1d9; --text-muted: #8b949e; --accent: #58a6ff; --green: #3fb950; --red: #f85149; --orange: #d29922; --purple: #bc8cff;`. Apply `background: var(--bg); color: var(--text);` on body. Use `--surface` for cards, nav, and table headers. Use `--border` for all borders. Use `--purple` for question blocks and gate headings. Use `--accent` for links and section headings. Keep headings `color: #fff` or `var(--accent)` for hierarchy. Question block backgrounds should use `#1c2333`.
371
372**Alignment gates.** Treat gates as explicit review sections inside the HTML page. A gate blocks finalization until its required inline questions are answered and compiled into YAML. Include every gate that applies to the skill output, and include these gate types whenever relevant: evidence coverage, assumptions/confidence, scope/non-goals, candidate/verdict decisions, artifact destination, proposed file changes, coverage checkpoint, and post-approval route.
373
374**Report-only research gates.** For report-only or pre-approval research skills, the alignment page must explicitly contain evidence coverage, assumptions/confidence, recommended path, proposed file changes, and approval gates before any canonical research, spec, or task file is created or updated.
375
376
377**Required inline questions.** Each gate must contain at least one required inline question placed directly under the content it governs, inside a visually distinct question block. Each question must use radio-button inputs and include two standing options after the skill-generated choices: "Other / None of the above" backed by a multi-line text box for free-form input, and "Need clarification" backed by an optional notes box where the user can explain what is unclear. When any radio option other than "Other" or "Need clarification" is selected, show an optional "Additional notes" text box beneath it so the user can qualify their choice. Generate questions based on what genuinely needs user input -- do not add filler questions. Do not create a separate bottom "Decisions & Clarifications" section.
378
379**Gate YAML contract.** At the bottom of the page, include a "Compile Answers" button that aggregates answers from all inline gate questions throughout the page, including free-text notes. The button remains disabled until every required question has a selection, shows a count of remaining unanswered questions, and scrolls to the first unanswered question if clicked early. When every question is answered, generate a structured YAML block with one item per gate answer using this stable shape: `section`, `gate_type`, `status` (`answered`, `other`, or `needs-clarification`), `answer`, optional `notes`, and optional `target_artifact` or `target_path` when the gate controls file output. Display the YAML in a read-only, click-to-copy textarea.
380
381**Pre-approval stop.** Before user approval, the next action is review of the HTML alignment page, not downstream routing. Ask the user to review the page and provide the compiled YAML answers. Do not include `Recommended next skill`, `Recommended next command`, or downstream routing language until after compiled YAML has been provided and the approved artifacts have been written or updated.
382
383**Diff highlighting on updates.** When the agent updates an existing alignment page after receiving compiled answers, highlight what changed since the previous version. The agent chooses inline annotation or side-by-side layout per situation.
384
385**Archiving.** Before replacing an existing alignment page, archive it to `docs/history/archive/YYYY-MM-DD/HHMMSS/alignment/v0.0-{topic}.html`.
386
387**Browser open.** Attempt to open the resulting HTML page in the browser and report whether the open succeeded or was blocked. A blocked browser-open attempt does not make the skill fail when the files were written correctly.
388
389## Archive-First Replacement Policy
390
391- Before replacing or substantively rewriting an existing canonical research/spec document (`research/**/*.md`, `specs/**/*.md`, or `docs/specifications/**/*.md`), copy the current file to `docs/history/archive/YYYY-MM-DD/HHMMSS/<original-relative-path>`.
392- Preserve the archived snapshot exactly as it existed before the change; do not edit the archived copy after creating it.
393- After the archive snapshot exists, write the updated document to the original canonical path.
394- Report both the archive path and the updated canonical path in the final output.
395- New files do not need archive snapshots. Append-only updates do not need archive snapshots unless an existing section is regenerated or rewritten.
396- Keep any existing user approval requirement before overwriting or replacing a document; archiving does not replace asking when the skill already requires approval.
397
398## Default Shipping Contract
399
400- **Default next-step routing:** when reporting completion, include either `Recommended next skill: <command>` or the two-line pair `**Next work:** <specific task or "none">` and `**Recommended next command:** <one command or route>` so the next operator has a concrete handoff.
401- If this skill creates or modifies tracked repository files, finish by committing and pushing all intended changes to the repository primary branch (`main` when present, otherwise `master`) before stopping, even if the user did not explicitly ask for commit/push.
402- Do not leave tracked changes or unpushed commits behind. If unrelated tracked work is already present, either include it in sensible commits too or stop and explain the blocker.
403- This contract does not override stricter safety rules about secrets, destructive history changes, release publication/tag confirmation, or production deploy confirmation.