AI-native Knowledge Base Framework — a reusable template repository for building structured, version-aware, confidence-tagged knowledge bases that are consumed by AI agents.
Owner: René Sebastian Kaup (LinkedIn) Status: ✅ v1.0 functionally complete + Iteration 2 hardening. Architecture, governance, the interactive
/kb-setupagent, the/importpipeline, the consistency gate, and the optional skills pipeline are all in place. Iteration 2 added a note scaffolder (/new-note), two more note types (troubleshooting, decision-record), five deeper structural gate checks, a self-test harness with CI, a committed sample instance (_examples/claude-code-kb), and a generic discovery-tools slot. Iteration 3 added a generalized self-audit framework (/kb-audit, Supervisor + two independent tracks, 6-dimension maturity model) and a generic human onboarding template (01-meta/ONBOARDING.md).
Fastest -- run the framework self-test (instantiates throwaway copies, asserts the gate passes on clean KBs and fails on injected drift):
pwsh ./tools/Test-Framework.ps1 # expect: RESULT: PASS -- 12/12 cases met expectation
Or instantiate into a throwaway copy and run the gate by hand:
- Copy the repo (excluding
.git) to a scratch folder. - Run
/kb-setup(or calltools/Initialize-KB.ps1with akb-setup.config.json). - Run
tools/Check-KBConsistency.ps1-- it should reportRESULT: PASS -- 0 blocking problems.
Or just gate the committed sample: tools/Check-KBConsistency.ps1 -RepoRoot ./_examples/claude-code-kb.
This repo is a domain-agnostic template. After running an interactive AI setup agent
(/kb-setup), it can be adapted to any knowledge domain (e.g. a software platform, a product,
a regulatory area) and then used to collect knowledge for AI agents.
It generalizes a mature, production-proven knowledge base into reusable framework machinery:
- Three-layer progressive-disclosure architecture — L0 routing → L1 domain MOCs → L2 atomic notes → L3 references
- Governance system — rules for adding/extending knowledge, a new-vs-extend decision tree, a glossary, an import pipeline
- Confidence tagging — every claim is source- and trust-tagged
- Front-matter contract — mandatory metadata on every artifact, mechanically gated
- Six note types — concept, how-to, reference, q-and-a, troubleshooting, decision-record (ADR)
- Note scaffolder —
/new-note(tools/New-Note.ps1) writes correct front-matter + a MOC routing row for you - Sprint methodology — board/ledger/decisions, lessons-learned, lifecycle checklist
- Claude Code integration —
CLAUDE.md, slash-commands, skill-build pipeline - Quality gates — consistency checker (16 checks: front-matter, links, counters, duplicate ids, MOC paths, orphans, staleness, sprint-dossier completeness, human-review visibility, skill coverage, ...), commit-message hygiene, CI workflows
- Self-test harness —
tools/Test-Framework.ps1proves the toolchain on every push (CI) - Sample instance —
_examples/claude-code-kbshows a real, gate-green KB with all six note types - Discovery slot —
tools/discovery/generic skeleton for source-acquisition feeding/import - Human onboarding —
01-meta/ONBOARDING.mdgentle end-to-end entry path for new colleagues (Git, gates, sprints, audits, sub-agent orchestration) - Self-audit framework —
01-meta/governance/audits/periodic maturity + quality review (/kb-audit: Supervisor + two independent tracks, 6-dimension CMMI model, read-only, evidence-based)
- Clone/use this template for a new knowledge domain.
- Run the interactive setup agent (
/kb-setup) — it interviews you (domain, sources, taxonomy) and fills in all placeholders. - Start collecting knowledge using the
/importpipeline and the governance rules. - Optionally build Claude Skills from the corpus.
Editor tip: the KB is plain Markdown, so any editor works. Obsidian pairs well (optional, per-instance) — the template ships no
.obsidian/config; set one up yourself if you want it. See01-meta/ONBOARDING.mdJ5.
This framework template is licensed under the MIT License — free to use, copy, modify, and distribute with attribution.
Scope note: the MIT license covers the reusable framework machinery in this repository only. Knowledge bases you create from this template are your own — their content and license are yours to choose (set
{{LICENSE_KIND}}during/kb-setupand add a LICENSE to the instance).