Expand description
khive-pack-template — reference scaffold for new packs (ADR-023 §8).
§How to create a new pack
- Copy this crate directory to
crates/khive-pack-<name>/. - Rename the crate in
Cargo.toml(name, description). - Set
PACK_NAMEto your pack’s canonical name (e.g."exp"). - Update
NOTE_KINDS/ENTITY_KINDSinvocab.rs. - Add your verbs to
HANDLERSbelow; fill inhandlers.rs. - Add the crate to the workspace
Cargo.toml. - Force-link in
khive-mcp/src/pack.rsandkkernel/src/lib.rs. - Add the crate dep to
khive-mcp/Cargo.tomlandkkernel/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§
- Template
Pack - Template pack — replace with your pack’s struct name and logic.