kb-setup

Installation
SKILL.md

kb-setup

Builds and maintains a local knowledge base per workspace:

  • Central engine: ~/.claude/skills/kb-setup/scripts/kb.py (PEP 723 script, run with uv; nothing is installed in the workspace). It finds the workspace root by walking up from the current directory to kb/config.yaml. Below, KB means uv run ~/.claude/skills/kb-setup/scripts/kb.py (always run it from the workspace root, one simple command per Bash call).
  • Optional engine copy: when the user chooses it, KB vendor copies the engine (text files only) to scripts/kb-engine/ so people without kb-setup can consult the KB (uv run scripts/kb-engine/kb.py). The central engine always takes precedence; the copy is the fallback, refreshed by upgrade. scripts/kb/ is something else: the v1 local engine that adopt removes.
  • Versions: the skill version is in VERSION, its changes in CHANGELOG.md; the engine has its own ENGINE_VERSION. Workspaces record both (kb_setup_version, engine_version in kb/config.yaml).
  • Core ontology (prefix kb:, English) ships with the engine (assets/core/). Each workspace adds a domain ontology (kb/ontology/<prefix>.ttl), mappings, topics/facts and saved queries.
  • Generated skills in the workspace: /kb (consult and maintain) and, if approved, 2–4 task skills prefixed with the project name.
  • graphify (required), installed from the graphify-kb fork that versions this skill (references/graphify.md). Every init/adopt/update installs or checks it and builds its graph over code + docs/ + wiki/ (raw/ only per authorized document), coexisting with /kb.

Write workspace files in the workspace language (README, notes); generated skills and this skill are in English; answer the user in the language they write in.

Principles (why they exist)

These come from a real deployment and its evals (details in references/lessons.md). Follow them unless the user explicitly decides otherwise for a workspace.

Installs
4
First Seen
Oct 5, 2026