Help us improve
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
By vakovalskii
Search and maintain a structured Markdown knowledge base using FTS5 BM25 + trigram/fuzzy search. Enforce ontology rules when adding, editing, moving, or deleting documents, and quickly locate information via CLI instead of reading files randomly.
npx claudepluginhub vakovalskii/gitmark-memory-bank --plugin gitmarkRules for maintaining a markdown knowledge base (GitMark) — apply when adding, editing, moving, or deleting documentation (.md). A lightweight code-ontology: every document has a type, properties (frontmatter), and typed links. Keeps the KB structured instead of a pile of files. Use on "add a doc", "record a decision", "update the docs", "reorganize docs".
Search a project's markdown knowledge base (docs/, README files, *.md) via the GitMark CLI — FTS5 ranking (bm25) plus trigram/fuzzy matching — instead of grepping across files. Use when you need to find where something is documented, "where do the docs say X", before reading files at random, or to generate an HTML overview/graph of the knowledge base. Handles substrings, typos, and non-Latin scripts.
A project knowledge base is just
markdown+ aREADMEindex +git. Nothing simpler works better.

Above: the actual documentation graph of a live production project
(hub.neuraldeep.ru) — generated by gitmark map, gravity
mode on. Colors = services. This isn't a mockup; it's a KB being used and evolved daily.
Markdown is the source of truth — the thing you and your AI assistant read directly, in
any editor. Everything derived (a search index, this HTML overview, the link graph) is
regenerated from the md, so git stays clean. No service, no database, no embeddings,
no vendor. The entry point is CLAUDE.md / AGENTS.md; every folder's README.md is its
index.
CLAUDE.md / AGENTS.md ← entry point
/docs
README.md ← master index
/services
/<service>
README.md ← always the folder index
Battle-tested over months of building with AI assistants. The KB an agent (and a human) actually wants is plain md you can read anywhere — plus instant search so you find the right file instead of grepping blind.
gitmark — one self-contained Python-stdlib CLI, zero dependencies:
| command | what |
|---|---|
index | build a SQLite FTS5 index: bm25 ∪ trigram (substring) ∪ fuzzy (4-char windows, typo/morphology/non-Latin tolerant) |
search | ranked file:line · heading · snippet; --json for tooling |
map | self-contained HTML: collapsible tree + rendered markdown + a force/radial graph of links |
serve | tiny local HTTP server to view the map |
stat | index/KB stats |
lint | (optional) ontology checks: broken links, frontmatter, folder READMEs |
version | — |
Plus a Claude Code plugin: skills kb-search + kb-curate and a /kb command, so the
agent searches the KB instead of grepping, and follows light curation rules when editing.
python3 skills/kb-search/gitmark.py index # build .gitmark/index.db
python3 skills/kb-search/gitmark.py search "auth flow"
python3 skills/kb-search/gitmark.py map -o docs-map.html && open docs-map.html
Pure python3 (≥3.7) with SQLite FTS5; the trigram tokenizer (SQLite ≥ 3.34) adds
fuzzy/substring/non-Latin matching — detected automatically, degrades gracefully. Add
.gitmark/ to .gitignore — it's a build artifact.
/plugin marketplace add vakovalskii/gitmark-memory-bank
/plugin install gitmark@gitmark-marketplace
Or just copy skills/ and commands/ into your repo's .claude/ — project-local, no
marketplace needed.
The simple core needs no frontmatter at all — index/search/map work on raw
markdown. If a team wants the KB not to rot as it grows, there's a light code-ontology
(inspired by Palantir's Ontology):
each doc gets a node_type, a few frontmatter properties, and typed links — and
gitmark lint enforces it (no broken links, no orphans, every folder has a README index).
See docs/ontology.md. Use it or ignore it; the tool doesn't force it.
Because the simplest thing wins: md you already read, git you already use, one stdlib file you can audit in an afternoon. It runs offline, leaks nothing to a SaaS, and you own every byte. There are a thousand "memory banks" — this one's bet is radical simplicity that you can watch working on a real product, not another service to run.
MIT — see LICENSE.
Share bugs, ideas, or general feedback.
Based on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Bootstrap a wiki-first knowledge system into any project.
Zero-config knowledge base MCP server — search, manage, and embed documentation (SQLite default, PostgreSQL optional)
AI-powered knowledge base management - Capture conversation learnings, maintain topic-specific KB files, Obsidian-compatible knowledge graph, structured dynamic context loading, and institutional knowledge in CLAUDE.md
Optimized file search, semantic indexing, and persistent memory for Claude Code — with optional sync to a self-hosted web dashboard
A persistent LLM-maintained wiki for your knowledge base. Ingest sources, query your knowledge, and lint for consistency.
Turn your Markdown vault into a searchable knowledge graph that any AI agent can query.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claim