OntoShip
A project knowledge base is just markdown + a README index + git. Search, the
link graph and the checks are all built from those files.

▶ Watch the full 60-second video: from the whole
knowledge base down to a single line of text and back.

Above: the documentation graph of a live production project
(hub.neuraldeep.ru), generated by gitmark map with gravity
mode on. Colors are services. The team reads and edits this KB every day.
On that project today: 421 markdown docs, 568 links between them, 88 README
indexes, 617 commits to the KB since March 2026. gitmark index rebuilds the whole
thing in 1.5 s with ~50 MB of RAM.
The idea
Markdown is the source of truth. You and your AI assistant read it directly, in any
editor. Everything derived from it (the 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 AGENTS.md, which every agent reads; CLAUDE.md just
imports it with @AGENTS.md. Every folder's README.md is its index.
AGENTS.md ← entry point: header, rules, short tree of /docs
CLAUDE.md ← one line: @AGENTS.md
/docs
README.md ← master index
/services
/<service>
README.md ← always the folder index
We have built this way with AI assistants for months. Agents and people want the same
thing: plain md they can open anywhere, plus fast search so they open the right file
instead of grepping blind.
Under the microscope
Zoom in on the knowledge base and every level is still something you can open in a text
editor:
| zoom | level | what it is |
|---|
| ×1 | the whole KB | a graph of md files linked to each other; agents and humans read the same thing |
| ×10 | a folder | a README.md index plus the docs it points to |
| ×100 | a document | plain markdown: a small frontmatter header, headings, links |
| ×1 000 | the header | three entities: object, properties, links (see the ontology below) |
| ×10 000 | the atom | one line of text, e.g. node_type: runbook. git diffs it, gitmark/grep find it, an agent reads it |

No layer underneath needs a database, a schema or embeddings.
What's in here
gitmark is one self-contained Python-stdlib CLI with zero dependencies:
| command | what |
|---|
index | build a SQLite FTS5 index of sections + frontmatter (title, description, tags, type, status, trust) and typed links |
search | ranked per file: section bm25 + title/description bm25 + trigram substring + fuzzy (typos, Russian morphology), fused with RRF; --type/--status/--service filters; --json |
query | structured questions over frontmatter, straight from md: query type=decision status!=deprecated, query type=plan --count-by service, query trust=unverified 'generated.by~claude' |
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 I1–I9: frontmatter, vocabularies, orphans, broken links, typed links to missing code, past stale_after, entry point (AGENTS.md + @AGENTS.md) |
lint --baseline <ref> | ratchet for a KB with debt: fails only if there are more findings than in <ref> |
toc [--write] | indexes that are built, not written: the <!-- gitmark:toc --> block of a folder README is rebuilt from the docs' title/description |
secrets [files…] | tokens, keys, passwords in the KB, value masked; exit 1 when found |
attrs [--write] | .gitattributes with merge=union for README indexes, so parallel branches never conflict on them |
health | KB scorecard: typed %, description %, typed links, orphans, trust tiers, stale, duplicate docs |
version | — |
OntoShip ships the gitmark plugin (KB + dev-flow) as a Claude Code marketplace:
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. |