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 — Orchestrator
Invoke as /competitive-analysis.
This is a Pattern A framework-decomposition orchestrator. It resolves product/research scope, recommends competitive-analysis frameworks, writes framework execution steps to tasks/todo.md, and later synthesizes approved framework outputs into the canonical competitive landscape report. Individual frameworks live as child skills under frameworks/.
Available frameworks:
| Framework |
Slug |
Lens |
Default |
| Porter's Five Forces |
porter-five-forces |
Industry structure, power dynamics, substitutes, entrants, rivalry |
Yes |
| SWOT |
swot |
Strengths, weaknesses, opportunities, threats against market evidence |
Yes |
| Strategic Group Map |
strategic-group-map |
Competitive clusters, positioning axes, whitespace by segment |
Optional |
| Feature/Pricing Matrix |
feature-pricing-matrix |
Capability, package, and price comparisons across alternatives |
Yes |
Report-First Approval Gate
Default to scope-first approval: before synthesized research, inspect only enough repository, user, and source context to propose research scope, source plan, assumptions, output paths, and approval questions in a review alignment page plus a concise conversation summary.
Do not perform synthesized research, rank candidates, make recommendations, or write working packets or canonical deliverables until final compiled YAML approves the research scope. Minimal pre-approval discovery may identify available files, source categories, and open questions; label it as scope evidence, not findings.
After approved research-scope YAML, perform the research and write only the non-canonical working packet defined in the staged workflow. Then update the review alignment page with findings and stop again for feedback-only YAML or final compiled YAML artifact approval before creating or updating canonical research, spec, or task files.
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.
Staged Research Workflow
Use this staged workflow for synthesized research or report outputs that would create or update canonical research, spec, or task files.
- Stage 1 - Scope discovery and approval. Inspect only enough repository, user, and source context to propose research scope, source plan, assumptions, output paths, and approval questions. Build the
review HTML alignment page before synthesized research. The page must render the proposed scope, available source categories, known context, assumptions/confidence, proposed working-packet and canonical output paths, and research-scope approval gates. Stop for final compiled YAML approval of the research scope. Do not perform synthesized research, rank candidates, make recommendations, or write working packets, canonical research, spec, or task files in Stage 1.
- Stage 2 - Research and artifact review. Only after approved research-scope YAML with no unresolved
needs-clarification, unresolved down feedback, or other unresolved negative feedback, perform the synthesized research, run required source/code checks, and write only a non-canonical working packet: flat mode uses research/_working/preliminary-<skill>-research.md; product-path mode uses research/{slug}/_working/preliminary-<skill>-research.md. Replace <skill> with this skill's name value. Raw evidence or search logs may remain as supporting evidence where this skill already requires them, but synthesized deliverables stay in the working packet. Update the review HTML alignment page with the full preliminary packet, evidence matrix, assumptions/confidence register, source coverage gaps, proposed canonical file changes, and artifact approval gates. Stop for either feedback-only YAML or final compiled YAML. Feedback-only YAML revises the working packet and page, then remains in Stage 2.
- Stage 3 - Finalize approved artifacts. Consume final compiled YAML for artifact approval only when it has no unresolved
needs-clarification, unresolved down feedback, or other unresolved negative feedback. Apply approved edits first, archive the working packet to docs/history/archive/YYYY-MM-DD/HHMMSS/<original-working-path>, remove the active working packet, write the approved canonical artifacts to the unchanged output paths below, and convert the alignment page to confirmed with the approval record preserved.
Canonical output paths remain unchanged. Search logs and other supporting evidence remain allowed only where this skill's output contract already requires them.
Evidence And Feedback Handling
Treat user feedback as input to evaluate, not as automatic ground truth.
- For factual, evidentiary, technical, or source-backed claims: verify against available evidence. If the user appears to misunderstand the evidence or states something factually incorrect, push back clearly and cite the evidence. Do not rewrite findings merely to agree.
- For taste, brand, positioning preference, risk appetite, prioritization, or other subjective judgment calls: weigh user feedback heavily and adapt the recommendation unless it conflicts with verified evidence.
- When feedback mixes facts and preference, separate them explicitly: correct the factual part, then incorporate the preference where it is a legitimate judgment call.
- When uncertain, say what is known, what is inferred, and what would change the conclusion.
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/{slug}/icp.md, research/enterprise-icp.md or research/{slug}/enterprise-icp.md, research/mvp-gap.md or research/{slug}/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.
- Read
research/.progress.yaml when present. Normalize active_path (singular legacy) to active_paths (plural list) when reading; treat legacy abandoned as archived and exclude archived/deferred/revisit/promoted paths plus research/_archive/ scopes from active target selection. In standard mode, scope the full competitive analysis to the first entry in active_paths by default. Treat product_paths[] entries with status: deferred or status: revisit_candidate as parked product paths, not as extra full research tracks.
Provisional product-path evidence. When a referenced product path is not present in research/.progress.yaml (either absent entirely or not in active_paths or product_paths[]), do not treat it as a canonical active path. Before using it as source context, require an explicit provisional-path evidence reference: a review-only-approved alignment page (e.g., alignment/idea-scope-brief-{topic}.html with approval_status: review-only-approved) that fully renders the proposed path's concept, brief, and manifest entry. If no such evidence exists, ask the user whether to proceed with the path as unverified context or to run /idea-scope-brief first.
Operational Modes
Mode A: Framework Selection (default)
Activated by /competitive-analysis, /competitive-analysis [concept/category], or /competitive-analysis core.
Resolve scope, load context, choose mode, recommend frameworks, build an alignment page with selected defaults, and after approval write framework steps plus a synthesis step to tasks/todo.md. Stop after queueing the work; /exec drives each framework and the final synthesis step.
Mode B: Synthesis
Activated by /competitive-analysis --synthesize.
Read approved framework intermediates, synthesize the canonical competitive analysis and search log, present the report-first alignment page, then write canonical artifacts only after final approval YAML.
Process
0. Product-Path Scope Resolution
Resolve research scope by product path before using code or app structure as a hint:
- If
$ARGUMENTS names a non-archived research/{slug}/ directory or a product-path ID whose scope_path points there, use that path. Treat {slug} as the product/app name, not the ICP, audience, or segment label.
- If
$ARGUMENTS names only research/_archive/{slug}/ or a manifest entry with status: archived or legacy status: abandoned, stop and warn that the path is archived; do not write or update scoped outputs there.
- Read
research/.progress.yaml when present. Normalize legacy active_path to active_paths on read and write back active_paths on manifest updates. Treat legacy abandoned as archived; exclude archived, abandoned, deferred, revisit_candidate, promoted, and any scope_path under research/_archive/ from active target selection.
- If active product paths exist in the manifest, use those paths. If multiple active paths exist, ask which one to target unless this skill explicitly supports cross-path output.
- If no active manifest target exists, list non-archived product directories under
research/, excluding research/_archive/ and dot directories. Auto-select only when exactly one exists; ask when multiple exist.
- If no product directories exist, use flat
research/ single-product mode.
- Detect monorepo/app/package structure only as a secondary hint. Suggest creating a missing
research/{slug}/ product path when code clearly exposes an app, but do not require code or monorepo detection before using research/{slug}/.
When product path {slug} is active, read and write research under research/{slug}/, specs under specs/{slug}/, and treat top-level research/*.md files as flat-mode documents or cross-path summaries.
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/{slug}/icp.md) if it exists — the customer profile, pain map, and value prop define the competitive frame
- Read
research/enterprise-icp.md (or research/{slug}/enterprise-icp.md) and research/mvp-gap.md (or research/{slug}/mvp-gap.md) if they exist for additional context
- If
$ARGUMENTS names specific competitors, preserve those as seeded competitors for framework subskills
- Summarise what the product does, who it's for, and what problem it solves
Concept-validation mode:
- Use
research/idea-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 queueing frameworks
Write the context summary, resolved mode, candidate competitor categories, known competitors from arguments, and source gaps to research/_working/preliminary-competitive-analysis-research.md (or research/{slug}/_working/preliminary-competitive-analysis-research.md) so framework subskills inherit the same scope.
2. Mode A — Recommend Frameworks
Recommend framework defaults based on context:
- Always default:
porter-five-forces, swot, and feature-pricing-matrix.
- Default
strategic-group-map when the category has more than five likely competitors, multiple segments, multiple buyer types, or the user asks for landscape/positioning whitespace.
- Concept-validation mode: keep
porter-five-forces and swot defaulted; use feature-pricing-matrix only when named competitors or visible pricing alternatives exist; use strategic-group-map when the concept competes across multiple categories.
core shortcut: default only porter-five-forces, swot, and feature-pricing-matrix; still allow the user to add strategic-group-map.
Build an alignment page that includes: mode, product-path scope, context summary, selected/default frameworks, optional frameworks, execution plan, output paths, source coverage gaps, and approval gates.
After approval, overwrite or update the current execution section of tasks/todo.md with the selected framework steps and synthesis step:
## Competitive Analysis Framework Execution
- [ ] Run `/competitive-analysis/frameworks/porter-five-forces` - Porter's Five Forces industry structure
- [ ] Run `/competitive-analysis/frameworks/swot` - SWOT from competitive evidence
- [ ] Run `/competitive-analysis/frameworks/strategic-group-map` - Strategic group mapping
- [ ] Run `/competitive-analysis/frameworks/feature-pricing-matrix` - Feature and pricing comparison
- [ ] Synthesize: `/competitive-analysis --synthesize` - Combine framework outputs into research/competitive-analysis.md
Only include frameworks the user selected. Always append synthesis last. Do not emit downstream next-step routing in Mode A.
3. Framework Execution
Framework subskills read the orchestrator working packet and any existing relevant research, then produce approved intermediate artifacts:
research/competitive-analysis-porter-five-forces.md
research/competitive-analysis-swot.md
research/competitive-analysis-strategic-group-map.md
research/competitive-analysis-feature-pricing-matrix.md
In product-path mode, write under research/{slug}/. Subskills follow the staged research workflow, present before writing, and do not emit next-step routing.
4. Mode B — Synthesis (/competitive-analysis --synthesize)
Read all existing research/competitive-analysis-*.md framework outputs for the active scope. At least one approved framework output must exist; if none exist, stop and ask the user to run /competitive-analysis to queue framework research.
Synthesize across framework outputs into the canonical deliverables below:
- competitor landscape and categories
- company/product profiles
- observable GTM and pricing patterns
- market gaps and white-space opportunities
- implications for deferred product paths when evidence materially changes them
- concept-validation
## Gap Assessment when the orchestrator context selected concept-validation mode
## Next Steps using the unchanged routing contract below
Build the report-first alignment page before writing. Only after final compiled YAML approval, write canonical artifacts, archive the working packet, update research/.progress.yaml only when active-path evidence changed, and emit downstream next-step routing.
Standard mode next steps: ## Next Steps section with a Recommended item and Other options (2-4 alternatives). Choose the recommended item by the first matching condition:
- IF no
research/journey-map.md: check .agents/project.json.enabled_packs for customer-lifecycle - if customer-lifecycle is not enabled, recommend /pack install customer-lifecycle first; if customer-lifecycle is enabled, recommend /journey-map - map the customer and user journey before solution-value decisions, using competitive gaps as inspiration
- IF no
research/positioning.md: /positioning - frame the market category and alternatives after journey evidence shows where value is delivered
- IF no
specs/user-flow-*.md: check .agents/project.json.enabled_packs for product-design - if product-design is not enabled, recommend /pack install product-design first; if product-design is enabled, recommend /user-flow-map [top journey-backed market gap or positioning opportunity] - map flow structure before UI requirements, layout variants, and production specification
- IF no
research/value-prop.md AND solution-customer fit is weak, disputed, or needs explicit fit scoring: /value-prop-canvas - validate contested solution-fit evidence as an optional detour
- IF no
research/gtm.md: check .agents/project.json.enabled_packs for business-growth - if business-growth is not enabled, recommend /pack install business-growth first; if business-growth is enabled, recommend /gtm - build go-to-market plan leveraging competitive gaps
- IF codebase exists and no
research/mvp-gap.md: check .agents/project.json.enabled_packs for business-ops - if business-ops is not enabled, recommend /pack install business-ops first; if business-ops is enabled, recommend /mvp-gap - check if the codebase exploits the gaps found
Use this format in the output:
Next Steps
Recommended: [first matching command above] - [reason grounded in this analysis]
Other options:
/pack install customer-lifecycle or /journey-map - map the customer journey to find where competitors fall short (if no research/journey-map.md and not recommended; check .agents/project.json.enabled_packs for customer-lifecycle - if not enabled, recommend /pack install customer-lifecycle; if enabled, recommend /journey-map)
/positioning - frame the market category and competitive alternatives after journey evidence exists (if no research/positioning.md and not recommended)
- check
.agents/project.json.enabled_packs for product-design - if product-design is not enabled, recommend /pack install product-design first; if product-design is enabled, recommend /user-flow-map [top journey-backed market gap or positioning opportunity] - map flow structure before UI requirements, layout variants, and production specification (if positioning exists and not recommended)
/value-prop-canvas - optional detour only when solution-customer fit is weak, disputed, or needs explicit fit scoring before positioning/spec work
- check
.agents/project.json.enabled_packs for business-growth - if business-growth is not enabled, recommend /pack install business-growth first; if business-growth is enabled, recommend /gtm - build go-to-market plan leveraging competitive gaps (if no research/gtm.md and not recommended)
- check
.agents/project.json.enabled_packs for business-ops - if business-ops is not enabled, recommend /pack install business-ops first; if business-ops is enabled, recommend /mvp-gap - check if the codebase exploits the gaps found (if codebase exists, no research/mvp-gap.md exists, and not recommended)
- check
.agents/project.json.enabled_packs for product-design - if product-design is not enabled, recommend /pack install product-design first; if product-design is enabled, recommend /brainstorm - generate alternative solution ideas (only if the analysis found multiple plausible market gaps and product direction is still unclear)
Only include items whose conditions are met. Do not recommend brainstorm just because competitive whitespace exists.
Concept-validation mode next steps: Use the same Recommended + Other options format, but choose the recommendation from the validated ## Gap Assessment verdict:
Next Steps
Recommended: [verdict-based next step] - [reason grounded in the gap assessment]
Other options:
- IF verdict is Proceed to Customer Discovery: recommend
/customer-discovery - the competitive gap is validated; define who to build for
- IF verdict is Pivot concept: recommend
/brainstorm - the market has a gap, but this concept needs a different angle before ICP work is useful
- IF verdict is Abandon: recommend
No follow-up skill recommended - the analysis did not find a meaningful gap worth pursuing; include /brainstorm only if the user wants to explore a new concept
/competitive-analysis - re-run in standard mode after ICP is defined (only after a proceed verdict and after /customer-discovery creates research/icp.md)
Output
research/competitive-analysis.md (or research/{slug}/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]
## Observable GTM Patterns
- **Dominant acquisition model**: [PLG / sales-led / community-led / etc. — as observed]
- **Pricing models seen**: [what competitors charge and how — from public pricing pages]
- **Common channels**: [where competitors are visibly present]
- **What works in this market**: [patterns from successful competitors]
- **What doesn't work**: [patterns from struggling competitors]
## 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 Customer Discovery / Pivot concept / Abandon — with reasoning]
## Market Gaps
- **[Gap title]** — [Description of the unmet need, who it affects, and why it exists]
- ...
## Competitive Positioning
### Market Gaps Identified
[Specific gaps, unserved segments, and white-space opportunities with evidence]
### 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]
- ...
Positioning recommendations ("where we fit", "recommended positioning") belong in `/positioning`.
<!-- 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
**Recommended:** [first matching item from step 6]
**Other options:**
- [remaining conditional items from step 6 — only include items whose conditions are met]
## Signals for Downstream Research
> Raw signals captured during research. These are unvalidated observations —
> use the linked skill to verify, validate, and explore alternatives.
### → /positioning
- [signal]: positioning gaps identified in the landscape
- [signal]: category whitespace or unclaimed territory
- [signal]: differentiation opportunities from competitor weaknesses
### → /gtm
- [signal]: competitor channel strategies observed
- [signal]: pricing models and tiers seen across competitors
- [signal]: messaging patterns that appear effective
### → /monetization
- [signal]: competitor pricing tiers and structures
- [signal]: freemium vs. paid patterns in the market
- [signal]: enterprise pricing signals from competitor pages
### → /value-prop-canvas
- [signal]: competitor strengths and weaknesses mapped to customer jobs
- [signal]: unmet customer needs revealed by competitor gaps
- [signal]: value delivery patterns across the landscape
research/competitive-analysis-search-log.md (or research/{slug}/competitive-analysis-search-log.md)
Raw research log — every search query, key findings with source attribution, and the reasoning behind categorisation and positioning recommendations.
research/.progress.yaml
Update only when active-path evidence changes a deferred product path's status, reason, evidence refs, revisit trigger, or next skill. Use product_paths terminology instead of branch terminology. When writing manifest entries, include pipeline_stage: competitive-analysis on the active path entry.
Create the research/ (or research/{slug}/) 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. Framework execution and synthesis must be grounded in 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, features, or positioning recommendations — product changes are for
/spec-interview and /mvp-gap; positioning is for /positioning.
- 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/{slug}/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.
- Queue before research in Mode A. Default invocation queues framework work only; it must not emit downstream next-step routing.
- Keep framework subskills route-free. Framework subskills must not emit
Recommended next skill or Recommended next command; routing belongs to synthesis after canonical artifacts are approved.
Context Gathering
Step 1 — Scope questions. Before queueing frameworks, ask the user 1–3 questions via AskUserQuestion only if the product/service, target audience, or decision goal is unclear from the repository and arguments.
Step 2 — Framework selection. Use the answers plus repo context to choose defaults, present the framework-selection alignment page, and write framework steps to tasks/todo.md after approval.
Step 3 — Synthesis validation. In /competitive-analysis --synthesize, present the 3–5 most important cross-framework findings before building the final approval alignment page.
Alignment Page
When this skill produces durable deliverables (research, specs, plans, reports, prototypes, or any document output), build a full-depth HTML alignment page following ALIGNMENT-PAGE.md in this skill's directory. Output: alignment/competitive-analysis-{topic}.html.
Default Shipping Contract
Follow the shared shipping contract convention in CLAUDE.md.
1---2name: competitive-analysis-373description: Orchestrator — select competitive-analysis frameworks, queue framework research, and synthesize market landscape findings4---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 — Orchestrator
11
12Invoke as `/competitive-analysis`.
13
14This is a **Pattern A framework-decomposition orchestrator**. It resolves product/research scope, recommends competitive-analysis frameworks, writes framework execution steps to `tasks/todo.md`, and later synthesizes approved framework outputs into the canonical competitive landscape report. Individual frameworks live as child skills under `frameworks/`.
15
16Available frameworks:
17
18| Framework | Slug | Lens | Default |
19|-----------|------|------|---------|
20| Porter's Five Forces | `porter-five-forces` | Industry structure, power dynamics, substitutes, entrants, rivalry | Yes |
21| SWOT | `swot` | Strengths, weaknesses, opportunities, threats against market evidence | Yes |
22| Strategic Group Map | `strategic-group-map` | Competitive clusters, positioning axes, whitespace by segment | Optional |
23| Feature/Pricing Matrix | `feature-pricing-matrix` | Capability, package, and price comparisons across alternatives | Yes |
24
25## Report-First Approval Gate
26
27Default to scope-first approval: before synthesized research, inspect only enough repository, user, and source context to propose research scope, source plan, assumptions, output paths, and approval questions in a `review` alignment page plus a concise conversation summary.
28
29Do not perform synthesized research, rank candidates, make recommendations, or write working packets or canonical deliverables until final compiled YAML approves the research scope. Minimal pre-approval discovery may identify available files, source categories, and open questions; label it as scope evidence, not findings.
30
31After approved research-scope YAML, perform the research and write only the non-canonical working packet defined in the staged workflow. Then update the `review` alignment page with findings and stop again for feedback-only YAML or final compiled YAML artifact approval before creating or updating canonical research, spec, or task files.
32
33Do 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.
34
35## Staged Research Workflow
36
37Use this staged workflow for synthesized research or report outputs that would create or update canonical research, spec, or task files.
38
391. **Stage 1 - Scope discovery and approval.** Inspect only enough repository, user, and source context to propose research scope, source plan, assumptions, output paths, and approval questions. Build the `review` HTML alignment page before synthesized research. The page must render the proposed scope, available source categories, known context, assumptions/confidence, proposed working-packet and canonical output paths, and research-scope approval gates. Stop for final compiled YAML approval of the research scope. Do not perform synthesized research, rank candidates, make recommendations, or write working packets, canonical research, spec, or task files in Stage 1.
402. **Stage 2 - Research and artifact review.** Only after approved research-scope YAML with no unresolved `needs-clarification`, unresolved `down` feedback, or other unresolved negative feedback, perform the synthesized research, run required source/code checks, and write only a non-canonical working packet: flat mode uses `research/_working/preliminary-<skill>-research.md`; product-path mode uses `research/{slug}/_working/preliminary-<skill>-research.md`. Replace `<skill>` with this skill's `name` value. Raw evidence or search logs may remain as supporting evidence where this skill already requires them, but synthesized deliverables stay in the working packet. Update the `review` HTML alignment page with the full preliminary packet, evidence matrix, assumptions/confidence register, source coverage gaps, proposed canonical file changes, and artifact approval gates. Stop for either feedback-only YAML or final compiled YAML. Feedback-only YAML revises the working packet and page, then remains in Stage 2.
413. **Stage 3 - Finalize approved artifacts.** Consume final compiled YAML for artifact approval only when it has no unresolved `needs-clarification`, unresolved `down` feedback, or other unresolved negative feedback. Apply approved edits first, archive the working packet to `docs/history/archive/YYYY-MM-DD/HHMMSS/<original-working-path>`, remove the active working packet, write the approved canonical artifacts to the unchanged output paths below, and convert the alignment page to `confirmed` with the approval record preserved.
42
43Canonical output paths remain unchanged. Search logs and other supporting evidence remain allowed only where this skill's output contract already requires them.
44
45## Evidence And Feedback Handling
46
47Treat user feedback as input to evaluate, not as automatic ground truth.
48
49- For factual, evidentiary, technical, or source-backed claims: verify against available evidence. If the user appears to misunderstand the evidence or states something factually incorrect, push back clearly and cite the evidence. Do not rewrite findings merely to agree.
50- For taste, brand, positioning preference, risk appetite, prioritization, or other subjective judgment calls: weigh user feedback heavily and adapt the recommendation unless it conflicts with verified evidence.
51- When feedback mixes facts and preference, separate them explicitly: correct the factual part, then incorporate the preference where it is a legitimate judgment call.
52- When uncertain, say what is known, what is inferred, and what would change the conclusion.
53
54## Prerequisites
55
56**Detect mode before proceeding:**
57
58- **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.
59- **Standard mode** (default): Read the codebase, README, CLAUDE.md, and existing research/specs (`research/icp.md` or `research/{slug}/icp.md`, `research/enterprise-icp.md` or `research/{slug}/enterprise-icp.md`, `research/mvp-gap.md` or `research/{slug}/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.
60- Read `research/.progress.yaml` when present. Normalize `active_path` (singular legacy) to `active_paths` (plural list) when reading; treat legacy `abandoned` as `archived` and exclude archived/deferred/revisit/promoted paths plus `research/_archive/` scopes from active target selection. In standard mode, scope the full competitive analysis to the first entry in `active_paths` by default. Treat `product_paths[]` entries with `status: deferred` or `status: revisit_candidate` as parked product paths, not as extra full research tracks.
61
62**Provisional product-path evidence.** When a referenced product path is not present in `research/.progress.yaml` (either absent entirely or not in `active_paths` or `product_paths[]`), do not treat it as a canonical active path. Before using it as source context, require an explicit provisional-path evidence reference: a `review-only-approved` alignment page (e.g., `alignment/idea-scope-brief-{topic}.html` with `approval_status: review-only-approved`) that fully renders the proposed path's concept, brief, and manifest entry. If no such evidence exists, ask the user whether to proceed with the path as unverified context or to run `/idea-scope-brief` first.
63
64## Operational Modes
65
66### Mode A: Framework Selection (default)
67
68Activated by `/competitive-analysis`, `/competitive-analysis [concept/category]`, or `/competitive-analysis core`.
69
70Resolve scope, load context, choose mode, recommend frameworks, build an alignment page with selected defaults, and after approval write framework steps plus a synthesis step to `tasks/todo.md`. Stop after queueing the work; `/exec` drives each framework and the final synthesis step.
71
72### Mode B: Synthesis
73
74Activated by `/competitive-analysis --synthesize`.
75
76Read approved framework intermediates, synthesize the canonical competitive analysis and search log, present the report-first alignment page, then write canonical artifacts only after final approval YAML.
77
78---
79
80## Process
81
82### 0. Product-Path Scope Resolution
83
84Resolve research scope by product path before using code or app structure as a hint:
85
861. If `$ARGUMENTS` names a non-archived `research/{slug}/` directory or a product-path ID whose `scope_path` points there, use that path. Treat `{slug}` as the product/app name, not the ICP, audience, or segment label.
872. If `$ARGUMENTS` names only `research/_archive/{slug}/` or a manifest entry with `status: archived` or legacy `status: abandoned`, stop and warn that the path is archived; do not write or update scoped outputs there.
883. Read `research/.progress.yaml` when present. Normalize legacy `active_path` to `active_paths` on read and write back `active_paths` on manifest updates. Treat legacy `abandoned` as `archived`; exclude `archived`, `abandoned`, `deferred`, `revisit_candidate`, `promoted`, and any `scope_path` under `research/_archive/` from active target selection.
894. If active product paths exist in the manifest, use those paths. If multiple active paths exist, ask which one to target unless this skill explicitly supports cross-path output.
905. If no active manifest target exists, list non-archived product directories under `research/`, excluding `research/_archive/` and dot directories. Auto-select only when exactly one exists; ask when multiple exist.
916. If no product directories exist, use flat `research/` single-product mode.
927. Detect monorepo/app/package structure only as a secondary hint. Suggest creating a missing `research/{slug}/` product path when code clearly exposes an app, but do not require code or monorepo detection before using `research/{slug}/`.
93
94When product path `{slug}` is active, read and write research under `research/{slug}/`, specs under `specs/{slug}/`, and treat top-level `research/*.md` files as flat-mode documents or cross-path summaries.
95
96### 1. Establish Product Context
97
98**Standard mode:**
99- Read CLAUDE.md, README, package config, and key source files to understand the product
100- Read `research/icp.md` (or `research/{slug}/icp.md`) if it exists — the customer profile, pain map, and value prop define the competitive frame
101- Read `research/enterprise-icp.md` (or `research/{slug}/enterprise-icp.md`) and `research/mvp-gap.md` (or `research/{slug}/mvp-gap.md`) if they exist for additional context
102- If `$ARGUMENTS` names specific competitors, preserve those as seeded competitors for framework subskills
103- Summarise what the product does, who it's for, and what problem it solves
104
105**Concept-validation mode:**
106- Use `research/idea-brief.md` when present, otherwise use the concept description from Prerequisites to establish the problem space
107- Summarise what the concept proposes (problem it addresses, intended audience, hypothesised approach)
108- Confirm this understanding with the user before queueing frameworks
109
110Write the context summary, resolved mode, candidate competitor categories, known competitors from arguments, and source gaps to `research/_working/preliminary-competitive-analysis-research.md` (or `research/{slug}/_working/preliminary-competitive-analysis-research.md`) so framework subskills inherit the same scope.
111
112### 2. Mode A — Recommend Frameworks
113
114Recommend framework defaults based on context:
115
116- **Always default**: `porter-five-forces`, `swot`, and `feature-pricing-matrix`.
117- **Default `strategic-group-map`** when the category has more than five likely competitors, multiple segments, multiple buyer types, or the user asks for landscape/positioning whitespace.
118- **Concept-validation mode**: keep `porter-five-forces` and `swot` defaulted; use `feature-pricing-matrix` only when named competitors or visible pricing alternatives exist; use `strategic-group-map` when the concept competes across multiple categories.
119- **`core` shortcut**: default only `porter-five-forces`, `swot`, and `feature-pricing-matrix`; still allow the user to add `strategic-group-map`.
120
121Build an alignment page that includes: mode, product-path scope, context summary, selected/default frameworks, optional frameworks, execution plan, output paths, source coverage gaps, and approval gates.
122
123After approval, overwrite or update the current execution section of `tasks/todo.md` with the selected framework steps and synthesis step:
124
125```markdown
126## Competitive Analysis Framework Execution
127
128- [ ] Run `/competitive-analysis/frameworks/porter-five-forces` - Porter's Five Forces industry structure
129- [ ] Run `/competitive-analysis/frameworks/swot` - SWOT from competitive evidence
130- [ ] Run `/competitive-analysis/frameworks/strategic-group-map` - Strategic group mapping
131- [ ] Run `/competitive-analysis/frameworks/feature-pricing-matrix` - Feature and pricing comparison
132- [ ] Synthesize: `/competitive-analysis --synthesize` - Combine framework outputs into research/competitive-analysis.md
133```
134
135Only include frameworks the user selected. Always append synthesis last. Do not emit downstream next-step routing in Mode A.
136
137### 3. Framework Execution
138
139Framework subskills read the orchestrator working packet and any existing relevant research, then produce approved intermediate artifacts:
140
141- `research/competitive-analysis-porter-five-forces.md`
142- `research/competitive-analysis-swot.md`
143- `research/competitive-analysis-strategic-group-map.md`
144- `research/competitive-analysis-feature-pricing-matrix.md`
145
146In product-path mode, write under `research/{slug}/`. Subskills follow the staged research workflow, present before writing, and do not emit next-step routing.
147
148### 4. Mode B — Synthesis (`/competitive-analysis --synthesize`)
149
150Read all existing `research/competitive-analysis-*.md` framework outputs for the active scope. At least one approved framework output must exist; if none exist, stop and ask the user to run `/competitive-analysis` to queue framework research.
151
152Synthesize across framework outputs into the canonical deliverables below:
153
154- competitor landscape and categories
155- company/product profiles
156- observable GTM and pricing patterns
157- market gaps and white-space opportunities
158- implications for deferred product paths when evidence materially changes them
159- concept-validation `## Gap Assessment` when the orchestrator context selected concept-validation mode
160- `## Next Steps` using the unchanged routing contract below
161
162Build the report-first alignment page before writing. Only after final compiled YAML approval, write canonical artifacts, archive the working packet, update `research/.progress.yaml` only when active-path evidence changed, and emit downstream next-step routing.
163
164**Standard mode next steps:** `## Next Steps` section with a **Recommended** item and **Other options** (2-4 alternatives). Choose the recommended item by the first matching condition:
165
1661. IF no `research/journey-map.md`: check `.agents/project.json.enabled_packs` for `customer-lifecycle` - if `customer-lifecycle` is not enabled, recommend `/pack install customer-lifecycle` first; if `customer-lifecycle` is enabled, recommend `/journey-map` - map the customer and user journey before solution-value decisions, using competitive gaps as inspiration
1672. IF no `research/positioning.md`: `/positioning` - frame the market category and alternatives after journey evidence shows where value is delivered
1683. IF no `specs/user-flow-*.md`: check `.agents/project.json.enabled_packs` for `product-design` - if `product-design` is not enabled, recommend `/pack install product-design` first; if `product-design` is enabled, recommend `/user-flow-map [top journey-backed market gap or positioning opportunity]` - map flow structure before UI requirements, layout variants, and production specification
1694. IF no `research/value-prop.md` AND solution-customer fit is weak, disputed, or needs explicit fit scoring: `/value-prop-canvas` - validate contested solution-fit evidence as an optional detour
1705. IF no `research/gtm.md`: check `.agents/project.json.enabled_packs` for `business-growth` - if `business-growth` is not enabled, recommend `/pack install business-growth` first; if `business-growth` is enabled, recommend `/gtm` - build go-to-market plan leveraging competitive gaps
1716. IF codebase exists and no `research/mvp-gap.md`: check `.agents/project.json.enabled_packs` for `business-ops` - if `business-ops` is not enabled, recommend `/pack install business-ops` first; if `business-ops` is enabled, recommend `/mvp-gap` - check if the codebase exploits the gaps found
172
173Use this format in the output:
174
175## Next Steps
176
177**Recommended:** `[first matching command above]` - [reason grounded in this analysis]
178
179Other options:
180- `/pack install customer-lifecycle` or `/journey-map` - map the customer journey to find where competitors fall short (if no `research/journey-map.md` and not recommended; check `.agents/project.json.enabled_packs` for `customer-lifecycle` - if not enabled, recommend `/pack install customer-lifecycle`; if enabled, recommend `/journey-map`)
181- `/positioning` - frame the market category and competitive alternatives after journey evidence exists (if no `research/positioning.md` and not recommended)
182- check `.agents/project.json.enabled_packs` for `product-design` - if `product-design` is not enabled, recommend `/pack install product-design` first; if `product-design` is enabled, recommend `/user-flow-map [top journey-backed market gap or positioning opportunity]` - map flow structure before UI requirements, layout variants, and production specification (if positioning exists and not recommended)
183- `/value-prop-canvas` - optional detour only when solution-customer fit is weak, disputed, or needs explicit fit scoring before positioning/spec work
184- check `.agents/project.json.enabled_packs` for `business-growth` - if `business-growth` is not enabled, recommend `/pack install business-growth` first; if `business-growth` is enabled, recommend `/gtm` - build go-to-market plan leveraging competitive gaps (if no `research/gtm.md` and not recommended)
185- check `.agents/project.json.enabled_packs` for `business-ops` - if `business-ops` is not enabled, recommend `/pack install business-ops` first; if `business-ops` is enabled, recommend `/mvp-gap` - check if the codebase exploits the gaps found (if codebase exists, no `research/mvp-gap.md` exists, and not recommended)
186- check `.agents/project.json.enabled_packs` for `product-design` - if `product-design` is not enabled, recommend `/pack install product-design` first; if `product-design` is enabled, recommend `/brainstorm` - generate alternative solution ideas (only if the analysis found multiple plausible market gaps and product direction is still unclear)
187
188Only include items whose conditions are met. Do not recommend brainstorm just because competitive whitespace exists.
189
190**Concept-validation mode next steps:** Use the same Recommended + Other options format, but choose the recommendation from the validated `## Gap Assessment` verdict:
191
192## Next Steps
193
194**Recommended:** [verdict-based next step] - [reason grounded in the gap assessment]
195
196Other options:
197- IF verdict is **Proceed to Customer Discovery**: recommend `/customer-discovery` - the competitive gap is validated; define who to build for
198- IF verdict is **Pivot concept**: recommend `/brainstorm` - the market has a gap, but this concept needs a different angle before ICP work is useful
199- IF verdict is **Abandon**: recommend `No follow-up skill recommended` - the analysis did not find a meaningful gap worth pursuing; include `/brainstorm` only if the user wants to explore a new concept
200- `/competitive-analysis` - re-run in standard mode after ICP is defined (only after a proceed verdict and after `/customer-discovery` creates `research/icp.md`)
201
202## Output
203
204### `research/competitive-analysis.md` (or `research/{slug}/competitive-analysis.md`)
205
206```markdown
207# Competitive Analysis
208
209> Product: [product name and one-line description]
210> Category: [market category]
211> Date: [current date]
212> Sources: [number of competitors analysed]
213
214## Summary
215[3-5 sentences: competitive landscape overview, our positioning, and the biggest opportunity]
216
217## Competitive Landscape
218
219### Direct Competitors
220For each:
221- **[Competitor Name]** — [one-line description]
222 - Stage: [pre-launch / early / growth / mature / declining]
223 - Founded: [year] | Funding: [amount or "bootstrapped"] | Team: [size estimate]
224 - Pricing: [model and range]
225 - GTM: [primary strategy]
226 - Strengths: [2-3 bullets]
227 - Weaknesses: [2-3 bullets]
228 - Key takeaway: [what we can learn]
229
230### Indirect Competitors
231[Same format]
232
233### Incumbents & DIY Alternatives
234[Same format, briefer]
235
236### Emerging Players
237[Same format, briefer]
238
239## Observable GTM Patterns
240- **Dominant acquisition model**: [PLG / sales-led / community-led / etc. — as observed]
241- **Pricing models seen**: [what competitors charge and how — from public pricing pages]
242- **Common channels**: [where competitors are visibly present]
243- **What works in this market**: [patterns from successful competitors]
244- **What doesn't work**: [patterns from struggling competitors]
245
246## Gap Assessment (concept-validation mode only)
247
248### Market State
249[Virgin / Sparse / Crowded — with evidence]
250
251### Incumbent Quality
252[Dominant-and-loved / Dominant-but-resented / Fragmented-and-mediocre / Emerging-and-unproven — with evidence]
253
254### Gap Quality
255[Clear unmet need / Underserved segment / UX/approach gap / Minor improvement / No meaningful gap — with evidence]
256
257### Verdict
258[Proceed to Customer Discovery / Pivot concept / Abandon — with reasoning]
259
260## Market Gaps
261- **[Gap title]** — [Description of the unmet need, who it affects, and why it exists]
262- ...
263
264## Competitive Positioning
265
266### Market Gaps Identified
267[Specific gaps, unserved segments, and white-space opportunities with evidence]
268
269### Lessons from Competitors
270- **Do this** (learned from [competitor]): [what they did well that we should emulate]
271- **Avoid this** (learned from [competitor]): [what they did poorly that we should avoid]
272- ...
273
274Positioning recommendations ("where we fit", "recommended positioning") belong in `/positioning`.
275
276<!-- Include this section only when downstream impact is Minor or Major. Omit entirely for None. -->
277## Downstream Impact
278
279> Checked: [list of downstream docs checked]
280> Impact: Minor | Major
281
282### Conflicts Found
283
2841. **research/[file].md** — [Section Name]
285 - **Stale**: "[exact quote from downstream doc]"
286 - **Now**: [what this skill's output says instead]
287
288[For Major only:]
289> **Recommended action**: Run `/reconcile-research` to audit and fix all affected downstream documents.
290
291## Next Steps
292
293**Recommended:** [first matching item from step 6]
294
295**Other options:**
296- [remaining conditional items from step 6 — only include items whose conditions are met]
297
298## Signals for Downstream Research
299
300> Raw signals captured during research. These are unvalidated observations —
301> use the linked skill to verify, validate, and explore alternatives.
302
303### → /positioning
304- [signal]: positioning gaps identified in the landscape
305- [signal]: category whitespace or unclaimed territory
306- [signal]: differentiation opportunities from competitor weaknesses
307
308### → /gtm
309- [signal]: competitor channel strategies observed
310- [signal]: pricing models and tiers seen across competitors
311- [signal]: messaging patterns that appear effective
312
313### → /monetization
314- [signal]: competitor pricing tiers and structures
315- [signal]: freemium vs. paid patterns in the market
316- [signal]: enterprise pricing signals from competitor pages
317
318### → /value-prop-canvas
319- [signal]: competitor strengths and weaknesses mapped to customer jobs
320- [signal]: unmet customer needs revealed by competitor gaps
321- [signal]: value delivery patterns across the landscape
322```
323
324### `research/competitive-analysis-search-log.md` (or `research/{slug}/competitive-analysis-search-log.md`)
325Raw research log — every search query, key findings with source attribution, and the reasoning behind categorisation and positioning recommendations.
326
327### `research/.progress.yaml`
328Update only when active-path evidence changes a deferred product path's status, reason, evidence refs, revisit trigger, or next skill. Use `product_paths` terminology instead of branch terminology. When writing manifest entries, include `pipeline_stage: competitive-analysis` on the active path entry.
329
330Create the `research/` (or `research/{slug}/`) directory if it doesn't exist.
331
332## Task Classification
333
334When this skill produces follow-up work, file it by execution semantics:
335
336- Immediately actionable implementation or documentation work goes in `tasks/todo.md`.
337- 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`.
338- 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.
339- 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.
340- Do not put non-blocking records or recurring obligations in `tasks/todo.md` unless they have been explicitly promoted into current execution work.
341
342## Constraints
343
344- **Use web search extensively.** Framework execution and synthesis must be grounded in real, current market data — not assumptions or hallucinated competitor names. Every competitor cited must come from a web search result.
345- **Cite sources.** When stating facts about competitors (funding, features, pricing), note where the information came from.
346- **Be honest about uncertainty.** If information couldn't be verified, say so. Don't fabricate metrics.
347- **Stay in analysis mode.** Do not propose product changes, architecture, features, or positioning recommendations — product changes are for `/spec-interview` and `/mvp-gap`; positioning is for `/positioning`.
348- **Focus on actionable insights.** Raw competitor lists are easy; the value is in the synthesis — gaps, patterns, positioning angles.
349- **Do not overwrite existing `research/competitive-analysis.md`** (or `research/{slug}/competitive-analysis.md`) without asking the user first.
350- **Keep research current.** Prefer recent sources (last 12 months). Flag any information that may be outdated.
351- **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.
352- **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.
353- **Queue before research in Mode A.** Default invocation queues framework work only; it must not emit downstream next-step routing.
354- **Keep framework subskills route-free.** Framework subskills must not emit `Recommended next skill` or `Recommended next command`; routing belongs to synthesis after canonical artifacts are approved.
355
356## Context Gathering
357
358**Step 1 — Scope questions.** Before queueing frameworks, ask the user 1–3 questions via `AskUserQuestion` only if the product/service, target audience, or decision goal is unclear from the repository and arguments.
359
360**Step 2 — Framework selection.** Use the answers plus repo context to choose defaults, present the framework-selection alignment page, and write framework steps to `tasks/todo.md` after approval.
361
362**Step 3 — Synthesis validation.** In `/competitive-analysis --synthesize`, present the 3–5 most important cross-framework findings before building the final approval alignment page.
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 following `ALIGNMENT-PAGE.md` in this skill's directory. Output: `alignment/competitive-analysis-{topic}.html`.
367
368## Default Shipping Contract
369
370Follow the shared shipping contract convention in CLAUDE.md.