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 npx skillpacks install <pack> from the project shell, 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.
Porter's Five Forces - Competitive Structure Analysis
Invoke from the parent queue as /competitive-analysis/frameworks/porter-five-forces.
This is a framework subskill for /competitive-analysis. It analyzes industry structure and competitive pressure. It produces an intermediate artifact for parent synthesis and must not emit downstream next-step routing.
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.
Prerequisites
- Hard: Parent context from
research/_working/preliminary-competitive-analysis-research.md or research/{slug}/_working/preliminary-competitive-analysis-research.md. If absent, read research/icp.md or research/{slug}/icp.md plus repo context; if neither exists, tell the user to run /competitive-analysis first and stop.
- Soft: Existing
research/competitive-analysis-*.md, research/customer-feedback.md, research/journey-map.md, specs, and codebase context.
Product-Path Scope Resolution
Use the parent competitive-analysis product-path scope when present. Otherwise resolve scope by reading research/.progress.yaml, selecting active non-archived product paths, and writing under research/{slug}/ only when that path is active or explicitly named.
Process
- Load parent context and identify the relevant category, buyer/customer frame, seeded competitors, and source gaps.
- Use web search to validate the market boundary and identify evidence for each force.
- Assess:
- competitive rivalry
- threat of new entrants
- threat of substitutes and DIY alternatives
- buyer/customer power
- supplier/platform/channel power
- Score each force as low, moderate, or high pressure with evidence and confidence.
- Identify the structural constraints, exploitable gaps, and risks that the parent synthesis should carry forward.
- Present findings before writing and incorporate factual corrections.
Output
research/competitive-analysis-porter-five-forces.md (or research/{slug}/competitive-analysis-porter-five-forces.md)
# Porter's Five Forces Analysis
> Based on: [parent context, sources]
> Date: [current date]
> Methodology: Porter's Five Forces
## Market Boundary
[Category, buyer frame, and competitors included/excluded]
## Force Assessment
| Force | Pressure | Evidence | Confidence | Implication |
|-------|----------|----------|------------|-------------|
| Rivalry | Low/Moderate/High | [sources] | High/Medium/Low | [what synthesis should consider] |
| New Entrants | Low/Moderate/High | [sources] | High/Medium/Low | [implication] |
| Substitutes | Low/Moderate/High | [sources] | High/Medium/Low | [implication] |
| Buyer Power | Low/Moderate/High | [sources] | High/Medium/Low | [implication] |
| Supplier Power | Low/Moderate/High | [sources] | High/Medium/Low | [implication] |
## Structural Opportunities
[White-space openings created by force dynamics]
## Structural Risks
[Forces that could undermine the product or category thesis]
## Evidence Matrix
| Claim | Source | Evidence Type | Confidence |
|-------|--------|---------------|------------|
Constraints
- Every competitor or market fact must be source-backed.
- Prefer recent sources from the last 12 months and flag older evidence.
- Do not recommend product features, positioning, architecture, or downstream skills.
- This is a sub-skill; do not emit
Recommended next skill or Recommended next command.
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/porter-five-forces-{topic}.html.
Default Shipping Contract
Follow the shared shipping contract convention in CLAUDE.md.
1---2name: porter-five-forces-93description: Porter's Five Forces competitive analysis - industry structure, rivalry, substitutes, entrants, buyer power, and supplier power4---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 `npx skillpacks install <pack>` from the project shell, 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# Porter's Five Forces - Competitive Structure Analysis
11
12Invoke from the parent queue as `/competitive-analysis/frameworks/porter-five-forces`.
13
14This is a framework subskill for `/competitive-analysis`. It analyzes industry structure and competitive pressure. It produces an intermediate artifact for parent synthesis and must not emit downstream next-step routing.
15
16## Report-First Approval Gate
17
18Default 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.
19
20Do 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.
21
22After 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.
23
24Do 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.
25
26## Staged Research Workflow
27
28Use this staged workflow for synthesized research or report outputs that would create or update canonical research, spec, or task files.
29
301. **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.
312. **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.
323. **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.
33
34Canonical output paths remain unchanged. Search logs and other supporting evidence remain allowed only where this skill's output contract already requires them.
35
36## Prerequisites
37
38- **Hard**: Parent context from `research/_working/preliminary-competitive-analysis-research.md` or `research/{slug}/_working/preliminary-competitive-analysis-research.md`. If absent, read `research/icp.md` or `research/{slug}/icp.md` plus repo context; if neither exists, tell the user to run `/competitive-analysis` first and stop.
39- **Soft**: Existing `research/competitive-analysis-*.md`, `research/customer-feedback.md`, `research/journey-map.md`, specs, and codebase context.
40
41## Product-Path Scope Resolution
42
43Use the parent `competitive-analysis` product-path scope when present. Otherwise resolve scope by reading `research/.progress.yaml`, selecting active non-archived product paths, and writing under `research/{slug}/` only when that path is active or explicitly named.
44
45## Process
46
471. Load parent context and identify the relevant category, buyer/customer frame, seeded competitors, and source gaps.
482. Use web search to validate the market boundary and identify evidence for each force.
493. Assess:
50 - competitive rivalry
51 - threat of new entrants
52 - threat of substitutes and DIY alternatives
53 - buyer/customer power
54 - supplier/platform/channel power
554. Score each force as low, moderate, or high pressure with evidence and confidence.
565. Identify the structural constraints, exploitable gaps, and risks that the parent synthesis should carry forward.
576. Present findings before writing and incorporate factual corrections.
58
59## Output
60
61### `research/competitive-analysis-porter-five-forces.md` (or `research/{slug}/competitive-analysis-porter-five-forces.md`)
62
63```markdown
64# Porter's Five Forces Analysis
65
66> Based on: [parent context, sources]
67> Date: [current date]
68> Methodology: Porter's Five Forces
69
70## Market Boundary
71[Category, buyer frame, and competitors included/excluded]
72
73## Force Assessment
74| Force | Pressure | Evidence | Confidence | Implication |
75|-------|----------|----------|------------|-------------|
76| Rivalry | Low/Moderate/High | [sources] | High/Medium/Low | [what synthesis should consider] |
77| New Entrants | Low/Moderate/High | [sources] | High/Medium/Low | [implication] |
78| Substitutes | Low/Moderate/High | [sources] | High/Medium/Low | [implication] |
79| Buyer Power | Low/Moderate/High | [sources] | High/Medium/Low | [implication] |
80| Supplier Power | Low/Moderate/High | [sources] | High/Medium/Low | [implication] |
81
82## Structural Opportunities
83[White-space openings created by force dynamics]
84
85## Structural Risks
86[Forces that could undermine the product or category thesis]
87
88## Evidence Matrix
89| Claim | Source | Evidence Type | Confidence |
90|-------|--------|---------------|------------|
91```
92
93## Constraints
94
95- Every competitor or market fact must be source-backed.
96- Prefer recent sources from the last 12 months and flag older evidence.
97- Do not recommend product features, positioning, architecture, or downstream skills.
98- This is a sub-skill; do not emit `Recommended next skill` or `Recommended next command`.
99
100## Alignment Page
101
102When 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/porter-five-forces-{topic}.html`.
103
104## Default Shipping Contract
105
106Follow the shared shipping contract convention in CLAUDE.md.