promptbook

Documentation

Compose prompts from reusable fragments via declarative rules.

System prompts scattered through a codebase as template literals are unreviewable: you can't see what's shared, what's safe to change, or what the model actually receives. promptbook fixes that by splitting prompt assembly into three boring layers — WHAT (Markdown fragments), WHEN (YAML rules), HOW (a pure, deterministic resolve()). No model calls in the engine; intelligence lives in the agent.

Start with the Introduction for the problem and the fix, then jump to Concepts for the WHAT / WHEN / HOW split with code. The Examples page links the two demo books, both runnable in the in-browser viewer.