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-123description: Research competitors via web search — map the landscape, GTM strategies, strengths, weaknesses, and market gaps4---5
6## Pack Availability Guard
7
8Before 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.
9
10# Competitive Analysis — Market Landscape Research
11
12## Report-First Approval Gate
13
14Default 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.
15
16Do 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.
17
18When 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.
19
20Conduct 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.
21
22## Prerequisites
23
24**Detect mode before proceeding:**
25
26- **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.
27- **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.
28
29## Process
30
31### 0. App Scope Resolution (Monorepo Support)
32
33Before checking prerequisites, determine the app scope:
34
351. If `$ARGUMENTS` specifies an app name matching a subdirectory of `research/`, use it.
362. If `research/` contains subdirectories (excluding files), list them and ask the user which app to target. If only one subdirectory exists, use it automatically.
373. If no subdirectories exist, proceed with flat structure (single-product mode).
38
39When app scope `{app}` is active:
40- Read/write research from `research/{app}/` instead of `research/`
41- Read/write specs from `specs/{app}/` instead of `specs/`
42- Also read `research/icp.md` (cross-app overview) for broader context
43
44### 1. Establish Product Context
45
46**Standard mode:**
47- Read CLAUDE.md, README, package config, and key source files to understand the product
48- Read `research/icp.md` (or `research/{app}/icp.md`) if it exists — the customer profile, pain map, and value prop define the competitive frame
49- 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
50- If `$ARGUMENTS` names specific competitors, use those as a starting point but still search broadly
51- Summarise what the product does, who it's for, and what problem it solves. Confirm this understanding with the user before researching.
52
53**Concept-validation mode:**
54- Use `research/concept-brief.md` when present, otherwise use the concept description from Prerequisites to establish the problem space
55- Summarise what the concept proposes (problem it addresses, intended audience, hypothesised approach)
56- Confirm this understanding with the user before researching
57
58### 2. Identify Competitors
59
60Use the WebSearch tool extensively to find competitors. Search across multiple angles:
61
62- **Direct competitors**: Products solving the same problem for the same audience
63- **Indirect competitors**: Products solving an adjacent problem that could expand into this space
64- **Incumbents**: Established tools or platforms the target audience currently uses (even if not purpose-built for this problem)
65- **Emerging players**: New startups or open-source projects in the space
66- **DIY alternatives**: Internal tools, spreadsheets, manual processes, or "do nothing" approaches
67
68Search strategies:
69- `"[product category] software"`, `"[product category] tools"`, `"[product category] alternatives"`
70- `"best [product category] for [target audience]"`, `"[product category] comparison"`
71- `"[competitor name] alternatives"` for each known competitor to find more
72- `"[competitor name] vs"` to discover comparison articles and adjacent players
73- Check Product Hunt, G2, Capterra, and industry-specific directories
74- Search for recent funding rounds in the space: `"[product category] startup funding"`
75- Look for open-source alternatives on GitHub
76
77**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:
78- "Are there competitors I missed?"
79- "Any of these incorrectly categorised or not actually relevant?"
80
81Incorporate feedback before proceeding to deep research.
82
83### 3. Research Each Competitor
84
85For each identified competitor, use WebSearch and WebFetch to gather:
86
87#### Company & Product
88- What exactly they do — core product, features, positioning
89- Founding year, team size, funding raised, revenue signals
90- Technology stack and platform (web, mobile, desktop, API, CLI)
91- Pricing model and tiers (free, freemium, paid-only, enterprise)
92
93#### Maturity & Traction
94- Current stage: pre-launch, early, growth, mature, declining
95- User base size signals (published metrics, app store downloads, community size)
96- Customer logos and case studies
97- Recent product launches or major updates
98- Integration ecosystem breadth
99
100#### Go-to-Market Strategy
101- Primary acquisition channel: PLG, sales-led, community-led, content-led, partnerships
102- Pricing strategy: freemium, free trial, demo-required, open-core, usage-based
103- Content marketing approach: blog, docs, educational content, SEO strategy
104- Community presence: Discord, Slack, forums, open-source community
105- Social proof strategy: case studies, testimonials, review sites, certifications
106- Partnership and integration strategy
107- Target market segment: SMB, mid-market, enterprise, developer, consumer
108
109#### Strengths
110- What do users praise? (Check review sites, social media, community forums)
111- What features or capabilities set them apart?
112- What's their moat? (Network effects, data, integrations, brand, switching costs)
113
114#### Weaknesses
115- What do users complain about? (Check negative reviews, support forums, social media)
116- What's missing from their product?
117- Where do they lose deals? (Check comparison articles, competitor marketing)
118- What's their biggest vulnerability?
119
120### 4. Identify Market Gaps
121
122Synthesise the research to find:
123
124- **Underserved segments**: Customer types or use cases that no competitor serves well
125- **Feature gaps**: Capabilities that users want but no competitor provides
126- **Pricing gaps**: Market segments priced out by existing solutions or overpaying for features they don't need
127- **UX gaps**: Areas where all competitors have poor user experience
128- **Integration gaps**: Missing connections to tools the target audience already uses
129- **Geographic or vertical gaps**: Markets or industries that competitors haven't entered
130- **Technology gaps**: Emerging tech (AI, automation, APIs) that competitors haven't leveraged
131
132### 4a. Gap Assessment (concept-validation mode only)
133
134If running in concept-validation mode, synthesise the market gaps into a structured gap assessment:
135
136- **Market State**: Virgin (no one does this) / Sparse (few players, early) / Crowded (many established players)
137- **Incumbent Quality**: Dominant-and-loved / Dominant-but-resented (the Jira pattern — widely used, widely disliked) / Fragmented-and-mediocre / Emerging-and-unproven
138- **Gap Quality**: Clear unmet need / Underserved segment / UX/approach gap / Minor improvement / No meaningful gap
139- **Verdict**: Proceed to ICP (gap validated) / Pivot concept (gap exists but concept doesn't address it well) / Abandon (no meaningful gap)
140
141**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.
142
143### 5. Analyse Positioning Opportunities
144
145Based on all research:
146
147**Standard mode:**
148- Where does our product fit in the competitive landscape?
149- What positioning would differentiate us most effectively?
150- What can we learn from competitors' successes and failures?
151- What GTM strategy best fits our product and the market dynamics?
152- What are the 2-3 most compelling angles we could own?
153
154**Concept-validation mode:**
155- If you built this, where would it fit in the competitive landscape?
156- What positioning would differentiate the concept most effectively?
157- What can you learn from competitors' successes and failures?
158- What GTM strategy would best fit the concept and the market dynamics?
159- What are the 2-3 most compelling angles you could own?
160
161### 6. Present Findings & Validate
162
163**Checkpoint 2 — Present the full analysis to the user before writing.** Use the AskUserQuestion tool to present:
164
1651. **Landscape summary** — the competitive picture in 3-5 sentences
1662. **Key competitors** — top 3-5 with their strengths, weaknesses, and key takeaway
1673. **Market gaps** — the most significant unmet needs
1684. **Recommended positioning** — where we should play and why
1695. **GTM insights** — what works in this market
170
171Then ask:
172- "Do the market gaps match your intuition?"
173- "Which positioning angles resonate most?"
174- "Any insider knowledge that changes the analysis?"
175
176Continue 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.
177
178### 7. Populate Next Steps
179
180Before writing, check which files exist to populate the `## Next Steps` section contextually. Include 3–5 applicable items with "Pick one:" framing:
181
182**Concept-validation mode:**
183- IF verdict is **Proceed to ICP**: recommend `/icp` — Define your ideal customer profile now that the market gap is validated
184- IF verdict is **Pivot concept**: recommend `/brainstorm` — Generate alternative concepts that better address the gap before ICP work
185- 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
186- 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
187
188**Impact-aware adjustments:**
189- IF downstream impact is **Major**: prepend `/reconcile-research — [N] conflicts found in downstream docs` as the first item
190- IF downstream impact is **Minor**: annotate relevant skill suggestions with "(stale — [brief description])"
191- 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.
192
193**Standard mode:**
194- RECOMMEND the first matching item:
195 1. IF no `research/journey-map.md`: `/journey-map` — Map the customer and user journey before solution-value decisions, using competitive gaps as inspiration
196 2. IF no `research/value-prop.md`: `/value-prop-canvas` — Validate solution-customer fit using journey-placed competitive gaps to sharpen the value map
197 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
198 4. IF no `research/gtm.md`: `/gtm` — Build a GTM plan using the channel and positioning insights
199 5. IF codebase exists and no `research/mvp-gap.md`: `/mvp-gap` — Evaluate codebase against ICP and competitive landscape
200- 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.
201
202Any `/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.
203
204**Impact-aware adjustments:**
205- IF downstream impact is **Major**: prepend `/reconcile-research — [N] conflicts found in downstream docs` as the first item
206- IF downstream impact is **Minor**: annotate relevant skill suggestions with "(stale — [brief description])"
207- 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.
208
209### 8. Write Output
210
211Only after the user has validated the findings, write the output files.
212
213### 9. Downstream Impact Check
214
215After writing, check for downstream research documents that may be affected by what was just decided. Only check documents that exist on disk.
216
217**Downstream documents to check** (use `{app}/` prefix when app scope is active):
218- `research/gtm.md`
219- `research/monetization.md`
220
221For each existing downstream document:
2221. Read it — focus on `> Based on:` header, `## Summary`, and sections that reference concepts this skill just defined or changed
2232. Identify **specific conflicts**: claims, assumptions, or references that contradict what was just decided. Examples:
224 - Competitor positioning or market gaps that GTM strategy was built on that have changed
225 - Pricing benchmarks referenced in monetization that no longer match the competitive landscape
226 - Channel strategy assumptions based on competitor behavior that has shifted
2273. Note each conflict: downstream file, section, the stale claim (quote it), and what it should now say
228
229**Classify the impact**:
230- **None**: No downstream documents exist, or no conflicts found. Skip display entirely.
231- **Minor** (1–2 small conflicts): Display conflicts to user inline.
232- **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`.
233
234Display 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.
235
236## Output
237
238### `research/competitive-analysis.md` (or `research/{app}/competitive-analysis.md`)
239
240```markdown
241# Competitive Analysis
242
243> Product: [product name and one-line description]
244> Category: [market category]
245> Date: [current date]
246> Sources: [number of competitors analysed]
247
248## Summary
249[3-5 sentences: competitive landscape overview, our positioning, and the biggest opportunity]
250
251## Competitive Landscape
252
253### Direct Competitors
254For each:
255- **[Competitor Name]** — [one-line description]
256 - Stage: [pre-launch / early / growth / mature / declining]
257 - Founded: [year] | Funding: [amount or "bootstrapped"] | Team: [size estimate]
258 - Pricing: [model and range]
259 - GTM: [primary strategy]
260 - Strengths: [2-3 bullets]
261 - Weaknesses: [2-3 bullets]
262 - Key takeaway: [what we can learn]
263
264### Indirect Competitors
265[Same format]
266
267### Incumbents & DIY Alternatives
268[Same format, briefer]
269
270### Emerging Players
271[Same format, briefer]
272
273## Go-to-Market Strategy Analysis
274- **What works in this market**: [patterns from successful competitors]
275- **What doesn't work**: [patterns from struggling competitors]
276- **Dominant acquisition model**: [PLG / sales-led / community-led / etc.]
277- **Pricing expectations**: [what the market is used to paying]
278- **Key channels**: [where competitors acquire users]
279
280## Gap Assessment (concept-validation mode only)
281
282### Market State
283[Virgin / Sparse / Crowded — with evidence]
284
285### Incumbent Quality
286[Dominant-and-loved / Dominant-but-resented / Fragmented-and-mediocre / Emerging-and-unproven — with evidence]
287
288### Gap Quality
289[Clear unmet need / Underserved segment / UX/approach gap / Minor improvement / No meaningful gap — with evidence]
290
291### Verdict
292[Proceed to ICP / Pivot concept / Abandon — with reasoning]
293
294## Market Gaps
295- **[Gap title]** — [Description of the unmet need, who it affects, and why it exists]
296- ...
297
298## Competitive Positioning
299
300### Where We Fit
301[Current positioning relative to competitors on key dimensions]
302
303### Recommended Positioning
304[Suggested positioning based on gaps and strengths, with reasoning]
305
306### Lessons from Competitors
307- **Do this** (learned from [competitor]): [what they did well that we should emulate]
308- **Avoid this** (learned from [competitor]): [what they did poorly that we should avoid]
309- ...
310
311<!-- Include this section only when downstream impact is Minor or Major. Omit entirely for None. -->
312## Downstream Impact
313
314> Checked: [list of downstream docs checked]
315> Impact: Minor | Major
316
317### Conflicts Found
318
3191. **research/[file].md** — [Section Name]
320 - **Stale**: "[exact quote from downstream doc]"
321 - **Now**: [what this skill's output says instead]
322
323[For Major only:]
324> **Recommended action**: Run `/reconcile-research` to audit and fix all affected downstream documents.
325
326## Next Steps
327
328Pick one:
329- [conditional items from step 7 — only include items whose conditions are met]
330```
331
332### `research/competitive-analysis-search-log.md` (or `research/{app}/competitive-analysis-search-log.md`)
333Raw research log — every search query, key findings with source attribution, and the reasoning behind categorisation and positioning recommendations.
334
335Create the `research/` (or `research/{app}/`) directory if it doesn't exist.
336
337## Task Classification
338
339When this skill produces follow-up work, file it by execution semantics:
340
341- Immediately actionable implementation or documentation work goes in `tasks/todo.md`.
342- 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`.
343- 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.
344- 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.
345- Do not put non-blocking records or recurring obligations in `tasks/todo.md` unless they have been explicitly promoted into current execution work.
346
347## Constraints
348
349- **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.
350- **Cite sources.** When stating facts about competitors (funding, features, pricing), note where the information came from.
351- **Be honest about uncertainty.** If information couldn't be verified, say so. Don't fabricate metrics.
352- **Stay in analysis mode.** Do not propose product changes, architecture, or features — that's for `/spec-interview` and `/mvp-gap`.
353- **Focus on actionable insights.** Raw competitor lists are easy; the value is in the synthesis — gaps, patterns, positioning angles.
354- **Do not overwrite existing `research/competitive-analysis.md`** (or `research/{app}/competitive-analysis.md`) without asking the user first.
355- **Keep research current.** Prefer recent sources (last 12 months). Flag any information that may be outdated.
356- **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.
357- **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.
358
359## Alignment Page
360
361When 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.
362
363**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.
364
365**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`.
366
367**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.
368
369**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.
370
371
372**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.
373
374**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.
375
376**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.
377
378**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.
379
380**Archiving.** Before replacing an existing alignment page, archive it to `docs/history/archive/YYYY-MM-DD/HHMMSS/alignment/v0.0-{topic}.html`.
381
382**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.
383
384## Archive-First Replacement Policy
385
386- 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>`.
387- Preserve the archived snapshot exactly as it existed before the change; do not edit the archived copy after creating it.
388- After the archive snapshot exists, write the updated document to the original canonical path.
389- Report both the archive path and the updated canonical path in the final output.
390- New files do not need archive snapshots. Append-only updates do not need archive snapshots unless an existing section is regenerated or rewritten.
391- Keep any existing user approval requirement before overwriting or replacing a document; archiving does not replace asking when the skill already requires approval.
392
393## Default Shipping Contract
394
395- **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.
396- 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.
397- 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.
398- This contract does not override stricter safety rules about secrets, destructive history changes, release publication/tag confirmation, or production deploy confirmation.