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 withuv; nothing is installed in the workspace). It finds the workspace root by walking up from the current directory tokb/config.yaml. Below,KBmeansuv 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 vendorcopies the engine (text files only) toscripts/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 byupgrade.scripts/kb/is something else: the v1 local engine thatadoptremoves. - Versions: the skill version is in
VERSION, its changes inCHANGELOG.md; the engine has its ownENGINE_VERSION. Workspaces record both (kb_setup_version,engine_versioninkb/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.