product-playbook 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.es.md +518 -0
- package/README.ja.md +519 -0
- package/README.ko.md +518 -0
- package/README.md +520 -0
- package/README.zh-CN.md +518 -0
- package/README.zh-TW.md +518 -0
- package/SKILL.md +244 -0
- package/commands/product-build.md +13 -0
- package/commands/product-dev.md +21 -0
- package/commands/product-full.md +13 -0
- package/commands/product-prd.md +14 -0
- package/commands/product-quick.md +13 -0
- package/commands/product-report.md +12 -0
- package/commands/product-revision.md +13 -0
- package/i18n/en/SKILL.md +245 -0
- package/i18n/en/commands/product-build.md +13 -0
- package/i18n/en/commands/product-dev.md +21 -0
- package/i18n/en/commands/product-full.md +13 -0
- package/i18n/en/commands/product-prd.md +14 -0
- package/i18n/en/commands/product-quick.md +13 -0
- package/i18n/en/commands/product-report.md +12 -0
- package/i18n/en/commands/product-revision.md +13 -0
- package/i18n/en/references/00-opportunity-check.md +44 -0
- package/i18n/en/references/01-strategy.md +90 -0
- package/i18n/en/references/02a-persona.md +57 -0
- package/i18n/en/references/02b-jtbd.md +125 -0
- package/i18n/en/references/02c-ost-journey.md +65 -0
- package/i18n/en/references/03-define.md +118 -0
- package/i18n/en/references/04a-prfaq.md +112 -0
- package/i18n/en/references/04b-solutions.md +269 -0
- package/i18n/en/references/04c-mvp.md +21 -0
- package/i18n/en/references/05a-northstar-aha.md +93 -0
- package/i18n/en/references/05b-pmf-gtm.md +102 -0
- package/i18n/en/references/05c-validation-spec.md +117 -0
- package/i18n/en/references/06-html-report.md +128 -0
- package/i18n/en/references/07a-handoff-core.md +152 -0
- package/i18n/en/references/07b-tasks-tickets.md +215 -0
- package/i18n/en/references/07c-architecture-setup.md +197 -0
- package/i18n/en/references/08-security-checklist.md +221 -0
- package/i18n/en/references/rules-build.md +152 -0
- package/i18n/en/references/rules-change-propagation.md +74 -0
- package/i18n/en/references/rules-commands.md +98 -0
- package/i18n/en/references/rules-context.md +291 -0
- package/i18n/en/references/rules-custom.md +63 -0
- package/i18n/en/references/rules-document-tools.md +126 -0
- package/i18n/en/references/rules-end-of-flow.md +150 -0
- package/i18n/en/references/rules-export-document.md +346 -0
- package/i18n/en/references/rules-file-integration.md +65 -0
- package/i18n/en/references/rules-full.md +66 -0
- package/i18n/en/references/rules-import-document.md +261 -0
- package/i18n/en/references/rules-product-type.md +14 -0
- package/i18n/en/references/rules-progress.md +60 -0
- package/i18n/en/references/rules-quick.md +29 -0
- package/i18n/en/references/rules-revision.md +64 -0
- package/i18n/es/SKILL.md +245 -0
- package/i18n/es/commands/product-build.md +13 -0
- package/i18n/es/commands/product-dev.md +21 -0
- package/i18n/es/commands/product-full.md +13 -0
- package/i18n/es/commands/product-prd.md +14 -0
- package/i18n/es/commands/product-quick.md +13 -0
- package/i18n/es/commands/product-report.md +12 -0
- package/i18n/es/commands/product-revision.md +13 -0
- package/i18n/es/references/00-opportunity-check.md +44 -0
- package/i18n/es/references/01-strategy.md +90 -0
- package/i18n/es/references/02a-persona.md +57 -0
- package/i18n/es/references/02b-jtbd.md +125 -0
- package/i18n/es/references/02c-ost-journey.md +65 -0
- package/i18n/es/references/03-define.md +118 -0
- package/i18n/es/references/04a-prfaq.md +114 -0
- package/i18n/es/references/04b-solutions.md +269 -0
- package/i18n/es/references/04c-mvp.md +21 -0
- package/i18n/es/references/05a-northstar-aha.md +93 -0
- package/i18n/es/references/05b-pmf-gtm.md +102 -0
- package/i18n/es/references/05c-validation-spec.md +117 -0
- package/i18n/es/references/06-html-report.md +138 -0
- package/i18n/es/references/07a-handoff-core.md +152 -0
- package/i18n/es/references/07b-tasks-tickets.md +215 -0
- package/i18n/es/references/07c-architecture-setup.md +197 -0
- package/i18n/es/references/08-security-checklist.md +221 -0
- package/i18n/es/references/rules-build.md +152 -0
- package/i18n/es/references/rules-change-propagation.md +74 -0
- package/i18n/es/references/rules-commands.md +98 -0
- package/i18n/es/references/rules-context.md +291 -0
- package/i18n/es/references/rules-custom.md +63 -0
- package/i18n/es/references/rules-document-tools.md +126 -0
- package/i18n/es/references/rules-end-of-flow.md +150 -0
- package/i18n/es/references/rules-export-document.md +346 -0
- package/i18n/es/references/rules-file-integration.md +65 -0
- package/i18n/es/references/rules-full.md +66 -0
- package/i18n/es/references/rules-import-document.md +261 -0
- package/i18n/es/references/rules-product-type.md +14 -0
- package/i18n/es/references/rules-progress.md +60 -0
- package/i18n/es/references/rules-quick.md +29 -0
- package/i18n/es/references/rules-revision.md +64 -0
- package/i18n/ja/SKILL.md +245 -0
- package/i18n/ja/commands/product-build.md +13 -0
- package/i18n/ja/commands/product-dev.md +21 -0
- package/i18n/ja/commands/product-full.md +13 -0
- package/i18n/ja/commands/product-prd.md +14 -0
- package/i18n/ja/commands/product-quick.md +13 -0
- package/i18n/ja/commands/product-report.md +12 -0
- package/i18n/ja/commands/product-revision.md +13 -0
- package/i18n/ja/references/00-opportunity-check.md +44 -0
- package/i18n/ja/references/01-strategy.md +90 -0
- package/i18n/ja/references/02a-persona.md +57 -0
- package/i18n/ja/references/02b-jtbd.md +125 -0
- package/i18n/ja/references/02c-ost-journey.md +65 -0
- package/i18n/ja/references/03-define.md +118 -0
- package/i18n/ja/references/04a-prfaq.md +111 -0
- package/i18n/ja/references/04b-solutions.md +269 -0
- package/i18n/ja/references/04c-mvp.md +21 -0
- package/i18n/ja/references/05a-northstar-aha.md +93 -0
- package/i18n/ja/references/05b-pmf-gtm.md +102 -0
- package/i18n/ja/references/05c-validation-spec.md +117 -0
- package/i18n/ja/references/06-html-report.md +126 -0
- package/i18n/ja/references/07a-handoff-core.md +152 -0
- package/i18n/ja/references/07b-tasks-tickets.md +215 -0
- package/i18n/ja/references/07c-architecture-setup.md +197 -0
- package/i18n/ja/references/08-security-checklist.md +221 -0
- package/i18n/ja/references/rules-build.md +152 -0
- package/i18n/ja/references/rules-change-propagation.md +74 -0
- package/i18n/ja/references/rules-commands.md +98 -0
- package/i18n/ja/references/rules-context.md +291 -0
- package/i18n/ja/references/rules-custom.md +63 -0
- package/i18n/ja/references/rules-document-tools.md +126 -0
- package/i18n/ja/references/rules-end-of-flow.md +150 -0
- package/i18n/ja/references/rules-export-document.md +346 -0
- package/i18n/ja/references/rules-file-integration.md +65 -0
- package/i18n/ja/references/rules-full.md +66 -0
- package/i18n/ja/references/rules-import-document.md +261 -0
- package/i18n/ja/references/rules-product-type.md +14 -0
- package/i18n/ja/references/rules-progress.md +60 -0
- package/i18n/ja/references/rules-quick.md +29 -0
- package/i18n/ja/references/rules-revision.md +64 -0
- package/i18n/ko/SKILL.md +245 -0
- package/i18n/ko/commands/product-build.md +13 -0
- package/i18n/ko/commands/product-dev.md +21 -0
- package/i18n/ko/commands/product-full.md +13 -0
- package/i18n/ko/commands/product-prd.md +14 -0
- package/i18n/ko/commands/product-quick.md +13 -0
- package/i18n/ko/commands/product-report.md +12 -0
- package/i18n/ko/commands/product-revision.md +13 -0
- package/i18n/ko/references/00-opportunity-check.md +44 -0
- package/i18n/ko/references/01-strategy.md +90 -0
- package/i18n/ko/references/02a-persona.md +57 -0
- package/i18n/ko/references/02b-jtbd.md +125 -0
- package/i18n/ko/references/02c-ost-journey.md +65 -0
- package/i18n/ko/references/03-define.md +118 -0
- package/i18n/ko/references/04a-prfaq.md +112 -0
- package/i18n/ko/references/04b-solutions.md +269 -0
- package/i18n/ko/references/04c-mvp.md +21 -0
- package/i18n/ko/references/05a-northstar-aha.md +93 -0
- package/i18n/ko/references/05b-pmf-gtm.md +102 -0
- package/i18n/ko/references/05c-validation-spec.md +117 -0
- package/i18n/ko/references/06-html-report.md +126 -0
- package/i18n/ko/references/07a-handoff-core.md +152 -0
- package/i18n/ko/references/07b-tasks-tickets.md +215 -0
- package/i18n/ko/references/07c-architecture-setup.md +197 -0
- package/i18n/ko/references/08-security-checklist.md +221 -0
- package/i18n/ko/references/rules-build.md +152 -0
- package/i18n/ko/references/rules-change-propagation.md +74 -0
- package/i18n/ko/references/rules-commands.md +98 -0
- package/i18n/ko/references/rules-context.md +291 -0
- package/i18n/ko/references/rules-custom.md +63 -0
- package/i18n/ko/references/rules-document-tools.md +126 -0
- package/i18n/ko/references/rules-end-of-flow.md +150 -0
- package/i18n/ko/references/rules-export-document.md +346 -0
- package/i18n/ko/references/rules-file-integration.md +65 -0
- package/i18n/ko/references/rules-full.md +66 -0
- package/i18n/ko/references/rules-import-document.md +261 -0
- package/i18n/ko/references/rules-product-type.md +14 -0
- package/i18n/ko/references/rules-progress.md +60 -0
- package/i18n/ko/references/rules-quick.md +29 -0
- package/i18n/ko/references/rules-revision.md +64 -0
- package/i18n/zh-CN/SKILL.md +245 -0
- package/i18n/zh-CN/commands/product-build.md +13 -0
- package/i18n/zh-CN/commands/product-dev.md +21 -0
- package/i18n/zh-CN/commands/product-full.md +13 -0
- package/i18n/zh-CN/commands/product-prd.md +14 -0
- package/i18n/zh-CN/commands/product-quick.md +13 -0
- package/i18n/zh-CN/commands/product-report.md +12 -0
- package/i18n/zh-CN/commands/product-revision.md +13 -0
- package/i18n/zh-CN/references/00-opportunity-check.md +44 -0
- package/i18n/zh-CN/references/01-strategy.md +90 -0
- package/i18n/zh-CN/references/02a-persona.md +57 -0
- package/i18n/zh-CN/references/02b-jtbd.md +125 -0
- package/i18n/zh-CN/references/02c-ost-journey.md +65 -0
- package/i18n/zh-CN/references/03-define.md +118 -0
- package/i18n/zh-CN/references/04a-prfaq.md +106 -0
- package/i18n/zh-CN/references/04b-solutions.md +269 -0
- package/i18n/zh-CN/references/04c-mvp.md +21 -0
- package/i18n/zh-CN/references/05a-northstar-aha.md +93 -0
- package/i18n/zh-CN/references/05b-pmf-gtm.md +102 -0
- package/i18n/zh-CN/references/05c-validation-spec.md +117 -0
- package/i18n/zh-CN/references/06-html-report.md +123 -0
- package/i18n/zh-CN/references/07a-handoff-core.md +152 -0
- package/i18n/zh-CN/references/07b-tasks-tickets.md +215 -0
- package/i18n/zh-CN/references/07c-architecture-setup.md +197 -0
- package/i18n/zh-CN/references/08-security-checklist.md +221 -0
- package/i18n/zh-CN/references/rules-build.md +152 -0
- package/i18n/zh-CN/references/rules-change-propagation.md +74 -0
- package/i18n/zh-CN/references/rules-commands.md +98 -0
- package/i18n/zh-CN/references/rules-context.md +291 -0
- package/i18n/zh-CN/references/rules-custom.md +63 -0
- package/i18n/zh-CN/references/rules-document-tools.md +126 -0
- package/i18n/zh-CN/references/rules-end-of-flow.md +150 -0
- package/i18n/zh-CN/references/rules-export-document.md +346 -0
- package/i18n/zh-CN/references/rules-file-integration.md +65 -0
- package/i18n/zh-CN/references/rules-full.md +66 -0
- package/i18n/zh-CN/references/rules-import-document.md +261 -0
- package/i18n/zh-CN/references/rules-product-type.md +14 -0
- package/i18n/zh-CN/references/rules-progress.md +60 -0
- package/i18n/zh-CN/references/rules-quick.md +29 -0
- package/i18n/zh-CN/references/rules-revision.md +64 -0
- package/i18n/zh-TW/SKILL.md +244 -0
- package/i18n/zh-TW/commands/product-build.md +13 -0
- package/i18n/zh-TW/commands/product-dev.md +21 -0
- package/i18n/zh-TW/commands/product-full.md +13 -0
- package/i18n/zh-TW/commands/product-prd.md +14 -0
- package/i18n/zh-TW/commands/product-quick.md +13 -0
- package/i18n/zh-TW/commands/product-report.md +12 -0
- package/i18n/zh-TW/commands/product-revision.md +13 -0
- package/i18n/zh-TW/references/00-opportunity-check.md +44 -0
- package/i18n/zh-TW/references/01-strategy.md +90 -0
- package/i18n/zh-TW/references/02a-persona.md +57 -0
- package/i18n/zh-TW/references/02b-jtbd.md +125 -0
- package/i18n/zh-TW/references/02c-ost-journey.md +65 -0
- package/i18n/zh-TW/references/03-define.md +118 -0
- package/i18n/zh-TW/references/04a-prfaq.md +106 -0
- package/i18n/zh-TW/references/04b-solutions.md +269 -0
- package/i18n/zh-TW/references/04c-mvp.md +21 -0
- package/i18n/zh-TW/references/05a-northstar-aha.md +93 -0
- package/i18n/zh-TW/references/05b-pmf-gtm.md +102 -0
- package/i18n/zh-TW/references/05c-validation-spec.md +117 -0
- package/i18n/zh-TW/references/06-html-report.md +123 -0
- package/i18n/zh-TW/references/07a-handoff-core.md +152 -0
- package/i18n/zh-TW/references/07b-tasks-tickets.md +215 -0
- package/i18n/zh-TW/references/07c-architecture-setup.md +197 -0
- package/i18n/zh-TW/references/08-security-checklist.md +221 -0
- package/i18n/zh-TW/references/rules-build.md +152 -0
- package/i18n/zh-TW/references/rules-change-propagation.md +74 -0
- package/i18n/zh-TW/references/rules-commands.md +98 -0
- package/i18n/zh-TW/references/rules-context.md +291 -0
- package/i18n/zh-TW/references/rules-custom.md +63 -0
- package/i18n/zh-TW/references/rules-document-tools.md +126 -0
- package/i18n/zh-TW/references/rules-end-of-flow.md +150 -0
- package/i18n/zh-TW/references/rules-export-document.md +346 -0
- package/i18n/zh-TW/references/rules-file-integration.md +65 -0
- package/i18n/zh-TW/references/rules-full.md +66 -0
- package/i18n/zh-TW/references/rules-import-document.md +261 -0
- package/i18n/zh-TW/references/rules-product-type.md +14 -0
- package/i18n/zh-TW/references/rules-progress.md +60 -0
- package/i18n/zh-TW/references/rules-quick.md +29 -0
- package/i18n/zh-TW/references/rules-revision.md +64 -0
- package/install.sh +418 -0
- package/package.json +41 -0
- package/references/00-opportunity-check.md +44 -0
- package/references/01-strategy.md +90 -0
- package/references/02a-persona.md +57 -0
- package/references/02b-jtbd.md +125 -0
- package/references/02c-ost-journey.md +65 -0
- package/references/03-define.md +118 -0
- package/references/04a-prfaq.md +106 -0
- package/references/04b-solutions.md +269 -0
- package/references/04c-mvp.md +21 -0
- package/references/05a-northstar-aha.md +93 -0
- package/references/05b-pmf-gtm.md +102 -0
- package/references/05c-validation-spec.md +117 -0
- package/references/06-html-report.md +123 -0
- package/references/07a-handoff-core.md +152 -0
- package/references/07b-tasks-tickets.md +215 -0
- package/references/07c-architecture-setup.md +197 -0
- package/references/08-security-checklist.md +221 -0
- package/references/rules-build.md +152 -0
- package/references/rules-change-propagation.md +74 -0
- package/references/rules-commands.md +98 -0
- package/references/rules-context.md +291 -0
- package/references/rules-custom.md +63 -0
- package/references/rules-document-tools.md +126 -0
- package/references/rules-end-of-flow.md +150 -0
- package/references/rules-export-document.md +346 -0
- package/references/rules-file-integration.md +65 -0
- package/references/rules-full.md +66 -0
- package/references/rules-import-document.md +261 -0
- package/references/rules-product-type.md +14 -0
- package/references/rules-progress.md +60 -0
- package/references/rules-quick.md +29 -0
- package/references/rules-revision.md +64 -0
- package/references/templates/prd-style.css +464 -0
- package/references/templates/report-style.css +114 -0
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
# 🏁 End-of-Flow Rules
|
|
2
|
+
|
|
3
|
+
> Loaded when all steps are completed.
|
|
4
|
+
|
|
5
|
+
## ⛔ End Condition Check
|
|
6
|
+
|
|
7
|
+
Before producing the final integrated output, the following must be verified:
|
|
8
|
+
|
|
9
|
+
1. Confirm that all steps in the progress indicator are marked ✅
|
|
10
|
+
2. If any steps were skipped (at the user's explicit request), mark them as "⚠️ Skipped" in the final output
|
|
11
|
+
3. If any steps are marked ⬜ (not executed), do not proceed to the final output
|
|
12
|
+
4. **Security quick check**: If the user will be entering the development phase (generating a dev handoff package), include a security reminder in the final output, and when generating the dev handoff package, automatically read `references/08-security-checklist.md` to produce the corresponding security architecture section
|
|
13
|
+
|
|
14
|
+
Violations of this rule include: Independently deciding that "the remaining steps are not important" and skipping them, marking incomplete steps as completed, or combining multiple steps into a single output.
|
|
15
|
+
|
|
16
|
+
## 🔍 Decision Consistency Check
|
|
17
|
+
|
|
18
|
+
Before generating the final integrated output, scan ALL completed steps and verify cross-step consistency:
|
|
19
|
+
|
|
20
|
+
### Checks by Mode
|
|
21
|
+
|
|
22
|
+
**🚀 Quick Mode** (3 steps — check 2 cross-references):
|
|
23
|
+
1. JTBD ↔ PR-FAQ: Does the PR-FAQ address the same problem as the JTBD statement?
|
|
24
|
+
2. PR-FAQ ↔ North Star: Does the North Star measure the outcome the PR-FAQ promises?
|
|
25
|
+
|
|
26
|
+
**📦 Full Mode** (20 steps — check all 7):
|
|
27
|
+
1. Target User — same persona referenced across JTBD, Positioning, PR-FAQ, and North Star?
|
|
28
|
+
2. Core Problem / JTBD — PR-FAQ addresses the same problem? MVP solves it?
|
|
29
|
+
3. Positioning — reflected in PR-FAQ headline and solution direction?
|
|
30
|
+
4. Solution Direction — selected solution matches MVP scope?
|
|
31
|
+
5. MVP Scope — consistent with PR-FAQ promises? "Not Doing" items respected?
|
|
32
|
+
6. North Star Metric — measures JTBD outcome? Achievable with MVP scope?
|
|
33
|
+
7. Pre-mortem Risks — still relevant given final solution and MVP?
|
|
34
|
+
|
|
35
|
+
**🔄 Revision Mode** (12 steps — check 4):
|
|
36
|
+
1. Existing JTBD ↔ Pain Points ↔ Positioning: consistent after re-evaluation?
|
|
37
|
+
2. PR-FAQ ↔ MVP Scope: revision scope matches what PR-FAQ describes?
|
|
38
|
+
3. North Star ↔ Before/After: metric comparison is logical?
|
|
39
|
+
4. Pre-mortem Risks: still relevant for the revised product?
|
|
40
|
+
|
|
41
|
+
**⚡ Build Mode** (7 steps — check 4):
|
|
42
|
+
1. Problem Statement ↔ PR-FAQ: same problem addressed?
|
|
43
|
+
2. Solution Direction ↔ MVP Scope: selected solution matches MVP?
|
|
44
|
+
3. North Star ↔ MVP: metric achievable with MVP scope?
|
|
45
|
+
4. Pre-mortem Risks: still relevant for final solution?
|
|
46
|
+
|
|
47
|
+
**🔧 Feature Extension Mode** (4 steps — check 3):
|
|
48
|
+
1. Problem ↔ Selected Solution: solution directly addresses the stated problem?
|
|
49
|
+
2. Solution ↔ Execution Scope: scope correctly implements the selected solution?
|
|
50
|
+
3. Risk Assessment: identified risks still relevant for the execution scope?
|
|
51
|
+
|
|
52
|
+
**✏️ Custom Mode** — only check cross-references between steps the user actually executed. Skip checks for steps that were not part of the custom selection.
|
|
53
|
+
|
|
54
|
+
### Execution
|
|
55
|
+
1. List each core decision as a one-liner (e.g., "Target User: Early-stage startup founders")
|
|
56
|
+
2. Check for contradictions or outdated references between steps
|
|
57
|
+
3. If inconsistencies are found:
|
|
58
|
+
- Display: "⚠️ Consistency check found [N] issue(s) before final output:"
|
|
59
|
+
- List each issue with the affected steps
|
|
60
|
+
- Ask user: "Should I fix these before generating the final output, or proceed as-is?"
|
|
61
|
+
4. If all consistent:
|
|
62
|
+
- Display: "✅ Decision consistency check passed — all steps aligned."
|
|
63
|
+
- Proceed to final output
|
|
64
|
+
|
|
65
|
+
### Why This Matters
|
|
66
|
+
During iterative planning, users may modify upstream decisions (e.g., change JTBD) while some downstream steps retain outdated content. This check catches those gaps before the final document is produced, preventing inconsistent deliverables.
|
|
67
|
+
|
|
68
|
+
## 📦 Product Context Auto-Extraction
|
|
69
|
+
|
|
70
|
+
After all steps are completed and while producing the final integrated output, read `references/rules-context.md` Section 8 to perform context extraction:
|
|
71
|
+
|
|
72
|
+
1. **Check whether `.product-context.md` exists**
|
|
73
|
+
- Does not exist → Create a new file
|
|
74
|
+
- Exists → Update per the rules (Identity/Core Strategy overwrite, Decision History append, Architecture merge, Insights merge and deduplicate)
|
|
75
|
+
|
|
76
|
+
2. **Extract content** (according to the flow type mapping in `rules-context.md` Section 8 table)
|
|
77
|
+
|
|
78
|
+
3. **Inform the user**: After the final output, display:
|
|
79
|
+
"✅ Product context has been updated in `.product-context.md` — it will be automatically loaded in your next planning session."
|
|
80
|
+
|
|
81
|
+
4. **Version control reminder** (first creation only):
|
|
82
|
+
"⚠️ We recommend adding `.product-context.md` to `.gitignore` — this file may contain sensitive product strategy information."
|
|
83
|
+
|
|
84
|
+
## Best Entry Point Analysis (Full Mode only)
|
|
85
|
+
|
|
86
|
+
```
|
|
87
|
+
[Persona Pain Points] → [JTBD Statement] → [OST Opportunity] → [HMW Question]
|
|
88
|
+
→ [Positioning (April Dunford)] → [PR-FAQ Validation] → [Solution Selected]
|
|
89
|
+
→ [Aha Moment] → [North Star Metric] → [PMF Level Assessment]
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Analysis points: Most worthwhile problem to solve / Core JTBD / Product positioning / PMF level and next milestone / First action step / Pre-mortem risk alerts
|
|
93
|
+
|
|
94
|
+
## Final Output by Mode
|
|
95
|
+
|
|
96
|
+
| Mode | Final Integrated Output |
|
|
97
|
+
|------|------------------------|
|
|
98
|
+
| 🔧 Feature Extension Mode | Feature development spec: Problem → Selected solution → Impact scope → Execution scope → Risks |
|
|
99
|
+
| 🚀 Quick Mode | One-page direction summary: Problem → Solution → Success Definition |
|
|
100
|
+
| 📦 Full Mode | Best Entry Point Analysis + Product Spec Summary |
|
|
101
|
+
| 🔄 Revision Mode | Revision product spec summary: Before/after comparison + What to change/What not to change + Success metrics |
|
|
102
|
+
| ✏️ Custom Mode | Product Spec Summary (unexecuted fields marked "Not Executed") |
|
|
103
|
+
| ⚡ Build Mode | Engineer-oriented execution summary |
|
|
104
|
+
|
|
105
|
+
### Output Language Override
|
|
106
|
+
|
|
107
|
+
Users can request outputs in a different language than the planning session:
|
|
108
|
+
- "Generate the PR-FAQ in Japanese"
|
|
109
|
+
- "Output the report in Spanish"
|
|
110
|
+
- "Write the PRD in Chinese"
|
|
111
|
+
|
|
112
|
+
When a language override is requested:
|
|
113
|
+
1. Generate the output content in the requested language
|
|
114
|
+
2. Keep framework names in English (JTBD, PR-FAQ, North Star, etc.)
|
|
115
|
+
3. Return to the planning session's original language after output generation
|
|
116
|
+
4. Note: This only affects the output document language, not the reference files or planning flow
|
|
117
|
+
|
|
118
|
+
## Extended Output Prompt
|
|
119
|
+
|
|
120
|
+
After completing the final integrated output, proactively ask:
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
"The planning content has been fully integrated! Would you like me to generate any of the following documents?
|
|
124
|
+
|
|
125
|
+
□ Updated [document type] (incremental update based on your uploaded source document) ← only show this option when a source document was uploaded
|
|
126
|
+
□ PDF document (professional layout with bookmark navigation, suitable for formal sharing)
|
|
127
|
+
□ HTML planning report (interactive, suitable for online sharing)
|
|
128
|
+
□ Word document (suitable for collaborative editing)
|
|
129
|
+
□ PRD engineer delivery package (includes flowchart, DB schema, UI wireframe)
|
|
130
|
+
□ Presentation PPTX (suitable for meeting reports, recommend polishing with Keynote / PowerPoint after export)
|
|
131
|
+
□ Dev handoff package (CLAUDE.md + TASKS.md + TICKETS.md + technical architecture — ready to start development in Claude Code)
|
|
132
|
+
□ All of the above
|
|
133
|
+
|
|
134
|
+
You can also say 'No thanks' to finish, or specify a particular document.
|
|
135
|
+
You can also use /export [pdf|docx|pptx|html|md] to export at any time."
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
**Option display rules**:
|
|
139
|
+
- Source document uploaded → "Updated [document type]" listed first with "(recommended)" label
|
|
140
|
+
- Target audience is engineers → PRD and dev handoff package listed first
|
|
141
|
+
- Target audience is executives/leadership → PDF and presentation listed first
|
|
142
|
+
- Target audience is cross-functional → PDF, HTML report, and presentation all listed
|
|
143
|
+
- Quick Mode → Only ask if PDF or presentation is needed
|
|
144
|
+
- Target audience is yourself → Dev handoff package listed first
|
|
145
|
+
|
|
146
|
+
**Export trigger rules**:
|
|
147
|
+
- User selects PDF / Word / Presentation PPTX → Load `rules-export-document.md`
|
|
148
|
+
- First time triggering document export → Load `rules-document-tools.md` first to check and install necessary tools
|
|
149
|
+
- User selects HTML planning report → Load `06-html-report.md` (existing rules)
|
|
150
|
+
- User selects "All of the above" → Execute each format export in sequence
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
# Multi-Format Document Export Rules
|
|
2
|
+
|
|
3
|
+
> Loaded when the user triggers `/export [format]` or selects an export format after the flow ends.
|
|
4
|
+
> On first use, load `rules-document-tools.md` first to confirm tools are installed.
|
|
5
|
+
|
|
6
|
+
## Supported Export Formats
|
|
7
|
+
|
|
8
|
+
| Format | Command | Conversion Path | Tools |
|
|
9
|
+
|--------|---------|----------------|-------|
|
|
10
|
+
| PDF | `/export pdf` | HTML+CSS → Playwright → pikepdf bookmarks | Playwright MCP + pikepdf |
|
|
11
|
+
| DOCX | `/export docx` | MD → Pandoc | pandoc + reference.docx |
|
|
12
|
+
| PPTX | `/export pptx` | MD → Pandoc | pandoc |
|
|
13
|
+
| HTML | `/export html` | Existing `06-html-report.md` rules | Built-in |
|
|
14
|
+
| Markdown | `/export md` | Direct output | Built-in |
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## PDF Export (Core Flow)
|
|
19
|
+
|
|
20
|
+
### Path Selection
|
|
21
|
+
|
|
22
|
+
PDF export has two paths, automatically selected based on source content:
|
|
23
|
+
|
|
24
|
+
| Source | Path | Reason |
|
|
25
|
+
|--------|------|--------|
|
|
26
|
+
| Planning output direct export (PRD / incremental update / spec) | **Path A: setContent** | No external JS dependencies, all resources can be inlined |
|
|
27
|
+
| HTML planning report to PDF (with Mermaid diagrams / CDN fonts) | **Path B: HTTP Server** | Needs to load external JS (mermaid.js) and CDN fonts |
|
|
28
|
+
|
|
29
|
+
### Path A: Standalone Document → PDF (setContent)
|
|
30
|
+
|
|
31
|
+
Applicable to: PRD, feature extension incremental updates, specs, any content without external JS.
|
|
32
|
+
|
|
33
|
+
**Step 1: Generate HTML Content**
|
|
34
|
+
|
|
35
|
+
Claude reads `references/templates/prd-style.css` and generates a complete HTML document:
|
|
36
|
+
|
|
37
|
+
```html
|
|
38
|
+
<!DOCTYPE html>
|
|
39
|
+
<html lang="zh-TW">
|
|
40
|
+
<head>
|
|
41
|
+
<meta charset="UTF-8">
|
|
42
|
+
<style>
|
|
43
|
+
/* Read the full contents of prd-style.css and inline here */
|
|
44
|
+
</style>
|
|
45
|
+
</head>
|
|
46
|
+
<body>
|
|
47
|
+
|
|
48
|
+
<!-- Cover page -->
|
|
49
|
+
<div class="cover-page">
|
|
50
|
+
<h1>[Document Title]</h1>
|
|
51
|
+
<div class="subtitle">[Subtitle or one-line description]</div>
|
|
52
|
+
<div class="version-badge">[Version Number]</div>
|
|
53
|
+
<div class="meta-info">
|
|
54
|
+
<strong>PM</strong> [PM Name]<br>
|
|
55
|
+
<strong>Date</strong> [ISO Date]<br>
|
|
56
|
+
<strong>Status</strong> [Status]
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
<!-- Legend (only for incremental update documents) -->
|
|
61
|
+
<div class="diff-legend">
|
|
62
|
+
<div class="diff-legend-item"><div class="diff-legend-swatch swatch-new"></div> New in this version</div>
|
|
63
|
+
<div class="diff-legend-item"><div class="diff-legend-swatch swatch-upd"></div> Modified in this version</div>
|
|
64
|
+
<div class="diff-legend-item"><div class="diff-legend-swatch swatch-unchanged"></div> Unchanged</div>
|
|
65
|
+
</div>
|
|
66
|
+
|
|
67
|
+
<!-- Table of Contents page -->
|
|
68
|
+
<div class="toc-page">
|
|
69
|
+
<h2>Table of Contents</h2>
|
|
70
|
+
<ul class="toc">
|
|
71
|
+
<!-- Claude auto-generates TOC items based on h2 headings -->
|
|
72
|
+
<li>
|
|
73
|
+
<span class="toc-title">[Section Name]</span>
|
|
74
|
+
<span class="toc-dots"></span>
|
|
75
|
+
<span class="toc-page-num">[Page Number]</span>
|
|
76
|
+
</li>
|
|
77
|
+
</ul>
|
|
78
|
+
</div>
|
|
79
|
+
|
|
80
|
+
<!-- Body content -->
|
|
81
|
+
[Body HTML]
|
|
82
|
+
|
|
83
|
+
<!-- Footer -->
|
|
84
|
+
<div class="doc-footer">
|
|
85
|
+
[Document Code] [Version] | [Date] | Generated by Product Playbook
|
|
86
|
+
</div>
|
|
87
|
+
|
|
88
|
+
</body>
|
|
89
|
+
</html>
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
**Important**:
|
|
93
|
+
- CSS must be fully inlined (no external links)
|
|
94
|
+
- Fonts use system fonts: `"PingFang TC", "Noto Sans TC", system-ui` (Playwright will automatically embed in PDF)
|
|
95
|
+
- No `<script>` tags or external resource references
|
|
96
|
+
- TOC page numbers are estimates (may need fine-tuning after PDF generation)
|
|
97
|
+
|
|
98
|
+
**Step 2: Playwright Renders PDF**
|
|
99
|
+
|
|
100
|
+
Save the HTML content to `/tmp/export-{timestamp}.html`, then call Playwright MCP:
|
|
101
|
+
|
|
102
|
+
```javascript
|
|
103
|
+
// mcp__plugin_playwright_playwright__browser_run_code
|
|
104
|
+
async (page) => {
|
|
105
|
+
const fs = require('fs');
|
|
106
|
+
const html = fs.readFileSync('/tmp/export-{timestamp}.html', 'utf8');
|
|
107
|
+
await page.setContent(html, { waitUntil: 'networkidle' });
|
|
108
|
+
await page.pdf({
|
|
109
|
+
path: '{output_path}',
|
|
110
|
+
format: 'A4',
|
|
111
|
+
margin: { top: '1.8cm', bottom: '1.8cm', left: '2cm', right: '2cm' },
|
|
112
|
+
printBackground: true,
|
|
113
|
+
displayHeaderFooter: true,
|
|
114
|
+
headerTemplate: '<div></div>',
|
|
115
|
+
footerTemplate: '<div style="font-size:8pt;color:#999;text-align:center;width:100%;">p.<span class="pageNumber"></span> / <span class="totalPages"></span></div>'
|
|
116
|
+
});
|
|
117
|
+
return 'PDF generated';
|
|
118
|
+
}
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
> Note: If the HTML content is too large (>500KB), setContent may time out. In that case, switch to Path B (HTTP Server).
|
|
122
|
+
|
|
123
|
+
**Step 3: pikepdf Bookmark Injection**
|
|
124
|
+
|
|
125
|
+
```python
|
|
126
|
+
import pikepdf, re
|
|
127
|
+
|
|
128
|
+
pdf = pikepdf.open('{output_path}')
|
|
129
|
+
|
|
130
|
+
# Extract h2 headings from HTML as bookmarks
|
|
131
|
+
# Claude should record the estimated page number for each h2 when generating HTML
|
|
132
|
+
bookmarks = [
|
|
133
|
+
# (title, page index 0-based)
|
|
134
|
+
("Revision History", 2),
|
|
135
|
+
("User Story", 4),
|
|
136
|
+
("Development Architecture", 6),
|
|
137
|
+
# ... generated based on actual content
|
|
138
|
+
]
|
|
139
|
+
|
|
140
|
+
with pdf.open_outline() as outline:
|
|
141
|
+
for title, page_idx in bookmarks:
|
|
142
|
+
page_idx = min(page_idx, len(pdf.pages) - 1)
|
|
143
|
+
outline.root.append(
|
|
144
|
+
pikepdf.OutlineItem(title, page_idx)
|
|
145
|
+
)
|
|
146
|
+
|
|
147
|
+
# Set PDF metadata
|
|
148
|
+
with pdf.open_metadata() as meta:
|
|
149
|
+
meta['dc:title'] = '[Document Title]'
|
|
150
|
+
meta['dc:creator'] = ['[PM Name]']
|
|
151
|
+
meta['pdf:Producer'] = 'Product Playbook + Playwright'
|
|
152
|
+
|
|
153
|
+
pdf.save('{output_path}')
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
**Step 4: Notify User**
|
|
157
|
+
|
|
158
|
+
```
|
|
159
|
+
✅ PDF exported to: {output_path}
|
|
160
|
+
📄 {page_count} pages | {file_size}
|
|
161
|
+
📑 Includes bookmark navigation ({bookmark_count} sections)
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
### Path B: HTML Report → PDF (HTTP Server)
|
|
165
|
+
|
|
166
|
+
Applicable to: HTML reports with Mermaid diagrams, CDN fonts, interactive elements.
|
|
167
|
+
|
|
168
|
+
**Step 1: HTML Report Already Generated**
|
|
169
|
+
|
|
170
|
+
The HTML report is generated by `06-html-report.md` rules and saved as `/tmp/report-{timestamp}.html`.
|
|
171
|
+
|
|
172
|
+
**Step 2: Start HTTP Server**
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
cd /tmp && python3 -m http.server 18899 &
|
|
176
|
+
echo $! # Record PID
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
**Step 3: Playwright Rendering**
|
|
180
|
+
|
|
181
|
+
```javascript
|
|
182
|
+
// mcp__plugin_playwright_playwright__browser_run_code
|
|
183
|
+
async (page) => {
|
|
184
|
+
await page.goto('http://localhost:18899/report-{timestamp}.html', {
|
|
185
|
+
waitUntil: 'networkidle',
|
|
186
|
+
timeout: 30000
|
|
187
|
+
});
|
|
188
|
+
// Wait for Mermaid chart rendering to complete
|
|
189
|
+
await page.waitForTimeout(3000);
|
|
190
|
+
// Expand all accordion (<details>) elements
|
|
191
|
+
await page.evaluate(() => {
|
|
192
|
+
document.querySelectorAll('details').forEach(d => d.open = true);
|
|
193
|
+
});
|
|
194
|
+
await page.pdf({
|
|
195
|
+
path: '{output_path}',
|
|
196
|
+
format: 'A4',
|
|
197
|
+
margin: { top: '1.8cm', bottom: '1.8cm', left: '2cm', right: '2cm' },
|
|
198
|
+
printBackground: true,
|
|
199
|
+
displayHeaderFooter: true,
|
|
200
|
+
headerTemplate: '<div></div>',
|
|
201
|
+
footerTemplate: '<div style="font-size:8pt;color:#999;text-align:center;width:100%;">p.<span class="pageNumber"></span> / <span class="totalPages"></span></div>'
|
|
202
|
+
});
|
|
203
|
+
return 'PDF generated';
|
|
204
|
+
}
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
**Step 4: Shut Down HTTP Server + pikepdf Bookmarks**
|
|
208
|
+
|
|
209
|
+
```bash
|
|
210
|
+
kill {SERVER_PID}
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
Then perform the same pikepdf bookmark injection step as Path A.
|
|
214
|
+
|
|
215
|
+
### Playwright MCP Unavailable Fallback
|
|
216
|
+
|
|
217
|
+
If Playwright MCP is not connected, use Node.js directly:
|
|
218
|
+
|
|
219
|
+
```bash
|
|
220
|
+
node -e "
|
|
221
|
+
const { chromium } = require('playwright');
|
|
222
|
+
const fs = require('fs');
|
|
223
|
+
(async () => {
|
|
224
|
+
const browser = await chromium.launch({ headless: true });
|
|
225
|
+
const page = await browser.newPage();
|
|
226
|
+
const html = fs.readFileSync('/tmp/export-{timestamp}.html', 'utf8');
|
|
227
|
+
await page.setContent(html, { waitUntil: 'networkidle' });
|
|
228
|
+
await page.pdf({
|
|
229
|
+
path: '${OUTPUT_PATH}',
|
|
230
|
+
format: 'A4',
|
|
231
|
+
printBackground: true,
|
|
232
|
+
margin: { top: '1.8cm', bottom: '1.8cm', left: '2cm', right: '2cm' }
|
|
233
|
+
});
|
|
234
|
+
await browser.close();
|
|
235
|
+
console.log('PDF generated');
|
|
236
|
+
})();
|
|
237
|
+
"
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
## DOCX Export
|
|
243
|
+
|
|
244
|
+
### Step 1: Generate Markdown
|
|
245
|
+
|
|
246
|
+
Claude organizes the planning output into clean Markdown format and saves it as `/tmp/export-{timestamp}.md`.
|
|
247
|
+
|
|
248
|
+
### Step 2: Pandoc Conversion
|
|
249
|
+
|
|
250
|
+
```bash
|
|
251
|
+
pandoc /tmp/export-{timestamp}.md \
|
|
252
|
+
-o "{output_path}" \
|
|
253
|
+
--from markdown \
|
|
254
|
+
--to docx \
|
|
255
|
+
--reference-doc="~/.claude/skills/product-playbook/references/templates/reference.docx" \
|
|
256
|
+
--toc \
|
|
257
|
+
--toc-depth=2
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
If no reference.docx template is available, omit the `--reference-doc` parameter (uses Pandoc default styles).
|
|
261
|
+
|
|
262
|
+
### Step 3: Notify User
|
|
263
|
+
|
|
264
|
+
```
|
|
265
|
+
✅ Word document exported to: {output_path}
|
|
266
|
+
📄 Includes table of contents | {file_size}
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
---
|
|
270
|
+
|
|
271
|
+
## PPTX Export
|
|
272
|
+
|
|
273
|
+
```bash
|
|
274
|
+
pandoc /tmp/export-{timestamp}.md \
|
|
275
|
+
-o "{output_path}" \
|
|
276
|
+
--from markdown \
|
|
277
|
+
--to pptx \
|
|
278
|
+
--slide-level=2
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
> Tip: Pandoc PPTX quality is limited. It's recommended to use the PPTX as an outline, then polish it with PowerPoint/Keynote.
|
|
282
|
+
|
|
283
|
+
---
|
|
284
|
+
|
|
285
|
+
## Special Handling for Incremental Update Documents
|
|
286
|
+
|
|
287
|
+
When exporting Feature Extension or Revision mode incremental update documents:
|
|
288
|
+
|
|
289
|
+
### Diff Visual Marking Rules
|
|
290
|
+
|
|
291
|
+
1. **Paragraphs marked `[NEW]`**:
|
|
292
|
+
- Use `<span class="new">NEW</span>` marker
|
|
293
|
+
- Table rows get `class="new-row"`
|
|
294
|
+
- Paragraphs get `class="diff-added"`
|
|
295
|
+
|
|
296
|
+
2. **Paragraphs marked `[UPDATED]`**:
|
|
297
|
+
- Use `<span class="upd">UPDATED</span>` marker
|
|
298
|
+
- Table rows get `class="upd-row"`
|
|
299
|
+
- If original content exists, original content gets `class="diff-removed"`, new content gets `class="diff-added"`
|
|
300
|
+
|
|
301
|
+
3. **Unchanged paragraphs**: Display normally, no special markers
|
|
302
|
+
|
|
303
|
+
4. **Legend at document start**:
|
|
304
|
+
```html
|
|
305
|
+
<div class="diff-legend">
|
|
306
|
+
<div class="diff-legend-item">
|
|
307
|
+
<div class="diff-legend-swatch swatch-new"></div> New in this version
|
|
308
|
+
</div>
|
|
309
|
+
<div class="diff-legend-item">
|
|
310
|
+
<div class="diff-legend-swatch swatch-upd"></div> Modified in this version
|
|
311
|
+
</div>
|
|
312
|
+
<div class="diff-legend-item">
|
|
313
|
+
<div class="diff-legend-swatch swatch-unchanged"></div> No marker = Unchanged
|
|
314
|
+
</div>
|
|
315
|
+
</div>
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
---
|
|
319
|
+
|
|
320
|
+
## Output Path Rules
|
|
321
|
+
|
|
322
|
+
Default output to `~/Downloads/`, filename format:
|
|
323
|
+
|
|
324
|
+
```
|
|
325
|
+
[Document Code] [Document Title] [Version].{ext}
|
|
326
|
+
|
|
327
|
+
Examples:
|
|
328
|
+
[D-221] Virtual Account v1.0.14 Full Merged Version.pdf
|
|
329
|
+
Product Planning Report - UPASS Virtual Account.docx
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
If the user specifies a path, use the user-specified path.
|
|
333
|
+
|
|
334
|
+
---
|
|
335
|
+
|
|
336
|
+
## Quality Checklist
|
|
337
|
+
|
|
338
|
+
Before export, Claude self-checks:
|
|
339
|
+
|
|
340
|
+
- [ ] No residual Markdown syntax in HTML (`**`, `##`, `|---|`)
|
|
341
|
+
- [ ] All table row and column counts match the original content
|
|
342
|
+
- [ ] `[NEW]` / `[UPDATED]` markers correctly mapped to corresponding CSS classes
|
|
343
|
+
- [ ] Cover page information (title, version, PM, date) is correct
|
|
344
|
+
- [ ] TOC items match the body h2 headings
|
|
345
|
+
- [ ] CSS is fully inlined (Path A) or CDN is accessible (Path B)
|
|
346
|
+
- [ ] Bookmark count matches h2 heading count
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# 📎 File Integration Guide
|
|
2
|
+
|
|
3
|
+
> Loaded when the user uploads supplementary materials.
|
|
4
|
+
|
|
5
|
+
## Directly Supported File Types
|
|
6
|
+
|
|
7
|
+
| File Type | Common Scenarios | Integration Method |
|
|
8
|
+
|-----------|-----------------|-------------------|
|
|
9
|
+
| **Images** | Competitor screenshots, whiteboard photos, hand-drawn journey maps, app interface screenshots, data report screenshots | Recognize content and integrate into the corresponding step |
|
|
10
|
+
| **PDF** | Market reports, internal documents, user research reports, legacy PRDs | Load `rules-import-document.md` for three-layer parsing (pymupdf direct extraction → Claude Vision semantic parsing → Tesseract fallback). On first use, load `rules-document-tools.md` to check tools. |
|
|
11
|
+
| **CSV / Excel** | User behavior data, retention data, NPS survey results, sales data | Analyze data and use for quantitative assessment |
|
|
12
|
+
| **Text files** | Interview transcripts, existing requirements documents, meeting notes | Extract Persona clues, pain points, JTBD evidence |
|
|
13
|
+
| **DOCX** | Existing PRDs, product spec documents, user research reports | Load `rules-import-document.md`, use Pandoc to convert to Markdown then integrate. On first use, load `rules-document-tools.md` to check tools. |
|
|
14
|
+
| **PPTX** | Existing presentations, product intro slides | Load `rules-import-document.md`, use Pandoc to convert to Markdown then integrate. |
|
|
15
|
+
|
|
16
|
+
## Not Directly Supported but Guidance Available
|
|
17
|
+
|
|
18
|
+
| File Type | Guidance |
|
|
19
|
+
|-----------|----------|
|
|
20
|
+
| **Video** | Ask the user to describe key scenes, or provide a transcript/subtitle file |
|
|
21
|
+
| **Figma / Sketch** | Ask the user to take screenshots and upload them |
|
|
22
|
+
| **Protobuf / Swagger** | Ask the user to export as JSON or text format |
|
|
23
|
+
|
|
24
|
+
## File → Step Auto-Mapping Table
|
|
25
|
+
|
|
26
|
+
| Uploaded Content | Auto-Mapped Step | Integration Action |
|
|
27
|
+
|-----------------|-----------------|-------------------|
|
|
28
|
+
| Competitor app / website screenshots | Positioning | Identify as "competitive alternatives," analyze differentiation |
|
|
29
|
+
| Whiteboard hand-drawn flowchart | Journey Map / OST | Recognize the flow and convert into a structured table |
|
|
30
|
+
| User interview transcript | Persona + JTBD | Extract pain points, current workarounds, emotional reactions, Job statements |
|
|
31
|
+
| User behavior data (CSV) | Opportunity Assessment + North Star + PMF | Replace assumption-based scores with real data |
|
|
32
|
+
| NPS / satisfaction survey | PMF + Sean Ellis Score | Directly calculate the Score; determine PMF level |
|
|
33
|
+
| Existing PRD / requirements document | Revision Mode S1 + MVP | Extract existing feature list and decision history |
|
|
34
|
+
| Market report PDF | Opportunity Assessment + Strategy | Extract market size, trends, competitive landscape |
|
|
35
|
+
| Sales data | Business Model + GTM | Analyze revenue structure, customer distribution, channel effectiveness |
|
|
36
|
+
| App interface screenshots | Aha Moment + Journey | Analyze the current experience path |
|
|
37
|
+
|
|
38
|
+
## Integration Rules
|
|
39
|
+
|
|
40
|
+
1. **Proactive identification**: First explain "I see you uploaded [file type]. I will integrate the [key information] from it into [step name]."
|
|
41
|
+
2. **Do not overwrite existing output**: Mark the uploaded content as "supplementary material," update the output, and trigger the change propagation rules
|
|
42
|
+
3. **Mark the source**: Annotate in the output which content came from the uploaded file (e.g., "✦ From the uploaded user research report")
|
|
43
|
+
4. **Data takes priority**: When real data conflicts with previous assumptions, defer to the real data
|
|
44
|
+
5. **Cross-step impact**: A single file may affect multiple steps — list all affected steps at once
|
|
45
|
+
|
|
46
|
+
## 📎 Source Document Identification & Incremental Update
|
|
47
|
+
|
|
48
|
+
When a user uploads a file during **Feature Extension** or **Revision Mode**, determine if it is a "source document" (a document that should be incrementally updated with the new planning output):
|
|
49
|
+
|
|
50
|
+
### Identification Criteria
|
|
51
|
+
- File type: PRD, product spec, architecture doc, requirements doc, design doc
|
|
52
|
+
- User explicitly says: "this is our current PRD", "update this document", "build on this spec", etc.
|
|
53
|
+
- Uploaded during S1 (context collection) of Feature Extension or Revision Mode
|
|
54
|
+
|
|
55
|
+
### When a Source Document Is Identified
|
|
56
|
+
1. Mark it: "📎 Source document detected — final output will be an incremental update based on this file"
|
|
57
|
+
2. Parse the document structure (section headings, formatting conventions, naming patterns)
|
|
58
|
+
3. Record the document's format and style for consistent output
|
|
59
|
+
4. During S1, use the document to pre-fill existing system context (tech stack, modules, features)
|
|
60
|
+
|
|
61
|
+
### Incremental Output Rules (applied at Final Output stage)
|
|
62
|
+
- New content inserted into the appropriate sections, marked with `[NEW]`
|
|
63
|
+
- Modified content marked with `[UPDATED]`, original content preserved as comment
|
|
64
|
+
- Sections unrelated to the new feature remain untouched
|
|
65
|
+
- The output document maintains the original file's format, style, and naming conventions
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# 📦 Full Mode Step Sequence (20 Steps + Final Output)
|
|
2
|
+
|
|
3
|
+
> This file is the authoritative step definition for Full Mode. Loaded by the SKILL.md core dispatcher.
|
|
4
|
+
|
|
5
|
+
## Step Sequence
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
Phase 0: Prerequisites
|
|
9
|
+
S1. Opportunity Assessment + DHM → Read references/00-opportunity-check.md
|
|
10
|
+
S2. Strategy Blocks + Rumelt Strategy Kernel → Read references/01-strategy.md
|
|
11
|
+
|
|
12
|
+
Phase 1: Discovery
|
|
13
|
+
S3. Persona Table → Read references/02a-persona.md
|
|
14
|
+
S4. Persona Cards → Read references/02a-persona.md
|
|
15
|
+
S5. JTBD Analysis → Read references/02b-jtbd.md
|
|
16
|
+
S6. Opportunity Solution Tree (OST) → Read references/02c-ost-journey.md
|
|
17
|
+
S7. User Journey Map → Read references/02c-ost-journey.md
|
|
18
|
+
|
|
19
|
+
Phase 2: Define
|
|
20
|
+
S8. Pain Points Summary Table → Read references/03-define.md
|
|
21
|
+
S9. April Dunford Positioning → Read references/03-define.md
|
|
22
|
+
S10. HMW Reframing → Read references/03-define.md
|
|
23
|
+
S11. Opportunity Assessment Table → Read references/03-define.md
|
|
24
|
+
|
|
25
|
+
Phase 3: Develop
|
|
26
|
+
S12. PR-FAQ → Read references/04a-prfaq.md
|
|
27
|
+
S13. Parallel Prototypes → Read references/04b-solutions.md
|
|
28
|
+
S14. Pre-mortem → Read references/04b-solutions.md
|
|
29
|
+
S15. GEM + RICE Prioritization → Read references/04b-solutions.md
|
|
30
|
+
S16. User Story → Read references/04b-solutions.md
|
|
31
|
+
S17. MVP + Not Doing List → Read references/04c-mvp.md
|
|
32
|
+
|
|
33
|
+
Phase 4: Deliver
|
|
34
|
+
S18. North Star + Three-Layer Signals + Aha Moment → Read references/05a-northstar-aha.md
|
|
35
|
+
S19. PMF Level Assessment + GTM Strategy + Business Model → Read references/05b-pmf-gtm.md
|
|
36
|
+
S20. Hypothesis Validation Plan → Read references/05c-validation-spec.md
|
|
37
|
+
────
|
|
38
|
+
Final Output → Product Spec Summary (references/05c-validation-spec.md → 4.6) + Best Entry Point Analysis
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
> In Full Mode, section 4.1 Empowered Teams is added before S18 when the target audience is executives or cross-functional teams; otherwise it is skipped.
|
|
42
|
+
|
|
43
|
+
## Reference Loading Instructions
|
|
44
|
+
|
|
45
|
+
When entering each step, only read the corresponding reference file (do not preload all files):
|
|
46
|
+
|
|
47
|
+
| Step | Reference File |
|
|
48
|
+
|------|---------------|
|
|
49
|
+
| S1 | `references/00-opportunity-check.md` |
|
|
50
|
+
| S2 | `references/01-strategy.md` |
|
|
51
|
+
| S3-S4 | `references/02a-persona.md` |
|
|
52
|
+
| S5 | `references/02b-jtbd.md` |
|
|
53
|
+
| S6-S7 | `references/02c-ost-journey.md` |
|
|
54
|
+
| S8-S11 | `references/03-define.md` |
|
|
55
|
+
| S12 | `references/04a-prfaq.md` |
|
|
56
|
+
| S13-S16 | `references/04b-solutions.md` |
|
|
57
|
+
| S17 | `references/04c-mvp.md` |
|
|
58
|
+
| S18 | `references/05a-northstar-aha.md` |
|
|
59
|
+
| S19 | `references/05b-pmf-gtm.md` |
|
|
60
|
+
| S20 + Final Output | `references/05c-validation-spec.md` |
|
|
61
|
+
|
|
62
|
+
## Final Output Format
|
|
63
|
+
|
|
64
|
+
**Best Entry Point Analysis** (full logic chain) + **Product Spec Summary**
|
|
65
|
+
|
|
66
|
+
After completion, follow `references/rules-end-of-flow.md` to execute the end-of-flow rules.
|