| Crates.io | claude-kb-cli |
| lib.rs | claude-kb-cli |
| version | 0.3.4 |
| created_at | 2025-10-13 17:18:12.098635+00 |
| updated_at | 2025-10-30 17:11:08.523935+00 |
| description | CLI for generating, validating, and searching Markdown knowledge bases under a .claude/ hierarchy. |
| homepage | https://github.com/alchemiststudiosDOTai/kb-claude |
| repository | https://github.com/alchemiststudiosDOTai/kb-claude |
| max_upload_size | |
| id | 1880832 |
| size | 91,918 |
kb-claude is not a notes app or a static site generator. It is a living knowledge base manager for engineering projects—equal parts changelog, research archive, and design journal.
Every entry is an ontological Markdown file: a typed piece of knowledge that belongs inside a shared mental model. Instead of scattered notes, the tool enforces a single rule:
If it matters, it belongs in
.claude/, and it must declare atype.
Each .claude/ subfolder represents a semantic category (debug history, patterns, QA, code index, and so on). By naming these folders explicitly, we get predictable, searchable locations for every insight a team creates.
kb-claude automates three responsibilities:
.claude/ folder based on its type.The result is a transparent, text-native system that thrives in version control.
.claude/
metadata/ component summaries
debug_history/ debugging timelines
qa/ Q&A and learning notes
code_index/ file or module references
patterns/ reusable fixes or design motifs
plans/ project and release plans
other/ scratch notes ignored by the CLI
cheatsheets/ quick references or how-tos
memory_anchors/ core concepts tracked by UUID
manifest.md automatically generated summary
Each subdirectory is a distinct knowledge type. When creating entries, type: must match one of these folder names. Use .claude/other/ for ad-hoc notes—the CLI skips anything under that folder.
Every .md file starts with YAML front matter followed by narrative Markdown content.
---
title: auth module broken after drizzle kit upgrade
link: auth-module-broken
type: debug_history
ontological_relations:
- relates_to: [[drizzle-docs]]
- relates_to: [[dependency-docs]]
tags:
- dependencies
- auth
created_at: 2025-10-23T14:00:00Z
updated_at: 2025-10-23T14:00:00Z
uuid: 123e4567-e89b-12d3-a456-426614174000
---
.claude/ subfolder.[[slug]]).The body is free-form Markdown: logs, analysis, diagrams, etc.
kb-claude init – create the .claude/ layout in a repo.kb-claude new "Title" – guided prompt for new entries; handles tags, relations, timestamps, UUIDs, and file placement.kb-claude search keyword – case-insensitive search across titles, tags, relations, and body text.kb-claude validate [--strict] – parse every entry, confirm required metadata, and flag inconsistencies (e.g., slug mismatch).kb-claude manifest – rebuild .claude/manifest.md, a table summarizing every document.kb-claude link source target – insert reciprocal relations between two slugs..claude/ as the project’s institutional memory. Capture debugging sessions, architecture decisions, and recurring Q&A.kb-claude search to avoid duplication.kb-claude validate --strict before committing to keep the KB clean..claude/ as a local wiki you can grep.Future directions: semantic search (Tantivy/SQLite), ontology graphs, automated summarizers, git-aware manifest diffs, or HTML/Notion exporters. The current MVP focuses on correctness, structure, and speed.
Install from crates.io:
cargo install claude-kb-cli
Then run:
kb-claude init
kb-claude new "First Entry" -t metadata
kb-claude manifest
That’s enough to see the typed knowledge base take shape. Everything else—searching, validating, linking—builds on that foundation.