From agent-knowledge
Scaffolds a new OKF knowledge bundle in a project, creating the folder structure and schema for a knowledge wiki. Used when starting a new wiki or adding a bundle under knowledge/.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agent-knowledge:kb-initThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Scaffold a conformant **bundle** per [kb](../kb/SKILL.md). Your unique work is the **schema layer**
Scaffold a conformant bundle per kb. Your unique work is the schema layer (step 2) and adapting the seed (step 3).
Read ../kb/reference/glossary.md if the terms below are unfamiliar.
Default to a bundle at knowledge/. Accept overrides from the user's request:
docs/kb) → scaffold there instead.ci bundle") → scaffold at knowledge/<name>/ and treat knowledge/
as a multi-bundle folder: ensure a top-level knowledge/index.md exists that catalogs the
bundles (create it if missing; add this bundle to it).If the target directory already contains a bundle (a root index.md), stop and report it — do not
overwrite. Offer kb-ingest instead.
Completion criterion: the target path and bundle name are fixed, and confirmed not to collide with an existing bundle.
The scaffold is deterministic; the schema layer needs judgment, so gather it first. Inspect the workspace for signal (README, existing docs, the code, any notes the user points at) and ask the user only what you still can't infer:
type vocabulary (e.g. person, deal, metric; or character, chapter, theme).Keep it short — a few types and a one-line routing rule is enough to start; the schema layer co-evolves later.
Completion criterion: you can name the bundle's initial type values, its raw sources, and a
one-line ingest routing rule.
Copy ../kb/example-bundle/ into the target, then adapt every seed artifact:
| Artifact | Action |
|---|---|
index.md | Keep okf_version: "0.1" frontmatter; replace the body with this bundle's title and section list. |
log.md | Start fresh with a single dated **Creation** entry. |
spec/types.md | Replace example types with the domain's type vocabulary from step 2. |
spec/conventions.md | Replace with folder taxonomy, naming, ingest routing rule, and a trust-model pointer. |
concepts/* | Remove example entities (customers, orders); leave concepts/ empty or create domain starter folders. |
knowledge/index.md | If multi-bundle (step 1): create or update the catalog entry for this bundle. |
Use ../kb/templates/ for any new concept/index/log files.
Completion criterion: the bundle exists on disk; every row above is accounted for; spec/types.md
and spec/conventions.md describe this project (not the example's orders/customers); multi-bundle
catalog updated if applicable.
Run kb-lint if available; otherwise verify the bundle is conformant per kb (SPEC §9 — the one hard rule).
Completion criterion: zero conformance errors.
Tell the user the bundle is ready, where it lives, and the two next moves:
kb-ingest to add knowledge, kb-query to ask it
questions. If this project uses CLAUDE.md/AGENTS.md, offer to add a one-line pointer so agents
read the bundle's root index.md before relevant tasks.
npx claudepluginhub stjbrown/agent-knowledgeRoutes to the correct kb-* skill for starting, ingesting, querying, linting, or visualizing OKF knowledge bundles. Activates when a knowledge/ bundle exists or the user wants to work with project knowledge.
Manages Open Knowledge Format (OKF) knowledge bundles — portable markdown with YAML frontmatter for capturing project knowledge. Use when creating, updating, or consuming OKF bundles.
Initializes OKF knowledge base files (index.md and log.md) for claude-mega-brain context injection. Use when setting up project documentation for the plugin.