/gitmark:kb-curatefrom gitmark
Maintains a structured markdown knowledge base (GitMark) with typed documents, frontmatter properties, and typed links. Applies when adding, editing, moving, or deleting documentation.
Ships in gitmark. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Full model: docs/ontology.md. This skill is the operational checklist. Principle:
md+git is the source of truth, with an ontology on top (object types / properties /
links — inspired by Palantir Foundry/Gotham, compatible with Google's Open Knowledge
Format (OKF) frontmatter).
python3 <plugin>/skills/kb-search/gitmark.py search "<topic>"
python3 <plugin>/skills/kb-search/gitmark.py query type=<type> --fields path,title # what exists
If the topic already exists — edit the existing doc, don't create a second one.
node_type: service · reference · runbook · gotcha · decision
· plan · guide · report · index. Unsure → spec = reference, how-to = guide.docs/services/<svc>/; cross-cutting → docs/reference/; ops procedure →
docs/ops/; plan → docs/plans/; decision → docs/decisions/.node_type; for load-bearing docs also title,
description, service, status: active, updated: YYYY-MM-DD):
---
node_type: runbook
title: Deploy the gateway
description: "How to roll out (deploy) the API gateway to prod and roll back if healthchecks fail."
service: api
status: active
updated: 2026-06-06
generated: { by: claude-code/<model>, at: 2026-06-06T10:00:00Z }
links:
documents: [../../scripts/deploy.sh]
depends_on: [../reference/architecture.md]
---
description — one sentence, 12–30 words, in the words of someone who has not
read the doc: the task/symptom it answers + key entities, a synonym where natural.
Not the title again. It is indexed with extra weight and shown in folder indexes.generated — when an agent wrote or substantially rewrote the content:
{ by: <tool>/<model>, at: <ISO datetime>Z }. A human author: by: human:<id>.verified — only the actor who actually checked the content against reality
adds it: verified: [{ by: human:<id>, at: … }] or process:<name>. An agent
never writes human: into verified on its own — that is the whole point of the
trust tier. Content changed materially → drop stale verified entries.stale_after — for perishable facts (hosts, versions, counts, "current state"):
an ISO instant after which the doc must be re-checked. lint flags it (I8).documents/implemented_by) or a sibling doc
(depends_on/relates_to). No orphans. Paths are relative to the doc, or start with
/ for repo-root-relative (OKF style, stable when docs move).README.md (its index): - [Title](file.md) — description.AGENTS.md is read by Codex, Qwen Code, Cursor and others; Claude Code reads CLAUDE.md.
Keep one source: rules in AGENTS.md, CLAUDE.md is only
# CLAUDE.md
All rules live in `AGENTS.md`; Claude Code imports it below.
@AGENTS.md
AGENTS.md starts with a header: one sentence on what the project is, a link to
docs/README.md, 3–5 rules that hold everywhere, and a short tree of docs/ and the top
code dirs (one line each). When the KB gains a folder or a top dir moves — update that tree.
Found a project with everything in CLAUDE.md? git mv CLAUDE.md AGENTS.md, add the header,
write the import. lint checks it (I9). Full model: docs/ontology.md → Entry point.
README.md is an index: no updated: in it, add new lines at the end of their
section, don't reorder. gitmark attrs --write once per repo → indexes merge with union.<!-- gitmark:toc --> … <!-- /gitmark:toc -->, don't hand-edit the block:
run gitmark toc --write after adding/renaming docs (the line comes from title + description).summary: is read as description; a dated snapshot gets status: frozen and is not edited.updated: (and generated.at if an agent rewrote it).status: deprecated and set supersedes: [old.md] on the replacement.
Junk → delete (git keeps history).git mv (preserves history), then rewrite every link to it and update the
README indexes of both folders.python3 <plugin>/skills/kb-search/gitmark.py lint # invariants I1–I9
python3 <plugin>/skills/kb-search/gitmark.py lint --baseline origin/main # KB with debt: only "did it grow?"
python3 <plugin>/skills/kb-search/gitmark.py toc --write # if folder READMEs use gitmark:toc blocks
python3 <plugin>/skills/kb-search/gitmark.py secrets # nothing token-shaped in the KB
python3 <plugin>/skills/kb-search/gitmark.py index # rebuild search
python3 <plugin>/skills/kb-search/gitmark.py health # optional: KB scorecard
lint flags: missing/broken frontmatter, values outside vocabularies, orphans, broken
links, folder without README, supersedes target still live, typed link to a missing
code path, past stale_after. Fix until clean.
node_type: service|reference|runbook|gotcha|decision|plan|guide|report|index
(OKF's type: is accepted as a synonym)status: active|draft|deprecated|archived|frozen (OKF stable = active; frozen — dated snapshot, never edited)service: your project's controlled vocabulary. Declare it (and any extra types,
statuses, link types) in the frontmatter of docs/ontology.md:
vocab:
service: [api, billing, frontend]
node_type: [meeting]
Without vocab.service, lint derives it from folder names under docs/ and
services|apps|packages/. Values starting with _ (_platform) are sentinels.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub vakovalskii/ontoship --plugin gitmark3 skills in this plugin
/dev-flowThe 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"./kb-searchSearch a project's markdown knowledge base (docs/, README files, *.md) via the GitMark CLI — ranked file-level results (FTS5 bm25 + title/description/tags + trigram/fuzzy, fused with RRF) instead of grepping across files — and answer structured questions over YAML frontmatter ("which decisions are active", "what did the agent write that no human verified", "how many plans per service"). Use when you need to find where something is documented, before reading files at random, or to generate an HTML overview/graph of the knowledge base. Handles substrings, typos, Russian morphology.Other plugins' skills for the same job