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.
- package/.agent/ARCHITECTURE.md +99 -99
- package/.agent/GEMINI.md +52 -52
- package/.agent/agents/accessibility-reviewer.md +139 -86
- package/.agent/agents/ai-code-reviewer.md +160 -90
- package/.agent/agents/backend-specialist.md +164 -127
- package/.agent/agents/code-archaeologist.md +115 -73
- package/.agent/agents/database-architect.md +130 -110
- package/.agent/agents/debugger.md +137 -97
- package/.agent/agents/dependency-reviewer.md +78 -30
- package/.agent/agents/devops-engineer.md +161 -118
- package/.agent/agents/documentation-writer.md +151 -87
- package/.agent/agents/explorer-agent.md +117 -99
- package/.agent/agents/frontend-reviewer.md +127 -47
- package/.agent/agents/frontend-specialist.md +169 -109
- package/.agent/agents/game-developer.md +28 -164
- package/.agent/agents/logic-reviewer.md +87 -49
- package/.agent/agents/mobile-developer.md +151 -103
- package/.agent/agents/mobile-reviewer.md +133 -50
- package/.agent/agents/orchestrator.md +121 -110
- package/.agent/agents/penetration-tester.md +103 -77
- package/.agent/agents/performance-optimizer.md +136 -92
- package/.agent/agents/performance-reviewer.md +139 -69
- package/.agent/agents/product-manager.md +104 -70
- package/.agent/agents/product-owner.md +6 -25
- package/.agent/agents/project-planner.md +95 -95
- package/.agent/agents/qa-automation-engineer.md +174 -87
- package/.agent/agents/security-auditor.md +133 -129
- package/.agent/agents/seo-specialist.md +160 -99
- package/.agent/agents/sql-reviewer.md +132 -44
- package/.agent/agents/supervisor-agent.md +137 -109
- package/.agent/agents/swarm-worker-contracts.md +17 -17
- package/.agent/agents/swarm-worker-registry.md +46 -46
- package/.agent/agents/test-coverage-reviewer.md +132 -53
- package/.agent/agents/test-engineer.md +0 -21
- package/.agent/agents/type-safety-reviewer.md +143 -33
- package/.agent/patterns/generator.md +9 -9
- package/.agent/patterns/inversion.md +12 -12
- package/.agent/patterns/pipeline.md +9 -9
- package/.agent/patterns/reviewer.md +13 -13
- package/.agent/patterns/tool-wrapper.md +9 -9
- package/.agent/rules/GEMINI.md +63 -63
- package/.agent/scripts/__pycache__/auto_preview.cpython-311.pyc +0 -0
- package/.agent/scripts/__pycache__/bundle_analyzer.cpython-311.pyc +0 -0
- package/.agent/scripts/__pycache__/checklist.cpython-311.pyc +0 -0
- package/.agent/scripts/__pycache__/dependency_analyzer.cpython-311.pyc +0 -0
- package/.agent/scripts/__pycache__/security_scan.cpython-311.pyc +0 -0
- package/.agent/scripts/__pycache__/session_manager.cpython-311.pyc +0 -0
- package/.agent/scripts/__pycache__/skill_integrator.cpython-311.pyc +0 -0
- package/.agent/scripts/__pycache__/swarm_dispatcher.cpython-311.pyc +0 -0
- package/.agent/scripts/__pycache__/test_runner.cpython-311.pyc +0 -0
- package/.agent/scripts/__pycache__/verify_all.cpython-311.pyc +0 -0
- package/.agent/scripts/compress_skills.py +167 -0
- package/.agent/scripts/consolidate_skills.py +173 -0
- package/.agent/scripts/deep_compress.py +202 -0
- package/.agent/scripts/minify_context.py +80 -0
- package/.agent/scripts/security_scan.py +1 -1
- package/.agent/scripts/strip_tribunal.py +41 -0
- package/.agent/skills/agent-organizer/SKILL.md +60 -100
- package/.agent/skills/agentic-patterns/SKILL.md +0 -70
- package/.agent/skills/ai-prompt-injection-defense/SKILL.md +108 -53
- package/.agent/skills/api-patterns/SKILL.md +197 -257
- package/.agent/skills/api-security-auditor/SKILL.md +125 -57
- package/.agent/skills/app-builder/SKILL.md +326 -50
- package/.agent/skills/app-builder/templates/SKILL.md +13 -15
- package/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +16 -16
- package/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +22 -22
- package/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +18 -18
- package/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +20 -20
- package/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +17 -17
- package/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +18 -18
- package/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +21 -21
- package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +19 -19
- package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +26 -26
- package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +26 -26
- package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +19 -19
- package/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +18 -18
- package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +20 -20
- package/.agent/skills/appflow-wireframe/SKILL.md +71 -98
- package/.agent/skills/architecture/SKILL.md +161 -200
- package/.agent/skills/authentication-best-practices/SKILL.md +121 -54
- package/.agent/skills/bash-linux/SKILL.md +71 -166
- package/.agent/skills/behavioral-modes/SKILL.md +8 -69
- package/.agent/skills/brainstorming/SKILL.md +345 -127
- package/.agent/skills/building-native-ui/SKILL.md +125 -57
- package/.agent/skills/clean-code/SKILL.md +266 -149
- package/.agent/skills/code-review-checklist/SKILL.md +0 -62
- package/.agent/skills/config-validator/SKILL.md +73 -131
- package/.agent/skills/csharp-developer/SKILL.md +434 -73
- package/.agent/skills/database-design/SKILL.md +190 -275
- package/.agent/skills/deployment-procedures/SKILL.md +81 -158
- package/.agent/skills/devops-engineer/SKILL.md +255 -94
- package/.agent/skills/devops-incident-responder/SKILL.md +50 -69
- package/.agent/skills/doc.md +5 -5
- package/.agent/skills/documentation-templates/SKILL.md +19 -63
- package/.agent/skills/edge-computing/SKILL.md +75 -165
- package/.agent/skills/extract-design-system/SKILL.md +84 -58
- package/.agent/skills/framer-motion-expert/SKILL.md +195 -0
- package/.agent/skills/frontend-design/SKILL.md +151 -499
- package/.agent/skills/game-design-expert/SKILL.md +71 -0
- package/.agent/skills/game-engineering-expert/SKILL.md +88 -0
- package/.agent/skills/geo-fundamentals/SKILL.md +52 -178
- package/.agent/skills/github-operations/SKILL.md +197 -272
- package/.agent/skills/gsap-expert/SKILL.md +194 -0
- package/.agent/skills/i18n-localization/SKILL.md +60 -172
- package/.agent/skills/intelligent-routing/SKILL.md +123 -103
- package/.agent/skills/lint-and-validate/SKILL.md +8 -52
- package/.agent/skills/llm-engineering/SKILL.md +281 -195
- package/.agent/skills/local-first/SKILL.md +76 -159
- package/.agent/skills/mcp-builder/SKILL.md +48 -188
- package/.agent/skills/mobile-design/SKILL.md +213 -219
- package/.agent/skills/motion-engineering/SKILL.md +184 -0
- package/.agent/skills/nextjs-react-expert/SKILL.md +184 -203
- package/.agent/skills/nodejs-best-practices/SKILL.md +403 -185
- package/.agent/skills/observability/SKILL.md +211 -203
- package/.agent/skills/parallel-agents/SKILL.md +53 -146
- package/.agent/skills/performance-profiling/SKILL.md +171 -151
- package/.agent/skills/plan-writing/SKILL.md +49 -153
- package/.agent/skills/platform-engineer/SKILL.md +57 -103
- package/.agent/skills/playwright-best-practices/SKILL.md +110 -63
- package/.agent/skills/powershell-windows/SKILL.md +61 -179
- package/.agent/skills/python-patterns/SKILL.md +7 -35
- package/.agent/skills/python-pro/SKILL.md +273 -114
- package/.agent/skills/react-specialist/SKILL.md +227 -108
- package/.agent/skills/readme-builder/SKILL.md +15 -85
- package/.agent/skills/realtime-patterns/SKILL.md +216 -243
- package/.agent/skills/red-team-tactics/SKILL.md +10 -51
- package/.agent/skills/rust-pro/SKILL.md +525 -142
- package/.agent/skills/seo-fundamentals/SKILL.md +92 -153
- package/.agent/skills/server-management/SKILL.md +110 -166
- package/.agent/skills/shadcn-ui-expert/SKILL.md +154 -55
- package/.agent/skills/skill-creator/SKILL.md +18 -58
- package/.agent/skills/sql-pro/SKILL.md +543 -68
- package/.agent/skills/supabase-postgres-best-practices/SKILL.md +28 -68
- package/.agent/skills/swiftui-expert/SKILL.md +124 -57
- package/.agent/skills/systematic-debugging/SKILL.md +49 -151
- package/.agent/skills/tailwind-patterns/SKILL.md +433 -149
- package/.agent/skills/tdd-workflow/SKILL.md +63 -169
- package/.agent/skills/test-result-analyzer/SKILL.md +33 -73
- package/.agent/skills/testing-patterns/SKILL.md +437 -130
- package/.agent/skills/trend-researcher/SKILL.md +30 -71
- package/.agent/skills/ui-ux-pro-max/SKILL.md +0 -41
- package/.agent/skills/ui-ux-researcher/SKILL.md +51 -91
- package/.agent/skills/vue-expert/SKILL.md +225 -119
- package/.agent/skills/vulnerability-scanner/SKILL.md +264 -226
- package/.agent/skills/web-accessibility-auditor/SKILL.md +141 -58
- package/.agent/skills/web-design-guidelines/SKILL.md +17 -61
- package/.agent/skills/webapp-testing/SKILL.md +71 -196
- package/.agent/skills/whimsy-injector/SKILL.md +58 -132
- package/.agent/skills/workflow-optimizer/SKILL.md +28 -68
- package/.agent/workflows/api-tester.md +96 -224
- package/.agent/workflows/audit.md +81 -122
- package/.agent/workflows/brainstorm.md +69 -105
- package/.agent/workflows/changelog.md +65 -97
- package/.agent/workflows/create.md +73 -88
- package/.agent/workflows/debug.md +80 -111
- package/.agent/workflows/deploy.md +119 -92
- package/.agent/workflows/enhance.md +80 -91
- package/.agent/workflows/fix.md +68 -97
- package/.agent/workflows/generate.md +165 -164
- package/.agent/workflows/migrate.md +106 -109
- package/.agent/workflows/orchestrate.md +103 -86
- package/.agent/workflows/performance-benchmarker.md +77 -268
- package/.agent/workflows/plan.md +120 -98
- package/.agent/workflows/preview.md +39 -96
- package/.agent/workflows/refactor.md +105 -97
- package/.agent/workflows/review-ai.md +63 -102
- package/.agent/workflows/review.md +71 -110
- package/.agent/workflows/session.md +53 -113
- package/.agent/workflows/status.md +42 -88
- package/.agent/workflows/strengthen-skills.md +90 -51
- package/.agent/workflows/swarm.md +114 -129
- package/.agent/workflows/test.md +125 -102
- package/.agent/workflows/tribunal-backend.md +60 -78
- package/.agent/workflows/tribunal-database.md +62 -100
- package/.agent/workflows/tribunal-frontend.md +62 -82
- package/.agent/workflows/tribunal-full.md +56 -100
- package/.agent/workflows/tribunal-mobile.md +65 -94
- package/.agent/workflows/tribunal-performance.md +62 -105
- package/.agent/workflows/ui-ux-pro-max.md +72 -121
- package/README.md +11 -15
- package/package.json +1 -1
- package/.agent/skills/api-patterns/api-style.md +0 -42
- package/.agent/skills/api-patterns/auth.md +0 -24
- package/.agent/skills/api-patterns/documentation.md +0 -26
- package/.agent/skills/api-patterns/graphql.md +0 -41
- package/.agent/skills/api-patterns/rate-limiting.md +0 -31
- package/.agent/skills/api-patterns/response.md +0 -37
- package/.agent/skills/api-patterns/rest.md +0 -40
- package/.agent/skills/api-patterns/security-testing.md +0 -122
- package/.agent/skills/api-patterns/trpc.md +0 -41
- package/.agent/skills/api-patterns/versioning.md +0 -22
- package/.agent/skills/app-builder/agent-coordination.md +0 -71
- package/.agent/skills/app-builder/feature-building.md +0 -53
- package/.agent/skills/app-builder/project-detection.md +0 -34
- package/.agent/skills/app-builder/scaffolding.md +0 -118
- package/.agent/skills/app-builder/tech-stack.md +0 -40
- package/.agent/skills/architecture/context-discovery.md +0 -43
- package/.agent/skills/architecture/examples.md +0 -94
- package/.agent/skills/architecture/pattern-selection.md +0 -68
- package/.agent/skills/architecture/patterns-reference.md +0 -50
- package/.agent/skills/architecture/trade-off-analysis.md +0 -77
- package/.agent/skills/brainstorming/dynamic-questioning.md +0 -360
- package/.agent/skills/database-design/database-selection.md +0 -43
- package/.agent/skills/database-design/indexing.md +0 -39
- package/.agent/skills/database-design/migrations.md +0 -48
- package/.agent/skills/database-design/optimization.md +0 -36
- package/.agent/skills/database-design/orm-selection.md +0 -30
- package/.agent/skills/database-design/schema-design.md +0 -56
- package/.agent/skills/dotnet-core-expert/SKILL.md +0 -103
- package/.agent/skills/framer-motion-animations/SKILL.md +0 -74
- package/.agent/skills/frontend-design/animation-guide.md +0 -331
- package/.agent/skills/frontend-design/color-system.md +0 -329
- package/.agent/skills/frontend-design/decision-trees.md +0 -418
- package/.agent/skills/frontend-design/motion-graphics.md +0 -306
- package/.agent/skills/frontend-design/typography-system.md +0 -363
- package/.agent/skills/frontend-design/ux-psychology.md +0 -1116
- package/.agent/skills/frontend-design/visual-effects.md +0 -383
- package/.agent/skills/game-development/2d-games/SKILL.md +0 -119
- package/.agent/skills/game-development/3d-games/SKILL.md +0 -135
- package/.agent/skills/game-development/SKILL.md +0 -236
- package/.agent/skills/game-development/game-art/SKILL.md +0 -185
- package/.agent/skills/game-development/game-audio/SKILL.md +0 -190
- package/.agent/skills/game-development/game-design/SKILL.md +0 -129
- package/.agent/skills/game-development/mobile-games/SKILL.md +0 -108
- package/.agent/skills/game-development/multiplayer/SKILL.md +0 -132
- package/.agent/skills/game-development/pc-games/SKILL.md +0 -144
- package/.agent/skills/game-development/vr-ar/SKILL.md +0 -123
- package/.agent/skills/game-development/web-games/SKILL.md +0 -150
- package/.agent/skills/intelligent-routing/router-manifest.md +0 -65
- package/.agent/skills/mobile-design/decision-trees.md +0 -516
- package/.agent/skills/mobile-design/mobile-backend.md +0 -491
- package/.agent/skills/mobile-design/mobile-color-system.md +0 -420
- package/.agent/skills/mobile-design/mobile-debugging.md +0 -122
- package/.agent/skills/mobile-design/mobile-design-thinking.md +0 -357
- package/.agent/skills/mobile-design/mobile-navigation.md +0 -458
- package/.agent/skills/mobile-design/mobile-performance.md +0 -767
- package/.agent/skills/mobile-design/mobile-testing.md +0 -356
- package/.agent/skills/mobile-design/mobile-typography.md +0 -433
- package/.agent/skills/mobile-design/platform-android.md +0 -666
- package/.agent/skills/mobile-design/platform-ios.md +0 -561
- package/.agent/skills/mobile-design/touch-psychology.md +0 -537
- package/.agent/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +0 -312
- package/.agent/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +0 -240
- package/.agent/skills/nextjs-react-expert/3-server-server-side-performance.md +0 -490
- package/.agent/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +0 -264
- package/.agent/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +0 -581
- package/.agent/skills/nextjs-react-expert/6-rendering-rendering-performance.md +0 -432
- package/.agent/skills/nextjs-react-expert/7-js-javascript-performance.md +0 -684
- package/.agent/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +0 -150
- package/.agent/skills/vulnerability-scanner/checklists.md +0 -121
|
@@ -1,210 +1,428 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: brainstorming
|
|
3
|
-
description: Socratic
|
|
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
|
|
6
|
-
last-updated: 2026-
|
|
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
|
|
10
|
+
# Brainstorming โ Socratic Exploration Mastery
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
##
|
|
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
|
-
|
|
33
|
+
When comparing options, strict tabular formatting clarifies friction:
|
|
20
34
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
##
|
|
45
|
+
## 3. Lateral Expansion (The "What If?" Matrix)
|
|
29
46
|
|
|
30
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
45
|
-
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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
|
-
|
|
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
|
-
**
|
|
60
|
-
|
|
61
|
-
|
|
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
|
-
|
|
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
|
-
|
|
86
|
+
```markdown
|
|
87
|
+
โ BAD: "What authentication method?"
|
|
88
|
+
โ
GOOD: "Should users sign up with email/password or social login?
|
|
70
89
|
|
|
71
|
-
|
|
90
|
+
Impact:
|
|
91
|
+
- Email/Pass โ Need password reset, hashing, 2FA infrastructure
|
|
92
|
+
- Social โ OAuth providers, user profile mapping, less control
|
|
72
93
|
|
|
73
|
-
|
|
94
|
+
Trade-off: Security vs. Development time vs. User friction"
|
|
74
95
|
```
|
|
75
|
-
Before I propose a solution, a few questions:
|
|
76
96
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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
|
-
|
|
85
|
-
|
|
86
|
-
|
|
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
|
-
|
|
123
|
+
#### 4. Questions Generate Data, Not Assumptions
|
|
94
124
|
|
|
95
|
-
|
|
125
|
+
```markdown
|
|
126
|
+
โ ASSUMPTION: "User probably wants Stripe for payments"
|
|
127
|
+
โ
QUESTION: "Which payment provider fits your needs?
|
|
96
128
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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
|
-
|
|
136
|
+
### ๐ Question Generation Algorithm
|
|
108
137
|
|
|
109
|
-
When working on multi-step tasks, report progress proactively.
|
|
110
|
-
|
|
111
|
-
**Status update format:**
|
|
112
138
|
```
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
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
|
-
|
|
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
|
-
|
|
216
|
+
### ๐ Dynamic Question Template
|
|
123
217
|
|
|
124
|
-
|
|
218
|
+
```markdown
|
|
125
219
|
|
|
126
|
-
|
|
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
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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
|
-
|
|
137
|
-
|
|
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
|
-
|
|
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
|
-
|
|
255
|
+
### ๐ Iterative Questioning
|
|
147
256
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
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
|
-
|
|
353
|
+
#### 3. **Authentication Approach**
|
|
174
354
|
|
|
175
|
-
|
|
355
|
+
**Question:** How do users sign up and login?
|
|
176
356
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
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
|
-
|
|
372
|
+
### ๐ก HIGH-LEVERAGE (Affects Architecture)
|
|
186
373
|
|
|
187
|
-
|
|
188
|
-
**Active reviewers: `logic-reviewer` ยท `security-auditor`**
|
|
374
|
+
#### 4. **Real-time Notifications**
|
|
189
375
|
|
|
190
|
-
|
|
376
|
+
**Question:** Do users need instant notifications for likes/comments?
|
|
191
377
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
378
|
+
**Why This Matters:**
|
|
379
|
+
- WebSocket adds infrastructure complexity (Redis pub/sub for scaling)
|
|
380
|
+
- Polling is simpler but higher latency
|
|
195
381
|
|
|
196
|
-
|
|
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
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
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
|
-
|
|
419
|
+
---
|
|
420
|
+
|
|
421
|
+
### ๐ฏ Principles Recap
|
|
207
422
|
|
|
208
|
-
**
|
|
209
|
-
|
|
210
|
-
|
|
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
|