@codemieai/code 0.0.28 → 0.0.30

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 (368) hide show
  1. package/README.md +8 -10
  2. package/bin/agent-executor.js +1 -1
  3. package/dist/agents/codemie-code/config.d.ts.map +1 -1
  4. package/dist/agents/codemie-code/config.js +0 -1
  5. package/dist/agents/codemie-code/config.js.map +1 -1
  6. package/dist/agents/core/AgentCLI.d.ts.map +1 -1
  7. package/dist/agents/core/AgentCLI.js +4 -8
  8. package/dist/agents/core/AgentCLI.js.map +1 -1
  9. package/dist/agents/core/BaseAgentAdapter.d.ts +17 -9
  10. package/dist/agents/core/BaseAgentAdapter.d.ts.map +1 -1
  11. package/dist/agents/core/BaseAgentAdapter.js +75 -67
  12. package/dist/agents/core/BaseAgentAdapter.js.map +1 -1
  13. package/dist/agents/core/extension/BaseExtensionInstaller.d.ts +258 -0
  14. package/dist/agents/core/extension/BaseExtensionInstaller.d.ts.map +1 -0
  15. package/dist/agents/core/extension/BaseExtensionInstaller.js +522 -0
  16. package/dist/agents/core/extension/BaseExtensionInstaller.js.map +1 -0
  17. package/dist/agents/core/lifecycle-helpers.d.ts.map +1 -1
  18. package/dist/agents/core/lifecycle-helpers.js +16 -2
  19. package/dist/agents/core/lifecycle-helpers.js.map +1 -1
  20. package/dist/agents/core/metrics/index.d.ts +0 -2
  21. package/dist/agents/core/metrics/index.d.ts.map +1 -1
  22. package/dist/agents/core/metrics/index.js +0 -3
  23. package/dist/agents/core/metrics/index.js.map +1 -1
  24. package/dist/agents/core/metrics/types.d.ts +4 -232
  25. package/dist/agents/core/metrics/types.d.ts.map +1 -1
  26. package/dist/agents/core/metrics/types.js +2 -2
  27. package/dist/agents/core/session/BaseProcessor.d.ts +72 -0
  28. package/dist/agents/core/session/BaseProcessor.d.ts.map +1 -0
  29. package/dist/agents/core/session/BaseProcessor.js +9 -0
  30. package/dist/agents/core/session/BaseProcessor.js.map +1 -0
  31. package/dist/agents/core/session/BaseSessionAdapter.d.ts +99 -0
  32. package/dist/agents/core/session/BaseSessionAdapter.d.ts.map +1 -0
  33. package/dist/agents/core/session/BaseSessionAdapter.js +9 -0
  34. package/dist/agents/core/session/BaseSessionAdapter.js.map +1 -0
  35. package/dist/agents/core/session/SessionStore.d.ts +23 -0
  36. package/dist/agents/core/session/SessionStore.d.ts.map +1 -0
  37. package/dist/agents/core/session/SessionStore.js +75 -0
  38. package/dist/agents/core/session/SessionStore.js.map +1 -0
  39. package/dist/agents/core/session/session-config.d.ts +27 -0
  40. package/dist/agents/core/session/session-config.d.ts.map +1 -0
  41. package/dist/agents/core/session/session-config.js +61 -0
  42. package/dist/agents/core/session/session-config.js.map +1 -0
  43. package/dist/agents/core/session/types.d.ts +87 -0
  44. package/dist/agents/core/session/types.d.ts.map +1 -0
  45. package/dist/agents/core/session/types.js +8 -0
  46. package/dist/agents/core/session/types.js.map +1 -0
  47. package/dist/agents/core/session/utils/jsonl-reader.d.ts +15 -0
  48. package/dist/agents/core/session/utils/jsonl-reader.d.ts.map +1 -0
  49. package/dist/agents/core/session/utils/jsonl-reader.js +33 -0
  50. package/dist/agents/core/session/utils/jsonl-reader.js.map +1 -0
  51. package/dist/agents/core/session/utils/jsonl-writer.d.ts +26 -0
  52. package/dist/agents/core/session/utils/jsonl-writer.d.ts.map +1 -0
  53. package/dist/agents/core/session/utils/jsonl-writer.js +56 -0
  54. package/dist/agents/core/session/utils/jsonl-writer.js.map +1 -0
  55. package/dist/agents/core/types.d.ts +78 -11
  56. package/dist/agents/core/types.d.ts.map +1 -1
  57. package/dist/agents/plugins/claude/claude-message-types.d.ts +74 -0
  58. package/dist/agents/plugins/claude/claude-message-types.d.ts.map +1 -0
  59. package/dist/agents/plugins/claude/claude-message-types.js +8 -0
  60. package/dist/agents/plugins/claude/claude-message-types.js.map +1 -0
  61. package/dist/agents/plugins/claude/claude.plugin-installer.d.ts +53 -0
  62. package/dist/agents/plugins/claude/claude.plugin-installer.d.ts.map +1 -0
  63. package/dist/agents/plugins/claude/claude.plugin-installer.js +63 -0
  64. package/dist/agents/plugins/claude/claude.plugin-installer.js.map +1 -0
  65. package/dist/agents/plugins/claude/claude.plugin.d.ts +26 -0
  66. package/dist/agents/plugins/claude/claude.plugin.d.ts.map +1 -0
  67. package/dist/agents/plugins/{claude.plugin.js → claude/claude.plugin.js} +20 -11
  68. package/dist/agents/plugins/claude/claude.plugin.js.map +1 -0
  69. package/dist/agents/plugins/claude/claude.session.d.ts +60 -0
  70. package/dist/agents/plugins/claude/claude.session.d.ts.map +1 -0
  71. package/dist/agents/plugins/claude/claude.session.js +339 -0
  72. package/dist/agents/plugins/claude/claude.session.js.map +1 -0
  73. package/dist/agents/plugins/claude/plugin/.claude-plugin/local-install.json +15 -0
  74. package/dist/agents/plugins/claude/plugin/.claude-plugin/plugin.json +9 -0
  75. package/dist/agents/plugins/claude/plugin/README.md +299 -0
  76. package/dist/agents/plugins/claude/plugin/claude-templates/README.md +539 -0
  77. package/dist/agents/plugins/claude/plugin/claude-templates/templates/CLAUDE.md.template +511 -0
  78. package/dist/agents/plugins/claude/plugin/claude-templates/templates/INDEX.md +205 -0
  79. package/dist/agents/plugins/claude/plugin/claude-templates/templates/TEMPLATE_SIZES.md +74 -0
  80. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/api/api-patterns.md.template +207 -0
  81. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/architecture/layered-architecture.md.template +143 -0
  82. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/architecture/project-structure.md.template +127 -0
  83. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/data/database-patterns.md.template +168 -0
  84. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/development/development-practices.md.template +210 -0
  85. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/integration/external-integrations.md.template +160 -0
  86. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/security/security-practices.md.template +170 -0
  87. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/standards/code-quality.md.template +150 -0
  88. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/standards/git-workflow.md.template +177 -0
  89. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/testing/testing-patterns.md.template +143 -0
  90. package/dist/agents/plugins/claude/plugin/commands/README.md +0 -0
  91. package/dist/agents/plugins/claude/plugin/commands/codemie-catchup.md +10 -0
  92. package/dist/agents/plugins/claude/plugin/commands/codemie-init.md +731 -0
  93. package/dist/agents/plugins/claude/plugin/commands/memory-add.md +44 -0
  94. package/dist/agents/plugins/claude/plugin/commands/memory-init.md +18 -0
  95. package/dist/agents/plugins/claude/plugin/commands/memory-refresh.md +54 -0
  96. package/dist/agents/plugins/claude/plugin/hooks/hooks.json +71 -0
  97. package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.d.ts +51 -0
  98. package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.d.ts.map +1 -0
  99. package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.js +840 -0
  100. package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.js.map +1 -0
  101. package/dist/agents/plugins/claude/session/processors/claude.metrics-processor.d.ts +37 -0
  102. package/dist/agents/plugins/claude/session/processors/claude.metrics-processor.d.ts.map +1 -0
  103. package/dist/agents/plugins/claude/session/processors/claude.metrics-processor.js +275 -0
  104. package/dist/agents/plugins/claude/session/processors/claude.metrics-processor.js.map +1 -0
  105. package/dist/agents/plugins/gemini/extension/README.md +88 -0
  106. package/dist/agents/plugins/gemini/extension/gemini-extension.json +11 -0
  107. package/dist/agents/plugins/gemini/extension/hooks/hooks.json +65 -0
  108. package/dist/agents/plugins/gemini/gemini.extension-installer.d.ts +49 -0
  109. package/dist/agents/plugins/gemini/gemini.extension-installer.d.ts.map +1 -0
  110. package/dist/agents/plugins/gemini/gemini.extension-installer.js +63 -0
  111. package/dist/agents/plugins/gemini/gemini.extension-installer.js.map +1 -0
  112. package/dist/agents/plugins/gemini/gemini.hook-transformer.d.ts +43 -0
  113. package/dist/agents/plugins/gemini/gemini.hook-transformer.d.ts.map +1 -0
  114. package/dist/agents/plugins/gemini/gemini.hook-transformer.js +57 -0
  115. package/dist/agents/plugins/gemini/gemini.hook-transformer.js.map +1 -0
  116. package/dist/agents/plugins/gemini/gemini.plugin.d.ts +32 -0
  117. package/dist/agents/plugins/gemini/gemini.plugin.d.ts.map +1 -0
  118. package/dist/agents/plugins/gemini/gemini.plugin.js +136 -0
  119. package/dist/agents/plugins/gemini/gemini.plugin.js.map +1 -0
  120. package/dist/agents/plugins/gemini/gemini.session-adapter.d.ts +68 -0
  121. package/dist/agents/plugins/gemini/gemini.session-adapter.d.ts.map +1 -0
  122. package/dist/agents/plugins/gemini/gemini.session-adapter.js +268 -0
  123. package/dist/agents/plugins/gemini/gemini.session-adapter.js.map +1 -0
  124. package/dist/agents/plugins/gemini/session/processors/gemini.conversations-processor.d.ts +36 -0
  125. package/dist/agents/plugins/gemini/session/processors/gemini.conversations-processor.d.ts.map +1 -0
  126. package/dist/agents/plugins/gemini/session/processors/gemini.conversations-processor.js +186 -0
  127. package/dist/agents/plugins/gemini/session/processors/gemini.conversations-processor.js.map +1 -0
  128. package/dist/agents/plugins/gemini/session/processors/gemini.metrics-processor.d.ts +32 -0
  129. package/dist/agents/plugins/gemini/session/processors/gemini.metrics-processor.d.ts.map +1 -0
  130. package/dist/agents/plugins/gemini/session/processors/gemini.metrics-processor.js +193 -0
  131. package/dist/agents/plugins/gemini/session/processors/gemini.metrics-processor.js.map +1 -0
  132. package/dist/agents/plugins/gemini/session/utils/token-aggregator.d.ts +26 -0
  133. package/dist/agents/plugins/gemini/session/utils/token-aggregator.d.ts.map +1 -0
  134. package/dist/agents/plugins/gemini/session/utils/token-aggregator.js +38 -0
  135. package/dist/agents/plugins/gemini/session/utils/token-aggregator.js.map +1 -0
  136. package/dist/agents/plugins/gemini/session/utils/tool-aggregator.d.ts +33 -0
  137. package/dist/agents/plugins/gemini/session/utils/tool-aggregator.d.ts.map +1 -0
  138. package/dist/agents/plugins/gemini/session/utils/tool-aggregator.js +58 -0
  139. package/dist/agents/plugins/gemini/session/utils/tool-aggregator.js.map +1 -0
  140. package/dist/agents/plugins/gemini/session/utils/turn-detector.d.ts +70 -0
  141. package/dist/agents/plugins/gemini/session/utils/turn-detector.d.ts.map +1 -0
  142. package/dist/agents/plugins/gemini/session/utils/turn-detector.js +86 -0
  143. package/dist/agents/plugins/gemini/session/utils/turn-detector.js.map +1 -0
  144. package/dist/agents/registry.d.ts +7 -2
  145. package/dist/agents/registry.d.ts.map +1 -1
  146. package/dist/agents/registry.js +17 -8
  147. package/dist/agents/registry.js.map +1 -1
  148. package/dist/cli/commands/analytics/data-loader.d.ts +1 -1
  149. package/dist/cli/commands/analytics/data-loader.js +1 -1
  150. package/dist/cli/commands/analytics/index.js +1 -1
  151. package/dist/cli/commands/analytics/index.js.map +1 -1
  152. package/dist/cli/commands/doctor/checks/PythonCheck.d.ts +13 -0
  153. package/dist/cli/commands/doctor/checks/PythonCheck.d.ts.map +1 -1
  154. package/dist/cli/commands/doctor/checks/PythonCheck.js +90 -31
  155. package/dist/cli/commands/doctor/checks/PythonCheck.js.map +1 -1
  156. package/dist/cli/commands/hook.d.ts +7 -0
  157. package/dist/cli/commands/hook.d.ts.map +1 -0
  158. package/dist/cli/commands/hook.js +792 -0
  159. package/dist/cli/commands/hook.js.map +1 -0
  160. package/dist/cli/commands/setup.d.ts.map +1 -1
  161. package/dist/cli/commands/setup.js +3 -4
  162. package/dist/cli/commands/setup.js.map +1 -1
  163. package/dist/cli/commands/update.d.ts.map +1 -1
  164. package/dist/cli/commands/update.js +2 -1
  165. package/dist/cli/commands/update.js.map +1 -1
  166. package/dist/cli/first-time.d.ts +4 -0
  167. package/dist/cli/first-time.d.ts.map +1 -1
  168. package/dist/cli/first-time.js +26 -13
  169. package/dist/cli/first-time.js.map +1 -1
  170. package/dist/cli/index.js +2 -0
  171. package/dist/cli/index.js.map +1 -1
  172. package/dist/frameworks/core/types.d.ts +1 -1
  173. package/dist/frameworks/plugins/speckit.plugin.d.ts.map +1 -1
  174. package/dist/frameworks/plugins/speckit.plugin.js +1 -2
  175. package/dist/frameworks/plugins/speckit.plugin.js.map +1 -1
  176. package/dist/migrations/002-consolidate-sessions.migration.d.ts +50 -0
  177. package/dist/migrations/002-consolidate-sessions.migration.d.ts.map +1 -0
  178. package/dist/migrations/002-consolidate-sessions.migration.js +220 -0
  179. package/dist/migrations/002-consolidate-sessions.migration.js.map +1 -0
  180. package/dist/migrations/index.d.ts +1 -0
  181. package/dist/migrations/index.d.ts.map +1 -1
  182. package/dist/migrations/index.js +3 -2
  183. package/dist/migrations/index.js.map +1 -1
  184. package/dist/providers/core/types.d.ts +1 -1
  185. package/dist/providers/plugins/ollama/ollama.template.d.ts.map +1 -1
  186. package/dist/providers/plugins/ollama/ollama.template.js +2 -10
  187. package/dist/providers/plugins/ollama/ollama.template.js.map +1 -1
  188. package/dist/providers/plugins/sso/index.d.ts +1 -1
  189. package/dist/providers/plugins/sso/index.d.ts.map +1 -1
  190. package/dist/providers/plugins/sso/index.js +1 -1
  191. package/dist/providers/plugins/sso/index.js.map +1 -1
  192. package/dist/providers/plugins/sso/proxy/plugins/index.d.ts +1 -1
  193. package/dist/providers/plugins/sso/proxy/plugins/index.d.ts.map +1 -1
  194. package/dist/providers/plugins/sso/proxy/plugins/index.js +3 -3
  195. package/dist/providers/plugins/sso/proxy/plugins/index.js.map +1 -1
  196. package/dist/providers/plugins/sso/proxy/plugins/sso.session-sync.plugin.d.ts +40 -0
  197. package/dist/providers/plugins/sso/proxy/plugins/sso.session-sync.plugin.d.ts.map +1 -0
  198. package/dist/providers/plugins/sso/proxy/plugins/sso.session-sync.plugin.js +194 -0
  199. package/dist/providers/plugins/sso/proxy/plugins/sso.session-sync.plugin.js.map +1 -0
  200. package/dist/providers/plugins/sso/proxy/proxy-http-client.d.ts +1 -0
  201. package/dist/providers/plugins/sso/proxy/proxy-http-client.d.ts.map +1 -1
  202. package/dist/providers/plugins/sso/proxy/proxy-http-client.js +40 -6
  203. package/dist/providers/plugins/sso/proxy/proxy-http-client.js.map +1 -1
  204. package/dist/providers/plugins/sso/session/BaseProcessor.d.ts +72 -0
  205. package/dist/providers/plugins/sso/session/BaseProcessor.d.ts.map +1 -0
  206. package/dist/providers/plugins/sso/session/BaseProcessor.js +9 -0
  207. package/dist/providers/plugins/sso/session/BaseProcessor.js.map +1 -0
  208. package/dist/providers/plugins/sso/session/BaseSessionAdapter.d.ts +99 -0
  209. package/dist/providers/plugins/sso/session/BaseSessionAdapter.d.ts.map +1 -0
  210. package/dist/providers/plugins/sso/session/BaseSessionAdapter.js +9 -0
  211. package/dist/providers/plugins/sso/session/BaseSessionAdapter.js.map +1 -0
  212. package/dist/providers/plugins/sso/session/SessionSyncer.d.ts +36 -0
  213. package/dist/providers/plugins/sso/session/SessionSyncer.d.ts.map +1 -0
  214. package/dist/providers/plugins/sso/session/SessionSyncer.js +140 -0
  215. package/dist/providers/plugins/sso/session/SessionSyncer.js.map +1 -0
  216. package/dist/providers/plugins/sso/session/processors/conversations/conversation-api-client.d.ts +26 -0
  217. package/dist/providers/plugins/sso/session/processors/conversations/conversation-api-client.d.ts.map +1 -0
  218. package/dist/providers/plugins/sso/session/processors/conversations/conversation-api-client.js +146 -0
  219. package/dist/providers/plugins/sso/session/processors/conversations/conversation-api-client.js.map +1 -0
  220. package/dist/providers/plugins/sso/session/processors/conversations/conversation-sync-processor.d.ts +23 -0
  221. package/dist/providers/plugins/sso/session/processors/conversations/conversation-sync-processor.d.ts.map +1 -0
  222. package/dist/providers/plugins/sso/session/processors/conversations/conversation-sync-processor.js +171 -0
  223. package/dist/providers/plugins/sso/session/processors/conversations/conversation-sync-processor.js.map +1 -0
  224. package/dist/providers/plugins/sso/session/processors/conversations/conversation-types.d.ts +69 -0
  225. package/dist/providers/plugins/sso/session/processors/conversations/conversation-types.d.ts.map +1 -0
  226. package/dist/providers/plugins/sso/session/processors/conversations/conversation-types.js +7 -0
  227. package/dist/providers/plugins/sso/session/processors/conversations/conversation-types.js.map +1 -0
  228. package/dist/providers/plugins/sso/session/processors/metrics/MetricsWriter.d.ts +30 -0
  229. package/dist/providers/plugins/sso/session/processors/metrics/MetricsWriter.d.ts.map +1 -0
  230. package/dist/providers/plugins/sso/session/processors/metrics/MetricsWriter.js +79 -0
  231. package/dist/providers/plugins/sso/session/processors/metrics/MetricsWriter.js.map +1 -0
  232. package/dist/providers/plugins/sso/{metrics/sync/sso.metrics-aggregator.d.ts → session/processors/metrics/metrics-aggregator.d.ts} +6 -5
  233. package/dist/providers/plugins/sso/session/processors/metrics/metrics-aggregator.d.ts.map +1 -0
  234. package/dist/providers/plugins/sso/{metrics/sync/sso.metrics-aggregator.js → session/processors/metrics/metrics-aggregator.js} +20 -12
  235. package/dist/providers/plugins/sso/session/processors/metrics/metrics-aggregator.js.map +1 -0
  236. package/dist/providers/plugins/sso/{metrics/sync/sso.metrics-sender.d.ts → session/processors/metrics/metrics-api-client.d.ts} +18 -11
  237. package/dist/providers/plugins/sso/session/processors/metrics/metrics-api-client.d.ts.map +1 -0
  238. package/dist/providers/plugins/sso/{metrics/sync/sso.metrics-sender.js → session/processors/metrics/metrics-api-client.js} +143 -15
  239. package/dist/providers/plugins/sso/session/processors/metrics/metrics-api-client.js.map +1 -0
  240. package/dist/providers/plugins/sso/{metrics/sync/sso.metrics-post-processor.d.ts → session/processors/metrics/metrics-post-processor.d.ts} +3 -3
  241. package/dist/providers/plugins/sso/session/processors/metrics/metrics-post-processor.d.ts.map +1 -0
  242. package/dist/providers/plugins/sso/{metrics/sync/sso.metrics-post-processor.js → session/processors/metrics/metrics-post-processor.js} +3 -3
  243. package/dist/providers/plugins/sso/session/processors/metrics/metrics-post-processor.js.map +1 -0
  244. package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.d.ts +24 -0
  245. package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.d.ts.map +1 -0
  246. package/dist/providers/plugins/sso/{metrics/sync/sso.metrics-sync.plugin.js → session/processors/metrics/metrics-sync-processor.js} +94 -165
  247. package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.js.map +1 -0
  248. package/dist/providers/plugins/sso/{metrics/sync/sso.metrics-types.d.ts → session/processors/metrics/metrics-types.d.ts} +2 -1
  249. package/dist/providers/plugins/sso/session/processors/metrics/metrics-types.d.ts.map +1 -0
  250. package/dist/providers/plugins/sso/{metrics/sync/sso.metrics-types.js → session/processors/metrics/metrics-types.js} +1 -1
  251. package/dist/providers/plugins/sso/session/processors/metrics/metrics-types.js.map +1 -0
  252. package/dist/providers/plugins/sso/session/utils/jsonl-reader.d.ts +15 -0
  253. package/dist/providers/plugins/sso/session/utils/jsonl-reader.d.ts.map +1 -0
  254. package/dist/providers/plugins/sso/session/utils/jsonl-reader.js +33 -0
  255. package/dist/providers/plugins/sso/session/utils/jsonl-reader.js.map +1 -0
  256. package/dist/providers/plugins/sso/session/utils/jsonl-writer.d.ts +26 -0
  257. package/dist/providers/plugins/sso/session/utils/jsonl-writer.d.ts.map +1 -0
  258. package/dist/providers/plugins/sso/{metrics/sync/sso.jsonl-writer.js → session/utils/jsonl-writer.js} +11 -27
  259. package/dist/providers/plugins/sso/session/utils/jsonl-writer.js.map +1 -0
  260. package/dist/providers/plugins/sso/sso.template.d.ts.map +1 -1
  261. package/dist/providers/plugins/sso/sso.template.js +71 -44
  262. package/dist/providers/plugins/sso/sso.template.js.map +1 -1
  263. package/dist/utils/file-operations.d.ts +20 -0
  264. package/dist/utils/file-operations.d.ts.map +1 -0
  265. package/dist/utils/file-operations.js +48 -0
  266. package/dist/utils/file-operations.js.map +1 -0
  267. package/dist/utils/logger.d.ts +2 -1
  268. package/dist/utils/logger.d.ts.map +1 -1
  269. package/dist/utils/logger.js +12 -4
  270. package/dist/utils/logger.js.map +1 -1
  271. package/dist/utils/paths.d.ts +20 -5
  272. package/dist/utils/paths.d.ts.map +1 -1
  273. package/dist/utils/paths.js +23 -5
  274. package/dist/utils/paths.js.map +1 -1
  275. package/dist/utils/processes.d.ts +2 -0
  276. package/dist/utils/processes.d.ts.map +1 -1
  277. package/dist/utils/processes.js +6 -1
  278. package/dist/utils/processes.js.map +1 -1
  279. package/package.json +9 -9
  280. package/scripts/copy-plugins.js +57 -0
  281. package/scripts/license-check.js +23 -0
  282. package/bin/codemie-codex.js +0 -18
  283. package/bin/codemie-deepagents.js +0 -18
  284. package/dist/agents/core/BaseMetricsAdapter.d.ts +0 -165
  285. package/dist/agents/core/BaseMetricsAdapter.d.ts.map +0 -1
  286. package/dist/agents/core/BaseMetricsAdapter.js +0 -308
  287. package/dist/agents/core/BaseMetricsAdapter.js.map +0 -1
  288. package/dist/agents/core/metrics/MetricsOrchestrator.d.ts +0 -81
  289. package/dist/agents/core/metrics/MetricsOrchestrator.d.ts.map +0 -1
  290. package/dist/agents/core/metrics/MetricsOrchestrator.js +0 -417
  291. package/dist/agents/core/metrics/MetricsOrchestrator.js.map +0 -1
  292. package/dist/agents/core/metrics/core/DeltaWriter.d.ts +0 -49
  293. package/dist/agents/core/metrics/core/DeltaWriter.d.ts.map +0 -1
  294. package/dist/agents/core/metrics/core/DeltaWriter.js +0 -152
  295. package/dist/agents/core/metrics/core/DeltaWriter.js.map +0 -1
  296. package/dist/agents/core/metrics/core/FileSnapshotter.d.ts +0 -22
  297. package/dist/agents/core/metrics/core/FileSnapshotter.d.ts.map +0 -1
  298. package/dist/agents/core/metrics/core/FileSnapshotter.js +0 -74
  299. package/dist/agents/core/metrics/core/FileSnapshotter.js.map +0 -1
  300. package/dist/agents/core/metrics/core/SessionCorrelator.d.ts +0 -34
  301. package/dist/agents/core/metrics/core/SessionCorrelator.d.ts.map +0 -1
  302. package/dist/agents/core/metrics/core/SessionCorrelator.js +0 -157
  303. package/dist/agents/core/metrics/core/SessionCorrelator.js.map +0 -1
  304. package/dist/agents/core/metrics/core/SyncStateManager.d.ts +0 -69
  305. package/dist/agents/core/metrics/core/SyncStateManager.d.ts.map +0 -1
  306. package/dist/agents/core/metrics/core/SyncStateManager.js +0 -283
  307. package/dist/agents/core/metrics/core/SyncStateManager.js.map +0 -1
  308. package/dist/agents/core/metrics/session/SessionStore.d.ts +0 -43
  309. package/dist/agents/core/metrics/session/SessionStore.d.ts.map +0 -1
  310. package/dist/agents/core/metrics/session/SessionStore.js +0 -146
  311. package/dist/agents/core/metrics/session/SessionStore.js.map +0 -1
  312. package/dist/agents/core/metrics-config.d.ts +0 -38
  313. package/dist/agents/core/metrics-config.d.ts.map +0 -1
  314. package/dist/agents/core/metrics-config.js +0 -96
  315. package/dist/agents/core/metrics-config.js.map +0 -1
  316. package/dist/agents/plugins/claude.metrics.d.ts +0 -102
  317. package/dist/agents/plugins/claude.metrics.d.ts.map +0 -1
  318. package/dist/agents/plugins/claude.metrics.js +0 -656
  319. package/dist/agents/plugins/claude.metrics.js.map +0 -1
  320. package/dist/agents/plugins/claude.plugin.d.ts +0 -19
  321. package/dist/agents/plugins/claude.plugin.d.ts.map +0 -1
  322. package/dist/agents/plugins/claude.plugin.js.map +0 -1
  323. package/dist/agents/plugins/codex.metrics.d.ts +0 -69
  324. package/dist/agents/plugins/codex.metrics.d.ts.map +0 -1
  325. package/dist/agents/plugins/codex.metrics.js +0 -483
  326. package/dist/agents/plugins/codex.metrics.js.map +0 -1
  327. package/dist/agents/plugins/codex.plugin.d.ts +0 -21
  328. package/dist/agents/plugins/codex.plugin.d.ts.map +0 -1
  329. package/dist/agents/plugins/codex.plugin.js +0 -222
  330. package/dist/agents/plugins/codex.plugin.js.map +0 -1
  331. package/dist/agents/plugins/deepagents.plugin.d.ts +0 -21
  332. package/dist/agents/plugins/deepagents.plugin.d.ts.map +0 -1
  333. package/dist/agents/plugins/deepagents.plugin.js +0 -104
  334. package/dist/agents/plugins/deepagents.plugin.js.map +0 -1
  335. package/dist/agents/plugins/gemini.metrics.d.ts +0 -99
  336. package/dist/agents/plugins/gemini.metrics.d.ts.map +0 -1
  337. package/dist/agents/plugins/gemini.metrics.js +0 -475
  338. package/dist/agents/plugins/gemini.metrics.js.map +0 -1
  339. package/dist/agents/plugins/gemini.plugin.d.ts +0 -16
  340. package/dist/agents/plugins/gemini.plugin.d.ts.map +0 -1
  341. package/dist/agents/plugins/gemini.plugin.js +0 -80
  342. package/dist/agents/plugins/gemini.plugin.js.map +0 -1
  343. package/dist/agents/plugins/history-parser.d.ts +0 -52
  344. package/dist/agents/plugins/history-parser.d.ts.map +0 -1
  345. package/dist/agents/plugins/history-parser.js +0 -155
  346. package/dist/agents/plugins/history-parser.js.map +0 -1
  347. package/dist/providers/plugins/sso/metrics/sync/sso.jsonl-writer.d.ts +0 -28
  348. package/dist/providers/plugins/sso/metrics/sync/sso.jsonl-writer.d.ts.map +0 -1
  349. package/dist/providers/plugins/sso/metrics/sync/sso.jsonl-writer.js.map +0 -1
  350. package/dist/providers/plugins/sso/metrics/sync/sso.lifecycle-handler.d.ts +0 -62
  351. package/dist/providers/plugins/sso/metrics/sync/sso.lifecycle-handler.d.ts.map +0 -1
  352. package/dist/providers/plugins/sso/metrics/sync/sso.lifecycle-handler.js +0 -157
  353. package/dist/providers/plugins/sso/metrics/sync/sso.lifecycle-handler.js.map +0 -1
  354. package/dist/providers/plugins/sso/metrics/sync/sso.metrics-aggregator.d.ts.map +0 -1
  355. package/dist/providers/plugins/sso/metrics/sync/sso.metrics-aggregator.js.map +0 -1
  356. package/dist/providers/plugins/sso/metrics/sync/sso.metrics-api-client.d.ts +0 -32
  357. package/dist/providers/plugins/sso/metrics/sync/sso.metrics-api-client.d.ts.map +0 -1
  358. package/dist/providers/plugins/sso/metrics/sync/sso.metrics-api-client.js +0 -159
  359. package/dist/providers/plugins/sso/metrics/sync/sso.metrics-api-client.js.map +0 -1
  360. package/dist/providers/plugins/sso/metrics/sync/sso.metrics-post-processor.d.ts.map +0 -1
  361. package/dist/providers/plugins/sso/metrics/sync/sso.metrics-post-processor.js.map +0 -1
  362. package/dist/providers/plugins/sso/metrics/sync/sso.metrics-sender.d.ts.map +0 -1
  363. package/dist/providers/plugins/sso/metrics/sync/sso.metrics-sender.js.map +0 -1
  364. package/dist/providers/plugins/sso/metrics/sync/sso.metrics-sync.plugin.d.ts +0 -36
  365. package/dist/providers/plugins/sso/metrics/sync/sso.metrics-sync.plugin.d.ts.map +0 -1
  366. package/dist/providers/plugins/sso/metrics/sync/sso.metrics-sync.plugin.js.map +0 -1
  367. package/dist/providers/plugins/sso/metrics/sync/sso.metrics-types.d.ts.map +0 -1
  368. package/dist/providers/plugins/sso/metrics/sync/sso.metrics-types.js.map +0 -1
@@ -0,0 +1,539 @@
1
+ # Claude Code Documentation Templates
2
+
3
+ **Version**: 1.0
4
+ **Purpose**: Generic templates for generating AI-optimized project documentation for Claude Code
5
+
6
+ ---
7
+
8
+ ## Overview
9
+
10
+ This directory contains a complete template system for generating Claude Code documentation for any software project. The templates are based on the successful documentation patterns used in the CodeMie project and adapted to be generic and reusable.
11
+
12
+ ### What This Generates
13
+
14
+ - **CLAUDE.md**: Main AI-optimized execution guide in project root
15
+ - **Guides**: Detailed pattern guides in `.codemie/guides/` directory
16
+ - **Structure**: Properly organized documentation following AI-first principles
17
+
18
+ ### Key Benefits
19
+
20
+ - ✅ **AI-Optimized**: Pattern-first, example-driven, highly structured
21
+ - ✅ **Project-Specific**: Filled with real code examples from your project
22
+ - ✅ **Comprehensive**: Covers architecture, patterns, workflows, and best practices
23
+ - ✅ **Reusable**: Generic templates work for any tech stack
24
+ - ✅ **Actionable**: Claude Code can immediately use the documentation
25
+
26
+ ---
27
+
28
+ ## Directory Structure
29
+
30
+ ```
31
+ claude-templates/
32
+ ├── README.md # This file
33
+ ├── codemie-init-skill.md # Command to generate documentation
34
+ └── templates/
35
+ ├── CLAUDE.md.template # Main CLAUDE.md template
36
+ └── guides/ # Guide templates by category
37
+ ├── agents/ # AI agent patterns (optional)
38
+ ├── api/
39
+ │ └── api-patterns.md.template
40
+ ├── architecture/
41
+ │ └── layered-architecture.md.template
42
+ ├── data/
43
+ │ └── database-patterns.md.template
44
+ ├── development/
45
+ │ ├── error-handling.md.template
46
+ │ ├── logging-patterns.md.template
47
+ │ ├── security-patterns.md.template
48
+ │ └── setup-guide.md.template
49
+ ├── integration/
50
+ │ └── [future templates]
51
+ ├── standards/
52
+ │ ├── code-quality.md.template
53
+ │ └── git-workflow.md.template
54
+ ├── testing/
55
+ │ └── testing-patterns.md.template
56
+ └── workflows/ # Workflow patterns (optional)
57
+ ```
58
+
59
+ ---
60
+
61
+ ## Quick Start
62
+
63
+ ### For Users: Generate Documentation for Your Project
64
+
65
+ 1. **Navigate to your project**:
66
+ ```bash
67
+ cd /path/to/your/project
68
+ ```
69
+
70
+ 2. **Invoke Claude Code with the codemie-init command**:
71
+ ```
72
+ @codemie-init Generate project documentation for my [framework] project
73
+ ```
74
+
75
+ 3. **Follow prompts**: Claude Code will:
76
+ - Analyze your project structure
77
+ - Identify patterns and tech stack
78
+ - Ask which guides to generate
79
+ - Create documentation with real code examples
80
+
81
+ 4. **Review output**:
82
+ - CLAUDE.md in project root
83
+ - Guides in .codemie/guides/
84
+ - Summary report
85
+
86
+ 5. **Customize** (optional): Refine project-specific sections
87
+
88
+ ### For Template Developers: Adding New Templates
89
+
90
+ 1. **Create template file**:
91
+ ```bash
92
+ touch claude-templates/templates/guides/[category]/[name].md.template
93
+ ```
94
+
95
+ 2. **Follow template structure**:
96
+ - Use AI-first writing principles (see CodeMie guides/WRITING_GUIDELINES.md)
97
+ - Use placeholders: `[PROJECT_NAME]`, `[LANGUAGE]`, `[FRAMEWORK]`, etc.
98
+ - Include `# FILL IN` comments for project-specific content
99
+ - Add code examples with `[language]` and `[code_example]` placeholders
100
+ - Reference source files with `[file.ext:lines]` format
101
+
102
+ 3. **Add to codemie-init-skill.md**:
103
+ - Update decision matrix in Step 2.2
104
+ - Add analysis steps in Step 3.2.2
105
+ - Document pattern detection
106
+
107
+ 4. **Test** with real project
108
+
109
+ ---
110
+
111
+ ## Template Structure
112
+
113
+ ### CLAUDE.md.template
114
+
115
+ **Main sections**:
116
+ - Guide Imports: References to all generated guides
117
+ - Instant Start: Critical rules, task classifier, self-check
118
+ - Execution Workflow: Step-by-step process with gates
119
+ - Pattern Quick Reference: Fast lookups for common patterns
120
+ - Development Commands: Project-specific commands
121
+ - Troubleshooting: Common issues and fixes
122
+ - Project Context: Tech stack and architecture
123
+ - Coding Standards: Language features and conventions
124
+ - Detailed Policies: Testing, git, environment, shell
125
+
126
+ **Placeholders**:
127
+ - `[PROJECT_NAME]`: Project name
128
+ - `[LANGUAGE]`: Programming language
129
+ - `[FRAMEWORK]`: Main framework
130
+ - `[ENV_NAME]`: Environment name (e.g., virtualenv, venv)
131
+ - `[category]`: Guide category
132
+ - `[guide]`: Guide name
133
+ - `# FILL IN`: Sections that need project-specific content
134
+
135
+ ---
136
+
137
+ ### Guide Templates
138
+
139
+ **Common structure**:
140
+ 1. **Quick Summary**: What this guide covers
141
+ 2. **Prerequisites**: Required knowledge
142
+ 3. **Patterns**: 3-5 main patterns with examples
143
+ 4. **Best Practices**: DO/DON'T tables
144
+ 5. **Integration**: Links to related patterns
145
+ 6. **References**: Source code and external docs
146
+
147
+ **Placeholders**:
148
+ - `[PROJECT_NAME]`: Project name
149
+ - `[LANGUAGE]`: Programming language
150
+ - `[FRAMEWORK]`: Framework/tool name
151
+ - `[DATABASE_NAME]`: Database name
152
+ - `[TEST_FRAMEWORK]`: Testing framework
153
+ - `[file.ext:lines]`: Source file reference
154
+ - `[code_example]`: Code snippet placeholder
155
+ - `# FILL IN`: Project-specific content
156
+
157
+ **Available templates**:
158
+ - **development/error-handling.md.template**: Exception patterns, error responses
159
+ - **development/logging-patterns.md.template**: Logging best practices
160
+ - **development/security-patterns.md.template**: Authentication, validation, encryption
161
+ - **development/setup-guide.md.template**: Installation and setup
162
+ - **api/api-patterns.md.template**: REST/GraphQL endpoint patterns
163
+ - **architecture/layered-architecture.md.template**: Layer responsibilities and flow
164
+ - **data/database-patterns.md.template**: ORM, queries, transactions, migrations
165
+ - **testing/testing-patterns.md.template**: Unit/integration tests, fixtures, mocking
166
+ - **standards/code-quality.md.template**: Linting, formatting, type safety
167
+ - **standards/git-workflow.md.template**: Branching, commits, PRs
168
+
169
+ ---
170
+
171
+ ## Usage Guide
172
+
173
+ ### How codemie-init-skill.md Works
174
+
175
+ The documentation generation process has 5 phases:
176
+
177
+ #### Phase 1: Project Discovery & Analysis
178
+ - Analyzes project structure (directories, files)
179
+ - Identifies tech stack (language, frameworks, tools)
180
+ - Detects architectural patterns (layers, components)
181
+ - Reads existing documentation (README, CONTRIBUTING)
182
+
183
+ #### Phase 2: Template Selection & Customization
184
+ - Loads CLAUDE.md template
185
+ - Identifies which guides are relevant based on detected patterns
186
+ - Presents list to user for confirmation
187
+ - Prioritizes guides (P0=required, P1=optional)
188
+
189
+ #### Phase 3: Guide Generation
190
+ - Creates .codemie/guides/ directory structure
191
+ - For each selected guide:
192
+ - Loads template
193
+ - Searches codebase for relevant patterns
194
+ - Extracts real code examples
195
+ - Fills template placeholders
196
+ - Writes completed guide
197
+ - Tracks progress with todos
198
+
199
+ #### Phase 4: Generate Main CLAUDE.md
200
+ - Fills basic placeholders (project name, language, etc.)
201
+ - Populates guide references
202
+ - Creates task classifier with project keywords
203
+ - Extracts patterns for quick reference tables
204
+ - Documents commands from project
205
+ - Fills troubleshooting section
206
+ - Completes project context
207
+
208
+ #### Phase 5: Validation & Finalization
209
+ - Verifies all files exist
210
+ - Validates internal links
211
+ - Tests documented commands
212
+ - Reviews content quality (no placeholders remain)
213
+ - Generates summary report
214
+
215
+ ### Decision Gates
216
+
217
+ The process includes 5 decision gates where Claude Code checks:
218
+ 1. Understanding of tech stack (80%+ confidence)
219
+ 2. Right guides identified (user confirmation)
220
+ 3. Guide content complete (no placeholders)
221
+ 4. CLAUDE.md complete (project-specific)
222
+ 5. Validation passed (links work, commands run)
223
+
224
+ ---
225
+
226
+ ## Template Customization Guide
227
+
228
+ ### Adding a New Guide Template
229
+
230
+ **Example**: Adding a "deployment-patterns.md.template"
231
+
232
+ 1. **Create template**:
233
+ ```bash
234
+ touch claude-templates/templates/guides/deployment/deployment-patterns.md.template
235
+ ```
236
+
237
+ 2. **Write template content**:
238
+ ```markdown
239
+ # Deployment Patterns
240
+
241
+ ## Quick Summary
242
+
243
+ Deployment patterns for [PROJECT_NAME]. Covers [CI/CD], [containerization], and [cloud deployment].
244
+
245
+ **Category**: Deployment
246
+ **Complexity**: High
247
+ **Prerequisites**: [CI/CD tool], [container tool], [cloud platform]
248
+
249
+ ## Pattern 1: [Container Build]
250
+
251
+ ```[language]
252
+ # Source: [file.ext:lines]
253
+ [code_example]
254
+ ```
255
+
256
+ ## Pattern 2: [CI/CD Pipeline]
257
+
258
+ # FILL IN: Document your CI/CD pipeline
259
+
260
+ ...
261
+ ```
262
+
263
+ 3. **Update codemie-init-skill.md**:
264
+ - Add to decision matrix:
265
+ ```markdown
266
+ | Docker/Kubernetes found | deployment/deployment-patterns.md | P1 (Optional) |
267
+ ```
268
+ - Add analysis step:
269
+ ```markdown
270
+ **For Deployment Guide**:
271
+ - Search for Dockerfile
272
+ - Find CI/CD config (.github/workflows/, .gitlab-ci.yml)
273
+ - Identify deployment scripts
274
+ ```
275
+
276
+ 4. **Test** by generating docs for project with deployment patterns
277
+
278
+ ---
279
+
280
+ ### Customizing Placeholders
281
+
282
+ **Global placeholders** (used everywhere):
283
+ - `[PROJECT_NAME]`: Project name
284
+ - `[LANGUAGE]`: Programming language(s)
285
+ - `[FRAMEWORK]`: Main framework
286
+
287
+ **Guide-specific placeholders**:
288
+ - `[DATABASE_NAME]`: PostgreSQL, MySQL, MongoDB, etc.
289
+ - `[TEST_FRAMEWORK]`: pytest, Jest, JUnit, etc.
290
+ - `[ORM]`: SQLAlchemy, Prisma, Hibernate, etc.
291
+ - `[CI/CD]`: GitHub Actions, GitLab CI, Jenkins, etc.
292
+
293
+ **Code placeholders**:
294
+ - `[language]`: Language for code blocks (python, typescript, java, etc.)
295
+ - `[file.ext:lines]`: Actual file path with line numbers
296
+ - `[code_example]`: Real code from project
297
+ - `# FILL IN`: Sections needing project-specific content
298
+
299
+ **Adding new placeholders**:
300
+ 1. Use descriptive names in brackets: `[NEW_PLACEHOLDER]`
301
+ 2. Document in template header
302
+ 3. Add to codemie-init-skill.md replacement logic
303
+
304
+ ---
305
+
306
+ ## Best Practices
307
+
308
+ ### Template Writing
309
+
310
+ 1. **AI-First Principles**:
311
+ - Pattern-first (code before explanation)
312
+ - Example-driven (3+ examples)
313
+ - Structured (tables, lists, code blocks)
314
+ - Dense (high information per line)
315
+ - See CodeMie `.codemie/guides/WRITING_GUIDELINES.md`
316
+
317
+ 2. **Placeholder Strategy**:
318
+ - Use placeholders for project-specific terms
319
+ - Use `# FILL IN` for sections that need analysis
320
+ - Keep generic sections generic
321
+ - Make templates 80% reusable, 20% customizable
322
+
323
+ 3. **Code Examples**:
324
+ - Always include source reference: `# Source: [file.ext:lines]`
325
+ - Show complete, runnable examples
326
+ - Use real patterns (not toy examples)
327
+ - Keep examples < 20 lines
328
+
329
+ 4. **Links and References**:
330
+ - Use relative paths: `./other-guide.md`
331
+ - Link related patterns
332
+ - Reference source code
333
+ - Include external docs
334
+
335
+ ### Documentation Generation
336
+
337
+ 1. **Discovery**:
338
+ - Use Glob for file finding (fast)
339
+ - Use Grep for pattern searching (specific)
340
+ - Use Read for file content (targeted)
341
+ - Prefer Task tool for open-ended exploration
342
+
343
+ 2. **Analysis**:
344
+ - Look for established patterns first
345
+ - Extract real code examples
346
+ - Note file paths with line numbers
347
+ - Identify conventions
348
+
349
+ 3. **Customization**:
350
+ - Replace ALL placeholders
351
+ - Fill ALL "FILL IN" sections
352
+ - Use real commands (tested)
353
+ - Include actual configuration
354
+
355
+ 4. **Validation**:
356
+ - Test all commands
357
+ - Verify all links
358
+ - Check code examples compile
359
+ - Ensure no placeholders remain
360
+
361
+ ---
362
+
363
+ ## Troubleshooting
364
+
365
+ ### Issue: Template doesn't fit project
366
+
367
+ **Symptom**: Project uses different patterns than template assumes
368
+ **Solution**:
369
+ 1. Customize template for your needs
370
+ 2. Create project-specific template variant
371
+ 3. Document deviations in guide header
372
+
373
+ ### Issue: Can't find code examples
374
+
375
+ **Symptom**: Project doesn't have clear examples of pattern
376
+ **Solution**:
377
+ 1. Check if pattern actually exists in project
378
+ 2. If not, consider if guide is needed
379
+ 3. If aspirational, note as "TODO: Implement" in guide
380
+
381
+ ### Issue: Multiple frameworks/languages
382
+
383
+ **Symptom**: Project is polyglot or uses multiple frameworks
384
+ **Solution**:
385
+ 1. Create separate guides for each
386
+ 2. Or, document both in same guide with sections
387
+ 3. Update CLAUDE.md task classifier to handle both
388
+
389
+ ### Issue: Large codebase takes too long
390
+
391
+ **Symptom**: Discovery phase takes 10+ minutes
392
+ **Solution**:
393
+ 1. Start with P0 guides only
394
+ 2. Generate guides iteratively
395
+ 3. Focus on most important patterns first
396
+ 4. Use Task tool with Explore agent for large-scale discovery
397
+
398
+ ---
399
+
400
+ ## Examples
401
+
402
+ ### Example 1: FastAPI + PostgreSQL Project
403
+
404
+ **Detected**:
405
+ - Language: Python
406
+ - Framework: FastAPI
407
+ - Database: PostgreSQL (SQLAlchemy)
408
+ - Testing: pytest
409
+ - Linter: ruff
410
+
411
+ **Generated guides**:
412
+ - api/api-patterns.md (FastAPI endpoints)
413
+ - architecture/layered-architecture.md (router→service→repository)
414
+ - data/database-patterns.md (SQLAlchemy models, queries)
415
+ - development/error-handling.md (FastAPI exception handlers)
416
+ - development/logging-patterns.md (Python logging)
417
+ - development/security-patterns.md (JWT, input validation)
418
+ - development/setup-guide.md (Poetry, virtualenv)
419
+ - testing/testing-patterns.md (pytest, fixtures)
420
+ - standards/code-quality.md (ruff configuration)
421
+ - standards/git-workflow.md (branch strategy)
422
+
423
+ **Time**: ~15 minutes
424
+
425
+ ---
426
+
427
+ ### Example 2: Express.js + MongoDB Project
428
+
429
+ **Detected**:
430
+ - Language: TypeScript
431
+ - Framework: Express.js
432
+ - Database: MongoDB (Mongoose)
433
+ - Testing: Jest
434
+ - Linter: ESLint
435
+
436
+ **Generated guides**:
437
+ - api/api-patterns.md (Express routes)
438
+ - architecture/layered-architecture.md (routes→services→repositories)
439
+ - data/database-patterns.md (Mongoose schemas, queries)
440
+ - development/error-handling.md (Express error middleware)
441
+ - development/logging-patterns.md (Winston/Morgan)
442
+ - development/security-patterns.md (Passport.js, JWT)
443
+ - development/setup-guide.md (npm, node_modules)
444
+ - testing/testing-patterns.md (Jest, mocking)
445
+ - standards/code-quality.md (ESLint, Prettier)
446
+ - standards/git-workflow.md (branch strategy)
447
+
448
+ **Time**: ~12 minutes
449
+
450
+ ---
451
+
452
+ ### Example 3: Spring Boot + MySQL Project
453
+
454
+ **Detected**:
455
+ - Language: Java
456
+ - Framework: Spring Boot
457
+ - Database: MySQL (JPA/Hibernate)
458
+ - Testing: JUnit
459
+ - Build: Maven
460
+
461
+ **Generated guides**:
462
+ - api/api-patterns.md (REST controllers)
463
+ - architecture/layered-architecture.md (controller→service→repository)
464
+ - data/database-patterns.md (JPA entities, repositories)
465
+ - development/error-handling.md (Exception handlers)
466
+ - development/logging-patterns.md (SLF4J/Logback)
467
+ - development/security-patterns.md (Spring Security)
468
+ - development/setup-guide.md (Maven, Java setup)
469
+ - testing/testing-patterns.md (JUnit, Mockito)
470
+ - standards/code-quality.md (Checkstyle)
471
+ - standards/git-workflow.md (branch strategy)
472
+
473
+ **Time**: ~18 minutes
474
+
475
+ ---
476
+
477
+ ## Contributing
478
+
479
+ ### Adding Templates
480
+
481
+ 1. Follow existing template structure
482
+ 2. Use AI-first writing principles
483
+ 3. Include comprehensive placeholders
484
+ 4. Add examples from real projects
485
+ 5. Test with 2-3 different project types
486
+ 6. Update this README
487
+
488
+ ### Improving Templates
489
+
490
+ 1. Identify gaps or unclear sections
491
+ 2. Add missing patterns
492
+ 3. Improve examples
493
+ 4. Enhance placeholder coverage
494
+ 5. Update codemie-init-skill.md if logic changes
495
+
496
+ ### Reporting Issues
497
+
498
+ File issues with:
499
+ - Template name
500
+ - Project type where it failed
501
+ - What was unclear or missing
502
+ - Suggested improvements
503
+
504
+ ---
505
+
506
+ ## Version History
507
+
508
+ ### v1.0 (2026-01-14)
509
+ - Initial release
510
+ - 10 guide templates covering common patterns
511
+ - Main CLAUDE.md template
512
+ - Complete codemie-init-skill command
513
+ - Support for Python, TypeScript, Java, and other major languages
514
+
515
+ ---
516
+
517
+ ## License
518
+
519
+ [Your License Here]
520
+
521
+ ---
522
+
523
+ ## References
524
+
525
+ - **Source Project**: CodeMie (where these patterns originated)
526
+ - **Writing Guidelines**: `.codemie/guides/WRITING_GUIDELINES.md` in CodeMie
527
+ - **Claude Code Documentation**: https://claude.com/claude-code
528
+ - **AI-First Documentation Principles**: Based on LangChain, FastAPI, and Anthropic docs
529
+
530
+ ---
531
+
532
+ ## Contact
533
+
534
+ For questions or support:
535
+ - [Contact method]
536
+ - [Issue tracker]
537
+ - [Documentation]
538
+
539
+ ---