Turn your organization's scattered rules into one citation-grounded knowledge base: every statement traces to a named source, conflicts resolve by a trust hierarchy, and nothing ungrounded ships. Markdown prompts + two config files — no SDK, no runtime. Runs in Claude Code or any capable agent.
- Fork this repo and open your fork in Claude Code.
- Connect your sources so the agent can read your policies and docs — MCP connectors or a local
export folder. See
docs/connectors.md. - Set up — say "help me set up my knowledge base." Claude runs
prompts/setup.mdand fills:config/organization.md— org, domain, audience, serving surface, conventions.config/sources.md— your sources, each with a trust tier and how to reach it.
- Build — say "build the knowledge base." Claude runs
prompts/bootstrap-kb.md: mine → structure → build (build-kb-entry.md) → verify (verify-citations.md) → intokb/. - Maintain — say "audit coverage" now and then (
prompts/audit-coverage.md).
Just one entry? Fill prompts/build-kb-entry.md, run it, verify with prompts/verify-citations.md.
Five principles — cite everything · cite by name · trust hierarchy · verify · treat like code —
explained with a worked example in docs/method.md. The model organizes and cites
the rules that already exist; it never invents them. One ungrounded claim poisons trust in the base.
| Path | What |
|---|---|
config/organization.md |
Your org, domain, audience, conventions (you fill). |
config/sources.md |
Your sources + trust tiers; the ID↔name registry (you fill). |
docs/connectors.md |
Connect your source systems so the agent can read them. |
prompts/setup.md |
Interview that fills the two config files. |
prompts/bootstrap-kb.md |
Build the whole KB from the config (orchestrator). |
prompts/build-kb-entry.md |
Build one atomic, cited KB entry. |
prompts/verify-citations.md |
Independently verify an entry's citations. |
prompts/audit-coverage.md |
Score coverage against real demand. |
docs/method.md |
The method, the trust hierarchy, a worked example. |
CLAUDE.md |
Instructions the agent loads when your fork is opened. |
See CONTRIBUTING.md (contributions licensed Apache-2.0). License: Apache 2.0 — LICENSE.