@aicgen/aicgen 1.0.0-beta.1

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 (287) hide show
  1. package/.claude/agents/architecture-reviewer.md +88 -0
  2. package/.claude/agents/guideline-checker.md +73 -0
  3. package/.claude/agents/security-auditor.md +108 -0
  4. package/.claude/guidelines/api-design.md +645 -0
  5. package/.claude/guidelines/architecture.md +2503 -0
  6. package/.claude/guidelines/best-practices.md +618 -0
  7. package/.claude/guidelines/code-style.md +304 -0
  8. package/.claude/guidelines/design-patterns.md +573 -0
  9. package/.claude/guidelines/devops.md +226 -0
  10. package/.claude/guidelines/error-handling.md +413 -0
  11. package/.claude/guidelines/language.md +782 -0
  12. package/.claude/guidelines/performance.md +706 -0
  13. package/.claude/guidelines/security.md +583 -0
  14. package/.claude/guidelines/testing.md +568 -0
  15. package/.claude/settings.json +98 -0
  16. package/.claude/settings.local.json +8 -0
  17. package/.env.example +23 -0
  18. package/.eslintrc.json +28 -0
  19. package/.github/workflows/release.yml +180 -0
  20. package/.github/workflows/test.yml +81 -0
  21. package/.gitmodules +3 -0
  22. package/.vs/ProjectSettings.json +3 -0
  23. package/.vs/VSWorkspaceState.json +16 -0
  24. package/.vs/aicgen.slnx/FileContentIndex/5f0ce2a3-fd68-4863-9e23-e428cf1794e3.vsidx +0 -0
  25. package/.vs/aicgen.slnx/v18/.wsuo +0 -0
  26. package/.vs/aicgen.slnx/v18/DocumentLayout.json +54 -0
  27. package/.vs/slnx.sqlite +0 -0
  28. package/AGENTS.md +121 -0
  29. package/CLAUDE.md +36 -0
  30. package/CONTRIBUTING.md +821 -0
  31. package/LICENSE +21 -0
  32. package/README.md +199 -0
  33. package/assets/icon.svg +34 -0
  34. package/assets/logo.svg +41 -0
  35. package/bun.lock +848 -0
  36. package/data/LICENSE +21 -0
  37. package/data/README.md +203 -0
  38. package/data/api/basics.md +292 -0
  39. package/data/api/index.md +8 -0
  40. package/data/api/pagination.md +142 -0
  41. package/data/api/rest.md +137 -0
  42. package/data/api/versioning.md +60 -0
  43. package/data/architecture/clean-architecture/index.md +7 -0
  44. package/data/architecture/clean-architecture/layers.md +111 -0
  45. package/data/architecture/ddd/index.md +8 -0
  46. package/data/architecture/ddd/strategic.md +89 -0
  47. package/data/architecture/ddd/tactical.md +132 -0
  48. package/data/architecture/event-driven/index.md +7 -0
  49. package/data/architecture/event-driven/messaging.md +242 -0
  50. package/data/architecture/event-driven/patterns.md +129 -0
  51. package/data/architecture/feature-toggles/index.md +7 -0
  52. package/data/architecture/feature-toggles/patterns.md +73 -0
  53. package/data/architecture/gui/index.md +7 -0
  54. package/data/architecture/gui/patterns.md +132 -0
  55. package/data/architecture/hexagonal/ports-adapters.md +132 -0
  56. package/data/architecture/index.md +12 -0
  57. package/data/architecture/layered/index.md +7 -0
  58. package/data/architecture/layered/layers.md +100 -0
  59. package/data/architecture/microservices/api-gateway.md +56 -0
  60. package/data/architecture/microservices/boundaries.md +80 -0
  61. package/data/architecture/microservices/communication.md +97 -0
  62. package/data/architecture/microservices/data.md +92 -0
  63. package/data/architecture/microservices/index.md +11 -0
  64. package/data/architecture/microservices/resilience.md +111 -0
  65. package/data/architecture/modular-monolith/boundaries.md +133 -0
  66. package/data/architecture/modular-monolith/structure.md +131 -0
  67. package/data/architecture/serverless/best-practices.md +322 -0
  68. package/data/architecture/serverless/index.md +7 -0
  69. package/data/architecture/serverless/patterns.md +80 -0
  70. package/data/architecture/solid/index.md +7 -0
  71. package/data/architecture/solid/principles.md +187 -0
  72. package/data/database/basics.md +365 -0
  73. package/data/database/design-patterns.md +68 -0
  74. package/data/database/index.md +8 -0
  75. package/data/database/indexing.md +136 -0
  76. package/data/database/nosql.md +223 -0
  77. package/data/database/schema.md +137 -0
  78. package/data/devops/ci-cd.md +66 -0
  79. package/data/devops/index.md +8 -0
  80. package/data/devops/observability.md +73 -0
  81. package/data/devops/practices.md +77 -0
  82. package/data/error-handling/basics.md +222 -0
  83. package/data/error-handling/index.md +7 -0
  84. package/data/error-handling/strategy.md +185 -0
  85. package/data/guideline-mappings.yml +1077 -0
  86. package/data/index.md +3 -0
  87. package/data/language/csharp/basics.md +210 -0
  88. package/data/language/csharp/testing.md +252 -0
  89. package/data/language/go/basics.md +158 -0
  90. package/data/language/go/testing.md +192 -0
  91. package/data/language/index.md +14 -0
  92. package/data/language/java/basics.md +184 -0
  93. package/data/language/java/testing.md +273 -0
  94. package/data/language/javascript/basics.md +217 -0
  95. package/data/language/javascript/testing.md +269 -0
  96. package/data/language/python/async.md +100 -0
  97. package/data/language/python/basics.md +100 -0
  98. package/data/language/python/index.md +10 -0
  99. package/data/language/python/testing.md +125 -0
  100. package/data/language/python/types.md +99 -0
  101. package/data/language/ruby/basics.md +227 -0
  102. package/data/language/ruby/testing.md +267 -0
  103. package/data/language/rust/basics.md +175 -0
  104. package/data/language/rust/testing.md +219 -0
  105. package/data/language/typescript/async.md +103 -0
  106. package/data/language/typescript/basics.md +87 -0
  107. package/data/language/typescript/config.md +95 -0
  108. package/data/language/typescript/error-handling.md +98 -0
  109. package/data/language/typescript/generics.md +85 -0
  110. package/data/language/typescript/index.md +14 -0
  111. package/data/language/typescript/interfaces-types.md +83 -0
  112. package/data/language/typescript/performance.md +103 -0
  113. package/data/language/typescript/testing.md +98 -0
  114. package/data/patterns/base-patterns.md +105 -0
  115. package/data/patterns/concurrency.md +87 -0
  116. package/data/patterns/data-access.md +83 -0
  117. package/data/patterns/distribution.md +86 -0
  118. package/data/patterns/domain-logic.md +81 -0
  119. package/data/patterns/gof.md +109 -0
  120. package/data/patterns/index.md +12 -0
  121. package/data/performance/async.md +148 -0
  122. package/data/performance/basics.md +324 -0
  123. package/data/performance/caching-strategies.md +68 -0
  124. package/data/performance/caching.md +152 -0
  125. package/data/performance/index.md +8 -0
  126. package/data/practices/code-review.md +52 -0
  127. package/data/practices/documentation.md +260 -0
  128. package/data/practices/index.md +11 -0
  129. package/data/practices/planning.md +142 -0
  130. package/data/practices/refactoring.md +91 -0
  131. package/data/practices/version-control.md +55 -0
  132. package/data/security/auth-jwt.md +159 -0
  133. package/data/security/headers.md +143 -0
  134. package/data/security/index.md +10 -0
  135. package/data/security/injection.md +119 -0
  136. package/data/security/secrets.md +148 -0
  137. package/data/style/index.md +8 -0
  138. package/data/style/naming.md +136 -0
  139. package/data/style/organization.md +162 -0
  140. package/data/templates/agents/architecture-reviewer.md +88 -0
  141. package/data/templates/agents/guideline-checker.md +73 -0
  142. package/data/templates/agents/security-auditor.md +108 -0
  143. package/data/templates/antigravity/rules/architecture.md.hbs +5 -0
  144. package/data/templates/antigravity/rules/code-style.md.hbs +5 -0
  145. package/data/templates/antigravity/rules/language.md.hbs +5 -0
  146. package/data/templates/antigravity/rules/performance.md.hbs +5 -0
  147. package/data/templates/antigravity/rules/security.md.hbs +5 -0
  148. package/data/templates/antigravity/rules/testing.md.hbs +5 -0
  149. package/data/templates/antigravity/workflows/add-documentation.md.hbs +23 -0
  150. package/data/templates/antigravity/workflows/generate-integration-tests.md.hbs +17 -0
  151. package/data/templates/antigravity/workflows/generate-unit-tests.md.hbs +20 -0
  152. package/data/templates/antigravity/workflows/performance-audit.md.hbs +24 -0
  153. package/data/templates/antigravity/workflows/refactor-extract-module.md.hbs +17 -0
  154. package/data/templates/antigravity/workflows/security-audit.md.hbs +20 -0
  155. package/data/templates/hooks/formatting.json +26 -0
  156. package/data/templates/hooks/security.json +35 -0
  157. package/data/templates/hooks/testing.json +17 -0
  158. package/data/testing/basics.md +151 -0
  159. package/data/testing/index.md +9 -0
  160. package/data/testing/integration.md +159 -0
  161. package/data/testing/unit-fundamentals.md +128 -0
  162. package/data/testing/unit-mocking.md +116 -0
  163. package/data/version.json +49 -0
  164. package/dist/commands/init.d.ts +8 -0
  165. package/dist/commands/init.d.ts.map +1 -0
  166. package/dist/commands/init.js +46 -0
  167. package/dist/commands/init.js.map +1 -0
  168. package/dist/config/profiles.d.ts +4 -0
  169. package/dist/config/profiles.d.ts.map +1 -0
  170. package/dist/config/profiles.js +30 -0
  171. package/dist/config/profiles.js.map +1 -0
  172. package/dist/config/settings.d.ts +7 -0
  173. package/dist/config/settings.d.ts.map +1 -0
  174. package/dist/config/settings.js +7 -0
  175. package/dist/config/settings.js.map +1 -0
  176. package/dist/index.d.ts +3 -0
  177. package/dist/index.d.ts.map +1 -0
  178. package/dist/index.js +58489 -0
  179. package/dist/index.js.map +1 -0
  180. package/dist/models/guideline.d.ts +15 -0
  181. package/dist/models/guideline.d.ts.map +1 -0
  182. package/dist/models/guideline.js +2 -0
  183. package/dist/models/guideline.js.map +1 -0
  184. package/dist/models/preference.d.ts +9 -0
  185. package/dist/models/preference.d.ts.map +1 -0
  186. package/dist/models/preference.js +2 -0
  187. package/dist/models/preference.js.map +1 -0
  188. package/dist/models/profile.d.ts +9 -0
  189. package/dist/models/profile.d.ts.map +1 -0
  190. package/dist/models/profile.js +2 -0
  191. package/dist/models/profile.js.map +1 -0
  192. package/dist/models/project.d.ts +13 -0
  193. package/dist/models/project.d.ts.map +1 -0
  194. package/dist/models/project.js +2 -0
  195. package/dist/models/project.js.map +1 -0
  196. package/dist/services/ai/anthropic.d.ts +7 -0
  197. package/dist/services/ai/anthropic.d.ts.map +1 -0
  198. package/dist/services/ai/anthropic.js +39 -0
  199. package/dist/services/ai/anthropic.js.map +1 -0
  200. package/dist/services/generator.d.ts +2 -0
  201. package/dist/services/generator.d.ts.map +1 -0
  202. package/dist/services/generator.js +4 -0
  203. package/dist/services/generator.js.map +1 -0
  204. package/dist/services/learner.d.ts +2 -0
  205. package/dist/services/learner.d.ts.map +1 -0
  206. package/dist/services/learner.js +4 -0
  207. package/dist/services/learner.js.map +1 -0
  208. package/dist/services/scanner.d.ts +3 -0
  209. package/dist/services/scanner.d.ts.map +1 -0
  210. package/dist/services/scanner.js +54 -0
  211. package/dist/services/scanner.js.map +1 -0
  212. package/dist/utils/errors.d.ts +15 -0
  213. package/dist/utils/errors.d.ts.map +1 -0
  214. package/dist/utils/errors.js +27 -0
  215. package/dist/utils/errors.js.map +1 -0
  216. package/dist/utils/file.d.ts +7 -0
  217. package/dist/utils/file.d.ts.map +1 -0
  218. package/dist/utils/file.js +32 -0
  219. package/dist/utils/file.js.map +1 -0
  220. package/dist/utils/logger.d.ts +6 -0
  221. package/dist/utils/logger.d.ts.map +1 -0
  222. package/dist/utils/logger.js +17 -0
  223. package/dist/utils/logger.js.map +1 -0
  224. package/dist/utils/path.d.ts +6 -0
  225. package/dist/utils/path.d.ts.map +1 -0
  226. package/dist/utils/path.js +14 -0
  227. package/dist/utils/path.js.map +1 -0
  228. package/docs/planning/memory-lane.md +83 -0
  229. package/package.json +64 -0
  230. package/packaging/linux/aicgen.spec +23 -0
  231. package/packaging/linux/control +9 -0
  232. package/packaging/macos/scripts/postinstall +12 -0
  233. package/packaging/windows/setup.nsi +92 -0
  234. package/planning/BRANDING-SUMMARY.md +194 -0
  235. package/planning/BRANDING.md +174 -0
  236. package/planning/BUILD.md +186 -0
  237. package/planning/CHUNK-IMPLEMENTATION-PLAN.md +87 -0
  238. package/planning/CHUNK-TAXONOMY.md +375 -0
  239. package/planning/CHUNKS-COMPLETE.md +382 -0
  240. package/planning/DESIGN.md +313 -0
  241. package/planning/DYNAMIC-GUIDELINES-DESIGN.md +265 -0
  242. package/planning/ENTERPRISE-UX-COMPLETE.md +281 -0
  243. package/planning/IMPLEMENTATION-PLAN.md +20 -0
  244. package/planning/PHASE1-COMPLETE.md +211 -0
  245. package/planning/PHASE2-COMPLETE.md +350 -0
  246. package/planning/PHASE3-COMPLETE.md +399 -0
  247. package/planning/PHASE4-COMPLETE.md +361 -0
  248. package/planning/PHASE4.5-CHUNKS.md +462 -0
  249. package/planning/STRUCTURE.md +170 -0
  250. package/scripts/add-categories.ts +87 -0
  251. package/scripts/build-binary.ts +46 -0
  252. package/scripts/embed-data.ts +105 -0
  253. package/scripts/generate-version.ts +150 -0
  254. package/scripts/test-decompress.ts +27 -0
  255. package/scripts/test-extract.ts +31 -0
  256. package/src/__tests__/services/assistant-file-writer.test.ts +400 -0
  257. package/src/__tests__/services/guideline-loader.test.ts +281 -0
  258. package/src/__tests__/services/tarball-extraction.test.ts +125 -0
  259. package/src/commands/add-guideline.ts +296 -0
  260. package/src/commands/clear.ts +61 -0
  261. package/src/commands/guideline-selector.ts +123 -0
  262. package/src/commands/init.ts +645 -0
  263. package/src/commands/quick-add.ts +586 -0
  264. package/src/commands/remove-guideline.ts +152 -0
  265. package/src/commands/stats.ts +49 -0
  266. package/src/commands/update.ts +240 -0
  267. package/src/config.ts +82 -0
  268. package/src/embedded-data.ts +1492 -0
  269. package/src/index.ts +67 -0
  270. package/src/models/profile.ts +24 -0
  271. package/src/models/project.ts +43 -0
  272. package/src/services/assistant-file-writer.ts +612 -0
  273. package/src/services/config-generator.ts +150 -0
  274. package/src/services/config-manager.ts +70 -0
  275. package/src/services/data-source.ts +248 -0
  276. package/src/services/first-run-init.ts +148 -0
  277. package/src/services/guideline-loader.ts +311 -0
  278. package/src/services/hook-generator.ts +178 -0
  279. package/src/services/subagent-generator.ts +310 -0
  280. package/src/utils/banner.ts +66 -0
  281. package/src/utils/errors.ts +27 -0
  282. package/src/utils/file.ts +67 -0
  283. package/src/utils/formatting.ts +172 -0
  284. package/src/utils/logger.ts +89 -0
  285. package/src/utils/path.ts +17 -0
  286. package/src/utils/wizard-state.ts +132 -0
  287. package/tsconfig.json +25 -0
@@ -0,0 +1,87 @@
1
+ # Chunk Implementation Plan
2
+
3
+ ## Progress So Far ✅
4
+
5
+ - [x] Taxonomy defined (~200 chunks)
6
+ - [x] TypeScript chunks (10/10) - COMPLETE
7
+ - [x] JavaScript chunks (10/10) - COMPLETE
8
+ - [x] Python chunks (10/10) - COMPLETE
9
+
10
+ ## Remaining Work 📋
11
+
12
+ ### Language Chunks (50 chunks remaining)
13
+ - [ ] Go (10 chunks)
14
+ - [ ] Rust (10 chunks)
15
+ - [ ] Java (10 chunks)
16
+ - [ ] C# (10 chunks)
17
+ - [ ] Ruby (10 chunks)
18
+
19
+ ### Architecture Chunks (30 chunks)
20
+ - [ ] Microservices (5 chunks)
21
+ - [ ] Modular Monolith (5 chunks)
22
+ - [ ] Layered Architecture (5 chunks)
23
+ - [ ] Hexagonal Architecture (5 chunks)
24
+ - [ ] Event-Driven Architecture (5 chunks)
25
+ - [ ] Refactoring (5 chunks)
26
+
27
+ ### Cross-Cutting Chunks (70 chunks)
28
+ - [ ] Testing (20 chunks)
29
+ - [ ] Security (15 chunks)
30
+ - [ ] API Design (12 chunks)
31
+ - [ ] Database (12 chunks)
32
+ - [ ] CI/CD (10 chunks)
33
+ - [ ] Error Handling (8 chunks)
34
+ - [ ] Performance (10 chunks)
35
+ - [ ] Code Style (10 chunks)
36
+ - [ ] Logging (6 chunks)
37
+ - [ ] Deployment (8 chunks)
38
+ - [ ] State Management (6 chunks)
39
+
40
+ ## Two Approaches
41
+
42
+ ### Option 1: Complete Now (Time-Intensive)
43
+ Continue creating all ~150 remaining chunks manually with full content.
44
+
45
+ **Pros:**
46
+ - Everything ready immediately
47
+ - Complete and comprehensive
48
+
49
+ **Cons:**
50
+ - Very time-consuming (several hours)
51
+ - Large context usage
52
+
53
+ ### Option 2: Progressive Enhancement (Recommended)
54
+ Create the structure and key samples, provide templates for easy expansion.
55
+
56
+ **What I'll do:**
57
+ 1. ✅ Create complete chunks for TypeScript, JavaScript, Python (30 chunks)
58
+ 2. Create stub structures for remaining languages (50 chunk definitions)
59
+ 3. Create sample chunks for each architecture type (12 sample chunks)
60
+ 4. Create sample chunks for each cross-cutting concern (20 sample chunks)
61
+ 5. Create comprehensive mapping system
62
+ 6. Provide chunk generation templates
63
+
64
+ **Benefits:**
65
+ - System is functional with 30 complete + 32 sample chunks
66
+ - Easy to add remaining chunks incrementally
67
+ - Clear template to follow
68
+ - Less overwhelming
69
+
70
+ ## Recommendation
71
+
72
+ Use **Option 2** - this gives you:
73
+ - Working system NOW (62 quality chunks covering main scenarios)
74
+ - Clear structure for all 200 chunks
75
+ - Easy path to complete remaining chunks
76
+ - Can add chunks as needed based on actual usage patterns
77
+
78
+ ## Next Steps
79
+
80
+ 1. Create language chunk stubs (Go, Rust, Java, C#, Ruby)
81
+ 2. Create architecture samples (6 representative chunks)
82
+ 3. Create cross-cutting samples (20 representative chunks)
83
+ 4. Build comprehensive mapping system
84
+ 5. Create generator script for easy chunk addition
85
+
86
+ Total working chunks: ~60-70 high-quality chunks
87
+ Total defined structure: 200 chunks
@@ -0,0 +1,375 @@
1
+ # Comprehensive Chunk Taxonomy
2
+
3
+ ## Chunk Naming Convention
4
+
5
+ `{category}-{subcategory}-{topic}-{level?}`
6
+
7
+ Examples:
8
+ - `lang-ts-basics-types`
9
+ - `arch-microservices-communication`
10
+ - `security-auth-jwt`
11
+ - `testing-unit-mocking`
12
+
13
+ ## Total Estimated Chunks: ~150-200
14
+
15
+ ---
16
+
17
+ ## 1. LANGUAGE CHUNKS (~80 chunks)
18
+
19
+ ### TypeScript (10 chunks)
20
+ - `lang-ts-basics-types` - Type system fundamentals
21
+ - `lang-ts-basics-interfaces` - Interfaces and type aliases
22
+ - `lang-ts-advanced-generics` - Generic programming
23
+ - `lang-ts-advanced-utility` - Utility types and mapped types
24
+ - `lang-ts-async-promises` - Async/await and promises
25
+ - `lang-ts-error-handling` - Error handling patterns
26
+ - `lang-ts-tooling-tsconfig` - TypeScript configuration
27
+ - `lang-ts-testing-jest` - Testing with Jest/Vitest
28
+ - `lang-ts-performance` - Performance optimization
29
+ - `lang-ts-patterns-decorators` - Decorators and metadata
30
+
31
+ ### JavaScript (10 chunks)
32
+ - `lang-js-basics-syntax` - Modern JS syntax (ES6+)
33
+ - `lang-js-basics-functions` - Functions and closures
34
+ - `lang-js-async-callbacks` - Callbacks and event loop
35
+ - `lang-js-async-promises` - Promises and async/await
36
+ - `lang-js-objects-prototypes` - Objects and prototypes
37
+ - `lang-js-modules-esm` - ESM and CommonJS
38
+ - `lang-js-error-handling` - Error handling
39
+ - `lang-js-tooling-babel` - Babel and transpilation
40
+ - `lang-js-testing-jest` - Testing patterns
41
+ - `lang-js-performance` - Performance tips
42
+
43
+ ### Python (10 chunks)
44
+ - `lang-py-basics-syntax` - Python fundamentals
45
+ - `lang-py-basics-types` - Type hints and typing
46
+ - `lang-py-oop-classes` - OOP and classes
47
+ - `lang-py-async-asyncio` - Async/await with asyncio
48
+ - `lang-py-error-handling` - Exception handling
49
+ - `lang-py-testing-pytest` - Testing with pytest
50
+ - `lang-py-tooling-venv` - Virtual environments
51
+ - `lang-py-tooling-pip` - Package management
52
+ - `lang-py-performance` - Performance optimization
53
+ - `lang-py-patterns-context` - Context managers and decorators
54
+
55
+ ### Go (10 chunks)
56
+ - `lang-go-basics-syntax` - Go fundamentals
57
+ - `lang-go-basics-types` - Types and interfaces
58
+ - `lang-go-concurrency-goroutines` - Goroutines
59
+ - `lang-go-concurrency-channels` - Channels
60
+ - `lang-go-error-handling` - Error handling patterns
61
+ - `lang-go-testing-stdlib` - Testing with stdlib
62
+ - `lang-go-tooling-modules` - Go modules
63
+ - `lang-go-performance` - Performance patterns
64
+ - `lang-go-patterns-composition` - Composition over inheritance
65
+ - `lang-go-http-handlers` - HTTP handlers
66
+
67
+ ### Rust (10 chunks)
68
+ - `lang-rust-basics-ownership` - Ownership and borrowing
69
+ - `lang-rust-basics-types` - Type system
70
+ - `lang-rust-advanced-lifetimes` - Lifetimes
71
+ - `lang-rust-advanced-traits` - Traits and generics
72
+ - `lang-rust-async-tokio` - Async with Tokio
73
+ - `lang-rust-error-handling` - Result and Option
74
+ - `lang-rust-testing-cargo` - Testing with Cargo
75
+ - `lang-rust-tooling-cargo` - Cargo and crates
76
+ - `lang-rust-performance` - Zero-cost abstractions
77
+ - `lang-rust-patterns-enums` - Enum patterns
78
+
79
+ ### Java (10 chunks)
80
+ - `lang-java-basics-oop` - OOP fundamentals
81
+ - `lang-java-basics-types` - Type system
82
+ - `lang-java-advanced-generics` - Generics
83
+ - `lang-java-async-threads` - Threading and concurrency
84
+ - `lang-java-async-completable` - CompletableFuture
85
+ - `lang-java-error-handling` - Exception handling
86
+ - `lang-java-testing-junit` - JUnit testing
87
+ - `lang-java-tooling-maven` - Maven/Gradle
88
+ - `lang-java-performance-jvm` - JVM optimization
89
+ - `lang-java-patterns-streams` - Streams API
90
+
91
+ ### C# (10 chunks)
92
+ - `lang-csharp-basics-syntax` - C# fundamentals
93
+ - `lang-csharp-basics-types` - Type system
94
+ - `lang-csharp-advanced-linq` - LINQ
95
+ - `lang-csharp-async-tasks` - async/await and Tasks
96
+ - `lang-csharp-error-handling` - Exception handling
97
+ - `lang-csharp-testing-nunit` - Testing with NUnit/xUnit
98
+ - `lang-csharp-tooling-nuget` - NuGet packages
99
+ - `lang-csharp-performance` - Performance optimization
100
+ - `lang-csharp-patterns-delegates` - Delegates and events
101
+ - `lang-csharp-dotnet-core` - .NET Core patterns
102
+
103
+ ### Ruby (10 chunks)
104
+ - `lang-ruby-basics-syntax` - Ruby fundamentals
105
+ - `lang-ruby-basics-oop` - OOP in Ruby
106
+ - `lang-ruby-metaprogramming` - Metaprogramming
107
+ - `lang-ruby-blocks-procs` - Blocks, Procs, Lambdas
108
+ - `lang-ruby-error-handling` - Exception handling
109
+ - `lang-ruby-testing-rspec` - RSpec testing
110
+ - `lang-ruby-tooling-bundler` - Bundler and gems
111
+ - `lang-ruby-performance` - Performance tips
112
+ - `lang-ruby-patterns-modules` - Modules and mixins
113
+ - `lang-ruby-rails-conventions` - Rails conventions
114
+
115
+ ---
116
+
117
+ ## 2. ARCHITECTURE CHUNKS (~30 chunks)
118
+
119
+ ### Microservices (5 chunks)
120
+ - `arch-microservices-boundaries` - Service boundaries
121
+ - `arch-microservices-communication` - Inter-service communication
122
+ - `arch-microservices-data` - Data management and consistency
123
+ - `arch-microservices-deployment` - Deployment strategies
124
+ - `arch-microservices-patterns` - Patterns (saga, CQRS, etc.)
125
+
126
+ ### Modular Monolith (5 chunks)
127
+ - `arch-modular-structure` - Module organization
128
+ - `arch-modular-boundaries` - Module boundaries
129
+ - `arch-modular-communication` - Inter-module communication
130
+ - `arch-modular-data` - Data ownership
131
+ - `arch-modular-migration` - Migration to microservices
132
+
133
+ ### Layered Architecture (5 chunks)
134
+ - `arch-layered-structure` - Layer organization
135
+ - `arch-layered-presentation` - Presentation layer
136
+ - `arch-layered-business` - Business logic layer
137
+ - `arch-layered-data` - Data access layer
138
+ - `arch-layered-dependencies` - Dependency management
139
+
140
+ ### Hexagonal Architecture (5 chunks)
141
+ - `arch-hexagonal-ports` - Ports and adapters
142
+ - `arch-hexagonal-domain` - Domain model
143
+ - `arch-hexagonal-adapters` - Adapter patterns
144
+ - `arch-hexagonal-testing` - Testing strategies
145
+ - `arch-hexagonal-structure` - Project structure
146
+
147
+ ### Event-Driven Architecture (5 chunks)
148
+ - `arch-event-driven-events` - Event design
149
+ - `arch-event-driven-messaging` - Message brokers
150
+ - `arch-event-driven-consistency` - Eventual consistency
151
+ - `arch-event-driven-patterns` - Event sourcing, CQRS
152
+ - `arch-event-driven-testing` - Testing event systems
153
+
154
+ ### Refactoring (5 chunks)
155
+ - `arch-refactor-strategy` - Refactoring strategy
156
+ - `arch-refactor-techniques` - Refactoring techniques
157
+ - `arch-refactor-testing` - Test-driven refactoring
158
+ - `arch-refactor-patterns` - Common patterns
159
+ - `arch-refactor-legacy` - Legacy code handling
160
+
161
+ ---
162
+
163
+ ## 3. TESTING CHUNKS (~20 chunks)
164
+
165
+ ### Unit Testing (5 chunks)
166
+ - `testing-unit-fundamentals` - Unit testing basics
167
+ - `testing-unit-mocking` - Mocking and stubbing
168
+ - `testing-unit-coverage` - Code coverage
169
+ - `testing-unit-tdd` - Test-driven development
170
+ - `testing-unit-patterns` - Testing patterns
171
+
172
+ ### Integration Testing (3 chunks)
173
+ - `testing-integration-strategy` - Integration test strategy
174
+ - `testing-integration-database` - Database testing
175
+ - `testing-integration-api` - API integration tests
176
+
177
+ ### E2E Testing (3 chunks)
178
+ - `testing-e2e-strategy` - E2E test strategy
179
+ - `testing-e2e-tools` - E2E testing tools
180
+ - `testing-e2e-ci` - E2E in CI/CD
181
+
182
+ ### Testing Strategy (9 chunks)
183
+ - `testing-strategy-pyramid` - Test pyramid
184
+ - `testing-strategy-coverage` - Coverage strategy
185
+ - `testing-strategy-performance` - Performance testing
186
+ - `testing-strategy-security` - Security testing
187
+ - `testing-strategy-contracts` - Contract testing
188
+ - `testing-strategy-visual` - Visual regression testing
189
+ - `testing-strategy-mutation` - Mutation testing
190
+ - `testing-strategy-property` - Property-based testing
191
+ - `testing-strategy-snapshot` - Snapshot testing
192
+
193
+ ---
194
+
195
+ ## 4. SECURITY CHUNKS (~15 chunks)
196
+
197
+ - `security-owasp-injection` - Injection prevention
198
+ - `security-owasp-auth` - Broken authentication
199
+ - `security-owasp-exposure` - Sensitive data exposure
200
+ - `security-owasp-xxe` - XML external entities
201
+ - `security-owasp-access` - Broken access control
202
+ - `security-owasp-config` - Security misconfiguration
203
+ - `security-owasp-xss` - Cross-site scripting
204
+ - `security-owasp-deserialization` - Insecure deserialization
205
+ - `security-owasp-components` - Vulnerable components
206
+ - `security-owasp-logging` - Insufficient logging
207
+ - `security-auth-jwt` - JWT authentication
208
+ - `security-auth-oauth` - OAuth 2.0
209
+ - `security-crypto-basics` - Cryptography basics
210
+ - `security-secrets-management` - Secrets management
211
+ - `security-headers` - Security headers
212
+
213
+ ---
214
+
215
+ ## 5. API DESIGN CHUNKS (~12 chunks)
216
+
217
+ ### REST API (6 chunks)
218
+ - `api-rest-design` - REST design principles
219
+ - `api-rest-resources` - Resource modeling
220
+ - `api-rest-methods` - HTTP methods
221
+ - `api-rest-status` - Status codes
222
+ - `api-rest-versioning` - API versioning
223
+ - `api-rest-documentation` - API documentation
224
+
225
+ ### GraphQL (3 chunks)
226
+ - `api-graphql-schema` - Schema design
227
+ - `api-graphql-resolvers` - Resolver patterns
228
+ - `api-graphql-performance` - N+1 problem and caching
229
+
230
+ ### General API (3 chunks)
231
+ - `api-pagination` - Pagination strategies
232
+ - `api-filtering` - Filtering and sorting
233
+ - `api-rate-limiting` - Rate limiting
234
+
235
+ ---
236
+
237
+ ## 6. DATABASE CHUNKS (~12 chunks)
238
+
239
+ - `db-schema-design` - Schema design principles
240
+ - `db-normalization` - Normalization (3NF)
241
+ - `db-indexing-strategy` - Index strategy
242
+ - `db-indexing-performance` - Index optimization
243
+ - `db-migrations` - Database migrations
244
+ - `db-transactions` - Transaction management
245
+ - `db-performance-queries` - Query optimization
246
+ - `db-performance-caching` - Database caching
247
+ - `db-scaling-read` - Read replicas
248
+ - `db-scaling-sharding` - Sharding strategies
249
+ - `db-orm-patterns` - ORM patterns
250
+ - `db-nosql-design` - NoSQL data modeling
251
+
252
+ ---
253
+
254
+ ## 7. CI/CD CHUNKS (~10 chunks)
255
+
256
+ - `cicd-pipeline-structure` - Pipeline structure
257
+ - `cicd-build-strategy` - Build strategies
258
+ - `cicd-testing-automation` - Test automation
259
+ - `cicd-deployment-strategies` - Deployment strategies
260
+ - `cicd-deployment-canary` - Canary deployments
261
+ - `cicd-deployment-blue-green` - Blue-green deployments
262
+ - `cicd-monitoring` - Monitoring and observability
263
+ - `cicd-rollback` - Rollback strategies
264
+ - `cicd-secrets` - Secrets management
265
+ - `cicd-infrastructure` - Infrastructure as code
266
+
267
+ ---
268
+
269
+ ## 8. ERROR HANDLING CHUNKS (~8 chunks)
270
+
271
+ - `error-handling-strategy` - Error handling strategy
272
+ - `error-handling-types` - Error types and hierarchy
273
+ - `error-handling-logging` - Error logging
274
+ - `error-handling-monitoring` - Error monitoring
275
+ - `error-handling-retry` - Retry patterns
276
+ - `error-handling-circuit` - Circuit breakers
277
+ - `error-handling-user` - User-facing errors
278
+ - `error-handling-recovery` - Recovery strategies
279
+
280
+ ---
281
+
282
+ ## 9. PERFORMANCE CHUNKS (~10 chunks)
283
+
284
+ - `performance-profiling` - Performance profiling
285
+ - `performance-caching-strategy` - Caching strategy
286
+ - `performance-caching-cdn` - CDN usage
287
+ - `performance-async-patterns` - Async patterns
288
+ - `performance-database` - Database optimization
289
+ - `performance-network` - Network optimization
290
+ - `performance-memory` - Memory management
291
+ - `performance-bundling` - Code bundling
292
+ - `performance-lazy-loading` - Lazy loading
293
+ - `performance-monitoring` - Performance monitoring
294
+
295
+ ---
296
+
297
+ ## 10. CODE STYLE CHUNKS (~10 chunks)
298
+
299
+ - `style-naming-conventions` - Naming conventions
300
+ - `style-file-organization` - File organization
301
+ - `style-function-design` - Function design
302
+ - `style-class-design` - Class design
303
+ - `style-comments` - Comments and documentation
304
+ - `style-formatting` - Code formatting
305
+ - `style-complexity` - Complexity management
306
+ - `style-dry` - DRY principle
307
+ - `style-solid` - SOLID principles
308
+ - `style-readability` - Code readability
309
+
310
+ ---
311
+
312
+ ## 11. LOGGING CHUNKS (~6 chunks)
313
+
314
+ - `logging-structured` - Structured logging
315
+ - `logging-levels` - Log levels
316
+ - `logging-context` - Contextual logging
317
+ - `logging-sensitive` - Sensitive data handling
318
+ - `logging-aggregation` - Log aggregation
319
+ - `logging-monitoring` - Log monitoring
320
+
321
+ ---
322
+
323
+ ## 12. DEPLOYMENT CHUNKS (~8 chunks)
324
+
325
+ - `deployment-docker-basics` - Docker fundamentals
326
+ - `deployment-docker-optimization` - Docker optimization
327
+ - `deployment-kubernetes` - Kubernetes deployment
328
+ - `deployment-cloud-aws` - AWS deployment
329
+ - `deployment-cloud-gcp` - GCP deployment
330
+ - `deployment-cloud-azure` - Azure deployment
331
+ - `deployment-env-management` - Environment management
332
+ - `deployment-health-checks` - Health checks
333
+
334
+ ---
335
+
336
+ ## 13. STATE MANAGEMENT CHUNKS (~6 chunks)
337
+
338
+ - `state-client-patterns` - Client state patterns
339
+ - `state-server-sessions` - Server-side sessions
340
+ - `state-caching` - State caching
341
+ - `state-consistency` - State consistency
342
+ - `state-redux-patterns` - Redux patterns
343
+ - `state-react-hooks` - React state hooks
344
+
345
+ ---
346
+
347
+ ## Chunk Mapping Strategy
348
+
349
+ Each profile gets chunks based on:
350
+
351
+ 1. **Core chunks (always included):**
352
+ - Basic code style
353
+ - Basic error handling
354
+ - Basic security
355
+
356
+ 2. **Language chunks:**
357
+ - Language basics (always)
358
+ - Language advanced (expert/full only)
359
+ - Language-specific testing
360
+ - Language async patterns
361
+
362
+ 3. **Architecture chunks:**
363
+ - All chunks for selected architecture
364
+
365
+ 4. **Level-based chunks:**
366
+ - **Basic:** Core + language basics
367
+ - **Standard:** Basic + testing + cicd + database basics
368
+ - **Expert:** Standard + advanced patterns + performance
369
+ - **Full:** Everything applicable
370
+
371
+ 5. **Assistant-specific adjustments:**
372
+ - Some chunks may have assistant-specific formatting
373
+ - Example: Claude Code might get more detailed explanations
374
+
375
+ Total chunks to create: **~150-200 focused chunks**