Skip to main content

Crate khive_pack_template

Crate khive_pack_template 

Source
Expand description

khive-pack-template — reference scaffold for new packs (ADR-023 §8).

§How to create a new pack

  1. Copy this crate directory to crates/khive-pack-<name>/.
  2. Rename the crate in Cargo.toml (name, description).
  3. Set PACK_NAME to your pack’s canonical name (e.g. "exp").
  4. Update NOTE_KINDS / ENTITY_KINDS in vocab.rs.
  5. Add your verbs to HANDLERS below; fill in handlers.rs.
  6. Add the crate to the workspace Cargo.toml.
  7. Force-link in khive-mcp/src/pack.rs and kkernel/src/lib.rs.
  8. Add the crate dep to khive-mcp/Cargo.toml and kkernel/Cargo.toml.

Reference implementation: crates/khive-pack-kg/.

No macros, no DSLs. Plain Rust — rust-analyzer, debugger, and LLMs all work directly on this code without expansion.

Modules§

handlers
Verb handler stubs for the template pack (ADR-023 §8).
vocab
Vocabulary for the template pack.

Structs§

TemplatePack
Template pack — replace with your pack’s struct name and logic.