@gabrywu/knowledge-bank 0.1.2-alpha.312 → 0.1.4-6

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 (290) hide show
  1. package/README.md +116 -127
  2. package/dist/claude-marketplace/.claude-plugin/marketplace.json +2 -2
  3. package/dist/claude-marketplace/core/.claude-plugin/plugin.json +1 -1
  4. package/dist/claude-marketplace/core/hooks/hooks.json +57 -17
  5. package/dist/claude-marketplace/core/skills/knowledge.collect/SKILL.md +223 -152
  6. package/dist/claude-marketplace/core/skills/knowledge.enhance/SKILL.md +33 -151
  7. package/dist/claude-marketplace/core/skills/knowledge.register/SKILL.md +142 -0
  8. package/dist/cli.js +6 -6
  9. package/dist/index.js +1 -1
  10. package/dist/mcp/mcp-server.js +7 -0
  11. package/dist/web/public/css/style.css +7 -0
  12. package/dist/web/public/js/main.js +2 -2
  13. package/dist/web/views/index.ejs +17 -1
  14. package/dist/web/views/layout.ejs +1 -0
  15. package/dist/web/views/partials/cell.ejs +9 -1
  16. package/dist/web/views/table.ejs +17 -8
  17. package/node_modules/@simple-git/args-pathspec/dist/index.cjs +2 -0
  18. package/node_modules/@simple-git/args-pathspec/dist/index.cjs.map +1 -0
  19. package/node_modules/@simple-git/args-pathspec/dist/index.d.ts +1 -0
  20. package/node_modules/@simple-git/args-pathspec/dist/index.mjs +17 -0
  21. package/node_modules/@simple-git/args-pathspec/dist/index.mjs.map +1 -0
  22. package/node_modules/@simple-git/args-pathspec/dist/src/pathspec.d.ts +8 -0
  23. package/node_modules/@simple-git/args-pathspec/package.json +32 -0
  24. package/node_modules/@simple-git/argv-parser/dist/index.cjs +2 -0
  25. package/node_modules/@simple-git/argv-parser/dist/index.cjs.map +1 -0
  26. package/node_modules/@simple-git/argv-parser/dist/index.d.ts +4 -0
  27. package/node_modules/@simple-git/argv-parser/dist/index.mjs +361 -0
  28. package/node_modules/@simple-git/argv-parser/dist/index.mjs.map +1 -0
  29. package/node_modules/@simple-git/argv-parser/dist/src/config/analyse-config.d.ts +3 -0
  30. package/node_modules/@simple-git/argv-parser/dist/src/config/config-operands.d.ts +4 -0
  31. package/node_modules/@simple-git/argv-parser/dist/src/config/config.types.d.ts +6 -0
  32. package/node_modules/@simple-git/argv-parser/dist/src/config/detect-config-action.d.ts +13 -0
  33. package/node_modules/@simple-git/argv-parser/dist/src/flags/flags.helpers.d.ts +9 -0
  34. package/node_modules/@simple-git/argv-parser/dist/src/flags/parse-global-flags.d.ts +6 -0
  35. package/node_modules/@simple-git/argv-parser/dist/src/flags/parse-task-flags.d.ts +8 -0
  36. package/node_modules/@simple-git/argv-parser/dist/src/parse-argv.d.ts +6 -0
  37. package/node_modules/@simple-git/argv-parser/dist/src/parse-argv.types.d.ts +59 -0
  38. package/node_modules/@simple-git/argv-parser/dist/src/tokens/flag-specs.d.ts +9 -0
  39. package/node_modules/@simple-git/argv-parser/dist/src/tokens/token-expander.d.ts +7 -0
  40. package/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/detect-config-writes.d.ts +3 -0
  41. package/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/detect-upload-pack.d.ts +3 -0
  42. package/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/vulnerability-analysis.d.ts +4 -0
  43. package/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/vulnerability.types.d.ts +9 -0
  44. package/node_modules/@simple-git/argv-parser/package.json +36 -0
  45. package/node_modules/commander/Readme.md +82 -65
  46. package/node_modules/commander/package-support.json +4 -1
  47. package/node_modules/commander/package.json +1 -1
  48. package/node_modules/ejs/README.md +2 -8
  49. package/node_modules/ejs/bin/cli.js +18 -11
  50. package/node_modules/ejs/ejs.js +16 -23
  51. package/node_modules/ejs/ejs.min.js +1 -1
  52. package/node_modules/ejs/jakefile.js +1 -1
  53. package/node_modules/ejs/lib/cjs/ejs.js +16 -21
  54. package/node_modules/ejs/lib/cjs/parseargs.js +125 -0
  55. package/node_modules/ejs/lib/cjs/utils.js +0 -2
  56. package/node_modules/ejs/lib/esm/ejs.js +18 -23
  57. package/node_modules/{jake/lib → ejs/lib/esm}/parseargs.js +8 -3
  58. package/node_modules/ejs/lib/esm/utils.js +0 -2
  59. package/node_modules/ejs/package.json +2 -4
  60. package/node_modules/simple-git/dist/cjs/index.js +123 -179
  61. package/node_modules/simple-git/dist/cjs/index.js.map +4 -4
  62. package/node_modules/simple-git/dist/esm/index.js +114 -174
  63. package/node_modules/simple-git/dist/esm/index.js.map +4 -4
  64. package/node_modules/simple-git/dist/src/lib/api.d.ts +1 -1
  65. package/node_modules/simple-git/dist/src/lib/plugins/block-unsafe-operations-plugin.d.ts +1 -1
  66. package/node_modules/simple-git/dist/src/lib/plugins/index.d.ts +1 -1
  67. package/node_modules/simple-git/dist/src/lib/tasks/clone.d.ts +6 -2
  68. package/node_modules/simple-git/dist/src/lib/types/index.d.ts +26 -1
  69. package/node_modules/simple-git/dist/typings/index.d.ts +2 -0
  70. package/node_modules/simple-git/dist/typings/simple-git.d.ts +2 -1
  71. package/node_modules/simple-git/dist/typings/types.d.ts +0 -1
  72. package/node_modules/simple-git/package.json +9 -19
  73. package/node_modules/simple-git/readme.md +2 -1
  74. package/package.json +14 -12
  75. package/dist/claude-marketplace/core/skills/KNOWLEDGE-DEFINITION.md +0 -78
  76. package/dist/claude-marketplace/core/skills/knowledge.add/SKILL.md +0 -65
  77. package/dist/claude-marketplace/core/skills/knowledge.delete/SKILL.md +0 -68
  78. package/dist/claude-marketplace/core/skills/knowledge.detect/SKILL.md +0 -147
  79. package/dist/claude-marketplace/core/skills/knowledge.import/SKILL.md +0 -93
  80. package/dist/claude-marketplace/core/skills/knowledge.init/SKILL.md +0 -113
  81. package/dist/claude-marketplace/core/skills/knowledge.merge/SKILL.md +0 -319
  82. package/dist/claude-marketplace/core/skills/knowledge.save/SKILL.md +0 -179
  83. package/dist/claude-marketplace/core/skills/knowledge.status/SKILL.md +0 -86
  84. package/dist/claude-marketplace/core/skills/knowledge.update/SKILL.md +0 -161
  85. package/dist/mcp-server.js +0 -7
  86. package/node_modules/async/CHANGELOG.md +0 -351
  87. package/node_modules/async/LICENSE +0 -19
  88. package/node_modules/async/README.md +0 -59
  89. package/node_modules/async/all.js +0 -119
  90. package/node_modules/async/allLimit.js +0 -46
  91. package/node_modules/async/allSeries.js +0 -45
  92. package/node_modules/async/any.js +0 -122
  93. package/node_modules/async/anyLimit.js +0 -47
  94. package/node_modules/async/anySeries.js +0 -46
  95. package/node_modules/async/apply.js +0 -11
  96. package/node_modules/async/applyEach.js +0 -57
  97. package/node_modules/async/applyEachSeries.js +0 -37
  98. package/node_modules/async/asyncify.js +0 -118
  99. package/node_modules/async/auto.js +0 -333
  100. package/node_modules/async/autoInject.js +0 -182
  101. package/node_modules/async/bower.json +0 -17
  102. package/node_modules/async/cargo.js +0 -63
  103. package/node_modules/async/cargoQueue.js +0 -71
  104. package/node_modules/async/compose.js +0 -55
  105. package/node_modules/async/concat.js +0 -115
  106. package/node_modules/async/concatLimit.js +0 -60
  107. package/node_modules/async/concatSeries.js +0 -41
  108. package/node_modules/async/constant.js +0 -14
  109. package/node_modules/async/detect.js +0 -96
  110. package/node_modules/async/detectLimit.js +0 -48
  111. package/node_modules/async/detectSeries.js +0 -47
  112. package/node_modules/async/dir.js +0 -43
  113. package/node_modules/async/dist/async.js +0 -6061
  114. package/node_modules/async/dist/async.min.js +0 -1
  115. package/node_modules/async/dist/async.mjs +0 -5948
  116. package/node_modules/async/doDuring.js +0 -68
  117. package/node_modules/async/doUntil.js +0 -46
  118. package/node_modules/async/doWhilst.js +0 -68
  119. package/node_modules/async/during.js +0 -78
  120. package/node_modules/async/each.js +0 -129
  121. package/node_modules/async/eachLimit.js +0 -50
  122. package/node_modules/async/eachOf.js +0 -185
  123. package/node_modules/async/eachOfLimit.js +0 -47
  124. package/node_modules/async/eachOfSeries.js +0 -39
  125. package/node_modules/async/eachSeries.js +0 -44
  126. package/node_modules/async/ensureAsync.js +0 -67
  127. package/node_modules/async/every.js +0 -119
  128. package/node_modules/async/everyLimit.js +0 -46
  129. package/node_modules/async/everySeries.js +0 -45
  130. package/node_modules/async/filter.js +0 -93
  131. package/node_modules/async/filterLimit.js +0 -45
  132. package/node_modules/async/filterSeries.js +0 -43
  133. package/node_modules/async/find.js +0 -96
  134. package/node_modules/async/findLimit.js +0 -48
  135. package/node_modules/async/findSeries.js +0 -47
  136. package/node_modules/async/flatMap.js +0 -115
  137. package/node_modules/async/flatMapLimit.js +0 -60
  138. package/node_modules/async/flatMapSeries.js +0 -41
  139. package/node_modules/async/foldl.js +0 -153
  140. package/node_modules/async/foldr.js +0 -41
  141. package/node_modules/async/forEach.js +0 -129
  142. package/node_modules/async/forEachLimit.js +0 -50
  143. package/node_modules/async/forEachOf.js +0 -185
  144. package/node_modules/async/forEachOfLimit.js +0 -47
  145. package/node_modules/async/forEachOfSeries.js +0 -39
  146. package/node_modules/async/forEachSeries.js +0 -44
  147. package/node_modules/async/forever.js +0 -68
  148. package/node_modules/async/groupBy.js +0 -108
  149. package/node_modules/async/groupByLimit.js +0 -71
  150. package/node_modules/async/groupBySeries.js +0 -36
  151. package/node_modules/async/index.js +0 -588
  152. package/node_modules/async/inject.js +0 -153
  153. package/node_modules/async/internal/DoublyLinkedList.js +0 -92
  154. package/node_modules/async/internal/Heap.js +0 -120
  155. package/node_modules/async/internal/applyEach.js +0 -29
  156. package/node_modules/async/internal/asyncEachOfLimit.js +0 -75
  157. package/node_modules/async/internal/awaitify.js +0 -28
  158. package/node_modules/async/internal/breakLoop.js +0 -10
  159. package/node_modules/async/internal/consoleFunc.js +0 -31
  160. package/node_modules/async/internal/createTester.js +0 -40
  161. package/node_modules/async/internal/eachOfLimit.js +0 -90
  162. package/node_modules/async/internal/filter.js +0 -55
  163. package/node_modules/async/internal/getIterator.js +0 -11
  164. package/node_modules/async/internal/initialParams.js +0 -14
  165. package/node_modules/async/internal/isArrayLike.js +0 -10
  166. package/node_modules/async/internal/iterator.js +0 -57
  167. package/node_modules/async/internal/map.js +0 -30
  168. package/node_modules/async/internal/once.js +0 -17
  169. package/node_modules/async/internal/onlyOnce.js +0 -15
  170. package/node_modules/async/internal/parallel.js +0 -34
  171. package/node_modules/async/internal/promiseCallback.js +0 -23
  172. package/node_modules/async/internal/queue.js +0 -294
  173. package/node_modules/async/internal/range.js +0 -14
  174. package/node_modules/async/internal/reject.js +0 -26
  175. package/node_modules/async/internal/setImmediate.js +0 -34
  176. package/node_modules/async/internal/withoutIndex.js +0 -10
  177. package/node_modules/async/internal/wrapAsync.js +0 -34
  178. package/node_modules/async/log.js +0 -41
  179. package/node_modules/async/map.js +0 -142
  180. package/node_modules/async/mapLimit.js +0 -45
  181. package/node_modules/async/mapSeries.js +0 -44
  182. package/node_modules/async/mapValues.js +0 -152
  183. package/node_modules/async/mapValuesLimit.js +0 -61
  184. package/node_modules/async/mapValuesSeries.js +0 -37
  185. package/node_modules/async/memoize.js +0 -91
  186. package/node_modules/async/nextTick.js +0 -52
  187. package/node_modules/async/package.json +0 -75
  188. package/node_modules/async/parallel.js +0 -180
  189. package/node_modules/async/parallelLimit.js +0 -41
  190. package/node_modules/async/priorityQueue.js +0 -60
  191. package/node_modules/async/queue.js +0 -24
  192. package/node_modules/async/race.js +0 -67
  193. package/node_modules/async/reduce.js +0 -153
  194. package/node_modules/async/reduceRight.js +0 -41
  195. package/node_modules/async/reflect.js +0 -78
  196. package/node_modules/async/reflectAll.js +0 -93
  197. package/node_modules/async/reject.js +0 -87
  198. package/node_modules/async/rejectLimit.js +0 -45
  199. package/node_modules/async/rejectSeries.js +0 -43
  200. package/node_modules/async/retry.js +0 -159
  201. package/node_modules/async/retryable.js +0 -77
  202. package/node_modules/async/select.js +0 -93
  203. package/node_modules/async/selectLimit.js +0 -45
  204. package/node_modules/async/selectSeries.js +0 -43
  205. package/node_modules/async/seq.js +0 -79
  206. package/node_modules/async/series.js +0 -186
  207. package/node_modules/async/setImmediate.js +0 -45
  208. package/node_modules/async/some.js +0 -122
  209. package/node_modules/async/someLimit.js +0 -47
  210. package/node_modules/async/someSeries.js +0 -46
  211. package/node_modules/async/sortBy.js +0 -190
  212. package/node_modules/async/timeout.js +0 -89
  213. package/node_modules/async/times.js +0 -50
  214. package/node_modules/async/timesLimit.js +0 -43
  215. package/node_modules/async/timesSeries.js +0 -32
  216. package/node_modules/async/transform.js +0 -173
  217. package/node_modules/async/tryEach.js +0 -78
  218. package/node_modules/async/unmemoize.js +0 -25
  219. package/node_modules/async/until.js +0 -61
  220. package/node_modules/async/waterfall.js +0 -105
  221. package/node_modules/async/whilst.js +0 -78
  222. package/node_modules/async/wrapSync.js +0 -118
  223. package/node_modules/balanced-match/.github/FUNDING.yml +0 -2
  224. package/node_modules/balanced-match/LICENSE.md +0 -21
  225. package/node_modules/balanced-match/README.md +0 -97
  226. package/node_modules/balanced-match/index.js +0 -62
  227. package/node_modules/balanced-match/package.json +0 -48
  228. package/node_modules/brace-expansion/.github/FUNDING.yml +0 -2
  229. package/node_modules/brace-expansion/LICENSE +0 -21
  230. package/node_modules/brace-expansion/README.md +0 -135
  231. package/node_modules/brace-expansion/index.js +0 -203
  232. package/node_modules/brace-expansion/package.json +0 -49
  233. package/node_modules/filelist/README.md +0 -84
  234. package/node_modules/filelist/index.d.ts +0 -110
  235. package/node_modules/filelist/index.js +0 -495
  236. package/node_modules/filelist/jakefile.js +0 -15
  237. package/node_modules/filelist/package.json +0 -28
  238. package/node_modules/jake/Makefile +0 -44
  239. package/node_modules/jake/README.md +0 -17
  240. package/node_modules/jake/bin/bash_completion.sh +0 -41
  241. package/node_modules/jake/bin/cli.js +0 -31
  242. package/node_modules/jake/jakefile.js +0 -112
  243. package/node_modules/jake/lib/api.js +0 -409
  244. package/node_modules/jake/lib/jake.js +0 -330
  245. package/node_modules/jake/lib/loader.js +0 -174
  246. package/node_modules/jake/lib/namespace.js +0 -115
  247. package/node_modules/jake/lib/package_task.js +0 -406
  248. package/node_modules/jake/lib/program.js +0 -282
  249. package/node_modules/jake/lib/publish_task.js +0 -290
  250. package/node_modules/jake/lib/rule.js +0 -311
  251. package/node_modules/jake/lib/task/directory_task.js +0 -30
  252. package/node_modules/jake/lib/task/file_task.js +0 -126
  253. package/node_modules/jake/lib/task/index.js +0 -9
  254. package/node_modules/jake/lib/task/task.js +0 -458
  255. package/node_modules/jake/lib/test_task.js +0 -270
  256. package/node_modules/jake/lib/utils/file.js +0 -286
  257. package/node_modules/jake/lib/utils/index.js +0 -297
  258. package/node_modules/jake/lib/utils/logger.js +0 -24
  259. package/node_modules/jake/package.json +0 -44
  260. package/node_modules/jake/test/integration/concurrent.js +0 -45
  261. package/node_modules/jake/test/integration/file.js +0 -228
  262. package/node_modules/jake/test/integration/file_task.js +0 -141
  263. package/node_modules/jake/test/integration/helpers.js +0 -80
  264. package/node_modules/jake/test/integration/jakefile.js +0 -352
  265. package/node_modules/jake/test/integration/jakelib/concurrent.jake.js +0 -113
  266. package/node_modules/jake/test/integration/jakelib/publish.jake.js +0 -49
  267. package/node_modules/jake/test/integration/jakelib/required_module.jake.js +0 -10
  268. package/node_modules/jake/test/integration/jakelib/rule.jake.js +0 -222
  269. package/node_modules/jake/test/integration/list_tasks.js +0 -15
  270. package/node_modules/jake/test/integration/publish_task.js +0 -27
  271. package/node_modules/jake/test/integration/rule.js +0 -217
  272. package/node_modules/jake/test/integration/selfdep.js +0 -42
  273. package/node_modules/jake/test/integration/task_base.js +0 -167
  274. package/node_modules/jake/test/unit/jakefile.js +0 -36
  275. package/node_modules/jake/test/unit/namespace.js +0 -77
  276. package/node_modules/jake/test/unit/parseargs.js +0 -169
  277. package/node_modules/jake/usage.txt +0 -17
  278. package/node_modules/minimatch/LICENSE +0 -15
  279. package/node_modules/minimatch/README.md +0 -259
  280. package/node_modules/minimatch/lib/path.js +0 -4
  281. package/node_modules/minimatch/minimatch.js +0 -944
  282. package/node_modules/minimatch/package.json +0 -35
  283. package/node_modules/picocolors/LICENSE +0 -15
  284. package/node_modules/picocolors/README.md +0 -21
  285. package/node_modules/picocolors/package.json +0 -25
  286. package/node_modules/picocolors/picocolors.browser.js +0 -4
  287. package/node_modules/picocolors/picocolors.d.ts +0 -5
  288. package/node_modules/picocolors/picocolors.js +0 -75
  289. package/node_modules/picocolors/types.d.ts +0 -51
  290. package/node_modules/simple-git/dist/src/lib/args/pathspec.d.ts +0 -3
package/README.md CHANGED
@@ -1,72 +1,98 @@
1
1
  # Knowledge Bank
2
2
 
3
- An intelligent knowledge management system for Claude Code that automatically captures, stores, and retrieves development knowledge during your coding sessions.
3
+ An intelligent knowledge management system for Claude Code that automatically captures and retrieves development insights during your coding sessions.
4
4
 
5
- ## Overview
5
+ ## Why Knowledge Bank?
6
6
 
7
- Knowledge Bank is a lightweight Claude Code plugin that transforms your development workflow by:
7
+ Every day, developers solve complex problems, discover useful patterns, and learn valuable lessons. Yet most of this knowledge is lost—buried in closed issues, forgotten conversations, or never documented at all. Knowledge Bank changes this by **automatically capturing development knowledge as you work**, building a searchable knowledge base that grows smarter with every coding session.
8
8
 
9
- - 🧠 **Automatically capturing** valuable development insights through Claude Code's hook system
10
- - 📚 **Storing knowledge** in a local SQLite database with powerful full-text search
11
- - 🔍 **Smart retrieval** of relevant context during development sessions
12
- - 🏗️ **Intelligent organization** using multi-dimensional classification
13
- - ⚡ **Zero-friction integration** with your existing Claude Code workflow
9
+ ## What is Knowledge Bank?
14
10
 
15
- ## Design Philosophy
11
+ Knowledge Bank is a Claude Code plugin that seamlessly integrates into your development workflow to:
16
12
 
17
- Knowledge Bank is built on a fundamental principle: **knowledge should be deeply integrated into the entire software development lifecycle**, not treated as a separate documentation burden.
13
+ - **🧠 Automatically capture** valuable insights from your Claude Code sessions
14
+ - **🔍 Intelligently retrieve** relevant knowledge when you need it
15
+ - **📚 Build a searchable database** of project-specific and personal development wisdom
16
+ - **⚡ Work transparently** without disrupting your flow
18
17
 
19
- ### 🔄 **Lifecycle-Integrated Knowledge Management**
18
+ Unlike traditional documentation tools that require manual effort, Knowledge Bank operates in the background—learning from your development sessions and surfacing relevant insights at the right moment.
20
19
 
21
- **Throughout Every Development Phase:**
22
- - **Design Phase**: Capture architectural decisions and design patterns
23
- - **Development Phase**: Record code patterns, implementation insights, and technical decisions
24
- - **Code Review Phase**: Document review findings, best practices, and improvement patterns
25
- - **Testing Phase**: Store testing strategies, edge cases, and quality insights
26
- - **Deployment Phase**: Record deployment patterns, configuration knowledge, and operational insights
27
- - **Maintenance Phase**: Capture troubleshooting knowledge, performance optimizations, and evolution patterns
20
+ ## Core Philosophy
28
21
 
29
- ### 🔗 **Code-Bound Knowledge Strategy**
22
+ ### Knowledge Should Be Effortless
30
23
 
31
- **Knowledge-Code Coupling**: By binding knowledge collection and retrieval directly to your code workflow, we ensure:
24
+ Traditional documentation fails because it requires extra work. Knowledge Bank integrates knowledge capture directly into your development workflow—no separate documentation process, no context switching, no maintenance burden.
32
25
 
33
- - **High Knowledge Density**: Every captured insight is contextually relevant and immediately actionable
34
- - **Automatic Freshness**: Knowledge stays current as it's updated alongside code changes
35
- - **Zero Maintenance Overhead**: No separate documentation process to maintain
36
- - **Contextual Relevance**: Knowledge appears exactly when and where you need it
26
+ ### AI-First Knowledge Design
37
27
 
38
- ### 🤖 **LLM-Native Knowledge Design**
28
+ Knowledge Bank is built for the AI-assisted development era. It stores knowledge in formats optimized for AI consumption, allowing Claude Code to leverage accumulated insights when helping you solve problems. The knowledge grows more valuable with every session, creating a positive feedback loop.
39
29
 
40
- **Implicit Information for AI Consumption**: Knowledge Bank recognizes that modern development increasingly involves AI assistance. Our knowledge format is optimized for:
30
+ ### Context is Everything
41
31
 
42
- **LLM-Optimized Storage**:
43
- - Structured data formats that AI models can efficiently process
44
- - Rich metadata and classification for intelligent retrieval
45
- - Contextual relationships that help AI understand relevance
46
- - Pattern recognition data that enables proactive suggestions
32
+ Knowledge without context is just data. Knowledge Bank automatically associates every insight with:
33
+ - The specific files and code it relates to
34
+ - The project and repository context
35
+ - The development phase (design, coding, debugging, etc.)
36
+ - The problem being solved
47
37
 
48
- **Human-Extractable Insights**:
49
- - While knowledge is stored for AI consumption, humans can extract valuable insights through:
50
- - **Web Dashboard**: Browse and search through accumulated knowledge
51
- - **Pattern Recognition**: Identify recurring themes and solutions across projects
52
- - **Knowledge Synthesis**: Derive high-level principles from detailed implementation knowledge
53
- - **Learning Acceleration**: Understand team knowledge and best practices through accumulated insights
38
+ This rich context ensures knowledge is relevant and actionable when retrieved.
54
39
 
55
- ### 🎯 **Value-Driven Knowledge Capture**
40
+ ## Key Advantages
56
41
 
57
- **Maximizing Knowledge ROI**: By focusing on usage frequency and value density:
42
+ ### 1. Zero Friction Integration
43
+ - No manual knowledge entry required
44
+ - Automatic capture through Claude Code's hook system
45
+ - Works silently in the background
46
+ - No new tools or workflows to learn
58
47
 
59
- - **Contextual Triggering**: Knowledge is captured and surfaced based on actual development context
60
- - **Relevance Scoring**: Only valuable, applicable knowledge reaches the developer
61
- - **Automatic Organization**: AI-driven classification ensures knowledge remains findable and useful
62
- - **Continuous Refinement**: Knowledge quality improves through usage patterns and feedback loops
48
+ ### 2. Intelligent Knowledge Management
49
+ - **Smart Detection**: Automatically identifies valuable insights worth preserving
50
+ - **Duplicate Prevention**: Detects similar knowledge and merges intelligently
51
+ - **Quality Control**: Validates knowledge relevance and actionability
52
+ - **Context Isolation**: Runs knowledge operations without disrupting your main conversation
63
53
 
64
- This philosophy transforms knowledge from a documentation burden into an intelligent development accelerator that grows more valuable with every coding session.
54
+ ### 3. Always Available
55
+ - **Local Storage**: Your knowledge stays on your machine in SQLite
56
+ - **Fast Search**: FTS5 full-text search for instant retrieval
57
+ - **Web Dashboard**: Browse and explore your knowledge base visually
58
+ - **Multi-Repository**: Manage knowledge across all your projects
59
+
60
+ ### 4. Grows With You
61
+ - **Personal Knowledge**: Capture cross-project principles and practices
62
+ - **Project Knowledge**: Build project-specific expertise and patterns
63
+ - **Session Tracking**: Complete history of your Claude Code sessions
64
+ - **Pattern Recognition**: Identify recurring solutions and approaches
65
+
66
+ ## How It Works
67
+
68
+ Knowledge Bank operates through a simple three-phase cycle:
69
+
70
+ ### 📥 Capture Phase
71
+ When you complete a development task, Knowledge Bank automatically:
72
+ - Analyzes the conversation for valuable insights
73
+ - Identifies code patterns, debugging solutions, and architectural decisions
74
+ - Checks for duplicate knowledge using similarity scoring
75
+ - Stores qualified knowledge with rich metadata
76
+
77
+ ### 🗄️ Storage Phase
78
+ All knowledge is stored locally in:
79
+ - **SQLite Database**: Fast, reliable, and private
80
+ - **Structured Format**: Organized by type, scope, and project
81
+ - **Full-Text Search**: Optimized for quick retrieval
82
+ - **Version Controlled**: Linked to specific Git repositories and branches
83
+
84
+ ### 🔍 Retrieval Phase
85
+ When you start working on a new task, Knowledge Bank:
86
+ - Analyzes your question or problem description
87
+ - Searches for relevant knowledge from past sessions
88
+ - Injects contextual insights into your conversation
89
+ - Surfaces the right knowledge at the right time
90
+
91
+ All of this happens automatically through Claude Code's skill system, requiring no manual intervention.
65
92
 
66
93
  ## Installation
67
94
 
68
95
  ### Prerequisites
69
-
70
96
  - Node.js >= 18.0.0
71
97
  - Claude Code CLI installed and configured
72
98
 
@@ -74,116 +100,79 @@ This philosophy transforms knowledge from a documentation burden into an intelli
74
100
 
75
101
  ```bash
76
102
  # Install Knowledge Bank globally
77
- npm install -g @gabrywu/knowledge-bank --registry https://registry.npmjs.org
78
- # For alpha/beta versions, use:
79
- npm install -g @gabrywu/knowledge-bank@alpha --registry https://registry.npmjs.org
103
+ npm install -g @gabrywu/knowledge-bank
80
104
 
81
- # Install the Knowledge Bank plugin
105
+ # Install the plugin into Claude Code
82
106
  knowledge-bank install
83
107
 
84
- # Uninstall plugin
85
- knowledge-bank uninstall
108
+ # Verify installation
109
+ knowledge-bank config
86
110
  ```
87
111
 
88
- ### Verification
112
+ That's it! Knowledge Bank is now active and will automatically capture knowledge from your Claude Code sessions.
89
113
 
90
- ```bash
91
- # Check installation status
92
- knowledge-bank knowledge-status
93
- ```
94
-
95
- ## Web Interface
114
+ ### Web Dashboard
96
115
 
97
- Knowledge Bank includes a built-in web interface for browsing and exploring your local knowledge database through a user-friendly dashboard.
98
-
99
- ### Starting the Web Interface
116
+ Explore your knowledge base through the built-in web interface:
100
117
 
101
118
  ```bash
102
- # Start web server (production mode)
119
+ # Start the web dashboard
103
120
  knowledge-bank web
104
121
  ```
105
122
 
106
- The web interface will be available at `http://localhost:3000` (or your specified port).
107
-
108
- ### Features
109
-
110
- The web interface provides comprehensive access to your knowledge database:
111
-
112
- #### 🏠 **Dashboard Overview**
113
- - **System Statistics**: Quick overview of repositories, sessions, knowledge items, and hook events
114
- - **Repository Browser**: Navigate through your Git repositories and their associated knowledge
115
- - **Real-time Data**: Live view of your current knowledge database state
116
-
117
- #### 📊 **Knowledge Management**
118
- - **Knowledge Items Viewer**: Browse, search, and filter all captured knowledge items
119
- - Filter by type (architecture, code_pattern, tool_usage, config, pitfall, API_usage, exploration)
120
- - Filter by status (draft, suggested, verified)
121
- - Filter by scope (personal, project, organization)
122
- - Full-text search across titles, summaries, and content
123
- - **Markdown Rendering**: Rich display of knowledge content with proper formatting
124
- - **Knowledge Details**: Expandable rows showing complete knowledge item information
125
-
126
- #### 📝 **Session Management**
127
- - **Session History**: View all Claude Code sessions organized by repository
128
- - **Session Details**: Browse session metadata including working directory, branch, and timestamps
129
- - **Session Filtering**: Search sessions by session ID, branch, or working directory
123
+ The dashboard provides:
124
+ - Browse and search all captured knowledge
125
+ - View session history and activity
126
+ - Filter by project, type, and status
127
+ - Explore knowledge relationships
130
128
 
131
- #### 🪝 **Hook Event Tracking**
132
- - **Event History**: Monitor all Claude Code hook events across sessions
133
- - **Event Filtering**: Filter by event name, session ID, or repository
134
- - **Event Timeline**: Chronological view of hook activations and system events
129
+ ## Use Cases
135
130
 
136
- #### 🗄️ **Database Browser**
137
- - **Table Explorer**: Direct access to all database tables (repository, session, knowledge_item, hook_event)
138
- - **Schema Viewer**: Inspect database structure and relationships
139
- - **Advanced Filtering**: Multiple filter options per table with pagination
140
- - **Sortable Columns**: Click headers to sort by any column (ascending/descending)
131
+ ### Debugging Sessions
132
+ **Before**: You spend hours debugging an issue, solve it, and forget the solution.
133
+ **After**: Knowledge Bank captures the debugging process, root cause, and solution. Next time a similar issue appears, the solution is automatically retrieved.
141
134
 
142
- #### 🔍 **Advanced Search & Navigation**
143
- - **Cross-table Relationships**: Navigate between related repositories, sessions, and knowledge items
144
- - **Repository-centric View**: See all sessions, knowledge, and events for each repository
145
- - **Responsive Design**: Works seamlessly on desktop and mobile devices
146
- - **Real-time Updates**: Reflects the latest database state on page refresh
135
+ ### Architecture Decisions
136
+ **Before**: Important design decisions are scattered across PRs and chat logs.
137
+ **After**: Architectural insights are captured with context and rationale, building a living architecture document.
147
138
 
148
- The web interface transforms your local knowledge database into an accessible, browsable resource that helps you leverage your accumulated development experience effectively.
139
+ ### Code Patterns
140
+ **Before**: You rediscover the same patterns repeatedly across projects.
141
+ **After**: Successful patterns are captured once and suggested whenever relevant.
149
142
 
150
- ## How it Works
143
+ ### Onboarding
144
+ **Before**: New team members spend weeks learning project conventions.
145
+ **After**: Accumulated project knowledge provides instant context and guidance.
151
146
 
152
- Knowledge Bank integrates seamlessly with Claude Code to automatically capture, organize, and retrieve development knowledge through a simple three-step process:
147
+ ## Privacy & Security
153
148
 
154
- ### 📥 **Knowledge Capture**
155
- - **Automatic Collection**: Uses Claude Code's hook system to capture development insights during your coding sessions
156
- - **Smart Classification**: Organizes knowledge by type (code patterns, architecture, configurations, pitfalls, etc.)
157
- - **Context Awareness**: Associates knowledge with specific projects, files, and development activities
149
+ - **Local-First**: All knowledge stays on your machine
150
+ - **No Cloud Sync**: Your data never leaves your computer
151
+ - **Git-Aware**: Respects your repository structure
152
+ - **User-Controlled**: Full control over what gets captured and stored
158
153
 
159
- ### 🗄️ **Knowledge Storage**
160
- - **Local Database**: Stores all knowledge in a local SQLite database for privacy and speed
161
- - **Rich Organization**: Categorizes knowledge by scope, source, and development lifecycle stage
162
- - **Full-Text Search**: Enables fast searching across all stored knowledge items
154
+ ## What's Next?
163
155
 
164
- ### 🔍 **Knowledge Retrieval**
165
- - **Intelligent Search**: Finds relevant knowledge based on your current development context
166
- - **Multiple Interfaces**: Access through Claude Code (via MCP), web dashboard, or command line
167
- - **Context Injection**: Automatically surfaces relevant insights when you need them
156
+ Once installed, Knowledge Bank works automatically. As you use Claude Code:
168
157
 
169
- ### 🔧 **Integration Points**
158
+ 1. Complete development tasks as usual
159
+ 2. Knowledge Bank captures valuable insights in the background
160
+ 3. When you encounter similar situations, relevant knowledge appears automatically
161
+ 4. Your knowledge base grows more valuable with every session
170
162
 
171
- **Claude Code Integration**
172
- - Hooks into Claude Code's session lifecycle for automatic knowledge capture
173
- - Provides MCP server for real-time knowledge search and retrieval
174
- - Works transparently without disrupting your development workflow
163
+ The more you use Claude Code, the smarter your knowledge base becomes.
175
164
 
176
- **Web Dashboard**
177
- - Browse and explore your knowledge database through a user-friendly interface
178
- - Advanced search and filtering capabilities
179
- - Session history and hook event tracking
165
+ ## Resources
180
166
 
181
- The system transforms your development sessions into a continuously growing, searchable knowledge base that enhances productivity and preserves valuable insights for future reference.
167
+ - **Documentation**: Full architecture details in `architecture.md`
168
+ - **Configuration**: Run `knowledge-bank config` to view settings
169
+ - **Web Interface**: Run `knowledge-bank web` to explore your knowledge
170
+ - **Support**: Report issues at [GitHub Issues](https://github.com/anthropics/claude-code/issues)
182
171
 
183
172
  ## License
184
173
 
185
- This project is licensed under the ISC License - see the [LICENSE](LICENSE) file for details.
174
+ MIT License - see the [LICENSE](LICENSE) file for details.
186
175
 
187
176
  ---
188
177
 
189
- Transform your development workflow with intelligent knowledge management. Get started with Knowledge Bank today!
178
+ **Transform your development workflow with intelligent knowledge management. Your future self will thank you.**
@@ -9,7 +9,7 @@
9
9
  "name": "core",
10
10
  "source": "./core",
11
11
  "description": "Core plugins for knowledge bank",
12
- "version": "0.1.2-alpha.312",
12
+ "version": "0.1.4-6",
13
13
  "author": {
14
14
  "name": "garbywu",
15
15
  "email": "gabrywu@apache.org"
@@ -18,6 +18,6 @@
18
18
  ],
19
19
  "metadata": {
20
20
  "description": "A marketplace for knowledge bank plugins by gabrywu",
21
- "version": "0.1.2-alpha.312"
21
+ "version": "0.1.4-6"
22
22
  }
23
23
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "core",
3
3
  "description": "Core plugins for knowledge bank",
4
- "version": "0.1.2-alpha.312",
4
+ "version": "0.1.4-6",
5
5
  "author": {
6
6
  "name": "garbywu",
7
7
  "email": "gabrywu@apache.org"
@@ -5,7 +5,7 @@
5
5
  "hooks": [
6
6
  {
7
7
  "type": "command",
8
- "command": "npx knowledge-bank session-start"
8
+ "command": "npx knowledge-bank hook session-start"
9
9
  }
10
10
  ]
11
11
  }
@@ -15,7 +15,7 @@
15
15
  "hooks": [
16
16
  {
17
17
  "type": "command",
18
- "command": "npx knowledge-bank session-end"
18
+ "command": "npx knowledge-bank hook session-end"
19
19
  }
20
20
  ]
21
21
  }
@@ -26,7 +26,7 @@
26
26
  "hooks": [
27
27
  {
28
28
  "type": "command",
29
- "command": "npx knowledge-bank pre-tool-use"
29
+ "command": "npx knowledge-bank hook pre-tool-use"
30
30
  }
31
31
  ]
32
32
  }
@@ -37,7 +37,7 @@
37
37
  "hooks": [
38
38
  {
39
39
  "type": "command",
40
- "command": "npx knowledge-bank post-tool-use"
40
+ "command": "npx knowledge-bank hook post-tool-use"
41
41
  }
42
42
  ]
43
43
  }
@@ -47,7 +47,7 @@
47
47
  "hooks": [
48
48
  {
49
49
  "type": "command",
50
- "command": "npx knowledge-bank user-prompt-submit"
50
+ "command": "npx knowledge-bank hook user-prompt-submit"
51
51
  }
52
52
  ]
53
53
  }
@@ -58,7 +58,7 @@
58
58
  "hooks": [
59
59
  {
60
60
  "type": "command",
61
- "command": "npx knowledge-bank permission-request"
61
+ "command": "npx knowledge-bank hook permission-request"
62
62
  }
63
63
  ]
64
64
  }
@@ -68,7 +68,7 @@
68
68
  "hooks": [
69
69
  {
70
70
  "type": "command",
71
- "command": "npx knowledge-bank notification"
71
+ "command": "npx knowledge-bank hook notification"
72
72
  }
73
73
  ]
74
74
  }
@@ -78,7 +78,7 @@
78
78
  "hooks": [
79
79
  {
80
80
  "type": "command",
81
- "command": "npx knowledge-bank stop"
81
+ "command": "npx knowledge-bank hook stop"
82
82
  }
83
83
  ]
84
84
  }
@@ -88,7 +88,7 @@
88
88
  "hooks": [
89
89
  {
90
90
  "type": "command",
91
- "command": "npx knowledge-bank stop"
91
+ "command": "npx knowledge-bank hook stop"
92
92
  }
93
93
  ]
94
94
  }
@@ -98,7 +98,7 @@
98
98
  "hooks": [
99
99
  {
100
100
  "type": "command",
101
- "command": "npx knowledge-bank pre-compact"
101
+ "command": "npx knowledge-bank hook pre-compact"
102
102
  }
103
103
  ]
104
104
  }
@@ -108,7 +108,7 @@
108
108
  "hooks": [
109
109
  {
110
110
  "type": "command",
111
- "command": "npx knowledge-bank subagent-start"
111
+ "command": "npx knowledge-bank hook subagent-start"
112
112
  }
113
113
  ]
114
114
  }
@@ -119,7 +119,7 @@
119
119
  "hooks": [
120
120
  {
121
121
  "type": "command",
122
- "command": "npx knowledge-bank post-tool-use-failure"
122
+ "command": "npx knowledge-bank hook post-tool-use-failure"
123
123
  }
124
124
  ]
125
125
  }
@@ -129,7 +129,7 @@
129
129
  "hooks": [
130
130
  {
131
131
  "type": "command",
132
- "command": "npx knowledge-bank teammate-idle"
132
+ "command": "npx knowledge-bank hook teammate-idle"
133
133
  }
134
134
  ]
135
135
  }
@@ -139,7 +139,7 @@
139
139
  "hooks": [
140
140
  {
141
141
  "type": "command",
142
- "command": "npx knowledge-bank task-completed"
142
+ "command": "npx knowledge-bank hook task-completed"
143
143
  }
144
144
  ]
145
145
  }
@@ -150,7 +150,7 @@
150
150
  "hooks": [
151
151
  {
152
152
  "type": "command",
153
- "command": "npx knowledge-bank config-change"
153
+ "command": "npx knowledge-bank hook config-change"
154
154
  }
155
155
  ]
156
156
  }
@@ -160,7 +160,7 @@
160
160
  "hooks": [
161
161
  {
162
162
  "type": "command",
163
- "command": "npx knowledge-bank worktree-create"
163
+ "command": "npx knowledge-bank hook worktree-create"
164
164
  }
165
165
  ]
166
166
  }
@@ -170,7 +170,47 @@
170
170
  "hooks": [
171
171
  {
172
172
  "type": "command",
173
- "command": "npx knowledge-bank worktree-remove"
173
+ "command": "npx knowledge-bank hook worktree-remove"
174
+ }
175
+ ]
176
+ }
177
+ ],
178
+ "PostCompact": [
179
+ {
180
+ "hooks": [
181
+ {
182
+ "type": "command",
183
+ "command": "npx knowledge-bank hook post-compact"
184
+ }
185
+ ]
186
+ }
187
+ ],
188
+ "Elicitation": [
189
+ {
190
+ "hooks": [
191
+ {
192
+ "type": "command",
193
+ "command": "npx knowledge-bank hook elicitation"
194
+ }
195
+ ]
196
+ }
197
+ ],
198
+ "ElicitationResult": [
199
+ {
200
+ "hooks": [
201
+ {
202
+ "type": "command",
203
+ "command": "npx knowledge-bank hook elicitation-result"
204
+ }
205
+ ]
206
+ }
207
+ ],
208
+ "InstructionsLoaded": [
209
+ {
210
+ "hooks": [
211
+ {
212
+ "type": "command",
213
+ "command": "npx knowledge-bank hook instructions-loaded"
174
214
  }
175
215
  ]
176
216
  }