tribunal-kit 2.4.6 โ†’ 3.1.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.
Files changed (250) hide show
  1. package/.agent/ARCHITECTURE.md +99 -99
  2. package/.agent/GEMINI.md +52 -52
  3. package/.agent/agents/accessibility-reviewer.md +139 -86
  4. package/.agent/agents/ai-code-reviewer.md +160 -90
  5. package/.agent/agents/backend-specialist.md +164 -127
  6. package/.agent/agents/code-archaeologist.md +115 -73
  7. package/.agent/agents/database-architect.md +130 -110
  8. package/.agent/agents/debugger.md +137 -97
  9. package/.agent/agents/dependency-reviewer.md +78 -30
  10. package/.agent/agents/devops-engineer.md +161 -118
  11. package/.agent/agents/documentation-writer.md +151 -87
  12. package/.agent/agents/explorer-agent.md +117 -99
  13. package/.agent/agents/frontend-reviewer.md +127 -47
  14. package/.agent/agents/frontend-specialist.md +169 -109
  15. package/.agent/agents/game-developer.md +28 -164
  16. package/.agent/agents/logic-reviewer.md +87 -49
  17. package/.agent/agents/mobile-developer.md +151 -103
  18. package/.agent/agents/mobile-reviewer.md +133 -50
  19. package/.agent/agents/orchestrator.md +121 -110
  20. package/.agent/agents/penetration-tester.md +103 -77
  21. package/.agent/agents/performance-optimizer.md +136 -92
  22. package/.agent/agents/performance-reviewer.md +139 -69
  23. package/.agent/agents/product-manager.md +104 -70
  24. package/.agent/agents/product-owner.md +6 -25
  25. package/.agent/agents/project-planner.md +95 -95
  26. package/.agent/agents/qa-automation-engineer.md +174 -87
  27. package/.agent/agents/security-auditor.md +133 -129
  28. package/.agent/agents/seo-specialist.md +160 -99
  29. package/.agent/agents/sql-reviewer.md +132 -44
  30. package/.agent/agents/supervisor-agent.md +137 -109
  31. package/.agent/agents/swarm-worker-contracts.md +17 -17
  32. package/.agent/agents/swarm-worker-registry.md +46 -46
  33. package/.agent/agents/test-coverage-reviewer.md +132 -53
  34. package/.agent/agents/test-engineer.md +0 -21
  35. package/.agent/agents/type-safety-reviewer.md +143 -33
  36. package/.agent/patterns/generator.md +9 -9
  37. package/.agent/patterns/inversion.md +12 -12
  38. package/.agent/patterns/pipeline.md +9 -9
  39. package/.agent/patterns/reviewer.md +13 -13
  40. package/.agent/patterns/tool-wrapper.md +9 -9
  41. package/.agent/rules/GEMINI.md +63 -63
  42. package/.agent/scripts/__pycache__/auto_preview.cpython-311.pyc +0 -0
  43. package/.agent/scripts/__pycache__/bundle_analyzer.cpython-311.pyc +0 -0
  44. package/.agent/scripts/__pycache__/checklist.cpython-311.pyc +0 -0
  45. package/.agent/scripts/__pycache__/dependency_analyzer.cpython-311.pyc +0 -0
  46. package/.agent/scripts/__pycache__/security_scan.cpython-311.pyc +0 -0
  47. package/.agent/scripts/__pycache__/session_manager.cpython-311.pyc +0 -0
  48. package/.agent/scripts/__pycache__/skill_integrator.cpython-311.pyc +0 -0
  49. package/.agent/scripts/__pycache__/swarm_dispatcher.cpython-311.pyc +0 -0
  50. package/.agent/scripts/__pycache__/test_runner.cpython-311.pyc +0 -0
  51. package/.agent/scripts/__pycache__/verify_all.cpython-311.pyc +0 -0
  52. package/.agent/scripts/compress_skills.py +167 -0
  53. package/.agent/scripts/consolidate_skills.py +173 -0
  54. package/.agent/scripts/deep_compress.py +202 -0
  55. package/.agent/scripts/minify_context.py +80 -0
  56. package/.agent/scripts/security_scan.py +1 -1
  57. package/.agent/scripts/strip_tribunal.py +41 -0
  58. package/.agent/skills/agent-organizer/SKILL.md +60 -100
  59. package/.agent/skills/agentic-patterns/SKILL.md +0 -70
  60. package/.agent/skills/ai-prompt-injection-defense/SKILL.md +108 -53
  61. package/.agent/skills/api-patterns/SKILL.md +197 -257
  62. package/.agent/skills/api-security-auditor/SKILL.md +125 -57
  63. package/.agent/skills/app-builder/SKILL.md +326 -50
  64. package/.agent/skills/app-builder/templates/SKILL.md +13 -15
  65. package/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +16 -16
  66. package/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +22 -22
  67. package/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +18 -18
  68. package/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +20 -20
  69. package/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +17 -17
  70. package/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +18 -18
  71. package/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +21 -21
  72. package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +19 -19
  73. package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +26 -26
  74. package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +26 -26
  75. package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +19 -19
  76. package/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +18 -18
  77. package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +20 -20
  78. package/.agent/skills/appflow-wireframe/SKILL.md +71 -98
  79. package/.agent/skills/architecture/SKILL.md +161 -200
  80. package/.agent/skills/authentication-best-practices/SKILL.md +121 -54
  81. package/.agent/skills/bash-linux/SKILL.md +71 -166
  82. package/.agent/skills/behavioral-modes/SKILL.md +8 -69
  83. package/.agent/skills/brainstorming/SKILL.md +345 -127
  84. package/.agent/skills/building-native-ui/SKILL.md +125 -57
  85. package/.agent/skills/clean-code/SKILL.md +266 -149
  86. package/.agent/skills/code-review-checklist/SKILL.md +0 -62
  87. package/.agent/skills/config-validator/SKILL.md +73 -131
  88. package/.agent/skills/csharp-developer/SKILL.md +434 -73
  89. package/.agent/skills/database-design/SKILL.md +190 -275
  90. package/.agent/skills/deployment-procedures/SKILL.md +81 -158
  91. package/.agent/skills/devops-engineer/SKILL.md +255 -94
  92. package/.agent/skills/devops-incident-responder/SKILL.md +50 -69
  93. package/.agent/skills/doc.md +5 -5
  94. package/.agent/skills/documentation-templates/SKILL.md +19 -63
  95. package/.agent/skills/edge-computing/SKILL.md +75 -165
  96. package/.agent/skills/extract-design-system/SKILL.md +84 -58
  97. package/.agent/skills/framer-motion-expert/SKILL.md +195 -0
  98. package/.agent/skills/frontend-design/SKILL.md +151 -499
  99. package/.agent/skills/game-design-expert/SKILL.md +71 -0
  100. package/.agent/skills/game-engineering-expert/SKILL.md +88 -0
  101. package/.agent/skills/geo-fundamentals/SKILL.md +52 -178
  102. package/.agent/skills/github-operations/SKILL.md +197 -272
  103. package/.agent/skills/gsap-expert/SKILL.md +194 -0
  104. package/.agent/skills/i18n-localization/SKILL.md +60 -172
  105. package/.agent/skills/intelligent-routing/SKILL.md +123 -103
  106. package/.agent/skills/lint-and-validate/SKILL.md +8 -52
  107. package/.agent/skills/llm-engineering/SKILL.md +281 -195
  108. package/.agent/skills/local-first/SKILL.md +76 -159
  109. package/.agent/skills/mcp-builder/SKILL.md +48 -188
  110. package/.agent/skills/mobile-design/SKILL.md +213 -219
  111. package/.agent/skills/motion-engineering/SKILL.md +184 -0
  112. package/.agent/skills/nextjs-react-expert/SKILL.md +184 -203
  113. package/.agent/skills/nodejs-best-practices/SKILL.md +403 -185
  114. package/.agent/skills/observability/SKILL.md +211 -203
  115. package/.agent/skills/parallel-agents/SKILL.md +53 -146
  116. package/.agent/skills/performance-profiling/SKILL.md +171 -151
  117. package/.agent/skills/plan-writing/SKILL.md +49 -153
  118. package/.agent/skills/platform-engineer/SKILL.md +57 -103
  119. package/.agent/skills/playwright-best-practices/SKILL.md +110 -63
  120. package/.agent/skills/powershell-windows/SKILL.md +61 -179
  121. package/.agent/skills/python-patterns/SKILL.md +7 -35
  122. package/.agent/skills/python-pro/SKILL.md +273 -114
  123. package/.agent/skills/react-specialist/SKILL.md +227 -108
  124. package/.agent/skills/readme-builder/SKILL.md +15 -85
  125. package/.agent/skills/realtime-patterns/SKILL.md +216 -243
  126. package/.agent/skills/red-team-tactics/SKILL.md +10 -51
  127. package/.agent/skills/rust-pro/SKILL.md +525 -142
  128. package/.agent/skills/seo-fundamentals/SKILL.md +92 -153
  129. package/.agent/skills/server-management/SKILL.md +110 -166
  130. package/.agent/skills/shadcn-ui-expert/SKILL.md +154 -55
  131. package/.agent/skills/skill-creator/SKILL.md +18 -58
  132. package/.agent/skills/sql-pro/SKILL.md +543 -68
  133. package/.agent/skills/supabase-postgres-best-practices/SKILL.md +28 -68
  134. package/.agent/skills/swiftui-expert/SKILL.md +124 -57
  135. package/.agent/skills/systematic-debugging/SKILL.md +49 -151
  136. package/.agent/skills/tailwind-patterns/SKILL.md +433 -149
  137. package/.agent/skills/tdd-workflow/SKILL.md +63 -169
  138. package/.agent/skills/test-result-analyzer/SKILL.md +33 -73
  139. package/.agent/skills/testing-patterns/SKILL.md +437 -130
  140. package/.agent/skills/trend-researcher/SKILL.md +30 -71
  141. package/.agent/skills/ui-ux-pro-max/SKILL.md +0 -41
  142. package/.agent/skills/ui-ux-researcher/SKILL.md +51 -91
  143. package/.agent/skills/vue-expert/SKILL.md +225 -119
  144. package/.agent/skills/vulnerability-scanner/SKILL.md +264 -226
  145. package/.agent/skills/web-accessibility-auditor/SKILL.md +141 -58
  146. package/.agent/skills/web-design-guidelines/SKILL.md +17 -61
  147. package/.agent/skills/webapp-testing/SKILL.md +71 -196
  148. package/.agent/skills/whimsy-injector/SKILL.md +58 -132
  149. package/.agent/skills/workflow-optimizer/SKILL.md +28 -68
  150. package/.agent/workflows/api-tester.md +96 -224
  151. package/.agent/workflows/audit.md +81 -122
  152. package/.agent/workflows/brainstorm.md +69 -105
  153. package/.agent/workflows/changelog.md +65 -97
  154. package/.agent/workflows/create.md +73 -88
  155. package/.agent/workflows/debug.md +80 -111
  156. package/.agent/workflows/deploy.md +119 -92
  157. package/.agent/workflows/enhance.md +80 -91
  158. package/.agent/workflows/fix.md +68 -97
  159. package/.agent/workflows/generate.md +165 -164
  160. package/.agent/workflows/migrate.md +106 -109
  161. package/.agent/workflows/orchestrate.md +103 -86
  162. package/.agent/workflows/performance-benchmarker.md +77 -268
  163. package/.agent/workflows/plan.md +120 -98
  164. package/.agent/workflows/preview.md +39 -96
  165. package/.agent/workflows/refactor.md +105 -97
  166. package/.agent/workflows/review-ai.md +63 -102
  167. package/.agent/workflows/review.md +71 -110
  168. package/.agent/workflows/session.md +53 -113
  169. package/.agent/workflows/status.md +42 -88
  170. package/.agent/workflows/strengthen-skills.md +90 -51
  171. package/.agent/workflows/swarm.md +114 -129
  172. package/.agent/workflows/test.md +125 -102
  173. package/.agent/workflows/tribunal-backend.md +60 -78
  174. package/.agent/workflows/tribunal-database.md +62 -100
  175. package/.agent/workflows/tribunal-frontend.md +62 -82
  176. package/.agent/workflows/tribunal-full.md +56 -100
  177. package/.agent/workflows/tribunal-mobile.md +65 -94
  178. package/.agent/workflows/tribunal-performance.md +62 -105
  179. package/.agent/workflows/ui-ux-pro-max.md +72 -121
  180. package/README.md +11 -15
  181. package/package.json +1 -1
  182. package/.agent/skills/api-patterns/api-style.md +0 -42
  183. package/.agent/skills/api-patterns/auth.md +0 -24
  184. package/.agent/skills/api-patterns/documentation.md +0 -26
  185. package/.agent/skills/api-patterns/graphql.md +0 -41
  186. package/.agent/skills/api-patterns/rate-limiting.md +0 -31
  187. package/.agent/skills/api-patterns/response.md +0 -37
  188. package/.agent/skills/api-patterns/rest.md +0 -40
  189. package/.agent/skills/api-patterns/security-testing.md +0 -122
  190. package/.agent/skills/api-patterns/trpc.md +0 -41
  191. package/.agent/skills/api-patterns/versioning.md +0 -22
  192. package/.agent/skills/app-builder/agent-coordination.md +0 -71
  193. package/.agent/skills/app-builder/feature-building.md +0 -53
  194. package/.agent/skills/app-builder/project-detection.md +0 -34
  195. package/.agent/skills/app-builder/scaffolding.md +0 -118
  196. package/.agent/skills/app-builder/tech-stack.md +0 -40
  197. package/.agent/skills/architecture/context-discovery.md +0 -43
  198. package/.agent/skills/architecture/examples.md +0 -94
  199. package/.agent/skills/architecture/pattern-selection.md +0 -68
  200. package/.agent/skills/architecture/patterns-reference.md +0 -50
  201. package/.agent/skills/architecture/trade-off-analysis.md +0 -77
  202. package/.agent/skills/brainstorming/dynamic-questioning.md +0 -360
  203. package/.agent/skills/database-design/database-selection.md +0 -43
  204. package/.agent/skills/database-design/indexing.md +0 -39
  205. package/.agent/skills/database-design/migrations.md +0 -48
  206. package/.agent/skills/database-design/optimization.md +0 -36
  207. package/.agent/skills/database-design/orm-selection.md +0 -30
  208. package/.agent/skills/database-design/schema-design.md +0 -56
  209. package/.agent/skills/dotnet-core-expert/SKILL.md +0 -103
  210. package/.agent/skills/framer-motion-animations/SKILL.md +0 -74
  211. package/.agent/skills/frontend-design/animation-guide.md +0 -331
  212. package/.agent/skills/frontend-design/color-system.md +0 -329
  213. package/.agent/skills/frontend-design/decision-trees.md +0 -418
  214. package/.agent/skills/frontend-design/motion-graphics.md +0 -306
  215. package/.agent/skills/frontend-design/typography-system.md +0 -363
  216. package/.agent/skills/frontend-design/ux-psychology.md +0 -1116
  217. package/.agent/skills/frontend-design/visual-effects.md +0 -383
  218. package/.agent/skills/game-development/2d-games/SKILL.md +0 -119
  219. package/.agent/skills/game-development/3d-games/SKILL.md +0 -135
  220. package/.agent/skills/game-development/SKILL.md +0 -236
  221. package/.agent/skills/game-development/game-art/SKILL.md +0 -185
  222. package/.agent/skills/game-development/game-audio/SKILL.md +0 -190
  223. package/.agent/skills/game-development/game-design/SKILL.md +0 -129
  224. package/.agent/skills/game-development/mobile-games/SKILL.md +0 -108
  225. package/.agent/skills/game-development/multiplayer/SKILL.md +0 -132
  226. package/.agent/skills/game-development/pc-games/SKILL.md +0 -144
  227. package/.agent/skills/game-development/vr-ar/SKILL.md +0 -123
  228. package/.agent/skills/game-development/web-games/SKILL.md +0 -150
  229. package/.agent/skills/intelligent-routing/router-manifest.md +0 -65
  230. package/.agent/skills/mobile-design/decision-trees.md +0 -516
  231. package/.agent/skills/mobile-design/mobile-backend.md +0 -491
  232. package/.agent/skills/mobile-design/mobile-color-system.md +0 -420
  233. package/.agent/skills/mobile-design/mobile-debugging.md +0 -122
  234. package/.agent/skills/mobile-design/mobile-design-thinking.md +0 -357
  235. package/.agent/skills/mobile-design/mobile-navigation.md +0 -458
  236. package/.agent/skills/mobile-design/mobile-performance.md +0 -767
  237. package/.agent/skills/mobile-design/mobile-testing.md +0 -356
  238. package/.agent/skills/mobile-design/mobile-typography.md +0 -433
  239. package/.agent/skills/mobile-design/platform-android.md +0 -666
  240. package/.agent/skills/mobile-design/platform-ios.md +0 -561
  241. package/.agent/skills/mobile-design/touch-psychology.md +0 -537
  242. package/.agent/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +0 -312
  243. package/.agent/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +0 -240
  244. package/.agent/skills/nextjs-react-expert/3-server-server-side-performance.md +0 -490
  245. package/.agent/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +0 -264
  246. package/.agent/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +0 -581
  247. package/.agent/skills/nextjs-react-expert/6-rendering-rendering-performance.md +0 -432
  248. package/.agent/skills/nextjs-react-expert/7-js-javascript-performance.md +0 -684
  249. package/.agent/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +0 -150
  250. package/.agent/skills/vulnerability-scanner/checklists.md +0 -121
@@ -1,210 +1,428 @@
1
1
  ---
2
2
  name: brainstorming
3
- description: Socratic questioning protocol + user communication. MANDATORY for complex requests, new features, or unclear requirements. Includes progress reporting and error handling.
3
+ description: Socratic methodology, ideation, and architectural exploration mastery. Generating extensive feature options, analyzing trade-offs, questioning assumptions, mind-mapping components, and delaying execution. Use when evaluating new features, defining project goals, or guiding users through ambiguous design spaces.
4
4
  allowed-tools: Read, Write, Edit, Glob, Grep
5
- version: 1.0.0
6
- last-updated: 2026-03-12
5
+ version: 3.1.0
6
+ last-updated: 2026-04-06
7
7
  applies-to-model: gemini-2.5-pro, claude-3-7-sonnet
8
8
  ---
9
9
 
10
- # Brainstorming & Discovery Protocol
10
+ # Brainstorming โ€” Socratic Exploration Mastery
11
11
 
12
- > The most expensive part of building software is building the wrong thing.
13
- > Ask the questions that prevent that.
12
+ ---
13
+
14
+ ## 1. The Socratic Protocol (Mandatory Delay)
15
+
16
+ When a user provides a vague or complex prompt like *"I want to build a marketplace app,"* DO NOT start generating boilerplate code or database schemas.
17
+
18
+ **You must act as a Socratic filter.**
19
+ 1. Acknowledge the ambition of the goal.
20
+ 2. Provide 3-5 distinct architectural/functional pathways the user could take.
21
+ 3. Pause execution. Demand the user makes definitive decisions regarding the permutations before proceeding.
22
+
23
+ ### Example Socratic Prompting:
24
+ Instead of: *"Here is the React code for your marketplace,"*
25
+ Output: *"Before we write the code, we must lock down the payment flow. Do you want to: A) Handle escrow directly (High liability, complex payout logic), B) Use Stripe Connect (Easy routing, strict KYC requirements), or C) Operate free-listing only (Zero liability, requires external monetization)?"*
14
26
 
15
27
  ---
16
28
 
17
- ## When This Skill Is Required
29
+ ## 2. Multi-Dimensional Tradeoff Analysis
30
+
31
+ Every design choice has drawbacks. The brainstorming agent must illuminate the implicit consequences of the user's requests.
18
32
 
19
- Activate before generating any implementation plan when:
33
+ When comparing options, strict tabular formatting clarifies friction:
20
34
 
21
- - A new feature or system is being created
22
- - The request is vague or uses words like "something like" or "maybe"
23
- - Multiple valid technical approaches exist and the right one depends on context
24
- - The user hasn't described their users, scale, or constraints
35
+ |Approach|Speed to Market|Operational Cost|Latency / UX|Maintenance Burden|
36
+ |:---|:---|:---|:---|:---|
37
+ |**Serverless Functions**|Very high|Low initially (pay-per-use)|Cold starts (500ms delay)|Complex local testing|
38
+ |**Monolithic Node VPS**|Moderate|Flat ($10/mo fixed)|Extremely fast (0ms start)|Requires manual OS patching|
39
+ |**Edge Compute (V8)**|Low|Moderate|Global low-latency|Strict 1MB limits / V8 restrictions|
40
+
41
+ *Result:* The user chooses the approach mapped to their business reality, not a generic AI default.
25
42
 
26
43
  ---
27
44
 
28
- ## The Socratic Method Applied to Software
45
+ ## 3. Lateral Expansion (The "What If?" Matrix)
29
46
 
30
- The goal is not to interrogate. It is to surface hidden assumptions before they become hard-coded decisions.
47
+ Users frequently suffer from tunnel-vision regarding their requested feature. The Brainstormer introduces lateral features the user hasn't considered yet to solidify the schema boundaries.
31
48
 
32
- ### Discovery Questions by Layer
49
+ If user asks for: **"A habit tracking calendar."**
50
+ *Expand laterally:*
51
+ - "What if a user crosses timezones frequently? Do streaks break?"
52
+ - "What if they track binary habits (Read: Yes/No) versus quantitative habits (Drink 6 Liters of water)?"
53
+ - "What if they require offline capability while on airplanes?"
33
54
 
34
- **Purpose (What problem does this solve?)**
35
- - What outcome does the user need โ€” not what feature do they want?
36
- - What happens today without this?
37
- - What does success look like in 30 days?
55
+ ---
38
56
 
39
- **Users (Who is this for?)**
40
- - Who are the actual end users?
41
- - What is their technical level?
42
- - Are there multiple user types with different needs?
57
+ ## 4. Distilling Decisions into Assertions
43
58
 
44
- **Scope (What is and isn't included?)**
45
- - What is explicitly out of scope for this version?
46
- - What data already exists vs. what needs to be created?
47
- - Are there integrations with other systems?
59
+ Brainstorming is useless if it does not produce an actionable blueprint.
60
+ At the end of a brainstorming session, the output MUST be distilled into a rigid requirements document or transition into `plan-writing`.
48
61
 
49
- **Market & Psychology (Why will they use it?)**
50
- - Who are the current competitors or alternatives, and how are we different?
51
- - What is the launch strategy and monetization approach?
52
- - What emotional state is the user in when they need this product?
62
+ ```markdown
63
+ # Final Brainstorming Assertions
64
+ 1. **Architecture:** Next.js SSR Monolith
65
+ 2. **Database:** Postgres via Prisma (Required for complex relational queries)
66
+ 3. **Payment:** Stripe Connect (Subverted liability)
67
+ 4. **Auth:** NextAuth (Google Provider only for MVP)
68
+ ```
69
+
70
+ ---
53
71
 
54
- **Superpowers & Creative Constraints (Breaking the mold)**
55
- - If we had to solve this without writing any code, how would we do it?
56
- - What is the most unconventional, "fun", or high-leverage way to achieve this outcome?
57
- - Can we leverage existing external super-APIs (LLMs, edge networks, managed integrations) to bypass traditional development?
72
+ ## Dynamic Question Generation
58
73
 
59
- **Constraints (What limits the design?)**
60
- - Existing tech stack?
61
- - Performance requirements? (users, requests/sec, data volume)
62
- - Deadline?
63
- - Budget for paid services?
74
+ **PRINCIPLE:** Questions are not about gathering dataโ€”they are about **revealing architectural consequences**.
75
+
76
+ Every question must connect to a concrete implementation decision that affects cost, complexity, or timeline.
64
77
 
65
78
  ---
66
79
 
67
- ## Question Protocol
80
+ ### ๐Ÿง  Core Principles
81
+
82
+ #### 1. Questions Reveal Consequences
83
+
84
+ A good question is not "What color do you want?" but:
68
85
 
69
- For complex requests: ask **minimum 3 strategic questions** before proposing anything.
86
+ ```markdown
87
+ โŒ BAD: "What authentication method?"
88
+ โœ… GOOD: "Should users sign up with email/password or social login?
70
89
 
71
- For simple but vague requests: ask **1 focused question** on the most blocking unknown.
90
+ Impact:
91
+ - Email/Pass โ†’ Need password reset, hashing, 2FA infrastructure
92
+ - Social โ†’ OAuth providers, user profile mapping, less control
72
93
 
73
- **Format:**
94
+ Trade-off: Security vs. Development time vs. User friction"
74
95
  ```
75
- Before I propose a solution, a few questions:
76
96
 
77
- 1. [Most critical unknown]
78
- 2. [Second most important]
79
- 3. [Clarifies scope or constraints]
97
+ #### 2. Context Before Content
98
+
99
+ First understand **where** this request fits:
100
+
101
+ |Context|Question Focus|
102
+ |---------|----------------|
103
+ |**Greenfield** (new project)|Foundation decisions: stack, hosting, scale|
104
+ |**Feature Addition**|Integration points, existing patterns, breaking changes|
105
+ |**Refactor**|Why refactor? Performance? Maintainability? What's broken?|
106
+
107
+ #### 3. Minimum Viable Questions
108
+
109
+ **PRINCIPLE:** Each question must eliminate a fork in the implementation road.
80
110
 
81
- [Optional: brief note on why these matter]
82
111
  ```
112
+ Before Question:
113
+ โ”œโ”€โ”€ Path A: Do X (5 min)
114
+ โ”œโ”€โ”€ Path B: Do Y (15 min)
115
+ โ””โ”€โ”€ Path C: Do Z (1 hour)
83
116
 
84
- **Rules:**
85
- - Ask about one topic per question โ€” not compound questions (`and`/`or` in a question = split it)
86
- - Numbered list, not a wall of text
87
- - Never more than 5 questions at once
88
- - Always inject at least one highly creative, out-of-the-box alternative approach ("Superpower Option") when proposing paths.
89
- - If answers create new unknowns, ask a follow-up round
117
+ After Question:
118
+ โ””โ”€โ”€ Path Confirmed: Do X (5 min)
119
+ ```
90
120
 
91
- ---
121
+ If a question doesn't reduce implementation paths โ†’ **DELETE IT**.
92
122
 
93
- ## Anti-Patterns in Discovery
123
+ #### 4. Questions Generate Data, Not Assumptions
94
124
 
95
- **What to avoid:**
125
+ ```markdown
126
+ โŒ ASSUMPTION: "User probably wants Stripe for payments"
127
+ โœ… QUESTION: "Which payment provider fits your needs?
96
128
 
97
- | Pattern | Why It's Harmful |
98
- |---|---|
99
- | Assuming the tech stack | Leads to architecture that fits you, not the project |
100
- | Solving the stated feature, not the problem | User asks for X but needs Y โ€” you build X |
101
- | Treating "I want a dashboard" as a spec | Dashboards have hundreds of valid forms |
102
- | Jumping to implementation to seem helpful | Wastes both parties' time if direction is wrong |
103
- | Asking leading questions | "Should we use Next.js?" vs "What matters most for deployment?" |
129
+ Stripe โ†’ Best documentation, 2.9% + $0.30, US-centric
130
+ LemonSqueezy โ†’ Merchant of Record, 5% + $0.50, global taxes
131
+ Paddle โ†’ Complex pricing, handles EU VAT, enterprise focus"
132
+ ```
104
133
 
105
134
  ---
106
135
 
107
- ## Reporting During Complex Work
136
+ ### ๐Ÿ“‹ Question Generation Algorithm
108
137
 
109
- When working on multi-step tasks, report progress proactively.
110
-
111
- **Status update format:**
112
138
  ```
113
- โœ… [Completed step]
114
- ๐Ÿ”„ [Current step โ€” what you're doing right now]
115
- โณ [Next step]
139
+ INPUT: User request + Context (greenfield/feature/refactor/debug)
140
+ โ”‚
141
+ โ”œโ”€โ”€ STEP 1: Parse Request
142
+ โ”‚ โ”œโ”€โ”€ Extract domain (ecommerce, auth, realtime, cms, etc.)
143
+ โ”‚ โ”œโ”€โ”€ Extract features (explicit and implied)
144
+ โ”‚ โ””โ”€โ”€ Extract scale indicators (users, data volume, frequency)
145
+ โ”‚
146
+ โ”œโ”€โ”€ STEP 2: Identify Decision Points
147
+ โ”‚ โ”œโ”€โ”€ What MUST be decided before coding? (blocking)
148
+ โ”‚ โ”œโ”€โ”€ What COULD be decided later? (deferable)
149
+ โ”‚ โ””โ”€โ”€ What has ARCHITECTURAL impact? (high-leverage)
150
+ โ”‚
151
+ โ”œโ”€โ”€ STEP 3: Generate Questions (Priority Order)
152
+ โ”‚ โ”œโ”€โ”€ P0: Blocking decisions (cannot proceed without answer)
153
+ โ”‚ โ”œโ”€โ”€ P1: High-leverage (affects >30% of implementation)
154
+ โ”‚ โ”œโ”€โ”€ P2: Medium-leverage (affects specific features)
155
+ โ”‚ โ””โ”€โ”€ P3: Nice-to-have (edge cases, optimization)
156
+ โ”‚
157
+ โ””โ”€โ”€ STEP 4: Format Each Question
158
+ โ”œโ”€โ”€ What: Clear question
159
+ โ”œโ”€โ”€ Why: Impact on implementation
160
+ โ”œโ”€โ”€ Options: Trade-offs (not just A vs B)
161
+ โ”œโ”€โ”€ Fun/Superpower Option: Inject at least one highly creative, unconventional approach
162
+ โ””โ”€โ”€ Default: What happens if user doesn't answer
116
163
  ```
117
164
 
118
- Report at natural breakpoints โ€” not after every file edit.
165
+ ---
166
+
167
+ ### ๐ŸŽฏ Domain-Specific Question Banks
168
+
169
+ #### E-Commerce
170
+
171
+ |Question|Why It Matters|Trade-offs|
172
+ |----------|----------------|------------|
173
+ |**Single or Multi-vendor?**|Multi-vendor โ†’ Commission logic, vendor dashboards, split payments|+Revenue, -Complexity|
174
+ |**Inventory Tracking?**|Needs stock tables, reservation logic, low-stock alerts|+Accuracy, -Development time|
175
+ |**Digital or Physical Products?**|Digital โ†’ Download links, no shipping|Physical โ†’ Shipping APIs, tracking|
176
+ |**Subscription or One-time?**|Subscription โ†’ Recurring billing, dunning, proration|+Revenue, -Complexity|
177
+
178
+ #### Authentication
179
+
180
+ |Question|Why It Matters|Trade-offs|
181
+ |----------|----------------|------------|
182
+ |**Social Login Needed?**|OAuth providers vs. password reset infrastructure|+UX, -Control|
183
+ |**Role-Based Permissions?**|RBAC tables, policy enforcement, admin UI|+Security, -Development time|
184
+ |**2FA Required?**|TOTP/SMI infrastructure, backup codes, recovery flow|+Security, -UX friction|
185
+ |**Email Verification?**|Verification tokens, email service, resend logic|+Security, -Sign-up friction|
186
+
187
+ #### Real-time
188
+
189
+ |Question|Why It Matters|Trade-offs|
190
+ |----------|----------------|------------|
191
+ |**WebSocket or Polling?**|WS โ†’ Server scaling, connection management|Polling โ†’ Simpler, higher latency|
192
+ |**Expected Concurrent Users?**|<100 โ†’ Single server, >1000 โ†’ Redis pub/sub, >10k โ†’ specialized infra|+Scale, -Complexity|
193
+ |**Message Persistence?**|History tables, storage costs, pagination|+UX, -Storage|
194
+ |**Ephemeral or Durable?**|Ephemeral โ†’ In-memory, Durable โ†’ Database write before emit|+Reliability, -Latency|
195
+
196
+ #### Content/CMS
197
+
198
+ |Question|Why It Matters|Trade-offs|
199
+ |----------|----------------|------------|
200
+ |**Rich Text or Markdown?**|Rich Text โ†’ Sanitization, XSS risks|Markdown โ†’ Simple, no WYSIWYG|
201
+ |**Draft/Publish Workflow?**|Status field, scheduled jobs, versioning|+Control, -Complexity|
202
+ |**Media Handling?**|Upload endpoints, storage, optimization|+Features, -Development time|
203
+ |**Multi-language?**|i18n tables, translation UI, fallback logic|+Reach, -Complexity|
204
+
205
+ #### Business & Product Strategy
206
+
207
+ |Question|Why It Matters|Trade-offs|
208
+ |----------|----------------|------------|
209
+ |**Monetization Approach?**|Freemium vs. Paywall vs. Ads affects user flow|+Revenue, -User Acquisition|
210
+ |**Onboarding CRO?**|Wizard vs. self-serve dictates state management|+Activation, -Dev Time|
211
+ |**Competitor Differentiator?**|Must highlight this UI feature above all else|+Standout, -Standardization|
212
+ |**Marketing Psychology?**|FOMO (urgency) vs. Trust (social proof) layout|+Conversion, -Aesthetics|
119
213
 
120
214
  ---
121
215
 
122
- ## Error Handling During Implementation
216
+ ### ๐Ÿ“ Dynamic Question Template
123
217
 
124
- When something fails or an assumption is proven wrong mid-task:
218
+ ```markdown
125
219
 
126
- 1. Stop immediately โ€” don't continue building on a broken assumption
127
- 2. State what was expected vs. what was found
128
- 3. Propose 2โ€“3 corrected approaches with trade-offs
129
- 4. Ask which direction to proceed
220
+ ### ๐Ÿ”ด CRITICAL (Blocking Decisions)
130
221
 
131
- ```
132
- โŒ Found an issue:
133
- Expected: users table has an `email` column
134
- Found: email is in a separate `user_contacts` table
222
+ #### 1. **[DECISION POINT]**
223
+
224
+ **Question:** [Clear, specific question]
225
+
226
+ **Why This Matters:**
227
+ - [Explain architectural consequence]
228
+ - [Affects: cost / complexity / timeline / scale]
229
+
230
+ **Options:**
231
+ |Option|Pros|Cons|Best For|
232
+ |--------|------|------|----------|
233
+ |A|[Advantage]|[Disadvantage]|[Use case]|
234
+ |B|[Advantage]|[Disadvantage]|[Use case]|
235
+
236
+ **If Not Specified:** [Default choice + rationale]
237
+
238
+ ---
239
+
240
+ ### ๐ŸŸก HIGH-LEVERAGE (Affects Implementation)
135
241
 
136
- Options:
137
- A) Join through user_contacts (correct but slower queries)
138
- B) Denormalize email onto users table (faster, requires migration)
139
- C) Ask what the schema decision was intended to be
242
+ #### 2. **[DECISION POINT]**
243
+ [Same format]
140
244
 
141
- Which should I proceed with?
245
+ ---
246
+
247
+ ### ๐ŸŸข NICE-TO-HAVE (Edge Cases)
248
+
249
+ #### 3. **[DECISION POINT]**
250
+ [Same format]
142
251
  ```
143
252
 
144
253
  ---
145
254
 
146
- ## File Index
255
+ ### ๐Ÿ”„ Iterative Questioning
147
256
 
148
- | File | Covers | Load When |
149
- |---|---|---|
150
- | `dynamic-questioning.md` | Advanced question frameworks by domain | Discovery for complex systems |
257
+ #### First Pass (3-5 Questions)
258
+ Focus on **blocking decisions**. Don't proceed without answers.
259
+
260
+ #### Second Pass (After Initial Implementation)
261
+ As patterns emerge, ask:
262
+ - "This feature implies [X]. Should we handle [edge case] now or defer?"
263
+ - "We're using [Pattern A]. Should [Feature B] follow the same pattern?"
264
+
265
+ #### Third Pass (Optimization)
266
+ When functionality works:
267
+ - "Performance bottleneck at [X]. Optimize now or acceptable for now?"
268
+ - "Refactor [Y] for maintainability or ship as-is?"
151
269
 
152
270
  ---
153
271
 
154
- ## Output Format
272
+ ### ๐ŸŽญ Example: Full Question Generation
273
+
274
+ ```
275
+ USER REQUEST: "Build an Instagram clone"
276
+
277
+ STEP 1: Parse
278
+ โ”œโ”€โ”€ Domain: Social Media
279
+ โ”œโ”€โ”€ Features: Photo sharing, engagement (likes/comments), user profiles
280
+ โ”œโ”€โ”€ Implied: Feed, following, authentication
281
+ โ””โ”€โ”€ Scale: Potentially high (social apps go viral)
282
+
283
+ STEP 2: Decision Points
284
+ โ”œโ”€โ”€ Blocking: Storage strategy, authentication method, feed type
285
+ โ”œโ”€โ”€ High-leverage: Real-time notifications, data model complexity
286
+ โ””โ”€โ”€ Deferable: Analytics, advanced search, reels/video
287
+
288
+ STEP 3: Generate Questions (Priority)
289
+
290
+ P0 (Blocking):
291
+ 1. Storage Strategy โ†’ Affects architecture, cost, speed
292
+ 2. Feed Algorithm โ†’ Affects database queries, complexity
293
+ 3. Auth Method โ†’ Affects dev time, UX, security
155
294
 
156
- When this skill produces a recommendation or design decision, structure your output as:
295
+ P1 (High-leverage):
296
+ 4. Real-time Notifications โ†’ WebSocket vs polling
297
+ 5. Media Processing โ†’ Client-side vs server-side optimization
157
298
 
299
+ P2 (Deferable):
300
+ 6. Story/Reels โ†’ Major feature creep, defer to v2
301
+ 7. DM/Chat โ†’ Separate subsystem, defer to v2
302
+
303
+ STEP 4: Format Output
158
304
  ```
159
- โ”โ”โ” Brainstorming Recommendation โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
160
- Decision: [what was chosen / proposed]
161
- Rationale: [why โ€” one concise line]
162
- Trade-offs: [what is consciously accepted]
163
- Next action: [concrete next step for the user]
164
- โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
165
- Pre-Flight: โœ… All checks passed
166
- or โŒ [blocking item that must be resolved first]
305
+
306
+ ---
307
+
308
+ ### ๐Ÿ“Š Generated Output (Example)
309
+
167
310
  ```
168
311
 
312
+ ### ๐Ÿ”ด CRITICAL DECISIONS (Cannot Proceed Without Answers)
313
+
314
+ #### 1. **Photo Storage Strategy**
315
+
316
+ **Question:** Where will user photos be stored and served?
317
+
318
+ **Why This Matters:**
319
+ - Affects: Monthly hosting costs, page load speed, CDN complexity
320
+ - High-volume social apps: 1000 users ร— 10 photos ร— 2MB = 20GB storage
321
+
322
+ **Options:**
323
+ |Option|Cost|Speed|Complexity|Best For|
324
+ |--------|------|-------|------------|----------|
325
+ |**Cloudinary**|$89/mo (25GB)|Fast (CDN)|Low|MVP, rapid launch|
326
+ |**AWS S3 + CloudFront**|$0.023/GB|Fast (CDN)|Medium|Production, cost-optimized|
327
+ |**Supabase Storage**|Free tier 1GB|Medium|Low|Small scale, simple|
328
+ |**Local Storage**|Server cost|Slow|Low|Development only|
329
+
330
+ **If Not Specified:** Cloudinary (balanced for MVP)
169
331
 
332
+ ---
333
+
334
+ #### 2. **Feed Algorithm Choice**
335
+
336
+ **Question:** How should the main feed work?
337
+
338
+ **Why This Matters:**
339
+ - Affects: Database query complexity, caching strategy, development time
340
+ - Algorithmic feeds require ML infrastructure, ranking signals
341
+
342
+ **Options:**
343
+ |Option|Complexity|Database Impact|Best For|
344
+ |--------|------------|-----------------|----------|
345
+ |**Chronological**|Low|Simple query|Early stage, transparency|
346
+ |**Follow-Only**|Medium|JOIN with pagination|Most social apps|
347
+ |**Algorithmic**|High|Pre-computed feed tables|Instagram competitor|
348
+
349
+ **If Not Specified:** Follow-Only (balanced for social app)
170
350
 
171
351
  ---
172
352
 
173
- ## ๐Ÿค– LLM-Specific Traps
353
+ #### 3. **Authentication Approach**
174
354
 
175
- AI coding assistants often fall into specific bad habits when dealing with this domain. These are strictly forbidden:
355
+ **Question:** How do users sign up and login?
176
356
 
177
- 1. **Over-engineering:** Proposing complex abstractions or distributed systems when a simpler approach suffices.
178
- 2. **Hallucinated Libraries/Methods:** Using non-existent methods or packages. Always `// VERIFY` or check `package.json` / `requirements.txt`.
179
- 3. **Skipping Edge Cases:** Writing the "happy path" and ignoring error handling, timeouts, or data validation.
180
- 4. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
181
- 5. **Silent Degradation:** Catching and suppressing errors without logging or re-raising.
357
+ **Why This Matters:**
358
+ - Affects: Development time (2-5 hours), security posture, UX friction
359
+
360
+ **Options:**
361
+ |Option|Dev Time|Security|UX|Best For|
362
+ |--------|----------|----------|-----|----------|
363
+ |**Email/Password**|4-5 hrs|High (if 2FA)|Medium|Full control needed|
364
+ |**Social Only**|1-2 hrs|Provider-dependent|Smooth|B2C, rapid launch|
365
+ |**Magic Link**|2-3 hrs|Medium|Very smooth|Security-focused|
366
+ |**Clerk/Auth0**|1 hr|High|Smooth|Fastest to market|
367
+
368
+ **If Not Specified:** Clerk (fastest for MVP)
182
369
 
183
370
  ---
184
371
 
185
- ## ๐Ÿ›๏ธ Tribunal Integration (Anti-Hallucination)
372
+ ### ๐ŸŸก HIGH-LEVERAGE (Affects Architecture)
186
373
 
187
- **Slash command: `/review` or `/tribunal-full`**
188
- **Active reviewers: `logic-reviewer` ยท `security-auditor`**
374
+ #### 4. **Real-time Notifications**
189
375
 
190
- ### โŒ Forbidden AI Tropes
376
+ **Question:** Do users need instant notifications for likes/comments?
191
377
 
192
- 1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
193
- 2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
194
- 3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
378
+ **Why This Matters:**
379
+ - WebSocket adds infrastructure complexity (Redis pub/sub for scaling)
380
+ - Polling is simpler but higher latency
195
381
 
196
- ### โœ… Pre-Flight Self-Audit
382
+ **Options:**
383
+ |Option|Complexity|Scale Cost|Best For|
384
+ |--------|------------|------------|----------|
385
+ |**WebSocket + Redis**|High|$10+/mo|>1000 concurrent users|
386
+ |**Polling (30s)**|Low|DB queries|<1000 users|
387
+ |**No Real-time**|None|None|MVP, validate first|
197
388
 
198
- Review these questions before confirming output:
199
- ```
200
- โœ… Did I rely ONLY on real, verified tools and methods?
201
- โœ… Is this solution appropriately scoped to the user's constraints?
202
- โœ… Did I handle potential failure modes and edge cases?
203
- โœ… Have I avoided generic boilerplate that doesn't add value?
389
+ **If Not Specified:** Polling for MVP (defer WebSocket until validated)
390
+
391
+ ---
392
+
393
+ ### ๐ŸŸข NICE-TO-HAVE (Defer to v2)
394
+
395
+ #### 5. **Video/Reels Support**
396
+ - Major complexity (video processing, streaming infrastructure)
397
+ - Recommendation: Launch with photos only, add video after validation
398
+
399
+ #### 6. **Direct Messaging**
400
+ - Separate subsystem (chat infrastructure different from feed)
401
+ - Recommendation: Use Pusher/Stream for real-time or defer entirely
402
+
403
+ ---
404
+
405
+ ### ๐Ÿ“‹ Summary
406
+
407
+ |Decision|Recommendation|If Changed|
408
+ |----------|----------------|------------|
409
+ |Storage|Cloudinary|+3 hrs setup|
410
+ |Feed|Follow-only|+2 hrs query optimization|
411
+ |Auth|Clerk|-3 hrs dev time|
412
+ |Real-time|Polling|+5 hrs WebSocket setup|
413
+ |Video|Defer to v2|N/A|
414
+ |DM|Defer to v2|N/A|
415
+
416
+ **Total Estimated MVP Time:** 15-20 hours with recommendations above
204
417
  ```
205
418
 
206
- ### ๐Ÿ›‘ Verification-Before-Completion (VBC) Protocol
419
+ ---
420
+
421
+ ### ๐ŸŽฏ Principles Recap
207
422
 
208
- **CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
209
- - โŒ **Forbidden:** Declaring a task complete because the output "looks correct."
210
- - โœ… **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended.
423
+ 1. **Every question = Architectural decision** โ†’ Not data gathering
424
+ 2. **Show trade-offs** โ†’ User understands consequences
425
+ 3. **Prioritize blocking decisions** โ†’ Cannot proceed without
426
+ 4. **Provide defaults** โ†’ If user doesn't answer, we proceed anyway
427
+ 5. **Domain-aware** โ†’ Ecommerce questions โ‰  Auth questions โ‰  Real-time questions
428
+ 6. **Iterative** โ†’ More questions as patterns emerge during implementation