@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.
- package/README.md +116 -127
- package/dist/claude-marketplace/.claude-plugin/marketplace.json +2 -2
- package/dist/claude-marketplace/core/.claude-plugin/plugin.json +1 -1
- package/dist/claude-marketplace/core/hooks/hooks.json +57 -17
- package/dist/claude-marketplace/core/skills/knowledge.collect/SKILL.md +223 -152
- package/dist/claude-marketplace/core/skills/knowledge.enhance/SKILL.md +33 -151
- package/dist/claude-marketplace/core/skills/knowledge.register/SKILL.md +142 -0
- package/dist/cli.js +6 -6
- package/dist/index.js +1 -1
- package/dist/mcp/mcp-server.js +7 -0
- package/dist/web/public/css/style.css +7 -0
- package/dist/web/public/js/main.js +2 -2
- package/dist/web/views/index.ejs +17 -1
- package/dist/web/views/layout.ejs +1 -0
- package/dist/web/views/partials/cell.ejs +9 -1
- package/dist/web/views/table.ejs +17 -8
- package/node_modules/@simple-git/args-pathspec/dist/index.cjs +2 -0
- package/node_modules/@simple-git/args-pathspec/dist/index.cjs.map +1 -0
- package/node_modules/@simple-git/args-pathspec/dist/index.d.ts +1 -0
- package/node_modules/@simple-git/args-pathspec/dist/index.mjs +17 -0
- package/node_modules/@simple-git/args-pathspec/dist/index.mjs.map +1 -0
- package/node_modules/@simple-git/args-pathspec/dist/src/pathspec.d.ts +8 -0
- package/node_modules/@simple-git/args-pathspec/package.json +32 -0
- package/node_modules/@simple-git/argv-parser/dist/index.cjs +2 -0
- package/node_modules/@simple-git/argv-parser/dist/index.cjs.map +1 -0
- package/node_modules/@simple-git/argv-parser/dist/index.d.ts +4 -0
- package/node_modules/@simple-git/argv-parser/dist/index.mjs +361 -0
- package/node_modules/@simple-git/argv-parser/dist/index.mjs.map +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/config/analyse-config.d.ts +3 -0
- package/node_modules/@simple-git/argv-parser/dist/src/config/config-operands.d.ts +4 -0
- package/node_modules/@simple-git/argv-parser/dist/src/config/config.types.d.ts +6 -0
- package/node_modules/@simple-git/argv-parser/dist/src/config/detect-config-action.d.ts +13 -0
- package/node_modules/@simple-git/argv-parser/dist/src/flags/flags.helpers.d.ts +9 -0
- package/node_modules/@simple-git/argv-parser/dist/src/flags/parse-global-flags.d.ts +6 -0
- package/node_modules/@simple-git/argv-parser/dist/src/flags/parse-task-flags.d.ts +8 -0
- package/node_modules/@simple-git/argv-parser/dist/src/parse-argv.d.ts +6 -0
- package/node_modules/@simple-git/argv-parser/dist/src/parse-argv.types.d.ts +59 -0
- package/node_modules/@simple-git/argv-parser/dist/src/tokens/flag-specs.d.ts +9 -0
- package/node_modules/@simple-git/argv-parser/dist/src/tokens/token-expander.d.ts +7 -0
- package/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/detect-config-writes.d.ts +3 -0
- package/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/detect-upload-pack.d.ts +3 -0
- package/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/vulnerability-analysis.d.ts +4 -0
- package/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/vulnerability.types.d.ts +9 -0
- package/node_modules/@simple-git/argv-parser/package.json +36 -0
- package/node_modules/commander/Readme.md +82 -65
- package/node_modules/commander/package-support.json +4 -1
- package/node_modules/commander/package.json +1 -1
- package/node_modules/ejs/README.md +2 -8
- package/node_modules/ejs/bin/cli.js +18 -11
- package/node_modules/ejs/ejs.js +16 -23
- package/node_modules/ejs/ejs.min.js +1 -1
- package/node_modules/ejs/jakefile.js +1 -1
- package/node_modules/ejs/lib/cjs/ejs.js +16 -21
- package/node_modules/ejs/lib/cjs/parseargs.js +125 -0
- package/node_modules/ejs/lib/cjs/utils.js +0 -2
- package/node_modules/ejs/lib/esm/ejs.js +18 -23
- package/node_modules/{jake/lib → ejs/lib/esm}/parseargs.js +8 -3
- package/node_modules/ejs/lib/esm/utils.js +0 -2
- package/node_modules/ejs/package.json +2 -4
- package/node_modules/simple-git/dist/cjs/index.js +123 -179
- package/node_modules/simple-git/dist/cjs/index.js.map +4 -4
- package/node_modules/simple-git/dist/esm/index.js +114 -174
- package/node_modules/simple-git/dist/esm/index.js.map +4 -4
- package/node_modules/simple-git/dist/src/lib/api.d.ts +1 -1
- package/node_modules/simple-git/dist/src/lib/plugins/block-unsafe-operations-plugin.d.ts +1 -1
- package/node_modules/simple-git/dist/src/lib/plugins/index.d.ts +1 -1
- package/node_modules/simple-git/dist/src/lib/tasks/clone.d.ts +6 -2
- package/node_modules/simple-git/dist/src/lib/types/index.d.ts +26 -1
- package/node_modules/simple-git/dist/typings/index.d.ts +2 -0
- package/node_modules/simple-git/dist/typings/simple-git.d.ts +2 -1
- package/node_modules/simple-git/dist/typings/types.d.ts +0 -1
- package/node_modules/simple-git/package.json +9 -19
- package/node_modules/simple-git/readme.md +2 -1
- package/package.json +14 -12
- package/dist/claude-marketplace/core/skills/KNOWLEDGE-DEFINITION.md +0 -78
- package/dist/claude-marketplace/core/skills/knowledge.add/SKILL.md +0 -65
- package/dist/claude-marketplace/core/skills/knowledge.delete/SKILL.md +0 -68
- package/dist/claude-marketplace/core/skills/knowledge.detect/SKILL.md +0 -147
- package/dist/claude-marketplace/core/skills/knowledge.import/SKILL.md +0 -93
- package/dist/claude-marketplace/core/skills/knowledge.init/SKILL.md +0 -113
- package/dist/claude-marketplace/core/skills/knowledge.merge/SKILL.md +0 -319
- package/dist/claude-marketplace/core/skills/knowledge.save/SKILL.md +0 -179
- package/dist/claude-marketplace/core/skills/knowledge.status/SKILL.md +0 -86
- package/dist/claude-marketplace/core/skills/knowledge.update/SKILL.md +0 -161
- package/dist/mcp-server.js +0 -7
- package/node_modules/async/CHANGELOG.md +0 -351
- package/node_modules/async/LICENSE +0 -19
- package/node_modules/async/README.md +0 -59
- package/node_modules/async/all.js +0 -119
- package/node_modules/async/allLimit.js +0 -46
- package/node_modules/async/allSeries.js +0 -45
- package/node_modules/async/any.js +0 -122
- package/node_modules/async/anyLimit.js +0 -47
- package/node_modules/async/anySeries.js +0 -46
- package/node_modules/async/apply.js +0 -11
- package/node_modules/async/applyEach.js +0 -57
- package/node_modules/async/applyEachSeries.js +0 -37
- package/node_modules/async/asyncify.js +0 -118
- package/node_modules/async/auto.js +0 -333
- package/node_modules/async/autoInject.js +0 -182
- package/node_modules/async/bower.json +0 -17
- package/node_modules/async/cargo.js +0 -63
- package/node_modules/async/cargoQueue.js +0 -71
- package/node_modules/async/compose.js +0 -55
- package/node_modules/async/concat.js +0 -115
- package/node_modules/async/concatLimit.js +0 -60
- package/node_modules/async/concatSeries.js +0 -41
- package/node_modules/async/constant.js +0 -14
- package/node_modules/async/detect.js +0 -96
- package/node_modules/async/detectLimit.js +0 -48
- package/node_modules/async/detectSeries.js +0 -47
- package/node_modules/async/dir.js +0 -43
- package/node_modules/async/dist/async.js +0 -6061
- package/node_modules/async/dist/async.min.js +0 -1
- package/node_modules/async/dist/async.mjs +0 -5948
- package/node_modules/async/doDuring.js +0 -68
- package/node_modules/async/doUntil.js +0 -46
- package/node_modules/async/doWhilst.js +0 -68
- package/node_modules/async/during.js +0 -78
- package/node_modules/async/each.js +0 -129
- package/node_modules/async/eachLimit.js +0 -50
- package/node_modules/async/eachOf.js +0 -185
- package/node_modules/async/eachOfLimit.js +0 -47
- package/node_modules/async/eachOfSeries.js +0 -39
- package/node_modules/async/eachSeries.js +0 -44
- package/node_modules/async/ensureAsync.js +0 -67
- package/node_modules/async/every.js +0 -119
- package/node_modules/async/everyLimit.js +0 -46
- package/node_modules/async/everySeries.js +0 -45
- package/node_modules/async/filter.js +0 -93
- package/node_modules/async/filterLimit.js +0 -45
- package/node_modules/async/filterSeries.js +0 -43
- package/node_modules/async/find.js +0 -96
- package/node_modules/async/findLimit.js +0 -48
- package/node_modules/async/findSeries.js +0 -47
- package/node_modules/async/flatMap.js +0 -115
- package/node_modules/async/flatMapLimit.js +0 -60
- package/node_modules/async/flatMapSeries.js +0 -41
- package/node_modules/async/foldl.js +0 -153
- package/node_modules/async/foldr.js +0 -41
- package/node_modules/async/forEach.js +0 -129
- package/node_modules/async/forEachLimit.js +0 -50
- package/node_modules/async/forEachOf.js +0 -185
- package/node_modules/async/forEachOfLimit.js +0 -47
- package/node_modules/async/forEachOfSeries.js +0 -39
- package/node_modules/async/forEachSeries.js +0 -44
- package/node_modules/async/forever.js +0 -68
- package/node_modules/async/groupBy.js +0 -108
- package/node_modules/async/groupByLimit.js +0 -71
- package/node_modules/async/groupBySeries.js +0 -36
- package/node_modules/async/index.js +0 -588
- package/node_modules/async/inject.js +0 -153
- package/node_modules/async/internal/DoublyLinkedList.js +0 -92
- package/node_modules/async/internal/Heap.js +0 -120
- package/node_modules/async/internal/applyEach.js +0 -29
- package/node_modules/async/internal/asyncEachOfLimit.js +0 -75
- package/node_modules/async/internal/awaitify.js +0 -28
- package/node_modules/async/internal/breakLoop.js +0 -10
- package/node_modules/async/internal/consoleFunc.js +0 -31
- package/node_modules/async/internal/createTester.js +0 -40
- package/node_modules/async/internal/eachOfLimit.js +0 -90
- package/node_modules/async/internal/filter.js +0 -55
- package/node_modules/async/internal/getIterator.js +0 -11
- package/node_modules/async/internal/initialParams.js +0 -14
- package/node_modules/async/internal/isArrayLike.js +0 -10
- package/node_modules/async/internal/iterator.js +0 -57
- package/node_modules/async/internal/map.js +0 -30
- package/node_modules/async/internal/once.js +0 -17
- package/node_modules/async/internal/onlyOnce.js +0 -15
- package/node_modules/async/internal/parallel.js +0 -34
- package/node_modules/async/internal/promiseCallback.js +0 -23
- package/node_modules/async/internal/queue.js +0 -294
- package/node_modules/async/internal/range.js +0 -14
- package/node_modules/async/internal/reject.js +0 -26
- package/node_modules/async/internal/setImmediate.js +0 -34
- package/node_modules/async/internal/withoutIndex.js +0 -10
- package/node_modules/async/internal/wrapAsync.js +0 -34
- package/node_modules/async/log.js +0 -41
- package/node_modules/async/map.js +0 -142
- package/node_modules/async/mapLimit.js +0 -45
- package/node_modules/async/mapSeries.js +0 -44
- package/node_modules/async/mapValues.js +0 -152
- package/node_modules/async/mapValuesLimit.js +0 -61
- package/node_modules/async/mapValuesSeries.js +0 -37
- package/node_modules/async/memoize.js +0 -91
- package/node_modules/async/nextTick.js +0 -52
- package/node_modules/async/package.json +0 -75
- package/node_modules/async/parallel.js +0 -180
- package/node_modules/async/parallelLimit.js +0 -41
- package/node_modules/async/priorityQueue.js +0 -60
- package/node_modules/async/queue.js +0 -24
- package/node_modules/async/race.js +0 -67
- package/node_modules/async/reduce.js +0 -153
- package/node_modules/async/reduceRight.js +0 -41
- package/node_modules/async/reflect.js +0 -78
- package/node_modules/async/reflectAll.js +0 -93
- package/node_modules/async/reject.js +0 -87
- package/node_modules/async/rejectLimit.js +0 -45
- package/node_modules/async/rejectSeries.js +0 -43
- package/node_modules/async/retry.js +0 -159
- package/node_modules/async/retryable.js +0 -77
- package/node_modules/async/select.js +0 -93
- package/node_modules/async/selectLimit.js +0 -45
- package/node_modules/async/selectSeries.js +0 -43
- package/node_modules/async/seq.js +0 -79
- package/node_modules/async/series.js +0 -186
- package/node_modules/async/setImmediate.js +0 -45
- package/node_modules/async/some.js +0 -122
- package/node_modules/async/someLimit.js +0 -47
- package/node_modules/async/someSeries.js +0 -46
- package/node_modules/async/sortBy.js +0 -190
- package/node_modules/async/timeout.js +0 -89
- package/node_modules/async/times.js +0 -50
- package/node_modules/async/timesLimit.js +0 -43
- package/node_modules/async/timesSeries.js +0 -32
- package/node_modules/async/transform.js +0 -173
- package/node_modules/async/tryEach.js +0 -78
- package/node_modules/async/unmemoize.js +0 -25
- package/node_modules/async/until.js +0 -61
- package/node_modules/async/waterfall.js +0 -105
- package/node_modules/async/whilst.js +0 -78
- package/node_modules/async/wrapSync.js +0 -118
- package/node_modules/balanced-match/.github/FUNDING.yml +0 -2
- package/node_modules/balanced-match/LICENSE.md +0 -21
- package/node_modules/balanced-match/README.md +0 -97
- package/node_modules/balanced-match/index.js +0 -62
- package/node_modules/balanced-match/package.json +0 -48
- package/node_modules/brace-expansion/.github/FUNDING.yml +0 -2
- package/node_modules/brace-expansion/LICENSE +0 -21
- package/node_modules/brace-expansion/README.md +0 -135
- package/node_modules/brace-expansion/index.js +0 -203
- package/node_modules/brace-expansion/package.json +0 -49
- package/node_modules/filelist/README.md +0 -84
- package/node_modules/filelist/index.d.ts +0 -110
- package/node_modules/filelist/index.js +0 -495
- package/node_modules/filelist/jakefile.js +0 -15
- package/node_modules/filelist/package.json +0 -28
- package/node_modules/jake/Makefile +0 -44
- package/node_modules/jake/README.md +0 -17
- package/node_modules/jake/bin/bash_completion.sh +0 -41
- package/node_modules/jake/bin/cli.js +0 -31
- package/node_modules/jake/jakefile.js +0 -112
- package/node_modules/jake/lib/api.js +0 -409
- package/node_modules/jake/lib/jake.js +0 -330
- package/node_modules/jake/lib/loader.js +0 -174
- package/node_modules/jake/lib/namespace.js +0 -115
- package/node_modules/jake/lib/package_task.js +0 -406
- package/node_modules/jake/lib/program.js +0 -282
- package/node_modules/jake/lib/publish_task.js +0 -290
- package/node_modules/jake/lib/rule.js +0 -311
- package/node_modules/jake/lib/task/directory_task.js +0 -30
- package/node_modules/jake/lib/task/file_task.js +0 -126
- package/node_modules/jake/lib/task/index.js +0 -9
- package/node_modules/jake/lib/task/task.js +0 -458
- package/node_modules/jake/lib/test_task.js +0 -270
- package/node_modules/jake/lib/utils/file.js +0 -286
- package/node_modules/jake/lib/utils/index.js +0 -297
- package/node_modules/jake/lib/utils/logger.js +0 -24
- package/node_modules/jake/package.json +0 -44
- package/node_modules/jake/test/integration/concurrent.js +0 -45
- package/node_modules/jake/test/integration/file.js +0 -228
- package/node_modules/jake/test/integration/file_task.js +0 -141
- package/node_modules/jake/test/integration/helpers.js +0 -80
- package/node_modules/jake/test/integration/jakefile.js +0 -352
- package/node_modules/jake/test/integration/jakelib/concurrent.jake.js +0 -113
- package/node_modules/jake/test/integration/jakelib/publish.jake.js +0 -49
- package/node_modules/jake/test/integration/jakelib/required_module.jake.js +0 -10
- package/node_modules/jake/test/integration/jakelib/rule.jake.js +0 -222
- package/node_modules/jake/test/integration/list_tasks.js +0 -15
- package/node_modules/jake/test/integration/publish_task.js +0 -27
- package/node_modules/jake/test/integration/rule.js +0 -217
- package/node_modules/jake/test/integration/selfdep.js +0 -42
- package/node_modules/jake/test/integration/task_base.js +0 -167
- package/node_modules/jake/test/unit/jakefile.js +0 -36
- package/node_modules/jake/test/unit/namespace.js +0 -77
- package/node_modules/jake/test/unit/parseargs.js +0 -169
- package/node_modules/jake/usage.txt +0 -17
- package/node_modules/minimatch/LICENSE +0 -15
- package/node_modules/minimatch/README.md +0 -259
- package/node_modules/minimatch/lib/path.js +0 -4
- package/node_modules/minimatch/minimatch.js +0 -944
- package/node_modules/minimatch/package.json +0 -35
- package/node_modules/picocolors/LICENSE +0 -15
- package/node_modules/picocolors/README.md +0 -21
- package/node_modules/picocolors/package.json +0 -25
- package/node_modules/picocolors/picocolors.browser.js +0 -4
- package/node_modules/picocolors/picocolors.d.ts +0 -5
- package/node_modules/picocolors/picocolors.js +0 -75
- package/node_modules/picocolors/types.d.ts +0 -51
- 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
|
|
3
|
+
An intelligent knowledge management system for Claude Code that automatically captures and retrieves development insights during your coding sessions.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Why Knowledge Bank?
|
|
6
6
|
|
|
7
|
-
Knowledge Bank
|
|
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
|
-
|
|
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
|
-
|
|
11
|
+
Knowledge Bank is a Claude Code plugin that seamlessly integrates into your development workflow to:
|
|
16
12
|
|
|
17
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
###
|
|
22
|
+
### Knowledge Should Be Effortless
|
|
30
23
|
|
|
31
|
-
|
|
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
|
-
-
|
|
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
|
-
|
|
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
|
-
|
|
30
|
+
### Context is Everything
|
|
41
31
|
|
|
42
|
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
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
|
-
|
|
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
|
-
|
|
40
|
+
## Key Advantages
|
|
56
41
|
|
|
57
|
-
|
|
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
|
-
|
|
60
|
-
- **
|
|
61
|
-
- **
|
|
62
|
-
- **
|
|
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
|
-
|
|
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
|
|
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
|
|
105
|
+
# Install the plugin into Claude Code
|
|
82
106
|
knowledge-bank install
|
|
83
107
|
|
|
84
|
-
#
|
|
85
|
-
knowledge-bank
|
|
108
|
+
# Verify installation
|
|
109
|
+
knowledge-bank config
|
|
86
110
|
```
|
|
87
111
|
|
|
88
|
-
|
|
112
|
+
That's it! Knowledge Bank is now active and will automatically capture knowledge from your Claude Code sessions.
|
|
89
113
|
|
|
90
|
-
|
|
91
|
-
# Check installation status
|
|
92
|
-
knowledge-bank knowledge-status
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
## Web Interface
|
|
114
|
+
### Web Dashboard
|
|
96
115
|
|
|
97
|
-
|
|
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
|
|
119
|
+
# Start the web dashboard
|
|
103
120
|
knowledge-bank web
|
|
104
121
|
```
|
|
105
122
|
|
|
106
|
-
The
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
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
|
-
|
|
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
|
-
|
|
137
|
-
|
|
138
|
-
|
|
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
|
-
|
|
143
|
-
|
|
144
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
147
|
+
## Privacy & Security
|
|
153
148
|
|
|
154
|
-
|
|
155
|
-
- **
|
|
156
|
-
- **
|
|
157
|
-
- **
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
21
|
+
"version": "0.1.4-6"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -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
|
}
|