@tiic-tech/openworkflow 0.1.1 → 0.1.2

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.
Files changed (213) hide show
  1. package/dist/adapters/codex/src/cleanCodexAdapter.js +4 -1
  2. package/dist/adapters/codex/src/cleanCodexAdapter.js.map +1 -1
  3. package/dist/adapters/codex/src/constants.d.ts +1 -0
  4. package/dist/adapters/codex/src/constants.js +2 -0
  5. package/dist/adapters/codex/src/constants.js.map +1 -0
  6. package/dist/adapters/codex/src/generateCommands.js +14 -9
  7. package/dist/adapters/codex/src/generateCommands.js.map +1 -1
  8. package/dist/adapters/codex/src/generateSkills.js +13 -0
  9. package/dist/adapters/codex/src/generateSkills.js.map +1 -1
  10. package/dist/adapters/codex/src/generatedFiles.js +1 -1
  11. package/dist/adapters/codex/src/manifest.js +11 -2
  12. package/dist/adapters/codex/src/manifest.js.map +1 -1
  13. package/dist/adapters/codex/src/templates.d.ts +0 -1
  14. package/dist/adapters/codex/src/templates.js +0 -1
  15. package/dist/adapters/codex/src/templates.js.map +1 -1
  16. package/dist/adapters/src/registry.d.ts +20 -0
  17. package/dist/adapters/src/registry.js +81 -0
  18. package/dist/adapters/src/registry.js.map +1 -0
  19. package/dist/cli/src/commands/brief.d.ts +46 -0
  20. package/dist/cli/src/commands/brief.js +294 -0
  21. package/dist/cli/src/commands/brief.js.map +1 -0
  22. package/dist/cli/src/commands/check.d.ts +42 -0
  23. package/dist/cli/src/commands/check.js +326 -0
  24. package/dist/cli/src/commands/check.js.map +1 -0
  25. package/dist/cli/src/commands/clean.js +46 -1
  26. package/dist/cli/src/commands/clean.js.map +1 -1
  27. package/dist/cli/src/commands/context.d.ts +1 -0
  28. package/dist/cli/src/commands/context.js +471 -0
  29. package/dist/cli/src/commands/context.js.map +1 -0
  30. package/dist/cli/src/commands/doctor.js +122 -12
  31. package/dist/cli/src/commands/doctor.js.map +1 -1
  32. package/dist/cli/src/commands/draft.d.ts +1 -0
  33. package/dist/cli/src/commands/draft.js +175 -0
  34. package/dist/cli/src/commands/draft.js.map +1 -0
  35. package/dist/cli/src/commands/gitAutomation.d.ts +1 -0
  36. package/dist/cli/src/commands/gitAutomation.js +378 -0
  37. package/dist/cli/src/commands/gitAutomation.js.map +1 -0
  38. package/dist/cli/src/commands/handoff.d.ts +22 -0
  39. package/dist/cli/src/commands/handoff.js +122 -0
  40. package/dist/cli/src/commands/handoff.js.map +1 -0
  41. package/dist/cli/src/commands/init.js +52 -1
  42. package/dist/cli/src/commands/init.js.map +1 -1
  43. package/dist/cli/src/commands/inspect.d.ts +23 -0
  44. package/dist/cli/src/commands/inspect.js +157 -0
  45. package/dist/cli/src/commands/inspect.js.map +1 -0
  46. package/dist/cli/src/commands/register.d.ts +1 -0
  47. package/dist/cli/src/commands/register.js +251 -0
  48. package/dist/cli/src/commands/register.js.map +1 -0
  49. package/dist/cli/src/commands/resume.d.ts +59 -0
  50. package/dist/cli/src/commands/resume.js +280 -0
  51. package/dist/cli/src/commands/resume.js.map +1 -0
  52. package/dist/cli/src/commands/shared.js +6 -2
  53. package/dist/cli/src/commands/shared.js.map +1 -1
  54. package/dist/cli/src/commands/summaries.d.ts +1 -0
  55. package/dist/cli/src/commands/summaries.js +77 -0
  56. package/dist/cli/src/commands/summaries.js.map +1 -0
  57. package/dist/cli/src/commands/summarize.d.ts +1 -0
  58. package/dist/cli/src/commands/summarize.js +316 -0
  59. package/dist/cli/src/commands/summarize.js.map +1 -0
  60. package/dist/cli/src/commands/sync.js +135 -12
  61. package/dist/cli/src/commands/sync.js.map +1 -1
  62. package/dist/cli/src/commands/validate.js +25 -1
  63. package/dist/cli/src/commands/validate.js.map +1 -1
  64. package/dist/cli/src/dev/verifyAgentE2E.d.ts +2 -0
  65. package/dist/cli/src/dev/verifyAgentE2E.js +391 -0
  66. package/dist/cli/src/dev/verifyAgentE2E.js.map +1 -0
  67. package/dist/cli/src/dev/verifyCleanCommand.js +213 -2
  68. package/dist/cli/src/dev/verifyCleanCommand.js.map +1 -1
  69. package/dist/cli/src/dev/verifyRuntimeSurface.js +4940 -54
  70. package/dist/cli/src/dev/verifyRuntimeSurface.js.map +1 -1
  71. package/dist/cli/src/dev/verifyWorkflowE2E.js +477 -45
  72. package/dist/cli/src/dev/verifyWorkflowE2E.js.map +1 -1
  73. package/dist/cli/src/index.js +184 -6
  74. package/dist/cli/src/index.js.map +1 -1
  75. package/dist/cli/src/report.d.ts +26 -0
  76. package/dist/cli/src/report.js +17 -0
  77. package/dist/cli/src/report.js.map +1 -0
  78. package/dist/core/src/artifacts/readiness.d.ts +7 -0
  79. package/dist/core/src/artifacts/readiness.js +240 -0
  80. package/dist/core/src/artifacts/readiness.js.map +1 -0
  81. package/dist/core/src/artifacts/registry.d.ts +9 -2
  82. package/dist/core/src/artifacts/registry.js +687 -60
  83. package/dist/core/src/artifacts/registry.js.map +1 -1
  84. package/dist/core/src/commands/registry.js +1425 -146
  85. package/dist/core/src/commands/registry.js.map +1 -1
  86. package/dist/core/src/contracts/index.d.ts +1 -1
  87. package/dist/core/src/fs/index.d.ts +24 -0
  88. package/dist/core/src/fs/index.js +48 -1
  89. package/dist/core/src/fs/index.js.map +1 -1
  90. package/dist/core/src/git/autonomousSimulator.d.ts +46 -0
  91. package/dist/core/src/git/autonomousSimulator.js +163 -0
  92. package/dist/core/src/git/autonomousSimulator.js.map +1 -0
  93. package/dist/core/src/git/branchIdentity.d.ts +19 -0
  94. package/dist/core/src/git/branchIdentity.js +75 -0
  95. package/dist/core/src/git/branchIdentity.js.map +1 -0
  96. package/dist/core/src/git/draftPrPilot.d.ts +47 -0
  97. package/dist/core/src/git/draftPrPilot.js +196 -0
  98. package/dist/core/src/git/draftPrPilot.js.map +1 -0
  99. package/dist/core/src/git/localEvidenceReader.d.ts +21 -0
  100. package/dist/core/src/git/localEvidenceReader.js +142 -0
  101. package/dist/core/src/git/localEvidenceReader.js.map +1 -0
  102. package/dist/core/src/git/localGitAutomation.d.ts +68 -0
  103. package/dist/core/src/git/localGitAutomation.js +470 -0
  104. package/dist/core/src/git/localGitAutomation.js.map +1 -0
  105. package/dist/core/src/git/mergeReadinessCheckpoint.d.ts +31 -0
  106. package/dist/core/src/git/mergeReadinessCheckpoint.js +110 -0
  107. package/dist/core/src/git/mergeReadinessCheckpoint.js.map +1 -0
  108. package/dist/core/src/git/prReadySummary.d.ts +16 -0
  109. package/dist/core/src/git/prReadySummary.js +144 -0
  110. package/dist/core/src/git/prReadySummary.js.map +1 -0
  111. package/dist/core/src/git/remoteReadonlyPlanner.d.ts +60 -0
  112. package/dist/core/src/git/remoteReadonlyPlanner.js +223 -0
  113. package/dist/core/src/git/remoteReadonlyPlanner.js.map +1 -0
  114. package/dist/core/src/onboarding/agentsGuide.d.ts +32 -0
  115. package/dist/core/src/onboarding/agentsGuide.js +164 -0
  116. package/dist/core/src/onboarding/agentsGuide.js.map +1 -0
  117. package/dist/core/src/validators/validateOpenWorkflow.js +1331 -15
  118. package/dist/core/src/validators/validateOpenWorkflow.js.map +1 -1
  119. package/dist/core/src/validators/validateRepositoryContracts.js +2321 -306
  120. package/dist/core/src/validators/validateRepositoryContracts.js.map +1 -1
  121. package/dist/core/src/workflow/cleanOpenWorkflow.d.ts +2 -0
  122. package/dist/core/src/workflow/cleanOpenWorkflow.js +97 -8
  123. package/dist/core/src/workflow/cleanOpenWorkflow.js.map +1 -1
  124. package/dist/core/src/workflow/doctorOpenWorkflow.d.ts +7 -0
  125. package/dist/core/src/workflow/doctorOpenWorkflow.js +26 -0
  126. package/dist/core/src/workflow/doctorOpenWorkflow.js.map +1 -0
  127. package/dist/core/src/workflow/initOpenWorkflow.d.ts +7 -0
  128. package/dist/core/src/workflow/initOpenWorkflow.js +96 -8
  129. package/dist/core/src/workflow/initOpenWorkflow.js.map +1 -1
  130. package/dist/core/src/workflow/planningQueueResume.d.ts +105 -0
  131. package/dist/core/src/workflow/planningQueueResume.js +596 -0
  132. package/dist/core/src/workflow/planningQueueResume.js.map +1 -0
  133. package/dist/core/src/workflow/readWorkflowConfig.d.ts +6 -0
  134. package/dist/core/src/workflow/readWorkflowConfig.js +28 -0
  135. package/dist/core/src/workflow/readWorkflowConfig.js.map +1 -0
  136. package/dist/core/src/workflow/summaryHealth.d.ts +60 -0
  137. package/dist/core/src/workflow/summaryHealth.js +713 -0
  138. package/dist/core/src/workflow/summaryHealth.js.map +1 -0
  139. package/dist/core/src/workflow/syncOpenWorkflow.d.ts +22 -0
  140. package/dist/core/src/workflow/syncOpenWorkflow.js +235 -0
  141. package/dist/core/src/workflow/syncOpenWorkflow.js.map +1 -0
  142. package/package.json +2 -1
  143. package/references/artifact-authoring-templates.md +14 -12
  144. package/references/artifact-instruction-envelope.md +133 -0
  145. package/references/coder-continuous-growth-loop.md +68 -0
  146. package/references/gh-operation-governance.md +114 -0
  147. package/references/git-automation-governance.md +324 -0
  148. package/references/git-version-control-governance.md +227 -0
  149. package/references/internal-coder-protocol.md +202 -0
  150. package/references/issue-governance.md +115 -0
  151. package/references/planning-artifact-contracts.md +595 -0
  152. package/references/planning-skill-runtime-exposure.md +159 -0
  153. package/references/proto-redesign-artifact-contracts.md +217 -0
  154. package/references/proto2html-artifact-contracts.md +113 -0
  155. package/references/skill-system-lifecycle.md +198 -0
  156. package/references/validation-trust-domains.md +286 -0
  157. package/references/workflow-blueprint-runtime-alignment.md +287 -0
  158. package/schemas/atom-tasks.schema.json +101 -0
  159. package/schemas/candidate-changes.schema.json +323 -0
  160. package/schemas/current-state.schema.json +113 -0
  161. package/schemas/html-prototype.schema.json +288 -0
  162. package/schemas/openworkflow-contract.schema.json +9 -1
  163. package/schemas/proto-prompt-pack.schema.json +1333 -0
  164. package/schemas/prototype-evidence.schema.json +684 -142
  165. package/schemas/selected-change.schema.json +104 -0
  166. package/schemas/validation-target.schema.json +187 -1
  167. package/schemas/validation.schema.json +187 -1
  168. package/schemas/vision-session.schema.json +151 -0
  169. package/skills/analyze-changes/SKILL.md +92 -0
  170. package/skills/analyze-changes/agents/openai.yaml +4 -0
  171. package/skills/analyze-changes/references/analysis-protocol.md +116 -0
  172. package/skills/build-proto-prompt/SKILL.md +125 -0
  173. package/skills/build-proto-prompt/references/output-boundary.md +54 -0
  174. package/skills/build-proto-prompt/references/prompt-pack-compiler-protocol.md +80 -0
  175. package/skills/build-prototype/SKILL.md +162 -38
  176. package/skills/build-prototype/agents/openai.yaml +2 -2
  177. package/skills/build-prototype/references/philosophy-engine.md +61 -0
  178. package/skills/build-prototype/references/strategic-prompt-pack-protocol.md +365 -0
  179. package/skills/build-prototype/references/vision2prompt/01_input_contract.md +84 -0
  180. package/skills/build-prototype/references/vision2prompt/02_vision_decomposition.md +108 -0
  181. package/skills/build-prototype/references/vision2prompt/03_strategy_hypothesis_generation.md +89 -0
  182. package/skills/build-prototype/references/vision2prompt/04_product_system_extraction.md +78 -0
  183. package/skills/build-prototype/references/vision2prompt/05_prototype_prompt_schema.md +189 -0
  184. package/skills/build-prototype/references/vision2prompt/06_output_templates.md +125 -0
  185. package/skills/build-prototype/references/vision2prompt/07_quality_rubric.md +171 -0
  186. package/skills/build-validation/SKILL.md +136 -54
  187. package/skills/build-validation/references/prototype-validation-target-rubric.md +35 -0
  188. package/skills/build-validation/references/return-to-vision-gate.md +32 -0
  189. package/skills/build-vision/SKILL.md +192 -0
  190. package/skills/build-vision/references/proto-readiness-rubric.md +48 -0
  191. package/skills/build-vision/references/vision-interview-protocol.md +48 -0
  192. package/skills/coder/SKILL.md +204 -0
  193. package/skills/decompose-to-changes/SKILL.md +176 -0
  194. package/skills/decompose-to-changes/agents/openai.yaml +4 -0
  195. package/skills/decompose-to-changes/references/decomposition-protocol.md +278 -0
  196. package/skills/prompt2proto/SKILL.md +157 -0
  197. package/skills/prompt2proto/agents/openai.yaml +4 -0
  198. package/skills/prompt2proto/references/00_role_philosophy_engine.md +96 -0
  199. package/skills/prompt2proto/references/01_input_contract.md +53 -0
  200. package/skills/prompt2proto/references/02_prompt_pack_readiness.md +50 -0
  201. package/skills/prompt2proto/references/03_visual_translation_workflow.md +64 -0
  202. package/skills/prompt2proto/references/04_output_contract.md +67 -0
  203. package/skills/prompt2proto/references/05_quality_rubric.md +46 -0
  204. package/skills/proto2html/SKILL.md +136 -0
  205. package/skills/proto2html/agents/openai.yaml +4 -0
  206. package/skills/proto2html/references/proto2html-protocol.md +115 -0
  207. package/skills/run-team/SKILL.md +4 -0
  208. package/skills/select-change/SKILL.md +200 -0
  209. package/skills/select-change/agents/openai.yaml +4 -0
  210. package/skills/select-change/references/selection-protocol.md +281 -0
  211. package/skills/tune-prototype/SKILL.md +121 -0
  212. package/skills/tune-prototype/agents/openai.yaml +4 -0
  213. package/skills/tune-prototype/references/refined-prompt-pack-protocol.md +161 -0
@@ -0,0 +1,84 @@
1
+ # 01 Input Contract
2
+
3
+ Use this reference before `/ow:vision2prompt` writes a strategic prototype
4
+ prompt pack. The goal is to normalize product intent into fields that can
5
+ survive handoff, validation, and image generation.
6
+
7
+ ## Required Inputs
8
+
9
+ - Durable vision artifact: `VISION.md` and `VISION_CONTRACT.yaml` or current
10
+ vision session content.
11
+ - Durable validation target: current `VALIDATION.yaml`.
12
+ - Direction count policy: user-requested count or the `/ow:proto` resolved
13
+ default.
14
+
15
+ Do not compile prompt text from chat memory alone.
16
+
17
+ ## Optional Inputs
18
+
19
+ - `TARGET_TOOL`: image generator, Figma, v0, app builder, or human designer.
20
+ - `OUTPUT_LANGUAGE`: default to the user's language for framing; prototype
21
+ prompts may be English when the target tool benefits from English prompts.
22
+ - `DOMAIN`: infer from vision when missing.
23
+ - `FIDELITY`: default to high-fidelity product prototype.
24
+ - `CONSTRAINTS`: brand, platform, compliance, privacy, safety, or product
25
+ boundaries.
26
+
27
+ ## Dailin Workflow Mapping
28
+
29
+ This file is the OW-owned equivalent of dailin
30
+ `vision_to_strategic_prototype_prompt/reference/01_input_contract.md`.
31
+ `/ow:vision2prompt` must preserve the same normalization behavior before
32
+ writing any image-generation prompt paragraph:
33
+
34
+ - treat durable vision and validation artifacts as the source of truth;
35
+ - resolve direction count, target tool, output language, fidelity, domain, and
36
+ constraints before prompt writing;
37
+ - infer conservative defaults only when the durable artifacts contain enough
38
+ strategy to proceed;
39
+ - record assumptions compactly in the prompt pack rather than hiding them in
40
+ chat memory.
41
+
42
+ The dailin `OUTPUT_PROMPT.md` examples are the minimum quality benchmark for
43
+ the prompt paragraphs produced after this normalization step. The normalized
44
+ input must therefore contain enough product strategy to support full
45
+ prototype-generation briefs, not just short screen-state image instructions.
46
+
47
+ ## Normalized Input Fields
48
+
49
+ Extract or conservatively infer:
50
+
51
+ - `product_domain`
52
+ - `primary_user`
53
+ - `usage_context`
54
+ - `current_alternative`
55
+ - `core_pain`
56
+ - `desired_behavior_change`
57
+ - `strongest_success_signal`
58
+ - `core_differentiator`
59
+ - `emotional_value`
60
+ - `functional_value`
61
+ - `trust_requirements`
62
+ - `privacy_requirements`
63
+ - `non_goals`
64
+ - `future_opportunities`
65
+ - `validation_target`
66
+
67
+ ## Missing Input Policy
68
+
69
+ Ask only when missing information would force invention of strategy. If the
70
+ vision and validation target are specific enough, infer conservative defaults
71
+ and record assumptions in the prompt pack.
72
+
73
+ Return to `/ow:vision` or `/ow:validation` when any of these are missing:
74
+
75
+ - target user
76
+ - desired behavior change
77
+ - core differentiator
78
+ - trust/privacy boundary for sensitive or AI-mediated products
79
+ - validation target
80
+
81
+ ## Output Boundary
82
+
83
+ This step prepares inputs only. It must not write image assets, generated
84
+ prototype files, design specs, production specs, or implementation backlog.
@@ -0,0 +1,108 @@
1
+ # 02 Vision Decomposition
2
+
3
+ Use this reference to convert raw vision and validation artifacts into
4
+ decision-ready strategy. Keep the decomposition compact in final artifacts, but
5
+ make it precise enough that later prompt text does not invent product strategy.
6
+
7
+ ## Dailin Workflow Mapping
8
+
9
+ This file is the OW-owned equivalent of dailin
10
+ `vision_to_strategic_prototype_prompt/reference/02_vision_decomposition.md`.
11
+ It maps dailin Step 2, "Extract Strategic Core", into durable OW prompt-pack
12
+ fields. The decomposition must be strong enough that every later
13
+ `directions[].prototype_prompt` and `screen_prompts[].prompt` can explain:
14
+
15
+ - who the product serves;
16
+ - what current alternative or pain it displaces;
17
+ - what behavior should change;
18
+ - what core mechanism and differentiator make the product worth testing;
19
+ - what trust, privacy, and non-goal boundaries constrain the prototype;
20
+ - what validation target the image prompt should make observable.
21
+
22
+ If these elements are absent, a long prompt will still be strategically thin.
23
+ Do not compensate by adding generic screen inventory, generic AI language, or
24
+ visual style.
25
+
26
+ ## Perspective Engine
27
+
28
+ Decomposition starts from a co-founder plus senior product-manager stance. Do
29
+ not ask only "what screens are implied?" Ask:
30
+
31
+ - what product should exist if this vision is true;
32
+ - why the user would switch from the current alternative;
33
+ - what transformation the product should create in the user's behavior,
34
+ confidence, control, or progress;
35
+ - what form would make the thesis most legible;
36
+ - what should be deliberately excluded so the product does not become generic.
37
+
38
+ Carry this judgment forward as source material for prompts. The later reference
39
+ files are tools that organize the judgment; they do not replace it.
40
+
41
+ ## Extraction Schema
42
+
43
+ - `target_user`: who has the problem.
44
+ - `context`: where and when the problem happens.
45
+ - `current_alternative`: what the user does today.
46
+ - `pain`: why the current alternative is insufficient.
47
+ - `desired_behavior_change`: what the user should do more, less, faster, more
48
+ safely, or more consistently.
49
+ - `strongest_success_signal`: what observable behavior proves progress.
50
+ - `core_differentiator`: why this is not the current alternative with a new UI.
51
+ - `emotional_value`: what the user should feel that makes repeated use likely.
52
+ - `functional_value`: what concrete capability the product provides.
53
+ - `trust_requirements`: what the product must show or constrain to earn trust.
54
+ - `privacy_requirements`: what data must be visible, editable, deletable,
55
+ temporary, or off by default.
56
+ - `non_goals`: what the prototype must not imply or include.
57
+ - `future_opportunities`: adjacent features intentionally deferred.
58
+ - `validation_target`: what the next prototype should prove or disprove.
59
+ - `product_thesis`: the strongest argument for why this product should exist.
60
+ - `user_transformation`: the change in behavior, confidence, control, or
61
+ progress that the prototype should make visible.
62
+ - `form_point_of_view`: the PM judgment about the product form that best serves
63
+ the thesis, including why common defaults may be wrong.
64
+
65
+ ## Strategic Core Formula
66
+
67
+ Compress the vision into:
68
+
69
+ ```text
70
+ For [target user],
71
+ who currently [current alternative / pain],
72
+ the product helps them [desired behavior]
73
+ through [core mechanism],
74
+ while [trust boundary / non-goal].
75
+ ```
76
+
77
+ ## Central Uncertainty Patterns
78
+
79
+ Classify the validation target with one or more uncertainty types:
80
+
81
+ - Activation: what gets the user to start.
82
+ - Engagement: what keeps the user moving in-session.
83
+ - Retention: what brings the user back.
84
+ - Trust: what makes the user allow data, memory, recommendation, automation, or
85
+ AI mediation.
86
+ - Differentiation: what makes the product feel meaningfully better than the
87
+ current alternative.
88
+ - Transfer: whether product behavior creates value outside the product.
89
+ - Safety or boundary: whether the product can create value without violating
90
+ user control, privacy, emotional safety, or domain constraints.
91
+
92
+ ## Prototype-Relevant Compression
93
+
94
+ When writing the prompt pack, carry forward at least:
95
+
96
+ - target user
97
+ - behavior change
98
+ - strongest success signal
99
+ - differentiator
100
+ - product thesis
101
+ - user transformation
102
+ - form point of view
103
+ - validation target
104
+ - trust/privacy requirements
105
+ - non-goals and anti-goals
106
+
107
+ Anything not carried forward can disappear from downstream prototype
108
+ generation.
@@ -0,0 +1,89 @@
1
+ # 03 Strategy Hypothesis Generation
2
+
3
+ Use this reference to create prototype directions that test different product
4
+ strategy assumptions, not different visual skins.
5
+
6
+ ## Dailin Workflow Mapping
7
+
8
+ This file is the OW-owned equivalent of dailin
9
+ `vision_to_strategic_prototype_prompt/reference/03_strategy_hypothesis_generation.md`.
10
+ It maps dailin Steps 3 and 4 into OW prompt-pack generation: create more
11
+ candidate hypotheses than needed, score them, then select the resolved count by
12
+ strategic diversity and prototypeability.
13
+
14
+ The selected directions must justify different prompt paragraphs. A direction
15
+ does not deserve its own `prototype_prompt` merely because it has a different
16
+ screen title, scenario label, module name, layout, or visual mood.
17
+
18
+ The hypothesis engine must behave like a senior product manager, not a prompt
19
+ formatting script. Each candidate should make a product argument: what form it
20
+ takes, why that form should exist, what user transformation it seeks, and what
21
+ risk or learning it exposes.
22
+
23
+ ## Hypothesis Template
24
+
25
+ ```text
26
+ If the product is shaped as [product form]
27
+ and uses [core mechanism]
28
+ to reduce or increase [friction or motivation],
29
+ then [target user] will [desired behavior]
30
+ because [emotional or functional reason].
31
+ ```
32
+
33
+ ## Direction Differentiation Dimensions
34
+
35
+ A direction is strategically distinct only when it differs from other selected
36
+ directions on at least two dimensions:
37
+
38
+ - product thesis
39
+ - product form
40
+ - user initiation trigger
41
+ - interaction model
42
+ - emotional driver
43
+ - functional mechanism
44
+ - retention mechanism
45
+ - validation metric
46
+ - main risk
47
+ - trust model
48
+ - privacy model
49
+ - reason-to-exist
50
+
51
+ ## Candidate Pool
52
+
53
+ Generate 5 to 8 candidate hypotheses before selecting the resolved count. Use
54
+ patterns like these only as seeds:
55
+
56
+ - Companion space: persistent home base, memory, low-pressure return.
57
+ - Daily ritual: scheduled call, check-in, reminder, recap, or routine.
58
+ - Scenario playground: real-life situations with branching support.
59
+ - Progress mirror: recap, journal, timeline, or concrete evidence of progress.
60
+ - Rescue-first interface: stuck-state recovery and scaffolding as the core UI.
61
+ - Personalization engine: explicit memory, preference, and recommendation
62
+ controls.
63
+ - Operations console: object selection, evidence, actions, owners, and audit.
64
+ - Workspace or editor: create, review, revise, and publish inside one loop.
65
+
66
+ ## Selection Algorithm
67
+
68
+ 1. Score each candidate on vision alignment, distinctiveness, testability,
69
+ prototypeability, and risk reduction.
70
+ 2. Penalize candidates that only arrange screens without a clear product
71
+ thesis, user transformation, differentiated form, or reason-to-exist.
72
+ 3. Select the top `direction_count_policy.resolved_count` directions with
73
+ maximum diversity.
74
+ 4. Merge or replace directions that share the same product form and trigger.
75
+ 5. Decide whether scenario labels are true directions or screens/states inside
76
+ one product shell.
77
+
78
+ ## Rejection Rules
79
+
80
+ Reject a direction when it:
81
+
82
+ - changes only color, layout, tone, or component style;
83
+ - ignores the strongest success signal;
84
+ - omits the core differentiator;
85
+ - violates non-goals or trust boundaries;
86
+ - is too broad to prototype as screens and states;
87
+ - cannot produce observable validation signals;
88
+ - recreates the named current alternative;
89
+ - is complete as a screen inventory but empty as a product thesis.
@@ -0,0 +1,78 @@
1
+ # 04 Product System Extraction
2
+
3
+ Use this reference before writing screen prompts. A dailin-grade prompt pack is
4
+ a product prototype brief, not a single image description.
5
+
6
+ ## Dailin Workflow Mapping
7
+
8
+ This OW-only step extends the dailin workflow between dailin Step 4, "Select N
9
+ Directions", and Step 5, "Write Each Prototype Prompt". Dailin's prompts work
10
+ because they describe a full product system: first-time setup, home, primary
11
+ interaction surface, correction or system-response moment, memory/trust
12
+ controls, recap, and follow-up. OW must make that product system explicit
13
+ before writing paragraph prompts.
14
+
15
+ For operations, workflow, dashboard, editor, map, inbox, or AI-mediated
16
+ products, extract the equivalent system shell and journey stages. Do not jump
17
+ from strategy directly to isolated screenshot prompts.
18
+
19
+ ## Product Experience Model
20
+
21
+ Populate `product_experience_model` before selecting or finalizing directions:
22
+
23
+ - `product_archetype`: category such as map-first dashboard, voice call ritual,
24
+ companion room, scenario playground, inbox, workspace, board, editor, console,
25
+ journal, or operations command center.
26
+ - `primary_canvas`: the surface that should dominate the prototype, such as
27
+ map, call console, conversation room, timeline, board, editor, dashboard, or
28
+ object detail workspace.
29
+ - `information_architecture`: navigation, hierarchy, product areas, and major
30
+ domains.
31
+ - `domain_object_model`: concrete user-visible objects, records, entities,
32
+ files, memories, tasks, incidents, assets, messages, or business data.
33
+ - `primary_task_loop`: the end-to-end workflow the prototype must make legible.
34
+ - `interaction_state_model`: selected, expanded, empty, loading, warning,
35
+ blocked, permissioned, pending human confirmation, stuck, rescued, saved,
36
+ edited, or deleted states.
37
+ - `data_realism_requirements`: sample fields, labels, metrics, values, copy,
38
+ timestamps, owners, statuses, and domain-specific examples.
39
+ - `visual_language`: category-specific layout and component expectations.
40
+ - `anti_generic_constraints`: patterns that would make the prototype false to
41
+ the product category.
42
+
43
+ ## Screen Group Manifest
44
+
45
+ Derive a `screen_manifest` before writing final prompts. Each screen should
46
+ carry:
47
+
48
+ - `screen_id`
49
+ - `screen_name`
50
+ - `journey_stage`
51
+ - `user_goal`
52
+ - `system_state`
53
+ - `selected_object` when relevant
54
+ - `required_components`
55
+ - `required_data_fields`
56
+ - `primary_actions`
57
+ - `ai_behavior` or explicit non-AI rationale
58
+ - `trust_controls`
59
+ - `example_copy`
60
+ - `acceptance_criteria`
61
+
62
+ If the product is a continuous workflow, screens should be state progression,
63
+ not unrelated scenario slides.
64
+
65
+ ## Direction Versus Scenario Test
66
+
67
+ A scenario is a direction only if it changes product form, trigger, interaction
68
+ model, emotional driver, retention mechanism, validation metric, or main risk.
69
+
70
+ Otherwise, model the scenario as a screen, module, layer, state, or object type
71
+ inside one product shell.
72
+
73
+ ## Product Specificity Rule
74
+
75
+ Every prompt pack must contain concrete domain objects and example content.
76
+ Words like dashboard, metrics, AI, workflow, recommendation, memory, or coach
77
+ are insufficient unless the artifact names the actual objects, fields, states,
78
+ actions, and system behavior.
@@ -0,0 +1,189 @@
1
+ # 05 Prototype Prompt Schema
2
+
3
+ Use this reference when writing the human-readable `PROTO_PROMPT_PACK.md` and
4
+ the prompt text embedded in `PROTO_PROMPT_PACK.yaml`.
5
+
6
+ ## Dailin Workflow Mapping
7
+
8
+ This file is the OW-owned equivalent of dailin
9
+ `vision_to_strategic_prototype_prompt/reference/04_prototype_prompt_schema.md`.
10
+ It maps dailin Step 5, "Write Each Prototype Prompt", into the concrete text
11
+ requirements for `directions[].prototype_prompt` and
12
+ `screen_prompts[].prompt`.
13
+
14
+ The dailin `OUTPUT_PROMPT.md` examples are the minimum paragraph quality bar.
15
+ They are not examples of length for its own sake; they are complete
16
+ prototype-generation briefs with positioning, user context, required screens,
17
+ journey, interaction behavior, system response, trust controls, visual
18
+ direction, anti-goals, and desired user feeling. OW prompt text must meet or
19
+ exceed that level before it can be treated as image-generation-ready.
20
+
21
+ Prompt text must also carry a senior product-manager point of view. The
22
+ paragraph should not merely enumerate UI. It should express the product thesis,
23
+ why the chosen form deserves to exist, how the user should transform, and what
24
+ design philosophy governs the prototype.
25
+
26
+ ## Required Prompt Structure
27
+
28
+ ```text
29
+ Design a high-fidelity [platform] prototype for a product called "[Product Name]".
30
+
31
+ Product positioning:
32
+ [What the product is and what it is not.]
33
+
34
+ Target user:
35
+ [Specific user segment, context, pain, and motivation.]
36
+
37
+ Core product idea:
38
+ [Main mechanism, differentiator, and trust boundary.]
39
+
40
+ Product thesis and reason-to-exist:
41
+ [Why this product form should exist, what it tests, and why it is not a
42
+ generic dashboard, chatbot, card wall, report screen, or visual skin unless
43
+ that form is strategically necessary.]
44
+
45
+ Design the following screens:
46
+
47
+ 1. [Screen Name]
48
+ - Purpose: [why this screen exists]
49
+ - Components: [visible UI elements]
50
+ - State: [current and alternate states]
51
+ - Data: [concrete fields, values, example content]
52
+ - Actions: [what the user can do]
53
+ - System response: [what the product or AI does next]
54
+ - Acceptance: [what must be visible for this screen to pass]
55
+
56
+ Interaction requirements:
57
+ - [Complete flow]
58
+ - [Critical states]
59
+ - [Error, stuck, blocked, rescue, or approval behavior]
60
+
61
+ System / AI behavior requirements:
62
+ - [Behavior rules]
63
+ - [Adaptation logic]
64
+ - [Boundary rules]
65
+
66
+ Trust, privacy, and user control:
67
+ - [What is visible]
68
+ - [What is editable, deletable, optional, or blocked]
69
+ - [What cannot happen automatically]
70
+
71
+ Visual direction:
72
+ - [Product-category layout]
73
+ - [Component vocabulary]
74
+ - [Information density]
75
+ - [What to avoid]
76
+
77
+ Anti-goals:
78
+ - [Things the prototype must not imply or include]
79
+
80
+ Prototype journey:
81
+ Show the complete flow:
82
+ [Step 1] -> [Step 2] -> [Step 3] -> [Step 4]
83
+
84
+ The prototype should make the user feel:
85
+ [Desired emotional and behavioral response.]
86
+ ```
87
+
88
+ ## Long-Form Prompt Paragraph Anatomy
89
+
90
+ Each direction-level `prototype_prompt` must read like a complete
91
+ high-fidelity prototype brief, not a caption for one image. It must include, in
92
+ natural prompt text or clearly equivalent structured sections:
93
+
94
+ - product name and product positioning, including what the product is not;
95
+ - target user, usage context, pain, motivation, and behavior change;
96
+ - core product idea, mechanism, differentiator, and trust boundary;
97
+ - product thesis, reason-to-exist, and target user transformation;
98
+ - required screen group with journey stages, not unrelated screenshots;
99
+ - interaction requirements, including user actions and critical state changes;
100
+ - system, AI, workflow, or automation response after meaningful user actions;
101
+ - concrete example copy, data, metrics, objects, labels, owners, timestamps, or
102
+ messages appropriate to the domain;
103
+ - trust, privacy, safety, approval, memory, or user-control surfaces when
104
+ relevant;
105
+ - visual direction tied to product category, primary canvas, component
106
+ vocabulary, density, and anti-generic patterns;
107
+ - anti-goals converted into explicit prohibitions;
108
+ - prototype journey and the intended user feeling or behavioral reaction.
109
+
110
+ Each screen-level `screen_prompts[].prompt` must be standalone enough for an
111
+ image-generation agent to create that screen without reading chat history. It
112
+ may inherit from the direction, but it still must name the journey stage, user
113
+ goal, system state, selected object when relevant, required components, example
114
+ content, primary actions, system response, trust controls, negative prompt
115
+ relationship, and acceptance criteria.
116
+
117
+ The old M99-style screen-state prompt is insufficient:
118
+
119
+ ```text
120
+ Show the same map shell with the incident detail panel open.
121
+ ```
122
+
123
+ A dailin-grade screen prompt instead explains why the screen exists, what the
124
+ operator or user is trying to do, what data and controls are visible, what the
125
+ system does next, what must not be implied, and what feeling or behavior the
126
+ image should create.
127
+
128
+ The prompt should also be opinionated enough that another agent understands why
129
+ this prototype is worth generating. If the paragraph can be moved to a
130
+ different product by swapping names and labels, it has not carried the
131
+ co-founder/senior-PM engine forward.
132
+
133
+ ## Screen Specification Rules
134
+
135
+ Each screen must specify:
136
+
137
+ - purpose
138
+ - components
139
+ - states
140
+ - actions
141
+ - system response
142
+ - example content
143
+ - acceptance criteria
144
+
145
+ The screen prompt should bind these fields into image-generation text. Merely
146
+ having the fields elsewhere in YAML is not enough when the prompt paragraph
147
+ itself remains terse.
148
+
149
+ Before handoff, the prompt text must satisfy
150
+ `prompt_text_manifest.paragraph_quality_status: pass`. Required paragraph
151
+ quality dimensions include product context, target user, journey,
152
+ screens/components, interaction or system response, concrete content, trust or
153
+ user control, visual direction, anti-goals, desired user feeling, and the
154
+ senior product-manager perspective engine.
155
+
156
+ ## AI/System Behavior Rules
157
+
158
+ If the product involves AI, memory, personalization, recommendation, coaching,
159
+ workflow automation, or decision support, behavior must be explicit:
160
+
161
+ - The AI should...
162
+ - The AI must not...
163
+ - When the user...
164
+ - When data is stale, missing, private, or synthetic...
165
+ - Before action is executed...
166
+ - If the user is stuck, silent, blocked, or nervous...
167
+
168
+ ## Concrete Content Requirement
169
+
170
+ Include examples of cards, messages, data fields, metrics, settings labels,
171
+ buttons, empty states, notifications, privacy controls, audit rows, owners,
172
+ timestamps, selected objects, and sample copy as appropriate for the domain.
173
+
174
+ ## Visual Direction Rule
175
+
176
+ Visual direction must encode product strategy. Avoid vague prompts like
177
+ "modern and beautiful." Name the layout system, component vocabulary,
178
+ information density, primary canvas, and anti-generic patterns.
179
+
180
+ When the obvious default would be a dashboard, chatbot, card wall, report page,
181
+ or SaaS shell, state whether that default is strategically correct. If it is
182
+ not, name the alternative product form and why it better serves the user
183
+ transformation.
184
+
185
+ ## Anti-Goals as Constraints
186
+
187
+ Convert non-goals into design prohibitions. If a product must not feel like a
188
+ course, chatbot, governance report, card wall, romantic companion, autonomous
189
+ approval system, or slide deck, state that directly in the prompt.
@@ -0,0 +1,125 @@
1
+ # 06 Output Templates
2
+
3
+ Use these shapes when writing `PROTO_PROMPT_PACK.md`. The YAML source artifact
4
+ should carry the same content structurally.
5
+
6
+ ## Dailin Workflow Mapping
7
+
8
+ This file is the OW-owned equivalent of dailin
9
+ `vision_to_strategic_prototype_prompt/reference/05_output_templates.md`.
10
+ It maps dailin's Direction Map, full Prototype Prompt sections, PM Judgment,
11
+ and Build Recommendation into OW's `PROTO_PROMPT_PACK.yaml` source and
12
+ `PROTO_PROMPT_PACK.md` readable view.
13
+
14
+ The Markdown view may be compact for handoff, but the YAML prompt text must not
15
+ be compacted below dailin `OUTPUT_PROMPT.md` quality. If `PROTO_PROMPT_PACK.md`
16
+ or `screen_prompts[].prompt` reads like a short screen-state instruction, the
17
+ output template has failed even if all required keys exist.
18
+
19
+ ## Strategic Prompt Pack View
20
+
21
+ ```text
22
+ # [N] Strategic Prototype Directions
23
+
24
+ These directions are not the same product with different styling. They test
25
+ different product hypotheses and validation risks.
26
+
27
+ ## Direction Map
28
+
29
+ | Direction | Strategic Hypothesis | Validates | Main Risk |
30
+ | --- | --- | --- | --- |
31
+ | D1 | ... | ... | ... |
32
+ | D2 | ... | ... | ... |
33
+
34
+ ## Global Product System
35
+
36
+ - Product thesis:
37
+ - Target user:
38
+ - Current alternative:
39
+ - Primary loop:
40
+ - Product experience model:
41
+ - Trust and privacy boundaries:
42
+ - Anti-goals:
43
+
44
+ ## Direction D1: [Name]
45
+
46
+ ### Strategic Hypothesis
47
+
48
+ ...
49
+
50
+ ### What This Validates
51
+
52
+ ...
53
+
54
+ ### Prototype Brief
55
+
56
+ ```text
57
+ [Full high-fidelity prototype prompt]
58
+ ```
59
+
60
+ ### Screen Manifest
61
+
62
+ | Screen | Journey Stage | User Goal | System State | Required Data | Primary Actions |
63
+ | --- | --- | --- | --- | --- | --- |
64
+
65
+ ### Screen Prompts
66
+
67
+ #### D1-S1: [Screen name]
68
+
69
+ ```text
70
+ [Standalone screen prompt]
71
+ ```
72
+
73
+ Negative prompt:
74
+ [What this screen must not show]
75
+
76
+ Acceptance:
77
+ - ...
78
+
79
+ ### PM Judgment
80
+
81
+ ...
82
+
83
+ ## Build Recommendation
84
+
85
+ - First direction:
86
+ - Why first:
87
+ - Success signals:
88
+ - Failure signals:
89
+ - Next test if it works:
90
+ ```
91
+
92
+ ## Compact View
93
+
94
+ Use only when output budget is tight. Keep the full YAML source complete.
95
+
96
+ ```text
97
+ # Strategic Prototype Prompts
98
+
99
+ ## D1: [Name]
100
+ Hypothesis: ...
101
+ Prompt: ...
102
+ Acceptance: ...
103
+
104
+ ## D2: [Name]
105
+ ...
106
+
107
+ Recommendation: ...
108
+ ```
109
+
110
+ ## Tool Adaptation
111
+
112
+ - Figma or image tools: emphasize screens, layout, components, state, visual
113
+ direction, and acceptance criteria.
114
+ - v0 or frontend generators: include responsive layout, component hierarchy,
115
+ route assumptions, stateful examples, and realistic sample data.
116
+ - App builders: include user flows, data objects, persistence assumptions,
117
+ settings, and simple backend expectations.
118
+ - Human designers: include rationale, design principles, user emotions,
119
+ research questions, and validation plan.
120
+
121
+ ## Source Parity Rule
122
+
123
+ `PROTO_PROMPT_PACK.md` is a readable view. `PROTO_PROMPT_PACK.yaml` remains the
124
+ source of truth. If the Markdown contains richer direction, screen, state,
125
+ copy, or acceptance content than YAML, the prompt pack is incomplete.