@onion-architect-ai/cli 4.1.0-beta.1 → 4.1.0-beta.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 (207) hide show
  1. package/dist/cli.js +8 -7
  2. package/dist/cli.js.map +1 -1
  3. package/package.json +4 -3
  4. package/templates/.cursor/agents/compliance/iso-22301-specialist.md +917 -0
  5. package/templates/.cursor/agents/compliance/iso-27001-specialist.md +641 -0
  6. package/templates/.cursor/agents/compliance/pmbok-specialist.md +669 -0
  7. package/templates/.cursor/agents/compliance/security-information-master.md +824 -0
  8. package/templates/.cursor/agents/compliance/soc2-specialist.md +818 -0
  9. package/templates/.cursor/agents/deployment/docker-specialist.md +1192 -0
  10. package/templates/.cursor/agents/meta/agent-creator-specialist.md +1135 -0
  11. package/templates/.cursor/agents/meta/command-creator-specialist.md +1519 -0
  12. package/templates/.cursor/agents/meta/metaspec-gate-keeper.md +240 -0
  13. package/templates/.cursor/agents/meta/onion.md +753 -0
  14. package/templates/.cursor/agents/research/research-agent.md +292 -0
  15. package/templates/.cursor/agents/review/corporate-compliance-specialist.md +370 -0
  16. package/templates/.cursor/commands/common/prompts/README.md +187 -0
  17. package/templates/.cursor/commands/common/prompts/clickup-patterns.md +144 -0
  18. package/templates/.cursor/commands/common/prompts/code-review-checklist.md +168 -0
  19. package/templates/.cursor/commands/common/prompts/git-workflow-patterns.md +235 -0
  20. package/templates/.cursor/commands/common/prompts/output-formats.md +240 -0
  21. package/templates/.cursor/commands/common/prompts/technical.md +172 -0
  22. package/templates/.cursor/commands/common/prompts/validation-rules.md +173 -0
  23. package/templates/.cursor/commands/common/templates/abstraction-template.md +400 -0
  24. package/templates/.cursor/commands/common/templates/agent-template.md +353 -0
  25. package/templates/.cursor/commands/common/templates/business_context_template.md +748 -0
  26. package/templates/.cursor/commands/common/templates/command-template.md +273 -0
  27. package/templates/.cursor/commands/common/templates/technical_context_template.md +526 -0
  28. package/templates/.cursor/commands/development/runflow-dev.md +465 -0
  29. package/templates/.cursor/commands/docs/build-compliance-docs.md +143 -0
  30. package/templates/.cursor/commands/git/README.md +606 -0
  31. package/templates/.cursor/commands/meta/all-tools.md +50 -0
  32. package/templates/.cursor/commands/meta/analyze-complex-problem.md +186 -0
  33. package/templates/.cursor/commands/meta/create-abstraction.md +859 -0
  34. package/templates/.cursor/commands/meta/create-agent-express.md +83 -0
  35. package/templates/.cursor/commands/meta/create-agent.md +210 -0
  36. package/templates/.cursor/commands/meta/create-command.md +203 -0
  37. package/templates/.cursor/commands/meta/create-knowledge-base.md +143 -0
  38. package/templates/.cursor/commands/meta/create-task-structure.md +150 -0
  39. package/templates/.cursor/commands/meta/setup-integration.md +257 -0
  40. package/templates/.cursor/commands/onion/setup.md +843 -0
  41. package/templates/.cursor/commands/onion.md +168 -0
  42. package/templates/.cursor/commands/product/README.md +230 -0
  43. package/templates/.cursor/commands/quick/analisys.md +17 -0
  44. package/templates/.cursor/commands/validate/collab/pair-testing.md +633 -0
  45. package/templates/.cursor/commands/validate/collab/three-amigos.md +505 -0
  46. package/templates/.cursor/commands/validate/qa-points/estimate.md +660 -0
  47. package/templates/.cursor/commands/validate/test-strategy/analyze.md +1134 -0
  48. package/templates/.cursor/commands/validate/test-strategy/create.md +392 -0
  49. package/templates/.cursor/commands/validate/workflow.md +360 -0
  50. package/templates/.cursor/commands/warm-up.md +91 -0
  51. package/templates/.cursor/docs/architecture/acoplamento-clickup-problema-analise.md +446 -0
  52. package/templates/.cursor/docs/architecture/desacoplamento-roadmap.md +360 -0
  53. package/templates/.cursor/docs/architecture/validacao-fase-1.md +219 -0
  54. package/templates/.cursor/docs/c4/c4-detection-rules.md +395 -0
  55. package/templates/.cursor/docs/c4/c4-documentation-templates.md +579 -0
  56. package/templates/.cursor/docs/c4/c4-mermaid-patterns.md +331 -0
  57. package/templates/.cursor/docs/c4/c4-templates.md +256 -0
  58. package/templates/.cursor/docs/clickup/clickup-acceptance-criteria-strategy.md +329 -0
  59. package/templates/.cursor/docs/clickup/clickup-auto-update-strategy.md +318 -0
  60. package/templates/.cursor/docs/clickup/clickup-comment-formatter.md +239 -0
  61. package/templates/.cursor/docs/clickup/clickup-description-fix.md +355 -0
  62. package/templates/.cursor/docs/clickup/clickup-dual-comment-strategy.md +505 -0
  63. package/templates/.cursor/docs/clickup/clickup-formatting.md +302 -0
  64. package/templates/.cursor/docs/clickup/separador-tamanho-otimizado.md +256 -0
  65. package/templates/.cursor/docs/engineer/pre-pr-acceptance-validation.md +256 -0
  66. package/templates/.cursor/docs/onion/ESPERANTO.md +278 -0
  67. package/templates/.cursor/docs/onion/agents-reference.md +832 -0
  68. package/templates/.cursor/docs/onion/clickup-integration.md +738 -0
  69. package/templates/.cursor/docs/onion/commands-guide.md +807 -0
  70. package/templates/.cursor/docs/onion/engineering-flows.md +865 -0
  71. package/templates/.cursor/docs/onion/getting-started.md +741 -0
  72. package/templates/.cursor/docs/onion/maintenance-checklist.md +388 -0
  73. package/templates/.cursor/docs/onion/naming-conventions.md +268 -0
  74. package/templates/.cursor/docs/onion/practical-examples.md +782 -0
  75. package/templates/.cursor/docs/product/story-points-integration.md +254 -0
  76. package/templates/.cursor/docs/product/story-points-validation.md +224 -0
  77. package/templates/.cursor/docs/reviews/task-manager-docs-review-2025-11-24.md +167 -0
  78. package/templates/.cursor/docs/strategies/clickup-comment-patterns.md +766 -0
  79. package/templates/.cursor/docs/strategies/clickup-integration-tests.md +599 -0
  80. package/templates/.cursor/docs/strategies/clickup-mcp-wrappers-tests.md +854 -0
  81. package/templates/.cursor/docs/strategies/clickup-regression-tests.md +589 -0
  82. package/templates/.cursor/docs/strategies/visual-patterns.md +308 -0
  83. package/templates/.cursor/docs/templates/README.md +624 -0
  84. package/templates/.cursor/docs/templates/adr-template.md +226 -0
  85. package/templates/.cursor/docs/templates/analysis-template.md +280 -0
  86. package/templates/.cursor/docs/templates/execution-plan-template.md +430 -0
  87. package/templates/.cursor/docs/templates/guide-template.md +367 -0
  88. package/templates/.cursor/docs/templates/phase-execution-prompt-template.md +504 -0
  89. package/templates/.cursor/docs/templates/reference-template.md +522 -0
  90. package/templates/.cursor/docs/templates/solution-template.md +390 -0
  91. package/templates/.cursor/docs/tools/README.md +325 -0
  92. package/templates/.cursor/docs/tools/agents.md +330 -0
  93. package/templates/.cursor/docs/tools/commands.md +606 -0
  94. package/templates/.cursor/docs/tools/cursor.md +498 -0
  95. package/templates/.cursor/docs/tools/mcps.md +858 -0
  96. package/templates/.cursor/docs/tools/rules.md +423 -0
  97. package/templates/.cursor/rules/language-and-documentation.mdc +371 -0
  98. package/templates/.cursor/rules/onion-patterns.mdc +197 -0
  99. package/templates/.cursor/rules/validation-rules.mdc +194 -0
  100. package/templates/.cursor/utils/clickup-mcp-wrappers.md +671 -0
  101. package/templates/.cursor/utils/date-time-standards.md +182 -0
  102. package/templates/.cursor/utils/task-manager/README.md +94 -0
  103. package/templates/.cursor/utils/task-manager/adapters/asana.md +377 -0
  104. package/templates/.cursor/utils/task-manager/adapters/clickup.md +467 -0
  105. package/templates/.cursor/utils/task-manager/adapters/linear.md +421 -0
  106. package/templates/.cursor/utils/task-manager/detector.md +290 -0
  107. package/templates/.cursor/utils/task-manager/factory.md +363 -0
  108. package/templates/.cursor/utils/task-manager/interface.md +248 -0
  109. package/templates/.cursor/utils/task-manager/types.md +409 -0
  110. package/templates/.cursor/validation/product-task-validation.md +344 -0
  111. package/templates/.onion/contexts/business/.context-config.yml +52 -0
  112. package/templates/.onion/contexts/business/README.md +222 -0
  113. package/templates/.onion/contexts/business/agents/branding-specialist.md +1030 -0
  114. package/templates/.onion/contexts/business/agents/clickup-specialist.md +397 -0
  115. package/templates/.onion/contexts/business/agents/extract-meeting-specialist.md +395 -0
  116. package/templates/.onion/contexts/business/agents/gamma-specialist.md +1169 -0
  117. package/templates/.onion/contexts/business/agents/meeting-consolidator.md +483 -0
  118. package/templates/.onion/contexts/business/agents/pain-price-specialist.md +509 -0
  119. package/templates/.onion/contexts/business/agents/presentation-orchestrator.md +1191 -0
  120. package/templates/.onion/contexts/business/agents/product-agent.md +202 -0
  121. package/templates/.onion/contexts/business/agents/story-points-specialist.md +539 -0
  122. package/templates/.onion/contexts/business/agents/storytelling-specialist.md +891 -0
  123. package/templates/.onion/contexts/business/agents/task-specialist.md +618 -0
  124. package/templates/.onion/contexts/business/agents/whisper-specialist.md +373 -0
  125. package/templates/.onion/contexts/business/commands/advanced/analyze-pain-price.md +709 -0
  126. package/templates/.onion/contexts/business/commands/advanced/branding.md +460 -0
  127. package/templates/.onion/contexts/business/commands/advanced/checklist-sync.md +241 -0
  128. package/templates/.onion/contexts/business/commands/advanced/presentation.md +189 -0
  129. package/templates/.onion/contexts/business/commands/advanced/transform-consolidated.md +592 -0
  130. package/templates/.onion/contexts/business/commands/help.md +212 -0
  131. package/templates/.onion/contexts/business/commands/intermediate/check.md +48 -0
  132. package/templates/.onion/contexts/business/commands/intermediate/collect.md +96 -0
  133. package/templates/.onion/contexts/business/commands/intermediate/consolidate-meetings.md +306 -0
  134. package/templates/.onion/contexts/business/commands/intermediate/convert-to-tasks.md +220 -0
  135. package/templates/.onion/contexts/business/commands/intermediate/extract-meeting.md +241 -0
  136. package/templates/.onion/contexts/business/commands/intermediate/feature.md +431 -0
  137. package/templates/.onion/contexts/business/commands/intermediate/light-arch.md +97 -0
  138. package/templates/.onion/contexts/business/commands/intermediate/task-check.md +340 -0
  139. package/templates/.onion/contexts/business/commands/intermediate/validate-task.md +294 -0
  140. package/templates/.onion/contexts/business/commands/intermediate/whisper.md +325 -0
  141. package/templates/.onion/contexts/business/commands/starter/estimate.md +519 -0
  142. package/templates/.onion/contexts/business/commands/starter/refine.md +186 -0
  143. package/templates/.onion/contexts/business/commands/starter/spec.md +107 -0
  144. package/templates/.onion/contexts/business/commands/starter/task.md +585 -0
  145. package/templates/.onion/contexts/business/commands/starter/warm-up.md +187 -0
  146. package/templates/.onion/contexts/technical/.context-config.yml +64 -0
  147. package/templates/.onion/contexts/technical/README.md +238 -0
  148. package/templates/.onion/contexts/technical/agents/branch-code-reviewer.md +200 -0
  149. package/templates/.onion/contexts/technical/agents/branch-doc-writer.md +162 -0
  150. package/templates/.onion/contexts/technical/agents/branch-metaspec-checker.md +68 -0
  151. package/templates/.onion/contexts/technical/agents/branch-test-planner.md +177 -0
  152. package/templates/.onion/contexts/technical/agents/c4-architecture-specialist.md +712 -0
  153. package/templates/.onion/contexts/technical/agents/c4-documentation-specialist.md +658 -0
  154. package/templates/.onion/contexts/technical/agents/code-reviewer.md +155 -0
  155. package/templates/.onion/contexts/technical/agents/cursor-specialist.md +249 -0
  156. package/templates/.onion/contexts/technical/agents/docs-reverse-engineer.md +418 -0
  157. package/templates/.onion/contexts/technical/agents/gitflow-specialist.md +1207 -0
  158. package/templates/.onion/contexts/technical/agents/linux-security-specialist.md +676 -0
  159. package/templates/.onion/contexts/technical/agents/mermaid-specialist.md +516 -0
  160. package/templates/.onion/contexts/technical/agents/nodejs-specialist.md +673 -0
  161. package/templates/.onion/contexts/technical/agents/nx-migration-specialist.md +867 -0
  162. package/templates/.onion/contexts/technical/agents/nx-monorepo-specialist.md +619 -0
  163. package/templates/.onion/contexts/technical/agents/postgres-specialist.md +1124 -0
  164. package/templates/.onion/contexts/technical/agents/react-developer.md +132 -0
  165. package/templates/.onion/contexts/technical/agents/runflow-specialist.md +278 -0
  166. package/templates/.onion/contexts/technical/agents/system-doc-orchestrator.md +1388 -0
  167. package/templates/.onion/contexts/technical/agents/test-agent.md +425 -0
  168. package/templates/.onion/contexts/technical/agents/test-engineer.md +295 -0
  169. package/templates/.onion/contexts/technical/agents/test-planner.md +118 -0
  170. package/templates/.onion/contexts/technical/agents/zen-engine-specialist.md +421 -0
  171. package/templates/.onion/contexts/technical/commands/advanced/bump.md +43 -0
  172. package/templates/.onion/contexts/technical/commands/advanced/consolidate-documents.md +424 -0
  173. package/templates/.onion/contexts/technical/commands/advanced/e2e.md +392 -0
  174. package/templates/.onion/contexts/technical/commands/advanced/feature-finish.md +90 -0
  175. package/templates/.onion/contexts/technical/commands/advanced/feature-publish.md +91 -0
  176. package/templates/.onion/contexts/technical/commands/advanced/feature-start.md +158 -0
  177. package/templates/.onion/contexts/technical/commands/advanced/hotfix-finish.md +98 -0
  178. package/templates/.onion/contexts/technical/commands/advanced/hotfix-start.md +94 -0
  179. package/templates/.onion/contexts/technical/commands/advanced/hotfix.md +186 -0
  180. package/templates/.onion/contexts/technical/commands/advanced/refine-vision.md +27 -0
  181. package/templates/.onion/contexts/technical/commands/advanced/release-finish.md +98 -0
  182. package/templates/.onion/contexts/technical/commands/advanced/release-start.md +95 -0
  183. package/templates/.onion/contexts/technical/commands/advanced/reverse-consolidate.md +160 -0
  184. package/templates/.onion/contexts/technical/commands/advanced/validate-phase-sync.md +118 -0
  185. package/templates/.onion/contexts/technical/commands/help.md +329 -0
  186. package/templates/.onion/contexts/technical/commands/intermediate/build-business-docs.md +276 -0
  187. package/templates/.onion/contexts/technical/commands/intermediate/build-index.md +128 -0
  188. package/templates/.onion/contexts/technical/commands/intermediate/build-tech-docs.md +204 -0
  189. package/templates/.onion/contexts/technical/commands/intermediate/code-review.md +215 -0
  190. package/templates/.onion/contexts/technical/commands/intermediate/docs-health.md +142 -0
  191. package/templates/.onion/contexts/technical/commands/intermediate/fast-commit.md +45 -0
  192. package/templates/.onion/contexts/technical/commands/intermediate/integration.md +523 -0
  193. package/templates/.onion/contexts/technical/commands/intermediate/pr-update.md +198 -0
  194. package/templates/.onion/contexts/technical/commands/intermediate/pre-pr.md +91 -0
  195. package/templates/.onion/contexts/technical/commands/intermediate/start.md +266 -0
  196. package/templates/.onion/contexts/technical/commands/intermediate/sync-sessions.md +320 -0
  197. package/templates/.onion/contexts/technical/commands/intermediate/unit.md +378 -0
  198. package/templates/.onion/contexts/technical/commands/intermediate/validate-docs.md +159 -0
  199. package/templates/.onion/contexts/technical/commands/starter/docs.md +39 -0
  200. package/templates/.onion/contexts/technical/commands/starter/help.md +306 -0
  201. package/templates/.onion/contexts/technical/commands/starter/init.md +139 -0
  202. package/templates/.onion/contexts/technical/commands/starter/plan.md +111 -0
  203. package/templates/.onion/contexts/technical/commands/starter/pr.md +136 -0
  204. package/templates/.onion/contexts/technical/commands/starter/sync.md +228 -0
  205. package/templates/.onion/contexts/technical/commands/starter/warm-up.md +173 -0
  206. package/templates/.onion/contexts/technical/commands/starter/work.md +169 -0
  207. package/templates/.onion/core/commands/help.md +388 -0
@@ -0,0 +1,748 @@
1
+ # Template de Arquitetura de Contexto de Negócio
2
+ *Framework estratégico para organizar conhecimento de negócio para habilitar desenvolvimento de produto e sucesso do cliente baseados em IA*
3
+
4
+ ---
5
+
6
+ ## Propósito Deste Template
7
+
8
+ Este template ajuda times de produto a projetar sua **Arquitetura de Contexto de Negócio** - a abordagem sistemática para organizar, estruturar e manter todo o conhecimento de negócio para que a IA possa entender seus clientes, produto e mercado tão bem quanto seus melhores membros da equipe.
9
+
10
+ **Use este template para:**
11
+ - Criar inteligência de negócio acessível para IA
12
+ - Permitir que IA tome decisões de produto contextualmente apropriadas
13
+ - Escalar conhecimento institucional entre times
14
+ - Melhorar experiência do cliente através de personalização por IA
15
+ - Acelerar produtividade de novos membros da equipe
16
+
17
+ ---
18
+
19
+ ## Perfil de Contexto de Negócio
20
+
21
+ ### Fundação da Empresa e Produto
22
+
23
+ **Visão Geral da Empresa:**
24
+ - **Company Name:** `[Your Company]`
25
+ - **Industry:** `__________`
26
+ - **Company Stage:**
27
+ - [ ] Startup (Pre-Product Market Fit)
28
+ - [ ] Growth (Post-PMF, Scaling)
29
+ - [ ] Enterprise (Mature, Multiple Products)
30
+ - [ ] Legacy (Established, Optimizing)
31
+
32
+ **Product Information:**
33
+ - **Primary Product:** `__________`
34
+ - **Product Category:** `__________`
35
+ - **Target Market Size:** `__________`
36
+ - **Business Model:**
37
+ - [ ] SaaS Subscription
38
+ - [ ] Marketplace
39
+ - [ ] E-commerce
40
+ - [ ] Freemium
41
+ - [ ] Enterprise Licensing
42
+ - [ ] Other: `__________`
43
+
44
+ **Revenue and Scale:**
45
+ - **Annual Revenue Range:** `$________`
46
+ - **Customer Count:** `________`
47
+ - **Team Size:** `____` people
48
+ - **Primary Growth Metrics:** `__________`
49
+
50
+ ---
51
+
52
+ ## Business Context Architecture Design
53
+
54
+ **IMPORTANT: Create a multi-file structure with an index.md that links to separate files for each layer. Do NOT create one large file.**
55
+
56
+ **Implementation Approach:**
57
+ 1. **First**: Create `index.md` with the business profile and layer links
58
+ 2. **Then**: Create individual files for each layer as needed
59
+ 3. **Finally**: Ensure all links in the index work correctly
60
+
61
+ **File Naming Convention:**
62
+ - Use UPPERCASE for generic business documentation files (e.g., `CUSTOMER_PERSONAS.md`)
63
+ - Use lowercase for business-specific files (e.g., `business_profile.md`)
64
+ - Keep filenames descriptive and business-focused
65
+
66
+ ### Create an Index File First
67
+
68
+ **Create: `index.md` (or `business_context.md`)**
69
+ ```markdown
70
+ ## Business Context Profile
71
+
72
+ ### Company and Product Foundation
73
+ [Include the business profile information here]
74
+
75
+ ---
76
+
77
+ ## Layer 1: Customer Context Architecture
78
+
79
+ - [Customer Personas](CUSTOMER_PERSONAS.md)
80
+ - [Customer Journey](CUSTOMER_JOURNEY.md)
81
+ - [Voice of Customer](VOICE_OF_CUSTOMER.md)
82
+
83
+ ## Layer 2: Product Context Architecture
84
+
85
+ - [Product Strategy](PRODUCT_STRATEGY.md)
86
+ - [Feature Catalog](FEATURE_CATALOG.md)
87
+ - [Product Metrics](PRODUCT_METRICS.md)
88
+
89
+ ## Layer 3: Market and Competitive Context
90
+
91
+ - [Competitive Landscape](COMPETITIVE_LANDSCAPE.md)
92
+ - [Industry Trends](INDUSTRY_TRENDS.md)
93
+
94
+ ## Layer 4: Operational Business Context
95
+
96
+ - [Sales Process](SALES_PROCESS.md)
97
+ - [Messaging Framework](MESSAGING_FRAMEWORK.md)
98
+ - [Customer Communication Guidelines](CUSTOMER_COMMUNICATION.md)
99
+
100
+ [Include remaining sections: Context Integration, Success Measurement, Implementation Strategy]
101
+ ```
102
+
103
+ ## Layer 1: Customer Context Architecture
104
+
105
+ ### Customer Intelligence Framework
106
+
107
+ **Create: `CUSTOMER_PERSONAS.md`**
108
+ ```markdown
109
+ # Customer Personas
110
+
111
+ ## Primary Persona: [Persona Name]
112
+ ### Demographics
113
+ - Role/Title: [e.g., Marketing Manager]
114
+ - Company Size: [e.g., 50-200 employees]
115
+ - Industry: [e.g., SaaS, E-commerce]
116
+ - Experience Level: [e.g., 2-5 years in role]
117
+
118
+ ### Goals and Motivations
119
+ - Primary Goals: What are they trying to achieve?
120
+ - Success Metrics: How do they measure success?
121
+ - Career Aspirations: What drives them professionally?
122
+
123
+ ### Pain Points and Challenges
124
+ - Current Process: How do they solve this today?
125
+ - Friction Points: Where do they struggle?
126
+ - Constraints: What limits their options?
127
+
128
+ ### Technology Context
129
+ - Tools Used: Current software stack
130
+ - Technical Comfort: How technical are they?
131
+ - Decision Process: How do they evaluate solutions?
132
+
133
+ ### Communication Preferences
134
+ - Preferred Channels: Email, Slack, phone, etc.
135
+ - Language Style: Formal, casual, technical
136
+ - Information Density: Brief summaries vs detailed analysis
137
+
138
+ ### AI Interaction Notes
139
+ - How should AI communicate with this persona?
140
+ - What level of detail do they prefer?
141
+ - What topics should AI avoid or emphasize?
142
+ ```
143
+
144
+ **Create: `CUSTOMER_JOURNEY.md`**
145
+ ```markdown
146
+ # Customer Journey Map
147
+
148
+ ## Awareness Stage
149
+ ### Trigger Events
150
+ What causes customers to start looking for solutions?
151
+
152
+ ### Information Sources
153
+ Where do they research solutions?
154
+
155
+ ### Key Questions
156
+ What are they trying to understand?
157
+
158
+ ### Success Criteria
159
+ How do they evaluate if a solution might work?
160
+
161
+ ## Evaluation Stage
162
+ ### Evaluation Criteria
163
+ What factors do they consider most important?
164
+
165
+ ### Decision Makers
166
+ Who influences the purchase decision?
167
+
168
+ ### Common Objections
169
+ What concerns typically arise?
170
+
171
+ ### Proof Points
172
+ What evidence do they need to see?
173
+
174
+ ## Onboarding Stage
175
+ ### First Success Milestones
176
+ What needs to happen for them to feel successful?
177
+
178
+ ### Common Confusion Points
179
+ Where do new customers typically struggle?
180
+
181
+ ### Adoption Patterns
182
+ How do successful customers typically use the product?
183
+
184
+ ## Growth Stage
185
+ ### Expansion Opportunities
186
+ How do customers typically grow their usage?
187
+
188
+ ### Advanced Use Cases
189
+ What sophisticated workflows do power users develop?
190
+
191
+ ### Success Indicators
192
+ What behaviors indicate a thriving customer?
193
+
194
+ ## Retention/Churn Patterns
195
+ ### Churn Risk Indicators
196
+ Early warning signs of customer dissatisfaction
197
+
198
+ ### Recovery Strategies
199
+ How to re-engage at-risk customers
200
+
201
+ ### Renewal Drivers
202
+ What motivates customers to continue/expand?
203
+ ```
204
+
205
+ ### Customer Feedback Intelligence
206
+
207
+ **Create: `VOICE_OF_CUSTOMER.md`**
208
+ ```markdown
209
+ # Voice of Customer Intelligence
210
+
211
+ ## Common Praise Themes
212
+ What do customers consistently love about the product?
213
+
214
+ ## Frequent Complaints
215
+ What issues come up repeatedly in support/feedback?
216
+
217
+ ## Feature Request Patterns
218
+ What enhancements do customers request most often?
219
+
220
+ ## Competitive Comparisons
221
+ How do customers compare us to alternatives?
222
+
223
+ ## Language and Terminology
224
+ - How do customers describe our product?
225
+ - What industry terms do they use?
226
+ - What internal jargon should AI avoid?
227
+
228
+ ## Communication Patterns
229
+ - Formal vs casual communication preferences
230
+ - Response time expectations by customer type
231
+ - Escalation triggers and preferences
232
+ ```
233
+
234
+ ---
235
+
236
+ ## Layer 2: Product Context Architecture
237
+
238
+ ### Product Intelligence Framework
239
+
240
+ **Create: `PRODUCT_STRATEGY.md`**
241
+ ```markdown
242
+ # Product Strategy
243
+
244
+ ## Vision and Mission
245
+ ### Product Vision
246
+ Where is the product going in 2-3 years?
247
+
248
+ ### Mission Statement
249
+ What problem does the product solve?
250
+
251
+ ### Success Definition
252
+ How do you measure product success?
253
+
254
+ ## Market Position
255
+ ### Competitive Landscape
256
+ - Direct Competitors: [List and brief description]
257
+ - Indirect Competitors: [Alternative solutions]
258
+ - Competitive Advantages: [What differentiates you]
259
+
260
+ ### Market Trends
261
+ - Industry Evolution: How is the market changing?
262
+ - Technology Trends: What tech trends affect the product?
263
+ - Customer Behavior Changes: How are users evolving?
264
+
265
+ ## Strategic Priorities
266
+ ### Current Quarter Focus
267
+ What are the top 3 product priorities?
268
+
269
+ ### Annual Objectives
270
+ What must be achieved this year?
271
+
272
+ ### Future Roadmap Themes
273
+ What major capabilities are planned?
274
+
275
+ ## Product Principles
276
+ ### Design Principles
277
+ What guides product design decisions?
278
+
279
+ ### Trade-off Framework
280
+ How do you prioritize competing demands?
281
+
282
+ ### Quality Standards
283
+ What level of quality is required?
284
+ ```
285
+
286
+ **Create: `FEATURE_CATALOG.md`**
287
+ ```markdown
288
+ # Feature Catalog
289
+
290
+ ## Core Features
291
+ ### [Feature Name]
292
+ **Purpose:** Why does this feature exist?
293
+ **User Benefit:** What value does it provide?
294
+ **Usage Patterns:** How do customers typically use it?
295
+ **Success Metrics:** How do you measure feature success?
296
+ **Limitations:** What can't it do?
297
+ **Common Issues:** What problems do users face?
298
+ **AI Considerations:** How should AI discuss this feature?
299
+
300
+ ## Advanced Features
301
+ [Same template as above for sophisticated capabilities]
302
+
303
+ ## Experimental Features
304
+ [Features in beta or testing phases]
305
+
306
+ ## Deprecated Features
307
+ [Features being phased out or removed]
308
+
309
+ ## Integration Capabilities
310
+ ### Third-party Integrations
311
+ What external tools does the product connect with?
312
+
313
+ ### API Capabilities
314
+ What can developers build with your APIs?
315
+
316
+ ### Data Import/Export
317
+ How do customers get data in and out?
318
+ ```
319
+
320
+ ### Product Performance Intelligence
321
+
322
+ **Create: `PRODUCT_METRICS.md`**
323
+ ```markdown
324
+ # Product Metrics Framework
325
+
326
+ ## User Engagement Metrics
327
+ - Daily/Monthly Active Users
328
+ - Feature Adoption Rates
329
+ - User Session Patterns
330
+ - Retention Curves
331
+
332
+ ## Business Performance Metrics
333
+ - Revenue per Customer
334
+ - Customer Acquisition Cost
335
+ - Lifetime Value
336
+ - Churn Rates
337
+
338
+ ## Product Quality Metrics
339
+ - Bug Report Trends
340
+ - Performance Benchmarks
341
+ - User Satisfaction Scores
342
+ - Support Ticket Volume
343
+
344
+ ## Feature Performance
345
+ ### High-Performing Features
346
+ Which features drive the most engagement/value?
347
+
348
+ ### Underperforming Features
349
+ Which features need attention or improvement?
350
+
351
+ ### Usage Correlation Patterns
352
+ Which features are used together successfully?
353
+ ```
354
+
355
+ ---
356
+
357
+ ## Layer 3: Market and Competitive Context
358
+
359
+ ### Market Intelligence Framework
360
+
361
+ **Create: `COMPETITIVE_LANDSCAPE.md` (CONDITIONAL)**
362
+ ```markdown
363
+ Required if:
364
+ - [ ] Competitive market with multiple players
365
+ - [ ] Frequent competitive positioning needed
366
+ - [ ] Sales team needs competitive talking points
367
+ - [ ] Product decisions influenced by competitive moves
368
+
369
+ # Competitive Landscape
370
+
371
+ ## Direct Competitors
372
+ ### [Competitor Name]
373
+ **Strengths:** What do they do well?
374
+ **Weaknesses:** Where do they fall short?
375
+ **Positioning:** How do they market themselves?
376
+ **Pricing:** How do they price their solution?
377
+ **Customer Overlap:** Do you compete for the same customers?
378
+ **Differentiation:** How are you different/better?
379
+
380
+ ## Competitive Positioning Framework
381
+ ### Win/Loss Analysis
382
+ Why do you win deals? Why do you lose them?
383
+
384
+ ### Competitive Messaging
385
+ How should AI position the product against competitors?
386
+
387
+ ### Objection Handling
388
+ Common competitive objections and responses
389
+ ```
390
+
391
+ **Create: `INDUSTRY_TRENDS.md`**
392
+ ```markdown
393
+ # Industry and Market Trends
394
+
395
+ ## Industry Evolution
396
+ ### Current State
397
+ How would you describe the industry today?
398
+
399
+ ### Emerging Trends
400
+ What changes are happening in the market?
401
+
402
+ ### Future Predictions
403
+ Where is the industry heading?
404
+
405
+ ## Technology Impact
406
+ ### Disruptive Technologies
407
+ What technologies could change the landscape?
408
+
409
+ ### Adoption Patterns
410
+ How quickly does the industry adopt new solutions?
411
+
412
+ ## Regulatory Environment
413
+ ### Current Regulations
414
+ What rules govern the industry?
415
+
416
+ ### Compliance Requirements
417
+ What standards must products meet?
418
+
419
+ ### Regulatory Trends
420
+ How might regulations change?
421
+ ```
422
+
423
+ ---
424
+
425
+ ## Layer 4: Operational Business Context
426
+
427
+ ### Sales and Marketing Intelligence
428
+
429
+ **Create: `SALES_PROCESS.md`**
430
+ ```markdown
431
+ # Sales Process and Methodology
432
+
433
+ ## Sales Methodology
434
+ ### Sales Process Stages
435
+ 1. Lead Qualification
436
+ 2. Discovery Process
437
+ 3. Solution Presentation
438
+ 4. Negotiation
439
+ 5. Closing
440
+
441
+ ### Qualification Criteria
442
+ What makes a good lead/prospect?
443
+
444
+ ### Common Sales Objections
445
+ - Price/Budget Concerns
446
+ - Feature/Capability Questions
447
+ - Competitive Comparisons
448
+ - Implementation Concerns
449
+
450
+ ### Sales Enablement Materials
451
+ - Demo Scripts and Flows
452
+ - ROI/Business Case Templates
453
+ - Competitive Battle Cards
454
+ - Implementation Timelines
455
+
456
+ ## Customer Success Patterns
457
+ ### Onboarding Best Practices
458
+ How do successful customers get started?
459
+
460
+ ### Expansion Opportunities
461
+ When and how do customers typically expand?
462
+
463
+ ### Renewal Strategy
464
+ What ensures customers renew/continue?
465
+ ```
466
+
467
+ **Create: `MESSAGING_FRAMEWORK.md`**
468
+ ```markdown
469
+ # Messaging and Brand Framework
470
+
471
+ ## Brand Voice and Tone
472
+ ### Brand Personality
473
+ How should the brand sound and feel?
474
+
475
+ ### Tone Guidelines
476
+ - Professional vs Casual
477
+ - Technical vs Accessible
478
+ - Confident vs Humble
479
+ - Formal vs Friendly
480
+
481
+ ### Voice Characteristics
482
+ What makes your brand voice distinctive?
483
+
484
+ ## Core Messaging
485
+ ### Value Proposition
486
+ What's the primary value you deliver?
487
+
488
+ ### Key Messages
489
+ What are the 3-5 most important things to communicate?
490
+
491
+ ### Proof Points
492
+ What evidence supports your claims?
493
+
494
+ ## Messaging by Audience
495
+ ### Enterprise Customers
496
+ How do you message to large organizations?
497
+
498
+ ### SMB Customers
499
+ How do you message to smaller businesses?
500
+
501
+ ### Technical Buyers
502
+ How do you message to technical decision makers?
503
+
504
+ ### Business Buyers
505
+ How do you message to business stakeholders?
506
+
507
+ ## Content Guidelines
508
+ ### Topics to Emphasize
509
+ What subjects should AI prioritize in communications?
510
+
511
+ ### Topics to Avoid
512
+ What subjects should AI be careful about?
513
+
514
+ ### Communication Style
515
+ How formal/informal should AI communications be?
516
+ ```
517
+
518
+ ---
519
+
520
+ ## Context Integration and AI Optimization
521
+
522
+ ### AI Interaction Guidelines
523
+
524
+ **Create: `CUSTOMER_COMMUNICATION.md`**
525
+ ```markdown
526
+ # AI Customer Communication Guidelines
527
+
528
+ ## Communication Principles
529
+ ### Primary Objectives
530
+ - Solve customer problems efficiently
531
+ - Maintain brand voice and values
532
+ - Create positive customer experiences
533
+ - Escalate appropriately when needed
534
+
535
+ ### Tone and Style
536
+ - Professional but approachable
537
+ - Confident but not arrogant
538
+ - Helpful and solution-oriented
539
+ - Empathetic to customer concerns
540
+
541
+ ## Response Guidelines
542
+ ### Information Accuracy
543
+ - Always provide accurate, up-to-date information
544
+ - Acknowledge limitations and uncertainties
545
+ - Direct to appropriate resources when needed
546
+
547
+ ### Escalation Triggers
548
+ When should AI escalate to humans?
549
+ - Complex technical problems
550
+ - Billing or contract issues
551
+ - Customer expressing frustration
552
+ - Requests outside AI capabilities
553
+
554
+ ### Privacy and Security
555
+ - What customer information can AI access?
556
+ - How should AI handle sensitive data?
557
+ - What topics require extra privacy consideration?
558
+
559
+ ## Personalization Strategy
560
+ ### Customer Segmentation
561
+ How should AI adapt communication by customer type?
562
+
563
+ ### Context Utilization
564
+ How should AI use customer history and preferences?
565
+
566
+ ### Relationship Building
567
+ How should AI contribute to long-term customer relationships?
568
+ ```
569
+
570
+ ### Success Measurement Framework
571
+
572
+ **Business Context Quality Metrics**
573
+ ```markdown
574
+ File: `/business-context/measurement/QUALITY_METRICS.md`
575
+ Purpose: Measuring business context effectiveness
576
+
577
+ Template:
578
+ # Business Context Quality Metrics
579
+
580
+ ## AI Performance Metrics
581
+ ### Customer Interaction Quality
582
+ - Customer satisfaction with AI interactions
583
+ - Resolution rate for AI-handled inquiries
584
+ - Escalation rate to human agents
585
+ - Response accuracy and relevance
586
+
587
+ ### Sales and Marketing Effectiveness
588
+ - Lead qualification accuracy
589
+ - Message consistency across channels
590
+ - Conversion rate improvements
591
+ - Customer feedback on AI interactions
592
+
593
+ ## Business Impact Metrics
594
+ ### Customer Success
595
+ - Faster customer onboarding
596
+ - Improved customer retention
597
+ - Increased customer satisfaction scores
598
+ - Reduced support ticket volume
599
+
600
+ ### Team Productivity
601
+ - New team member ramp-up time
602
+ - Cross-functional collaboration effectiveness
603
+ - Consistent decision-making across teams
604
+ - Reduced time spent explaining context
605
+
606
+ ## Context Health Metrics
607
+ ### Information Currency
608
+ - How often is business context updated?
609
+ - Are customer insights current and relevant?
610
+ - Is competitive information up-to-date?
611
+
612
+ ### Usage and Adoption
613
+ - How often do teams reference business context?
614
+ - Are AI systems effectively using context?
615
+ - Is context helping improve business outcomes?
616
+ ```
617
+
618
+ ---
619
+
620
+ ## Business Context File Organization
621
+
622
+ ### Recommended File Structure
623
+
624
+ **Business context file structure for optimal AI consumption:**
625
+ ```
626
+ /specs/business/ # or /docs/business-context/
627
+ index.md # Main index with links to all layers
628
+ CUSTOMER_PERSONAS.md # Layer 1: Customer intelligence
629
+ CUSTOMER_JOURNEY.md # Layer 1: Customer lifecycle
630
+ VOICE_OF_CUSTOMER.md # Layer 1: Customer feedback
631
+ PRODUCT_STRATEGY.md # Layer 2: Product context
632
+ FEATURE_CATALOG.md # Layer 2: Feature details
633
+ PRODUCT_METRICS.md # Layer 2: Performance data
634
+ COMPETITIVE_LANDSCAPE.md # Layer 3: Market intelligence
635
+ INDUSTRY_TRENDS.md # Layer 3: Market evolution
636
+ SALES_PROCESS.md # Layer 4: Sales methodology
637
+ MESSAGING_FRAMEWORK.md # Layer 4: Brand guidelines
638
+ CUSTOMER_COMMUNICATION.md # Layer 4: AI interaction guide
639
+ ```
640
+
641
+ **Key Benefits of This Business Structure:**
642
+ - **Customer-Centric**: Organizes information around customer understanding
643
+ - **Scalable**: Easy to update specific business areas without affecting others
644
+ - **AI-Accessible**: Clear naming and focused content for better AI comprehension
645
+ - **Cross-Functional**: Different teams can maintain their domain expertise
646
+ - **Actionable**: Provides concrete guidance for customer interactions and decisions
647
+
648
+ ### Integration with Technical Documentation
649
+
650
+ **Cross-Reference Strategy:**
651
+ - Business context informs technical priorities and decisions
652
+ - Technical constraints influence business strategy and messaging
653
+ - Customer feedback drives both product and technical roadmaps
654
+ - AI systems can access both business and technical context for comprehensive understanding
655
+
656
+ ---
657
+
658
+ ## Implementation and Maintenance Strategy
659
+
660
+ ### Ownership and Governance
661
+
662
+ **Context Ownership Matrix**
663
+ - **Customer Personas:** Product/Marketing - Quarterly review
664
+ - **Customer Journey:** Customer Success - As customer patterns evolve
665
+ - **Product Strategy:** Product Leadership - Semi-annual strategic reviews
666
+ - **Feature Catalog:** Product Management - Monthly updates
667
+ - **Competitive Analysis:** Marketing/Sales - Quarterly updates
668
+ - **Messaging Framework:** Marketing - As needed for campaigns
669
+
670
+ ### Update Triggers and Processes
671
+
672
+ **When to Update Business Context:**
673
+ - [ ] New customer segment discovered
674
+ - [ ] Product feature launches or changes
675
+ - [ ] Competitive landscape shifts
676
+ - [ ] Customer feedback patterns change
677
+ - [ ] Business model or strategy evolution
678
+ - [ ] Market conditions or trends change
679
+ - [ ] Regulatory environment changes
680
+
681
+ ### Quality Assurance Framework
682
+
683
+ **Business Context Review Checklist:**
684
+ - [ ] Information reflects current business reality
685
+ - [ ] Customer insights are based on recent data
686
+ - [ ] Competitive information is current and accurate
687
+ - [ ] AI can understand and apply the context
688
+ - [ ] Cross-functional teams can use effectively
689
+ - [ ] Privacy and compliance requirements met
690
+
691
+ ---
692
+
693
+ ## Customization Guidelines
694
+
695
+ ### For Different Business Models
696
+
697
+ **B2B SaaS:**
698
+ - Emphasize enterprise sales processes and customer success
699
+ - Include detailed feature adoption and expansion patterns
700
+ - Focus on competitive differentiation and ROI messaging
701
+
702
+ **B2C E-commerce:**
703
+ - Emphasize customer behavior patterns and personalization
704
+ - Include seasonal trends and promotional strategies
705
+ - Focus on conversion optimization and customer lifetime value
706
+
707
+ **Marketplace Platforms:**
708
+ - Include both buyer and seller perspectives
709
+ - Document network effects and growth patterns
710
+ - Focus on trust, safety, and transaction optimization
711
+
712
+ **Freemium Products:**
713
+ - Document conversion paths from free to paid
714
+ - Include usage patterns that predict conversion
715
+ - Focus on value demonstration and upgrade triggers
716
+
717
+ ### For Different Company Stages
718
+
719
+ **Early Stage (Pre-PMF):**
720
+ - Focus on customer discovery and validation
721
+ - Emphasize experimentation and learning
722
+ - Keep documentation lightweight but systematic
723
+
724
+ **Growth Stage (Post-PMF):**
725
+ - Emphasize scaling and optimization
726
+ - Include detailed customer segmentation
727
+ - Focus on repeatable processes and playbooks
728
+
729
+ **Enterprise Stage:**
730
+ - Include comprehensive competitive analysis
731
+ - Emphasize compliance and governance
732
+ - Focus on cross-functional coordination
733
+
734
+ ---
735
+
736
+ ## Template Validation and Evolution
737
+
738
+ This business context architecture should be regularly evaluated for:
739
+ - **Relevance:** Does it reflect current business reality?
740
+ - **Completeness:** Does it cover all critical business knowledge?
741
+ - **Usability:** Can teams and AI effectively use this context?
742
+ - **Impact:** Is it improving business outcomes?
743
+
744
+ Regular template updates should incorporate:
745
+ - **Customer feedback and behavior changes**
746
+ - **Market evolution and competitive dynamics**
747
+ - **Product development and strategic shifts**
748
+ - **AI capability improvements and new use cases**