@h1dr0n/skill-pool 0.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 (189) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +296 -0
  3. package/bin/cli.js +157 -0
  4. package/package.json +41 -0
  5. package/skills/api/agents/backend-specialist.md +69 -0
  6. package/skills/api/agents/database-optimizer.md +176 -0
  7. package/skills/api/manifest.yaml +20 -0
  8. package/skills/api/rules/auth-security.md +45 -0
  9. package/skills/api/skills/api-patterns/SKILL.md +81 -0
  10. package/skills/api/skills/api-patterns/api-style.md +42 -0
  11. package/skills/api/skills/api-patterns/auth.md +24 -0
  12. package/skills/api/skills/api-patterns/documentation.md +26 -0
  13. package/skills/api/skills/api-patterns/graphql.md +41 -0
  14. package/skills/api/skills/api-patterns/rate-limiting.md +31 -0
  15. package/skills/api/skills/api-patterns/response.md +37 -0
  16. package/skills/api/skills/api-patterns/rest.md +40 -0
  17. package/skills/api/skills/api-patterns/scripts/api_validator.py +211 -0
  18. package/skills/api/skills/api-patterns/security-testing.md +122 -0
  19. package/skills/api/skills/api-patterns/trpc.md +41 -0
  20. package/skills/api/skills/api-patterns/versioning.md +22 -0
  21. package/skills/api/skills/database-patterns.md +126 -0
  22. package/skills/api/skills/deployment-patterns.md +105 -0
  23. package/skills/api/skills/docker-patterns.md +135 -0
  24. package/skills/common/agents/code-reviewer.md +78 -0
  25. package/skills/common/agents/planner.md +80 -0
  26. package/skills/common/agents/security-reviewer.md +82 -0
  27. package/skills/common/agents/software-architect.md +81 -0
  28. package/skills/common/manifest.yaml +25 -0
  29. package/skills/common/rules/coding-style.md +39 -0
  30. package/skills/common/rules/git-workflow.md +33 -0
  31. package/skills/common/rules/security.md +25 -0
  32. package/skills/common/skills/architecture/SKILL.md +55 -0
  33. package/skills/common/skills/architecture/context-discovery.md +43 -0
  34. package/skills/common/skills/architecture/examples.md +94 -0
  35. package/skills/common/skills/architecture/pattern-selection.md +68 -0
  36. package/skills/common/skills/architecture/patterns-reference.md +50 -0
  37. package/skills/common/skills/architecture/trade-off-analysis.md +77 -0
  38. package/skills/common/skills/brainstorming/SKILL.md +163 -0
  39. package/skills/common/skills/brainstorming/dynamic-questioning.md +350 -0
  40. package/skills/common/skills/clean-code.md +99 -0
  41. package/skills/common/skills/code-review-checklist.md +86 -0
  42. package/skills/common/skills/plan-writing/SKILL.md +152 -0
  43. package/skills/common/skills/skill-feedback.md +94 -0
  44. package/skills/common/skills/tdd-workflow.md +130 -0
  45. package/skills/common/skills/verification-loop.md +112 -0
  46. package/skills/cpp/agents/cpp-build-resolver.md +90 -0
  47. package/skills/cpp/agents/cpp-reviewer.md +72 -0
  48. package/skills/cpp/manifest.yaml +15 -0
  49. package/skills/cpp/skills/cpp-coding-standards.md +722 -0
  50. package/skills/cpp/skills/cpp-testing.md +323 -0
  51. package/skills/devops/agents/devops-automator.md +376 -0
  52. package/skills/devops/agents/sre.md +90 -0
  53. package/skills/devops/manifest.yaml +20 -0
  54. package/skills/devops/skills/deployment-patterns.md +427 -0
  55. package/skills/devops/skills/deployment-procedures/SKILL.md +241 -0
  56. package/skills/devops/skills/docker-patterns.md +364 -0
  57. package/skills/devops/skills/e2e-testing.md +326 -0
  58. package/skills/devops/skills/github-ops.md +144 -0
  59. package/skills/django/manifest.yaml +16 -0
  60. package/skills/django/skills/django-patterns.md +734 -0
  61. package/skills/django/skills/django-security.md +593 -0
  62. package/skills/django/skills/django-tdd.md +729 -0
  63. package/skills/django/skills/django-verification.md +469 -0
  64. package/skills/dotnet/agents/csharp-reviewer.md +101 -0
  65. package/skills/dotnet/manifest.yaml +14 -0
  66. package/skills/dotnet/skills/csharp-testing.md +321 -0
  67. package/skills/dotnet/skills/dotnet-patterns.md +321 -0
  68. package/skills/go/agents/code-reviewer.md +76 -0
  69. package/skills/go/agents/go-build-resolver.md +94 -0
  70. package/skills/go/agents/go-reviewer.md +76 -0
  71. package/skills/go/manifest.yaml +17 -0
  72. package/skills/go/rules/go-style.md +55 -0
  73. package/skills/go/skills/golang-patterns.md +674 -0
  74. package/skills/go/skills/golang-testing.md +720 -0
  75. package/skills/java/agents/java-build-resolver.md +153 -0
  76. package/skills/java/agents/java-reviewer.md +92 -0
  77. package/skills/java/manifest.yaml +18 -0
  78. package/skills/java/skills/java-coding-standards.md +147 -0
  79. package/skills/java/skills/jpa-patterns.md +151 -0
  80. package/skills/java/skills/springboot-patterns.md +314 -0
  81. package/skills/java/skills/springboot-security.md +272 -0
  82. package/skills/kotlin/agents/kotlin-build-resolver.md +118 -0
  83. package/skills/kotlin/agents/kotlin-reviewer.md +159 -0
  84. package/skills/kotlin/manifest.yaml +17 -0
  85. package/skills/kotlin/skills/kotlin-coroutines-flows.md +284 -0
  86. package/skills/kotlin/skills/kotlin-patterns.md +711 -0
  87. package/skills/kotlin/skills/kotlin-testing.md +824 -0
  88. package/skills/laravel/manifest.yaml +15 -0
  89. package/skills/laravel/skills/laravel-patterns.md +409 -0
  90. package/skills/laravel/skills/laravel-security.md +279 -0
  91. package/skills/laravel/skills/laravel-tdd.md +277 -0
  92. package/skills/laravel/skills/laravel-verification.md +173 -0
  93. package/skills/mobile/agents/dart-build-resolver.md +201 -0
  94. package/skills/mobile/agents/flutter-reviewer.md +243 -0
  95. package/skills/mobile/manifest.yaml +19 -0
  96. package/skills/mobile/skills/android-clean-architecture.md +339 -0
  97. package/skills/mobile/skills/dart-flutter-patterns.md +563 -0
  98. package/skills/mobile/skills/swiftui-patterns.md +259 -0
  99. package/skills/nestjs/manifest.yaml +13 -0
  100. package/skills/nestjs/skills/nestjs-patterns.md +230 -0
  101. package/skills/perl/manifest.yaml +13 -0
  102. package/skills/perl/skills/perl-patterns.md +504 -0
  103. package/skills/perl/skills/perl-security.md +503 -0
  104. package/skills/perl/skills/perl-testing.md +475 -0
  105. package/skills/python/agents/python-reviewer.md +98 -0
  106. package/skills/python/manifest.yaml +18 -0
  107. package/skills/python/rules/python-style.md +69 -0
  108. package/skills/python/skills/python-patterns/SKILL.md +441 -0
  109. package/skills/python/skills/python-patterns.md +90 -0
  110. package/skills/python/skills/python-testing.md +81 -0
  111. package/skills/rust/agents/rust-build-resolver.md +148 -0
  112. package/skills/rust/agents/rust-reviewer.md +94 -0
  113. package/skills/rust/manifest.yaml +16 -0
  114. package/skills/rust/rules/rust-style.md +107 -0
  115. package/skills/rust/skills/rust-patterns.md +499 -0
  116. package/skills/rust/skills/rust-testing.md +500 -0
  117. package/skills/security/agents/accessibility-auditor.md +316 -0
  118. package/skills/security/agents/security-reviewer.md +108 -0
  119. package/skills/security/manifest.yaml +19 -0
  120. package/skills/security/skills/red-team-tactics/SKILL.md +199 -0
  121. package/skills/security/skills/security-bounty-hunter.md +99 -0
  122. package/skills/security/skills/security-review.md +495 -0
  123. package/skills/security/skills/security-scan.md +165 -0
  124. package/skills/security/skills/vulnerability-scanner/SKILL.md +276 -0
  125. package/skills/security/skills/vulnerability-scanner/checklists.md +121 -0
  126. package/skills/security/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
  127. package/skills/swift/manifest.yaml +16 -0
  128. package/skills/swift/skills/swift-actor-persistence.md +142 -0
  129. package/skills/swift/skills/swift-concurrency.md +216 -0
  130. package/skills/swift/skills/swift-protocol-di-testing.md +190 -0
  131. package/skills/swift/skills/swiftui-patterns.md +259 -0
  132. package/skills/unity/agents/game-designer.md +167 -0
  133. package/skills/unity/agents/unity-architect.md +52 -0
  134. package/skills/unity/agents/unity-editor-tool-developer.md +310 -0
  135. package/skills/unity/agents/unity-multiplayer-engineer.md +321 -0
  136. package/skills/unity/agents/unity-shader-graph-artist.md +269 -0
  137. package/skills/unity/manifest.yaml +21 -0
  138. package/skills/unity/rules/csharp-patterns.md +48 -0
  139. package/skills/unity/rules/unity-specific.md +53 -0
  140. package/skills/unity/skills/systematic-debugging.md +92 -0
  141. package/skills/unity/skills/unity-architecture.md +173 -0
  142. package/skills/unreal/agents/level-designer.md +208 -0
  143. package/skills/unreal/agents/technical-artist.md +229 -0
  144. package/skills/unreal/agents/unreal-multiplayer-architect.md +313 -0
  145. package/skills/unreal/agents/unreal-systems-engineer.md +310 -0
  146. package/skills/unreal/agents/unreal-technical-artist.md +256 -0
  147. package/skills/unreal/agents/unreal-world-builder.md +273 -0
  148. package/skills/unreal/manifest.yaml +21 -0
  149. package/skills/unreal/skills/unreal-patterns.md +183 -0
  150. package/skills/web/agents/frontend-specialist.md +71 -0
  151. package/skills/web/agents/ui-designer.md +383 -0
  152. package/skills/web/agents/ux-architect.md +469 -0
  153. package/skills/web/manifest.yaml +22 -0
  154. package/skills/web/rules/accessibility.md +54 -0
  155. package/skills/web/rules/css-performance.md +52 -0
  156. package/skills/web/skills/e2e-testing.md +132 -0
  157. package/skills/web/skills/frontend-design/SKILL.md +452 -0
  158. package/skills/web/skills/frontend-design/animation-guide.md +331 -0
  159. package/skills/web/skills/frontend-design/color-system.md +311 -0
  160. package/skills/web/skills/frontend-design/decision-trees.md +418 -0
  161. package/skills/web/skills/frontend-design/motion-graphics.md +306 -0
  162. package/skills/web/skills/frontend-design/scripts/accessibility_checker.py +183 -0
  163. package/skills/web/skills/frontend-design/scripts/ux_audit.py +722 -0
  164. package/skills/web/skills/frontend-design/typography-system.md +345 -0
  165. package/skills/web/skills/frontend-design/ux-psychology.md +1116 -0
  166. package/skills/web/skills/frontend-design/visual-effects.md +383 -0
  167. package/skills/web/skills/react-nextjs.md +135 -0
  168. package/skills/web/skills/tailwind-patterns/SKILL.md +269 -0
  169. package/src/adapters/antigravity.js +164 -0
  170. package/src/adapters/claude.js +188 -0
  171. package/src/adapters/cursor.js +161 -0
  172. package/src/adapters/index.js +67 -0
  173. package/src/adapters/windsurf.js +158 -0
  174. package/src/commands/add.js +266 -0
  175. package/src/commands/create.js +127 -0
  176. package/src/commands/diff.js +78 -0
  177. package/src/commands/info.js +88 -0
  178. package/src/commands/init.js +224 -0
  179. package/src/commands/install.js +90 -0
  180. package/src/commands/list.js +54 -0
  181. package/src/commands/remove.js +101 -0
  182. package/src/commands/targets.js +32 -0
  183. package/src/commands/update.js +57 -0
  184. package/src/core/manifest.js +57 -0
  185. package/src/core/plugins.js +86 -0
  186. package/src/core/resolver.js +84 -0
  187. package/src/core/tracker.js +49 -0
  188. package/src/utils/fs.js +80 -0
  189. package/src/utils/git.js +52 -0
@@ -0,0 +1,94 @@
1
+ # Architecture Examples
2
+
3
+ > Real-world architecture decisions by project type.
4
+
5
+ ---
6
+
7
+ ## Example 1: MVP E-commerce (Solo Developer)
8
+
9
+ ```yaml
10
+ Requirements:
11
+ - <1000 users initially
12
+ - Solo developer
13
+ - Fast to market (8 weeks)
14
+ - Budget-conscious
15
+
16
+ Architecture Decisions:
17
+ App Structure: Monolith (simpler for solo)
18
+ Framework: Next.js (full-stack, fast)
19
+ Data Layer: Prisma direct (no over-abstraction)
20
+ Authentication: JWT (simpler than OAuth)
21
+ Payment: Stripe (hosted solution)
22
+ Database: PostgreSQL (ACID for orders)
23
+
24
+ Trade-offs Accepted:
25
+ - Monolith β†’ Can't scale independently (team doesn't justify it)
26
+ - No Repository β†’ Less testable (simple CRUD doesn't need it)
27
+ - JWT β†’ No social login initially (can add later)
28
+
29
+ Future Migration Path:
30
+ - Users > 10K β†’ Extract payment service
31
+ - Team > 3 β†’ Add Repository pattern
32
+ - Social login requested β†’ Add OAuth
33
+ ```
34
+
35
+ ---
36
+
37
+ ## Example 2: SaaS Product (5-10 Developers)
38
+
39
+ ```yaml
40
+ Requirements:
41
+ - 1K-100K users
42
+ - 5-10 developers
43
+ - Long-term (12+ months)
44
+ - Multiple domains (billing, users, core)
45
+
46
+ Architecture Decisions:
47
+ App Structure: Modular Monolith (team size optimal)
48
+ Framework: NestJS (modular by design)
49
+ Data Layer: Repository pattern (testing, flexibility)
50
+ Domain Model: Partial DDD (rich entities)
51
+ Authentication: OAuth + JWT
52
+ Caching: Redis
53
+ Database: PostgreSQL
54
+
55
+ Trade-offs Accepted:
56
+ - Modular Monolith β†’ Some module coupling (microservices not justified)
57
+ - Partial DDD β†’ No full aggregates (no domain experts)
58
+ - RabbitMQ later β†’ Initial synchronous (add when proven needed)
59
+
60
+ Migration Path:
61
+ - Team > 10 β†’ Consider microservices
62
+ - Domains conflict β†’ Extract bounded contexts
63
+ - Read performance issues β†’ Add CQRS
64
+ ```
65
+
66
+ ---
67
+
68
+ ## Example 3: Enterprise (100K+ Users)
69
+
70
+ ```yaml
71
+ Requirements:
72
+ - 100K+ users
73
+ - 10+ developers
74
+ - Multiple business domains
75
+ - Different scaling needs
76
+ - 24/7 availability
77
+
78
+ Architecture Decisions:
79
+ App Structure: Microservices (independent scale)
80
+ API Gateway: Kong/AWS API GW
81
+ Domain Model: Full DDD
82
+ Consistency: Event-driven (eventual OK)
83
+ Message Bus: Kafka
84
+ Authentication: OAuth + SAML (enterprise SSO)
85
+ Database: Polyglot (right tool per job)
86
+ CQRS: Selected services
87
+
88
+ Operational Requirements:
89
+ - Service mesh (Istio/Linkerd)
90
+ - Distributed tracing (Jaeger/Tempo)
91
+ - Centralized logging (ELK/Loki)
92
+ - Circuit breakers (Resilience4j)
93
+ - Kubernetes/Helm
94
+ ```
@@ -0,0 +1,68 @@
1
+ # Pattern Selection Guidelines
2
+
3
+ > Decision trees for choosing architectural patterns.
4
+
5
+ ## Main Decision Tree
6
+
7
+ ```
8
+ START: What's your MAIN concern?
9
+
10
+ β”Œβ”€ Data Access Complexity?
11
+ β”‚ β”œβ”€ HIGH (complex queries, testing needed)
12
+ β”‚ β”‚ β†’ Repository Pattern + Unit of Work
13
+ β”‚ β”‚ VALIDATE: Will data source change frequently?
14
+ β”‚ β”‚ β”œβ”€ YES β†’ Repository worth the indirection
15
+ β”‚ β”‚ └─ NO β†’ Consider simpler ORM direct access
16
+ β”‚ └─ LOW (simple CRUD, single database)
17
+ β”‚ β†’ ORM directly (Prisma, Drizzle)
18
+ β”‚ Simpler = Better, Faster
19
+ β”‚
20
+ β”œβ”€ Business Rules Complexity?
21
+ β”‚ β”œβ”€ HIGH (domain logic, rules vary by context)
22
+ β”‚ β”‚ β†’ Domain-Driven Design
23
+ β”‚ β”‚ VALIDATE: Do you have domain experts on team?
24
+ β”‚ β”‚ β”œβ”€ YES β†’ Full DDD (Aggregates, Value Objects)
25
+ β”‚ β”‚ └─ NO β†’ Partial DDD (rich entities, clear boundaries)
26
+ β”‚ └─ LOW (mostly CRUD, simple validation)
27
+ β”‚ β†’ Transaction Script pattern
28
+ β”‚ Simpler = Better, Faster
29
+ β”‚
30
+ β”œβ”€ Independent Scaling Needed?
31
+ β”‚ β”œβ”€ YES (different components scale differently)
32
+ β”‚ β”‚ β†’ Microservices WORTH the complexity
33
+ β”‚ β”‚ REQUIREMENTS (ALL must be true):
34
+ β”‚ β”‚ - Clear domain boundaries
35
+ β”‚ β”‚ - Team > 10 developers
36
+ β”‚ β”‚ - Different scaling needs per service
37
+ β”‚ β”‚ IF NOT ALL MET β†’ Modular Monolith instead
38
+ β”‚ └─ NO (everything scales together)
39
+ β”‚ β†’ Modular Monolith
40
+ β”‚ Can extract services later when proven needed
41
+ β”‚
42
+ └─ Real-time Requirements?
43
+ β”œβ”€ HIGH (immediate updates, multi-user sync)
44
+ β”‚ β†’ Event-Driven Architecture
45
+ β”‚ β†’ Message Queue (RabbitMQ, Redis, Kafka)
46
+ β”‚ VALIDATE: Can you handle eventual consistency?
47
+ β”‚ β”œβ”€ YES β†’ Event-driven valid
48
+ β”‚ └─ NO β†’ Synchronous with polling
49
+ └─ LOW (eventual consistency acceptable)
50
+ β†’ Synchronous (REST/GraphQL)
51
+ Simpler = Better, Faster
52
+ ```
53
+
54
+ ## The 3 Questions (Before ANY Pattern)
55
+
56
+ 1. **Problem Solved**: What SPECIFIC problem does this pattern solve?
57
+ 2. **Simpler Alternative**: Is there a simpler solution?
58
+ 3. **Deferred Complexity**: Can we add this LATER when needed?
59
+
60
+ ## Red Flags (Anti-patterns)
61
+
62
+ | Pattern | Anti-pattern | Simpler Alternative |
63
+ |---------|-------------|-------------------|
64
+ | Microservices | Premature splitting | Start monolith, extract later |
65
+ | Clean/Hexagonal | Over-abstraction | Concrete first, interfaces later |
66
+ | Event Sourcing | Over-engineering | Append-only audit log |
67
+ | CQRS | Unnecessary complexity | Single model |
68
+ | Repository | YAGNI for simple CRUD | ORM direct access |
@@ -0,0 +1,50 @@
1
+ # Architecture Patterns Reference
2
+
3
+ > Quick reference for common patterns with usage guidance.
4
+
5
+ ## Data Access Patterns
6
+
7
+ | Pattern | When to Use | When NOT to Use | Complexity |
8
+ |---------|-------------|-----------------|------------|
9
+ | **Active Record** | Simple CRUD, rapid prototyping | Complex queries, multiple sources | Low |
10
+ | **Repository** | Testing needed, multiple sources | Simple CRUD, single database | Medium |
11
+ | **Unit of Work** | Complex transactions | Simple operations | High |
12
+ | **Data Mapper** | Complex domain, performance | Simple CRUD, rapid dev | High |
13
+
14
+ ## Domain Logic Patterns
15
+
16
+ | Pattern | When to Use | When NOT to Use | Complexity |
17
+ |---------|-------------|-----------------|------------|
18
+ | **Transaction Script** | Simple CRUD, procedural | Complex business rules | Low |
19
+ | **Table Module** | Record-based logic | Rich behavior needed | Low |
20
+ | **Domain Model** | Complex business logic | Simple CRUD | Medium |
21
+ | **DDD (Full)** | Complex domain, domain experts | Simple domain, no experts | High |
22
+
23
+ ## Distributed System Patterns
24
+
25
+ | Pattern | When to Use | When NOT to Use | Complexity |
26
+ |---------|-------------|-----------------|------------|
27
+ | **Modular Monolith** | Small teams, unclear boundaries | Clear contexts, different scales | Medium |
28
+ | **Microservices** | Different scales, large teams | Small teams, simple domain | Very High |
29
+ | **Event-Driven** | Real-time, loose coupling | Simple workflows, strong consistency | High |
30
+ | **CQRS** | Read/write performance diverges | Simple CRUD, same model | High |
31
+ | **Saga** | Distributed transactions | Single database, simple ACID | High |
32
+
33
+ ## API Patterns
34
+
35
+ | Pattern | When to Use | When NOT to Use | Complexity |
36
+ |---------|-------------|-----------------|------------|
37
+ | **REST** | Standard CRUD, resources | Real-time, complex queries | Low |
38
+ | **GraphQL** | Flexible queries, multiple clients | Simple CRUD, caching needs | Medium |
39
+ | **gRPC** | Internal services, performance | Public APIs, browser clients | Medium |
40
+ | **WebSocket** | Real-time updates | Simple request/response | Medium |
41
+
42
+ ---
43
+
44
+ ## Simplicity Principle
45
+
46
+ **"Start simple, add complexity only when proven necessary."**
47
+
48
+ - You can always add patterns later
49
+ - Removing complexity is MUCH harder than adding it
50
+ - When in doubt, choose simpler option
@@ -0,0 +1,77 @@
1
+ # Trade-off Analysis & ADR
2
+
3
+ > Document every architectural decision with trade-offs.
4
+
5
+ ## Decision Framework
6
+
7
+ For EACH architectural component, document:
8
+
9
+ ```markdown
10
+ ## Architecture Decision Record
11
+
12
+ ### Context
13
+ - **Problem**: [What problem are we solving?]
14
+ - **Constraints**: [Team size, scale, timeline, budget]
15
+
16
+ ### Options Considered
17
+
18
+ | Option | Pros | Cons | Complexity | When Valid |
19
+ |--------|------|------|------------|-----------|
20
+ | Option A | Benefit 1 | Cost 1 | Low | [Conditions] |
21
+ | Option B | Benefit 2 | Cost 2 | High | [Conditions] |
22
+
23
+ ### Decision
24
+ **Chosen**: [Option B]
25
+
26
+ ### Rationale
27
+ 1. [Reason 1 - tied to constraints]
28
+ 2. [Reason 2 - tied to requirements]
29
+
30
+ ### Trade-offs Accepted
31
+ - [What we're giving up]
32
+ - [Why this is acceptable]
33
+
34
+ ### Consequences
35
+ - **Positive**: [Benefits we gain]
36
+ - **Negative**: [Costs/risks we accept]
37
+ - **Mitigation**: [How we'll address negatives]
38
+
39
+ ### Revisit Trigger
40
+ - [When to reconsider this decision]
41
+ ```
42
+
43
+ ## ADR Template
44
+
45
+ ```markdown
46
+ # ADR-[XXX]: [Decision Title]
47
+
48
+ ## Status
49
+ Proposed | Accepted | Deprecated | Superseded by [ADR-YYY]
50
+
51
+ ## Context
52
+ [What problem? What constraints?]
53
+
54
+ ## Decision
55
+ [What we chose - be specific]
56
+
57
+ ## Rationale
58
+ [Why - tie to requirements and constraints]
59
+
60
+ ## Trade-offs
61
+ [What we're giving up - be honest]
62
+
63
+ ## Consequences
64
+ - **Positive**: [Benefits]
65
+ - **Negative**: [Costs]
66
+ - **Mitigation**: [How to address]
67
+ ```
68
+
69
+ ## ADR Storage
70
+
71
+ ```
72
+ docs/
73
+ └── architecture/
74
+ β”œβ”€β”€ adr-001-use-nextjs.md
75
+ β”œβ”€β”€ adr-002-postgresql-over-mongodb.md
76
+ └── adr-003-adopt-repository-pattern.md
77
+ ```
@@ -0,0 +1,163 @@
1
+ ---
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.
4
+ allowed-tools: Read, Glob, Grep
5
+ ---
6
+
7
+ # Brainstorming & Communication Protocol
8
+
9
+ > **MANDATORY:** Use for complex/vague requests, new features, updates.
10
+
11
+ ---
12
+
13
+ ## πŸ›‘ SOCRATIC GATE (ENFORCEMENT)
14
+
15
+ ### When to Trigger
16
+
17
+ | Pattern | Action |
18
+ |---------|--------|
19
+ | "Build/Create/Make [thing]" without details | πŸ›‘ ASK 3 questions |
20
+ | Complex feature or architecture | πŸ›‘ Clarify before implementing |
21
+ | Update/change request | πŸ›‘ Confirm scope |
22
+ | Vague requirements | πŸ›‘ Ask purpose, users, constraints |
23
+
24
+ ### 🚫 MANDATORY: 3 Questions Before Implementation
25
+
26
+ 1. **STOP** - Do NOT start coding
27
+ 2. **ASK** - Minimum 3 questions:
28
+ - 🎯 Purpose: What problem are you solving?
29
+ - πŸ‘₯ Users: Who will use this?
30
+ - πŸ“¦ Scope: Must-have vs nice-to-have?
31
+ 3. **WAIT** - Get response before proceeding
32
+
33
+ ---
34
+
35
+ ## 🧠 Dynamic Question Generation
36
+
37
+ **β›” NEVER use static templates.** Read `dynamic-questioning.md` for principles.
38
+
39
+ ### Core Principles
40
+
41
+ | Principle | Meaning |
42
+ |-----------|---------|
43
+ | **Questions Reveal Consequences** | Each question connects to an architectural decision |
44
+ | **Context Before Content** | Understand greenfield/feature/refactor/debug context first |
45
+ | **Minimum Viable Questions** | Each question must eliminate implementation paths |
46
+ | **Generate Data, Not Assumptions** | Don't guessβ€”ask with trade-offs |
47
+
48
+ ### Question Generation Process
49
+
50
+ ```
51
+ 1. Parse request β†’ Extract domain, features, scale indicators
52
+ 2. Identify decision points β†’ Blocking vs. deferable
53
+ 3. Generate questions β†’ Priority: P0 (blocking) > P1 (high-leverage) > P2 (nice-to-have)
54
+ 4. Format with trade-offs β†’ What, Why, Options, Default
55
+ ```
56
+
57
+ ### Question Format (MANDATORY)
58
+
59
+ ```markdown
60
+ ### [PRIORITY] **[DECISION POINT]**
61
+
62
+ **Question:** [Clear question]
63
+
64
+ **Why This Matters:**
65
+ - [Architectural consequence]
66
+ - [Affects: cost/complexity/timeline/scale]
67
+
68
+ **Options:**
69
+ | Option | Pros | Cons | Best For |
70
+ |--------|------|------|----------|
71
+ | A | [+] | [-] | [Use case] |
72
+
73
+ **If Not Specified:** [Default + rationale]
74
+ ```
75
+
76
+ **For detailed domain-specific question banks and algorithms**, see: `dynamic-questioning.md`
77
+
78
+ ---
79
+
80
+ ## Progress Reporting (PRINCIPLE-BASED)
81
+
82
+ **PRINCIPLE:** Transparency builds trust. Status must be visible and actionable.
83
+
84
+ ### Status Board Format
85
+
86
+ | Agent | Status | Current Task | Progress |
87
+ |-------|--------|--------------|----------|
88
+ | [Agent Name] | βœ…πŸ”„β³βŒβš οΈ | [Task description] | [% or count] |
89
+
90
+ ### Status Icons
91
+
92
+ | Icon | Meaning | Usage |
93
+ |------|---------|-------|
94
+ | βœ… | Completed | Task finished successfully |
95
+ | πŸ”„ | Running | Currently executing |
96
+ | ⏳ | Waiting | Blocked, waiting for dependency |
97
+ | ❌ | Error | Failed, needs attention |
98
+ | ⚠️ | Warning | Potential issue, not blocking |
99
+
100
+ ---
101
+
102
+ ## Error Handling (PRINCIPLE-BASED)
103
+
104
+ **PRINCIPLE:** Errors are opportunities for clear communication.
105
+
106
+ ### Error Response Pattern
107
+
108
+ ```
109
+ 1. Acknowledge the error
110
+ 2. Explain what happened (user-friendly)
111
+ 3. Offer specific solutions with trade-offs
112
+ 4. Ask user to choose or provide alternative
113
+ ```
114
+
115
+ ### Error Categories
116
+
117
+ | Category | Response Strategy |
118
+ |----------|-------------------|
119
+ | **Port Conflict** | Offer alternative port or close existing |
120
+ | **Dependency Missing** | Auto-install or ask permission |
121
+ | **Build Failure** | Show specific error + suggested fix |
122
+ | **Unclear Error** | Ask for specifics: screenshot, console output |
123
+
124
+ ---
125
+
126
+ ## Completion Message (PRINCIPLE-BASED)
127
+
128
+ **PRINCIPLE:** Celebrate success, guide next steps.
129
+
130
+ ### Completion Structure
131
+
132
+ ```
133
+ 1. Success confirmation (celebrate briefly)
134
+ 2. Summary of what was done (concrete)
135
+ 3. How to verify/test (actionable)
136
+ 4. Next steps suggestion (proactive)
137
+ ```
138
+
139
+ ---
140
+
141
+ ## Communication Principles
142
+
143
+ | Principle | Implementation |
144
+ |-----------|----------------|
145
+ | **Concise** | No unnecessary details, get to point |
146
+ | **Visual** | Use emojis (βœ…πŸ”„β³βŒ) for quick scanning |
147
+ | **Specific** | "~2 minutes" not "wait a bit" |
148
+ | **Alternatives** | Offer multiple paths when stuck |
149
+ | **Proactive** | Suggest next step after completion |
150
+
151
+ ---
152
+
153
+ ## Anti-Patterns (AVOID)
154
+
155
+ | Anti-Pattern | Why |
156
+ |--------------|-----|
157
+ | Jumping to solutions before understanding | Wastes time on wrong problem |
158
+ | Assuming requirements without asking | Creates wrong output |
159
+ | Over-engineering first version | Delays value delivery |
160
+ | Ignoring constraints | Creates unusable solutions |
161
+ | "I think" phrases | Uncertainty β†’ Ask instead |
162
+
163
+ ---