By vakovalskii
Transform a markdown knowledge base into a structured, ontology-enforced project memory with FTS5 search and an interactive HTML graph, and drive features through a spec-driven git worktree pipeline from research to deployment.
Compose or update a knowledge-base document for the given topic following the OntoShip ontology (node_type, frontmatter, typed links, folder README index). Wraps the kb-curate skill.
Build the OntoShip KB graph (gitmark map) — collapsible tree + rendered markdown + force/radial link graph as a self-contained HTML — and point the user to it.
Search the project knowledge base via GitMark (FTS5 bm25 + trigram/fuzzy). Argument = query; no argument shows stat.
Build the ENTIRE knowledge base for this repo — survey the codebase, then dispatch kb-curate curator agents per area to produce docs/ (per-service READMEs, reference specs, runbooks, decisions, entry point) following the OntoShip ontology, then lint + index + map. Use to bootstrap or rebuild a project's whole KB.
Run the OntoShip dev-flow — take a feature/fix from idea to production through the gated pipeline (research → tasks → goal → spec → worktree → implement → tests → review → dev-tests → prod-tests → ship).
The spec-driven development loop for shipping a feature/fix fast and safely on top of a GitMark KB — research → tasks → goal → spec (markdown via skills) → isolated git worktree → implement → tests → independent review → dev-tests → prod-tests → ship (MR → dev → main). Use when starting a feature or fix, or when asked "how do we build/ship a change here".
Rules 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.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
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 | — |
OntoShip ships as a Claude Code marketplace with two plugins — gitmark (KB + dev-flow) and destructive-guard (safety hook).
gitmark — three skills and five commands:
| skill | what |
|---|---|
kb-search | search the KB (FTS5) instead of grepping blind |
kb-curate | light ontology rules when adding/editing docs (types, frontmatter, typed links) |
dev-flow | the spec-driven loop to ship a feature: research → tasks → goal → spec (md via kb-curate) → isolated git worktree → implement → tests → independent review → dev-tests → prod-tests → ship (MR → dev → main). Feature to prod in ~40 min – 2 h. |
So the agent searches the KB instead of grepping, follows light curation rules when editing, and ships changes through one repeatable, gated flow built around the KB.
| command | what |
|---|---|
/kb | search the KB (FTS5) and answer from the top hits |
/kb-map | build the self-contained HTML graph of the KB and open it |
/doc | compose/update one KB doc following the ontology (wraps kb-curate) |
/onto-doc | build the whole KB — fans out kb-curate curator agents per area, then lint + index + map |
/ship | run the dev-flow on a feature/fix: research → … → ship (MR → dev → main) |
The argument after the command is the prompt — be specific, results scale with it.
/kb <query> — a topic, symbol, concept or question to find in the KB.
/kb how is the billing webhook signature verified, /kb tier rate limits, /kb sandbox isolation./kb → prints index stats + the syntax./kb-map [output-path] — usually nothing (defaults to docs-map.html).
/kb-map build/graph.html./doc <topic / what to document> — name the thing to write up; the agent picks the
node_type+folder, writes frontmatter + typed links, and indexes it.
/doc how the billing webhook verifies the YooKassa signature, /doc decision: drop Firecracker-per-session./onto-doc [scope] — bootstrap/rebuild the entire KB. Empty = whole repo; or scope it
(/onto-doc services/api services/billing, or /onto-doc only reference docs).
npx claudepluginhub vakovalskii/ontoship --plugin gitmarkДетект команд на удаление (rm, rmdir, shred, git rm/clean/reset --hard/push --force, docker rm/volume rm/prune/compose down -v, SQL DROP/TRUNCATE/DELETE FROM) → запрос подтверждения y/n. Работает даже в bypassPermissions. Звук + macOS-баннер при детекте. Разбор по токенам — без ложных срабатываний на perform/transform/terraform.
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
Bootstrap a wiki-first knowledge system into any project.
Zero-config knowledge base MCP server — search, manage, and embed documentation (SQLite default, PostgreSQL optional)
Knowledge base skills for Claude Code — capture, search, and synthesize project knowledge
A persistent LLM-maintained wiki for your knowledge base. Ingest sources, query your knowledge, and lint for consistency.
LLM-maintained personal wiki skills for Claude Code. Implements Karpathy's LLM Wiki pattern — persistent, compounding knowledge base for research, codebase documentation, or any long-term knowledge accumulation.